* Makefile.am (spu_ovl.o_c): Add missing line continuations.
[binutils-gdb.git] / ld / ChangeLog
1 2008-11-14 Alan Modra <amodra@bigpond.net.au>
2
3 * Makefile.am (spu_ovl.o_c): Add missing line continuations.
4 * Makefile.in: Regenerate.
5
6 2008-11-06 Joel Sherrill <joel.sherrill@oarcorp.com>
7
8 * configure.tgt: Add m32c-*-rtems* and m32r-*-rtems*.
9
10 2008-11-03 Bob Wilson <bob.wilson@acm.org>
11
12 * emulparams/elf32xtensa.sh (NO_REL_RELOCS): Set.
13 * scripttempl/elfxtensa.sc (NO_REL_RELOCS, NO_RELA_RELOCS)
14 (NON_ALLOC_DYN): Import changes from elf.sc.
15
16 2008-10-25 Nick Clifton <nickc@redhat.com>
17
18 PR 6945
19 * ldlang.c (lang_size_sections_1): Do not update the VMAs of
20 output sections when performing a relocatable link on COFF
21 objects.
22
23 2008-10-22 Nick Clifton <nickc@redhat.com>
24
25 * emultempl/armelf.em (arm_elf_after_open): Move check for using a
26 non-arm output target from here...
27 (arm_elf_create_output_section_statements): ... to here, so that
28 the check is made at the earliest possible opportunity.
29
30 2008-10-22 Alan Modra <amodra@bigpond.net.au>
31
32 * emulparams/elf32_i960.sh (TEMPLATE_NAME): "generic", not "elf32".
33 (EXTRA_EM_FILE): Define.
34
35 2008-10-22 Alan Modra <amodra@bigpond.net.au>
36
37 * scripttempl/elf.sc (NO_REL_RELOCS, NO_RELA_RELOCS, NON_ALLOC_DYN):
38 Handle these defines.
39 * emulparams/criself.sh, * emulparams/crislinux.sh,
40 * emulparams/elf32am33lin.sh, * emulparams/elf32fr30.sh,
41 * emulparams/elf32_i860.sh, * emulparams/elf32ip2k.sh,
42 * emulparams/elf32mcore.sh, * emulparams/elf32ppccommon.sh,
43 * emulparams/elf32ppcwindiss.sh, * emulparams/elf32_sparc.sh,
44 * emulparams/elf32_spu.sh, * emulparams/elf32vax.sh,
45 * emulparams/elf64alpha.sh, * emulparams/elf64mmix.sh,
46 * emulparams/elf64ppc.sh, * emulparams/elf64_s390.sh,
47 * emulparams/elf64_sparc.sh, * emulparams/elf_s390.sh,
48 * emulparams/elf_x86_64.sh, * emulparams/h8300elf.sh,
49 * emulparams/hppa64linux.sh, * emulparams/hppalinux.sh,
50 * emulparams/m68kelf.sh, * emulparams/mn10200.sh,
51 * emulparams/pjelf.sh, * emulparams/ppclynx.sh,
52 * emulparams/shelf32.sh, * emulparams/shelf_nto.sh,
53 * emulparams/shelf.sh, * emulparams/shelf_vxworks.sh,
54 * emulparams/shlelf32_linux.sh, * emulparams/shlelf_linux.sh,
55 * emulparams/shlelf_nto.sh (NO_REL_RELOCS): Set.
56 * emulparams/arcelf.sh, * emulparams/elf32_i960.sh,
57 * emulparams/elf32openrisc.sh, * emulparams/elf_i386_be.sh,
58 * emulparams/elf_i386_ldso.sh, * emulparams/elf_i386.sh,
59 * emulparams/elf_i386_vxworks.sh, * emulparams/i386lynx.sh,
60 * emulparams/i386moss.sh, * emulparams/i386nto.sh,
61 * emulparams/or32elf.sh, * emulparams/scoreelf.sh (NO_RELA_RELOCS): Set.
62
63 2008-10-22 Alan Modra <amodra@bigpond.net.au>
64
65 * ldlang.c (lang_output_section_find_by_flags): Handle non-alloc
66 sections.
67 * emultempl/elf32.em (enum orphan_save_index): Add orphan_nonalloc.
68 (hold): Likewise.
69 (gld${EMULATION_NAME}_place_orphan): Handle non-alloc orphans.
70
71 2008-10-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
72
73 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Correct typo in
74 help text of --be8.
75
76 2008-10-20 Alan Modra <amodra@bigpond.net.au>
77
78 * ldemul.h (ldemul_place_orphan): Update prototype.
79 (struct ld_emulation_xfer_struct <place_orphan>): Likewise.
80 * ldemul.c (ldemul_place_orphan): Return pointer to output
81 section statement.
82 * emultempl/beos.em (gld${EMULATION_NAME}_place_orphan): Likewise.
83 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
84 * emultempl/mmo.em (mmo_place_orphan): Likewise.
85 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
86 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
87
88 2008-10-08 Nick Clifton <nickc@redhat.com>
89
90 * configure.in (ALL_LINGUAS): Add "id".
91 * configure: Regenerate.
92 * po/id.po: New Indonesian translation.
93
94 2008-10-05 Alan Modra <amodra@bigpond.net.au>
95
96 PR 6943
97 * scripttempl/avr.sc (.bss): Set lma when relocating.
98 (.bss, .noinit): No need to set vma when relocating.
99 (.text, .bss, ,noinit): Set vma to zero when not relocating.
100
101 2008-10-04 Alan Modra <amodra@bigpond.net.au>
102
103 PR 6931
104 * ldemul.c (ldemul_place_orphan): Add "constraint" param.
105 * ldemul.h (ldemul_place_orphan): Update prototype.
106 (struct ld_emulation_xfer_struct <place_orphan>): Likewise add param.
107 * ldlang.c (unique_section_p): Make static.
108 (lang_output_section_statement_lookup): Optimise creation of SPECIAL
109 sections.
110 (lang_insert_orphan): Add "constraint" param. Pass to
111 lang_enter_output_section_statement.
112 (init_os): Don't use an existing bfd section for SPECIAL sections.
113 (lang_place_orphans): Don't rename unique output sections, instead
114 mark their output section statements SPECIAL.
115 * ldlang.h (lang_insert_orphan): Update prototype.
116 (unique_section_p): Delete.
117 * emultempl/beos.em (place_orphan): Add "constraint" param.
118 * emultempl/elf32.em (place_orphan): Likewise. Don't match existing
119 output sections if set.
120 * emultempl/pe.em (place_orphan): Likewise.
121 * emultempl/pep.em (place_orphan): Likewise.
122 * emultempl/mmo.em (mmo_place_orphan): Update.
123 * emultempl/spuelf.em (spu_place_special_section): Update.
124
125 2008-10-03 Alan Modra <amodra@bigpond.net.au>
126
127 PR 6931
128 * ldemul.c (ldemul_place_orphan): Add "name" param.
129 * ldemul.h (ldemul_place_orphan): Update prototype.
130 (struct ld_emulation_xfer_struct <place_orphan>): Likewise.
131 * ldlang.c (lang_place_orphans): Generate unique section names here..
132 * emultempl/elf32.em (place_orphan): ..rather than here. Don't
133 directly use an existing output section statement that has no
134 bfd section.
135 * emultempl/pe.em (place_orphan): Likewise.
136 * emultempl/pep.em (place_orphan): Likewise.
137 * emultempl/beos.em (place_orphan): Adjust.
138 * emultempl/spuelf.em (spu_place_special_section): Adjust
139 place_orphan call.
140 * emultempl/genelf.em (gld${EMULATION_NAME}_after_open): New function.
141 (LDEMUL_AFTER_OPEN): Define.
142
143 2008-09-30 Joseph Myers <joseph@codesourcery.com>
144
145 * emulparams/elf64ppc.sh (OTHER_GOT_RELOC_SECTIONS): Add .rela.opd
146 and .rela.branch_lt.
147
148 2008-09-30 Alan Modra <amodra@bigpond.net.au>
149
150 * Makefile.am: Run "make dep-am".
151 * Makefile.in: Regenerate.
152
153 2008-09-29 Peter O'Gorman <pogma@thewrittenword.com>
154 Steve Ellcey <sje@cup.hp.com>
155
156 * configure: Regenerate for new libtool.
157 * aclocal.m4: Ditto.
158 * Makefile.in: Ditto.
159
160 2008-09-29 Kai Tietz <kai.tietz@onevision.com>
161
162 * pe-dll.c (make_import_fixup_entry): Make sure reloc is addend.
163
164 2008-09-29 Nick Clifton <nickc@redhat.com>
165
166 * po/vi.po: Updated Vietnamese translation.
167
168 2008-09-25 Alan Modra <amodra@bigpond.net.au>
169
170 * ldexp.c (fold_binary): Evaluate rhs when lhs not valid.
171
172 2008-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
173
174 * configure.in: Call AC_SYS_LARGEFILE.
175 * config.in: Regenerate.
176 * configure: Regenerate.
177
178 2008-09-09 Peter Rosin <peda@lysator.liu.se> (tiny change)
179
180 * emultempl/pe.em (pe_find_data_imports): Add trailing newline
181 to warning message.
182 * emultempl/pep.em (pep_find_data_imports): Likewise.
183
184 2008-09-08 H.J. Lu <hongjiu.lu@intel.com>
185
186 2008-09-07 Alan Modra <amodra@bigpond.net.au>
187
188 * emultempl/beos.em (gld${EMULATION_NAME}_place_orphan): Updated.
189 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Likewise.
190
191 2008-09-08 Tristan Gingold <gingold@adacore.com>
192
193 * NEWS: Add a marker for the 2.19 features.
194
195 2008-09-07 Alan Modra <amodra@bigpond.net.au>
196
197 * ldlang.h (lang_output_section_find): Define.
198 (lang_output_section_statement_lookup): Update prototype.
199 * ldlang.c (lang_output_section_find,
200 lang_output_section_statement_lookup_1): Merge into..
201 (lang_output_section_statement_lookup): ..here. Update all callers.
202 (process_insert_statements): Set constraint negative
203 for output section statements we might be inserting. Make error
204 fatal on not finding insertion section.
205 (lang_output_section_find): Rather than comparing
206 output_section_statement.constraint against -1, test whether
207 it is postive.
208 (lang_output_section_statement_lookup_1): Likewise.
209 (output_prev_sec_find, strip_excluded_output_sections): Likewise.
210 (lang_record_phdrs): Likewise.
211 * emultempl/elf32.em (output_rel_find): Likewise.
212 * NEWS: Mention INSERT.
213
214 2008-08-26 Nick Clifton <nickc@redhat.com>
215
216 PR 6727
217 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Scan all
218 input sections in all input bfds and always select the last
219 suitable one, so that interworking stubs are always processed
220 after all other input sections.
221 (arm_elf_before_allocation): Remove redundant use of
222 output_has_begun flag.
223
224 2008-08-24 Alan Modra <amodra@bigpond.net.au>
225
226 * configure.in: Update a number of obsolete autoconf macros.
227 * configure: Regenerate.
228 * aclocal.m4: Regenerate.
229
230 2008-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
231
232 PR ld/6833
233 * ldexp.c (fold_binary <DATA_SEGMENT_ALIGN>): Do not align
234 EXPLD.DATASEG.MIN_BASE.
235 * ldlang.c (lang_size_sections): New variable OLD_BASE. Rename
236 OLD_MIN_BASE to MIN_BASE with the former alignment from `ldexp.c'.
237 Use OLD_BASE now for the minimal base check after the base decrease by
238 the maximum alignment found.
239
240 2008-08-17 Alan Modra <amodra@bigpond.net.au>
241
242 PR 6478
243 * ldcref.c (check_local_sym_xref): Use bfd_generic_link_read_symbols.
244 Don't free symbol pointer array.
245 (check_refs): Likewise.
246 * ldmain.c (warning_callback): Likewise.
247 * ldmisc.c (vfinfo): Likewise.
248 * pe-dll.c (process_def_file): Likewise.
249 (pe_walk_relocs_of_symbol, generate_reloc): Likewise.
250 * emultempl/pe.em (pe_find_data_imports): Likewise.
251 (gld_${EMULATION_NAME}_after_open): Likewise.
252 * emultempl/pep.em (pep_find_data_imports): Likewise.
253 (gld_${EMULATION_NAME}_after_open): Likewise.
254 * ldlang.h (lang_input_statement_type): Delete asymbols, symbol_count,
255 passive_position, closed.
256 * ldlang.c (new_afile): Don't set asymbols and symbol_count.
257 * ldmain.c (add_archive_element): xcalloc lang_input_statement_type.
258
259 2008-08-15 Alan Modra <amodra@bigpond.net.au>
260
261 PR 6526
262 * configure.in: Invoke AC_USE_SYSTEM_EXTENSIONS.
263 * Makefile.in: Regenerate.
264 * aclocal.m4: Regenerate.
265 * config.in: Regenerate.
266 * configure: Regenerate.
267
268 2008-08-09 Alan Modra <amodra@bigpond.net.au>
269
270 PR 6753
271 * ldmain.c (check_for_scripts_dir, set_scripts_dir): Delete.
272 (main): Don't set_scripts_dir here.
273 * ldfile.c (check_for_scripts_dir, find_scripts_dir): New functions,
274 largely based on ldmain.c versions.
275 (ldfile_find_command_file): Set up search in script dir here without
276 affecting library search.
277 * Makefile.am (ldmain.o): No need to define SCRIPTDIR.
278 (ldfile.o): New rule.
279 * Makefile.in: Regenerate.
280
281 2008-08-08 Anatoly Sokolov <aesok@post.ru>
282
283 * Makefile.am (ALL_EMULATIONS): Add eavr25.o, eavr31.o, eavr35.o,
284 and eavr51.o.
285 Add rules for eavr25.c, eavr31.c, eavr35.c, eavr51.c.
286 * Makefile.in: Regenerate.
287 * configure.tgt (avr-*-*, targ_extra_emuls): Add avr25, avr31, avr35
288 and avr51.
289 * emulparams/avr25.sh: New file.
290 * emulparams/avr31.sh: New file.
291 * emulparams/avr35.sh: New file.
292 * emulparams/avr51.sh: New file.
293
294 2008-08-08 Richard Sandiford <rdsandiford@googlemail.com>
295 Daniel Jacobowitz <dan@codesourcery.com>
296
297 * emulparams/elf32bmip.sh (GOT): Define, moving .got.plt to...
298 (OTHER_RELRO_SECTIONS, OTHER_READWRITE_SECTIONS): ...one of these
299 two variables.
300 * emulparams/elf32bmipn32-defs.sh: Likewise.
301 * emultempl/mipself.em: Include ldctor.h, elf/mips.h and elfxx-mips.h.
302 (is_mips_elf): New macro.
303 (stub_file, stub_bfd): New variables.
304 (hook_stub_info): New structure.
305 (hook_in_stub): New function.
306 (mips_add_stub_section): Likewise.
307 (mips_create_output_section_statements): Likewise.
308 (mips_before_allocation): Likewise.
309 (real_func): New variable.
310 (mips_for_each_input_file_wrapper): New function.
311 (mips_lang_for_each_input_file): Likewise.
312 (lang_for_each_input_file): Define.
313 (LDEMUL_BEFORE_ALLOCATION): Likewise.
314 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Likewise.
315
316 2008-08-08 Alan Modra <amodra@bigpond.net.au>
317
318 * ldfile.c (ldfile_open_file_search): Use concat.
319 (try_open): Don't use a fixed size pathname buffer.
320 (ldfile_find_command_file): Likewise.
321 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive): If
322 using EXTRA_SHLIB_EXTENSION, don't open twice.
323
324 2008-08-04 Alan Modra <amodra@bigpond.net.au>
325
326 * Makefile.am (POTFILES.in): Set LC_ALL=C.
327 * Makefile.in: Regenerate.
328 * po/POTFILES.in: Regenerate.
329
330 2008-08-03 Alan Modra <amodra@bigpond.net.au>
331
332 * Makefile.am (spu_ovl.o): Merge rule into..
333 (spu_ovl.o_c): ..this one. Only run cpp for spu target.
334 * Makefile.in: Regenerate.
335
336 2008-08-02 Jan Kratochvil <jan.kratochvil@redhat.com>
337
338 Include the spu_ovl ASCII form in the repository files.
339 * emultempl/spuelf.em: No longer use `bin2c', use now `spu_ovl.o_c'.
340 * Makefile.am (eelf32_spu.c): Depend now on `spu_ovl.o_c'.
341 ($(srcdir)/emultempl/spu_ovl.o_c): New target.
342 ($(srcdir)/emultempl/spu_ovl.o): Rename to...
343 (spu_ovl.o): ...this one.
344 * Makefile.in: Regenerate.
345 * emultempl/spu_ovl.o_c: New file.
346 * emultempl/spu_ovl.o: File removed.
347
348 2008-07-31 Takashi Ono <t_ono@hkfreak.net>
349
350 * pe-dll.c (generate_relocs): Don't generate relocs for
351 undefined weak symbols.
352
353 2008-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
354
355 * emultempl/spuelf.em: Abort on the missing required `spu_ovl.o'.
356
357 2008-07-30 Alan Modra <amodra@bigpond.net.au>
358
359 * emultempl/pe.em, emultempl/pep.em: Silence gcc warnings.
360
361 2008-07-18 Joseph Myers <joseph@codesourcery.com>
362
363 * ld.texinfo (--no-wchar-size-warning): Document new ARM option.
364 * emultempl/armelf.em (no_wchar_size_warning): New.
365 (arm_elf_create_output_section_statements): Pass
366 no_wchar_size_warning to arm_elf_create_output_section_statements.
367 (OPTION_NO_WCHAR_SIZE_WARNING): New.
368 (PARSE_AND_LIST_LONGOPTS): Add no-wchar-size-warning.
369 (PARSE_AND_LIST_OPTIONS): List --no-wchar-size-warning.
370 (PARSE_AND_LIST_ARGS_CASES): Handle --no-wchar-size-warning.
371
372 2008-07-15 Jie Zhang <jie.zhang@analog.com>
373
374 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
375
376 2008-07-12 Craig Silverstein <csilvers@google.com>
377
378 PR ld/6741
379 * configure.in: Check for, and include, libz.a if it is present.
380 * configure: Regenerate.
381 * config.in: Regenerate.
382
383 2008-07-12 Jie Zhang <jie.zhang@analog.com>
384
385 Revert
386 2008-07-12 Jie Zhang <jie.zhang@analog.com>
387 * Makefile.am (eelf32bfin.c): Depend on bfin.em.
388 (eelf32bfinfd.c): Likewise.
389 * Makefile.in: Regenerate.
390 * gen-doc.texi: Set Blackfin.
391 * ld.texinfo: Document --sep-code and Blackfin specific
392 options.
393 * ldmain.c (main): Initialize link_info.sep_code.
394 * lexsup.c (enum option_values): Add OPTION_SEP_CODE.
395 (ld_options[]): Add --sep-code.
396 (parse_args): Deal with --sep-code.
397 * emulparams/bfin.sh (EXTRA_EM_FILE): Define.
398 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
399 * emultempl/bfin.em: New file.
400
401 2008-07-12 Jie Zhang <jie.zhang@analog.com>
402
403 * Makefile.am (eelf32bfin.c): Depend on bfin.em.
404 (eelf32bfinfd.c): Likewise.
405 * Makefile.in: Regenerate.
406 * gen-doc.texi: Set Blackfin.
407 * ld.texinfo: Document --sep-code and Blackfin specific
408 options.
409 * ldmain.c (main): Initialize link_info.sep_code.
410 * lexsup.c (enum option_values): Add OPTION_SEP_CODE.
411 (ld_options[]): Add --sep-code.
412 (parse_args): Deal with --sep-code.
413 * emulparams/bfin.sh (EXTRA_EM_FILE): Define.
414 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
415 * emultempl/bfin.em: New file.
416
417 2008-07-09 Danny Smith <dannysmith@users.sourceforge.net>
418
419 *pe-dll.c (autofilter_symbolprefixlist): Excude all symbols
420 starting with ".".
421 Exclude "_IMPORT_DESCRIPTOR_".
422 (autofilter_symbolsuffixlist): Exclude "_NULL_THUNK_DATA".
423 (autofilter_symbollist_generic): Don't check for ".text".
424 Exclude "_NULL_IMPORT_DESCRIPTOR".
425 (autofilter_symbollist_i386): Likewise.
426
427 2008-07-07 Alan Modra <amodra@bigpond.net.au>
428
429 * emultempl/armelf.em (elf32_arm_add_stub_section): Use
430 bfd_make_section_with_flags.
431 * emultempl/avrelf.em (avr_elf_create_output_section_statements):
432 Likewise.
433 * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
434 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
435 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_after_open): Likewise.
436 * emultempl/m68kelf.em (m68k_elf_after_open): Likewise.
437 * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
438 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation):
439 Likewise.
440
441 2008-07-06 Nathan Sidwell <nathan@codesourcery.com>
442
443 * ld.texinfo (File Commands): Document that INCLUDE can be used in
444 several different places.
445 * ldgram.y (statement, memory_spec, section): Allow INCLUDE.
446 (memory, memory_spec_list): Simplify BNF
447 (memory_spec_list_opt): New rule.
448 * ldlex.l (INCLUDE): Recognize in EXPRESSION.
449
450 2008-06-20 Alan Modra <amodra@bigpond.net.au>
451
452 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Make "can not
453 build overlay stubs" a fatal error.
454
455 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
456
457 * config.in: Regenerate.
458 * configure: Regenerate.
459
460 2008-06-17 Alan Modra <amodra@bigpond.net.au>
461
462 * emultempl/spuelf.em (extra_stack_space): New variable.
463 (gld${EMULATION_NAME}_finish): Pass it to spu_elf_check_vma.
464 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
465 PARSE_AND_LIST_ARGS_CASES): Handle --extra-stack-space.
466 * emultempl/spu_ovl.S: Mask interrupts during dma and update of
467 overlay manager structures.
468 * emultempl/spu_ovl.o: Regenerate.
469
470 2008-06-16 Hans-Peter Nilsson <hp@bitrange.com>
471
472 * ld.texinfo (@node MMIX): For the __.MMIX.start. prefix, only
473 mention it as being special for global symbols.
474
475 2008-06-12 Nick Clifton <nickc@redhat.com>
476
477 * ldlang.c (print_output_section_statement): If the output section
478 statement has an update_dot_tree expression, apply it to
479 print_dot.
480 (print_input_section): Do not update print_dot if it would move
481 print_dot backwards.
482 (lang_do_assignments_1): If the output section statement has an
483 update_dot_tree expression apply it to dot.
484
485 2008-06-07 Alan Modra <amodra@bigpond.net.au>
486
487 * NEWS: Mention archive:path patterns.
488 * ld.texinfo: Likewise.
489 * ldlang.c: Formatting throughout.
490 (archive_path): Only assume "[A-Za-z]:" is a dos drive.
491 (input_statement_is_archive_path): New function, extracted from..
492 (walk_wild): ..here.
493 (walk_wild_consider_section): Match archive:path here too.
494 (init_map_userdata, sort_def_symbol): Convert to ISO C.
495 * ldmain.c (main): Set link_info.path_separator.
496 * emultempl/spuelf.em (choose_target): Don't set it here.
497
498 2008-06-06 Alan Modra <amodra@bigpond.net.au>
499
500 * ldlang.c (name_match): New function.
501 (unique_section_p, walk_wild_consider_section): Use it here.
502 (walk_wild_section_general): And here.
503 (archive_path): New function.
504 (walk_wild): Match archive:path filespecs.
505 (open_input_bfds): Don't load archive:path files.
506 * emultempl/spuelf.em (choose_target): Set path_separator.
507 * emulparams/elf32_spu.sh: Add ._ea.* sections to ._ea output.
508
509 2008-06-04 Nick Clifton <nickc@redhat.com>
510
511 * ld.texinfo (Orphan Sections): Fix texi typo.
512
513 2008-06-04 Chris Metcalf <cmetcalf@tilera.com>
514
515 * lexsup.c (option_values): Add OPTION_NO_WARN_FATAL.
516 (ld_options): Add entry for --no-fatal-warnings.
517 (parse_args): Handle OPTION_NO_WARN_FATAL.
518 * ld.texinfo (Options): Document new command line switch.
519
520 2008-06-04 Alan Modra <amodra@bigpond.net.au>
521
522 * emultempl/spuelf.em (spu_elf_relink): Correct --no-auto-overlay arg.
523
524 2008-06-02 Nathan Sidwell <nathan@codesourcery.com>
525
526 * ldlang.c (closest_target_match): Skip generic big and little
527 endian ELF targets.
528
529 2008-05-31 Evandro Menezes <evandro@yahoo.com>
530
531 PR ld/6430
532 * ld.h (enum sort_order): New.
533 * ldlang.c (lang_check: Fix comment.
534 (lang_common): Sort commons in ascending or descending order.
535 (lang_one_common): Likewise.
536 * lexsup.c (ld_options): Have --sort-common take an option
537 argument.
538 (parse_args): Handle argument to --sort-common.
539 * ld.texinfo (--sort-common): Document new optional argument.
540 * NEWS: Mention new feature.
541
542 2008-05-28 Christophe Lyon <christophe.lyon@st.com>
543
544 * ld.texinfo: State that farcalls stubs are supported for ARM-EABI
545 only.
546
547 2008-05-27 Kai Tietz <kai.tietz@onevision.com>
548
549 * pe-dll.c (fill_edata): Make sure we calculate vma's in
550 type bfd_vma.
551 (generate_reloc): Likewise.
552 (pe_implied_import_dll): Likewise.
553
554 2008-05-21 Nick Clifton <nickc@redhat.com>
555
556 PR ld/6519
557 * ld.texinfo (Orphan Sections): Mention that the linker will
558 provide start and stop symbols for orphaned sections if their
559 names are valid C identifiers.
560 * NEWS: Add an addendum to the description of the linker feature
561 for providing orphan section start and end symbols.
562
563 2008-05-21 Maxim Kuvyrkov <maxim@codesourcery.com>
564
565 * configure.in (--enable-got): New option. Handle it.
566 * configure: Regenerate.
567 * config.in: Regenerate.
568 * emultempl/m68kelf.em: (got_handling_target_default): New shell
569 variable.
570 (GOT_HANDLING_TARGET_DEFAULT): New macro.
571 (GOT_HANDLING_DEFAULT): New macro. Initialize it from configure
572 option if one was given.
573 (got_handling): New static variable.
574 (elf_m68k_create_output_section_statements): New static function
575 implementing hook.
576 (PARSE_AND_LIST_PROLOGUE): Define shell variable.
577 (OPTION_GOT): New macro.
578 (PARSE_AND_LIST_LONGOPTS): Define shell variable. Specify
579 --got option.
580 (got): New linker option.
581 (PARSE_AND_LIST_OPTIONS): Define shell variable. Print help string
582 for --got option.
583 (PARSE_AND_LIST_ARGS_CASES): Define shell variable. Handle --got
584 option.
585 * ld.texinfo: Document --got=<type> option.
586 * gen-doc.texi: Add M68K.
587 * NEWS: Mention the new feature.
588
589 2008-05-21 Evandro Menezes <evandro@yahoo.com>
590
591 PR ld/6430
592 * ld.texinfo (--sort-common): Correct documentation to indicate
593 that sorting is performed by alignment, not size, biggest
594 alignment first.
595
596 2008-05-21 Christophe Lyon <christophe.lyon@st.com>
597 Nick Clifton <nickc@redhat.com>
598
599 * ld.texinfo (ARM): Document --stub-group-size=N option.
600 Move description of --pic-veneer option into the ARM section.
601 * NEWS: Mention the support for long function calls.
602
603 2008-05-15 Christophe Lyon <christophe.lyon@st.com>
604
605 * emultempl/armelf.em (build_section_lists): New function.
606 (stub_file): Define.
607 (need_laying_out): Define.
608 (group_size): Define.
609 (hook_stub_info): Define.
610 (hook_in_stub): New function.
611 (elf32_arm_add_stub_section): New function.
612 (gldarm_layout_sections_again): New function.
613 (gld${EMULATION_NAME}_finish): Replace arm_elf_finish(). Generate
614 stubs for long calls if needed.
615 (arm_elf_create_output_section_statements): create stub_file bfd.
616 (arm_for_each_input_file_wrapper): New function.
617 (arm_lang_for_each_input_file): New function.
618 (lang_for_each_input_file): Define.
619 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_STUBGROUP_SIZE.
620 (PARSE_AND_LIST_LONGOPTS): Add option stub-group-size.
621 (PARSE_AND_LIST_OPTIONS): Add option stub-group-size.
622 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_STUBGROUP_SIZE case.
623 (LDEMUL_FINISH): Update to gld${EMULATION_NAME}_finish.
624 * lang.c (print_input_statement): Skip if bfd has
625 BFD_LINKER_CREATED.
626
627 2008-05-14 Alan Modra <amodra@bigpond.net.au>
628
629 * Makefile.in: Regenerate.
630
631 2008-05-09 Kai Tietz <kai.tietz@onevision.com>
632
633 ld/PR6502
634 * emultempl/pep.em (compute_dll_image_base): Use bfd_vma instead
635 of long and change return type to bfd_vma.
636 (definfo): Change type of address from long to bfd_vma.
637 (set_pep_value): Replace strtoul to strtoull.
638 (gld_${EMULATION_NAME}_set_symbols): use bfd_vma instead of long..
639 * pe-dll.c (pe_dll_generate_def_file): Use fprintf_vma to print
640 ImageBase.
641 (quick_reloc): Change argument address from int to bfd_size_type.
642
643 2008-05-08 Tom Tromey <tromey@redhat.com>
644
645 * ld.texinfo (PowerPC64 ELF64): Fix typo.
646
647 2008-05-08 Alan Modra <amodra@bigpond.net.au>
648
649 * elf32_spu.sh (OTHER_SECTIONS): Add "._ea".
650 * elf32ppc.sh: If building with spu support, put ".data.spehandle"
651 sections at the start of ".data" and provide a symbol to locate
652 the directory of embedded spe programs.
653
654 2008-05-08 Alan Modra <amodra@bigpond.net.au>
655
656 * ldexp.c (exp_print_token): Add ABSOLUTE, MIN_K, ASSERT_K. Correct
657 MAX_K.
658 (fold_binary <SEGMENT_START>): Set expld.result.section to
659 current section. Expand comment. Formatting.
660 (fold_name <DEFINED>): Set expld.result.section to current section.
661
662 2008-04-28 Nathan Sidwell <nathan@codesourcery.com>
663
664 * ldlang.c (lang_size_sections_1): Don't check LMA overflow on
665 non-load sections.
666
667 2008-04-25 Michael Frysinger <vapier@gentoo.org>
668
669 * configure.tgt (bfin-*-linux-uclibc*): Set targ_emul to elf32bfinfd
670 and targ_extra_emuls to elf32bfin.
671
672 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
673
674 * aclocal.m4: Regenerate.
675 * configure: Regenerate.
676
677 2008-04-03 Kai Tietz <kai.tietz@onevision.com>
678
679 * scripttempl/pep.sc: Align start of symbol __CTOR_LIST__.
680
681 2008-04-08 Alan Modra <amodra@bigpond.net.au>
682
683 * po/POTFILES.in: Regenerate.
684
685 2008-04-08 Alan Modra <amodra@bigpond.net.au>
686
687 * emultempl/spuelf.em (auto_overlay, auto_overlay_file,
688 auto_overlay_fixed, auto_overlay_reserved, my_argc, my_argv): New vars.
689 (spu_before_allocation): Warn on --auto-overlay and existing overlays.
690 (struct tflist, clean_tmp): Move.
691 (new_tmp_file): New function, extracted from..
692 (embedded_spu_file): ..here.
693 (spu_elf_open_overlay_script, spu_elf_relink): New function.
694 (gld${EMULATION_NAME}_finish): Pass a bunch of --auto-overlay params.
695 Warn on --auto-overlay and zero local store.
696 (gld${EMULATION_NAME}_choose_target): New function to stash argv.
697 (OPTION_SPU_AUTO_OVERLAY, OPTION_SPU_AUTO_RELINK,
698 OPTION_SPU_OVERLAY_RODATA, OPTION_SPU_FIXED_SPACE,
699 OPTION_SPU_RESERVED_SPACE, OPTION_SPU_NO_AUTO_OVERLAY): Define.
700 (PARSE_AND_LIST_LONGOPTS): Add entries for new options.
701 (PARSE_AND_LIST_OPTIONS): Likewise.
702 (PARSE_AND_LIST_ARGS_CASES): Likewise.
703 (LDEMUL_CHOOSE_TARGET): Define.
704
705 2008-04-03 Kai Tietz <kai.tietz@onevision.com>
706
707 PR ld/6026
708 * pe-dll.c (make_head): Fix iat and thunk addend offset.
709
710 2008-03-31 Nick Clifton <nickc@redhat.com>
711
712 * po/fr.po: Updated French translation.
713
714 2008-03-24 Ian Lance Taylor <iant@google.com>
715
716 The sha1 code is now in libiberty.
717 * sha1.c: Remove.
718 * sha1.h: Remove.
719 * Makefile.am (CFILES): Remove sha1.c.
720 (HFILES): Remove sha1.h.
721 (OFILES): Remove sha1.o.
722 (ld_new_SOURCES): Remove sha1.c.
723 (sha1.o): Remove target.
724 * Makefile.in: Rebuild.
725
726 2008-03-20 Alan Modra <amodra@bigpond.net.au>
727
728 * emultempl/spuelf.em: Update calls to elf32-spu.c funcs.
729
730 2008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
731
732 * aclocal.m4: Regenerate.
733 * configure: Likewise.
734 * Makefile.in: Likewise.
735
736 2008-03-14 Alan Modra <amodra@bigpond.net.au>
737
738 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Protect
739 spu_elf_build_stubs with is_spu_target.
740
741 2008-03-13 Alan Modra <amodra@bigpond.net.au>
742
743 * Makefile.am: Run "make dep-am".
744 * Makefile.in: Regenerate.
745 * configure: Regenerate.
746
747 2008-03-06 Joseph Myers <joseph@codesourcery.com>
748 Roman Zippel <zippel@linux-m68k.org>
749
750 * emulparams/m68kelf.sh (GENERATE_PIE_SCRIPT): Define.
751 (COMMONPAGESIZE): Define.
752
753 2008-02-22 Nick Clifton <nickc@redhat.com>
754
755 PR ld/5785
756 * ldlang.c (lang_size_sections_1): Honour the setting of an
757 lma_region even if there is no vma region set, or the vma region
758 is the same as the lma region.
759
760 2008-02-18 Nick Clifton <nickc@redhat.com>
761
762 * scripttempl/armbpabi.sc (ENTRY): Do not define when performing a
763 relocatable link.
764 * scripttempl/elf32cr16.sc: Likewise.
765 * scripttempl/elf32cr16c.sc: Likewise.
766 * scripttempl/elf32crx.sc: Likewise.
767 * scripttempl/elf32sh-symbian.sc: Likewise.
768 * scripttempl/elf_chaos.sc: Likewise.
769 * scripttempl/elfd10v.sc: Likewise.
770 * scripttempl/elfi370.sc: Likewise.
771 * scripttempl/elfm68hc11.sc: Likewise.
772 * scripttempl/elfm68hc12.sc: Likewise.
773 * scripttempl/ip2k.sc: Likewise.
774 * scripttempl/iq2000.sc: Likewise.
775 * scripttempl/mep.sc: Likewise.
776 * scripttempl/v850.sc: Likewise.
777 * scripttempl/xstormy16.sc: Likewise.
778
779 2008-02-16 Alan Modra <amodra@bigpond.net.au>
780
781 PR ld/5761
782 * ldexp.c (fold_name <LOADADDR>): Check result of evaluating
783 load_base before calling make_abs.
784
785 2008-02-15 Alan Modra <amodra@bigpond.net.au>
786
787 * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id.
788 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
789 Likewise.
790 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
791 Likewise.
792 * emultempl/ppc32elf.em (is_ppc_elf32_vec): Delete. Replace all
793 uses with..
794 (is_ppc_elf): ..this new macro.
795
796 2008-02-15 Alan Modra <amodra@bigpond.net.au>
797
798 * ldmain.h (output_bfd): Delete.
799 * ldmain.c (output_bfd): Delete.
800 Replace all occurrences of output_bfd with link_info.output_bfd.
801 * ldcref.c: Likewise.
802 * ldctor.c: Likewise.
803 * ldemul.c: Likewise.
804 * ldexp.c: Likewise.
805 * ldfile.c: Likewise.
806 * ldlang.c: Likewise.
807 * ldmisc.c: Likewise.
808 * ldwrite.c: Likewise.
809 * pe-dll.c: Likewise.
810 * emultempl/aix.em: Likewise.
811 * emultempl/alphaelf.em: Likewise.
812 * emultempl/armcoff.em: Likewise.
813 * emultempl/armelf.em: Likewise.
814 * emultempl/avrelf.em: Likewise.
815 * emultempl/beos.em: Likewise.
816 * emultempl/elf-generic.em: Likewise.
817 * emultempl/elf32.em: Likewise.
818 * emultempl/gld960.em: Likewise.
819 * emultempl/hppaelf.em: Likewise.
820 * emultempl/irix.em: Likewise.
821 * emultempl/linux.em: Likewise.
822 * emultempl/lnk960.em: Likewise.
823 * emultempl/m68hc1xelf.em: Likewise.
824 * emultempl/mmix-elfnmmo.em: Likewise.
825 * emultempl/mmo.em: Likewise.
826 * emultempl/pe.em: Likewise.
827 * emultempl/pep.em: Likewise.
828 * emultempl/ppc32elf.em: Likewise.
829 * emultempl/ppc64elf.em: Likewise.
830 * emultempl/scoreelf.em: Likewise.
831 * emultempl/sh64elf.em: Likewise.
832 * emultempl/spuelf.em: Likewise.
833 * emultempl/sunos.em: Likewise.
834 * emultempl/vanilla.em: Likewise.
835 * emultempl/vxworks.em: Likewise.
836 * emultempl/xtensaelf.em: Likewise.
837 * emultempl/z80.em: Likewise.
838 * ldlang.c (open_output): Don't return output, instead write
839 link_info_output_bfd directly.
840 * emultempl/alphaelf.em: Replace occurrences of link_info.hash->creator
841 with link_info.output_bfd->xvec.
842 * emultempl/hppaelf.em: Likewise.
843 * emultempl/ppc32elf.em: Likewise.
844 * emultempl/ppc64elf.em: Likewise.
845 * emultempl/spuelf.em: Likewise.
846
847 2008-02-07 Alan Modra <amodra@bigpond.net.au>
848
849 * ldlang.c (new_afile): Don't pass unadorned NULL to concat.
850 * ldfile.c (ldfile_add_library_path): Likewise.
851 * emultempl/elf32.em (check_ld_elf_hints, check_ld_so_conf): Likewise.
852 * emultempl/lnk960.em (lnk960_before_parse): Likewise.
853 * emultempl/spuelf.em (embedded_spu_file): Likewise.
854
855 2008-02-07 Alan Modra <amodra@bigpond.net.au>
856
857 * emultempl/spu_ovl.S: Use low bit of _ovly_table.size as
858 a "present" bit rather than low bit of .buf. Correct indexing
859 into _ovly_buf_table. Use relative loads and stores to access
860 overlay manager local vars.
861 * emultempl/spu_ovl.o: Regenerate.
862
863 2008-02-04 H.J. Lu <hongjiu.lu@intel.com>
864
865 PR 5715
866 * configure: Regenerated.
867
868 2008-01-31 Marc Gauthier <marc@tensilica.com>
869
870 * configure.tgt (xtensa*-*-*): Recognize processor variants.
871
872 2008-01-28 Fabian Groffen <grobian@gentoo.org>
873
874 * configure.tgt (x86_64-*-solaris2): Add support for this target.
875
876 2008-01-28 Vincent Riviere <vincent.riviere@freesbee.fr>
877
878 PR ld/5652
879 * genscripts.sh: Check for the existence of BASH_LINENO not just
880 the BASH shell before generating line numbers in the emulation
881 file.
882
883 2008-01-28 Alan Modra <amodra@bigpond.net.au>
884
885 * emultempl/spu_ovl.S: Rewrite.
886 * emultempl/spu_ovl.o: Regenerate.
887 * emultempl/spuelf.em (toe): Delete.
888 (spu_place_special_section): Add param to control section placement.
889 Adjust callers.
890 (spu_elf_load_ovl_mgr): Adjust for struct _spu_elf_section_data
891 changes.
892 (spu_before_allocation): Adjust spu_elf_size_stubs call.
893 (gld${EMULATION_NAME}_finish): Adjust spu_elf_build_stubs call.
894
895 2008-01-25 H.J. Lu <hongjiu.lu@intel.com>
896
897 PR ld/5670
898 * ldlang.c (process_insert_statements): Silence gcc 4.1 alias
899 warning.
900
901 2008-01-25 Alan Modra <amodra@bigpond.net.au>
902
903 * ld.texinfo (INSERT): Describe.
904 * ldgram.y (ldgram_in_script, ldgram_had_equals): Delete.
905 (INSERT_K, AFTER, BEFORE): Add as tokens.
906 (ifile_p1): Handle INSERT statements.
907 (saved_script_handle, force_make_executable): Move to..
908 * ldmain.c: ..here.
909 (previous_script_handle): New global var.
910 * ldmain.h (saved_script_handle, force_make_executable): Declare.
911 (previous_script_handle): Likewise.
912 * ldlex.l (INSERT_K, AFTER, BEFORE): Add tokens.
913 * lexsup.c (parge_args <-T>): Set previous_script_handle.
914 * ldlang.c (lang_for_each_statement_worker): Handle insert statement.
915 (map_input_to_output_sections, print_statement): Likewise.
916 (lang_size_sections_1, lang_do_assignments_1): Likewise.
917 (insert_os_after): New function, extracted from..
918 (lang_insert_orphan): ..here.
919 (process_insert_statements): New function.
920 (lang_process): Call it.
921 (lang_add_insert): New function.
922 * ldlang.h (lang_insert_statement_enum): New.
923 (lang_insert_statement_type): New.
924 (lang_statement_union_type): Add insert_statement.
925 (lang_add_insert): Declare.
926
927 2008-01-18 Bob Wilson <bob.wilson@acm.org>
928
929 * scripttempl/elfxtensa.sc: Merge ENTRY and .note.gnu.build-id
930 changes from elf.sc.
931
932 2008-01-16 Alan Modra <amodra@bigpond.net.au>
933
934 * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test.
935
936 2008-01-16 Alan Modra <amodra@bigpond.net.au>
937
938 * ldlang.h (lang_afile_asection_pair_statement_enum): Delete.
939 (lang_afile_asection_pair_statement_type): Delete.
940 (lang_statement_union_type): Delete afile_asection_pair_statement.
941 * ldlang.c (lang_insert_orphan): Delete case handling the above.
942 (map_input_to_output_sections, print_statement): Likewise.
943
944 2008-01-15 Kaz Kojima <kkojima@rr.iij4u.or.jp>
945
946 * emulparams/shlelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE
947 with __data_start.
948 * emulparams/shelf_nbsd.sh (DATA_START_SYMBOLS): Likewise.
949
950 2008-01-15 Alan Modra <amodra@bigpond.net.au>
951
952 PR 5604
953 * ldlang.c (lang_gc_sections): Move code to set SEC_KEEP on entry
954 syms to _bfd_elf_gc_keep.
955 * emultempl/ppc64elf.em (ppc_before_allocation): Don't call
956 ppc64_elf_edit_opd if no_opd_opt.
957
958 2008-01-11 Tristan Gingold <gingold@adacore.com>
959 Eric Botcazou <ebotcazou@adacore.com>
960
961 * ldlang.c (lang_end): Warns if the entry point is not found when
962 --gc-sections.
963 Emit an error if no root is specified when --gc-sections -r.
964 * ld.texinfo (Options): Document that --gc-sections is compatible
965 with -r and -q.
966 * ldmain.c (main): Do not error out if -r and --gc-sections.
967 * scripttempl/elf.sc: Emit ENTRY command only if relocating.
968
969 2008-01-10 Daniel Jacobowitz <drow@sources.redhat.com>
970
971 PR ld/5533
972 * ldlang.c (lang_end): Issue a warning for a missing start symbol
973 of a shared library if the symbol was specified on the command
974 line.
975
976 2008-01-10 Alan Modra <amodra@bigpond.net.au>
977
978 * ld.texinfo (--gc-sections): Describe linker behaviour.
979
980 For older changes see ChangeLog-2007
981 \f
982 Local Variables:
983 mode: change-log
984 left-margin: 8
985 fill-column: 74
986 version-control: never
987 End: