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