1 2008-11-14 Alan Modra <amodra@bigpond.net.au>
3 * Makefile.am (spu_ovl.o_c): Add missing line continuations.
4 * Makefile.in: Regenerate.
6 2008-11-06 Joel Sherrill <joel.sherrill@oarcorp.com>
8 * configure.tgt: Add m32c-*-rtems* and m32r-*-rtems*.
10 2008-11-03 Bob Wilson <bob.wilson@acm.org>
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.
16 2008-10-25 Nick Clifton <nickc@redhat.com>
19 * ldlang.c (lang_size_sections_1): Do not update the VMAs of
20 output sections when performing a relocatable link on COFF
23 2008-10-22 Nick Clifton <nickc@redhat.com>
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.
30 2008-10-22 Alan Modra <amodra@bigpond.net.au>
32 * emulparams/elf32_i960.sh (TEMPLATE_NAME): "generic", not "elf32".
33 (EXTRA_EM_FILE): Define.
35 2008-10-22 Alan Modra <amodra@bigpond.net.au>
37 * scripttempl/elf.sc (NO_REL_RELOCS, NO_RELA_RELOCS, NON_ALLOC_DYN):
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.
63 2008-10-22 Alan Modra <amodra@bigpond.net.au>
65 * ldlang.c (lang_output_section_find_by_flags): Handle non-alloc
67 * emultempl/elf32.em (enum orphan_save_index): Add orphan_nonalloc.
69 (gld${EMULATION_NAME}_place_orphan): Handle non-alloc orphans.
71 2008-10-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
73 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Correct typo in
76 2008-10-20 Alan Modra <amodra@bigpond.net.au>
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
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.
88 2008-10-08 Nick Clifton <nickc@redhat.com>
90 * configure.in (ALL_LINGUAS): Add "id".
91 * configure: Regenerate.
92 * po/id.po: New Indonesian translation.
94 2008-10-05 Alan Modra <amodra@bigpond.net.au>
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.
101 2008-10-04 Alan Modra <amodra@bigpond.net.au>
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
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.
125 2008-10-03 Alan Modra <amodra@bigpond.net.au>
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
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
140 * emultempl/genelf.em (gld${EMULATION_NAME}_after_open): New function.
141 (LDEMUL_AFTER_OPEN): Define.
143 2008-09-30 Joseph Myers <joseph@codesourcery.com>
145 * emulparams/elf64ppc.sh (OTHER_GOT_RELOC_SECTIONS): Add .rela.opd
148 2008-09-30 Alan Modra <amodra@bigpond.net.au>
150 * Makefile.am: Run "make dep-am".
151 * Makefile.in: Regenerate.
153 2008-09-29 Peter O'Gorman <pogma@thewrittenword.com>
154 Steve Ellcey <sje@cup.hp.com>
156 * configure: Regenerate for new libtool.
158 * Makefile.in: Ditto.
160 2008-09-29 Kai Tietz <kai.tietz@onevision.com>
162 * pe-dll.c (make_import_fixup_entry): Make sure reloc is addend.
164 2008-09-29 Nick Clifton <nickc@redhat.com>
166 * po/vi.po: Updated Vietnamese translation.
168 2008-09-25 Alan Modra <amodra@bigpond.net.au>
170 * ldexp.c (fold_binary): Evaluate rhs when lhs not valid.
172 2008-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
174 * configure.in: Call AC_SYS_LARGEFILE.
175 * config.in: Regenerate.
176 * configure: Regenerate.
178 2008-09-09 Peter Rosin <peda@lysator.liu.se> (tiny change)
180 * emultempl/pe.em (pe_find_data_imports): Add trailing newline
182 * emultempl/pep.em (pep_find_data_imports): Likewise.
184 2008-09-08 H.J. Lu <hongjiu.lu@intel.com>
186 2008-09-07 Alan Modra <amodra@bigpond.net.au>
188 * emultempl/beos.em (gld${EMULATION_NAME}_place_orphan): Updated.
189 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Likewise.
191 2008-09-08 Tristan Gingold <gingold@adacore.com>
193 * NEWS: Add a marker for the 2.19 features.
195 2008-09-07 Alan Modra <amodra@bigpond.net.au>
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
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.
214 2008-08-26 Nick Clifton <nickc@redhat.com>
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.
224 2008-08-24 Alan Modra <amodra@bigpond.net.au>
226 * configure.in: Update a number of obsolete autoconf macros.
227 * configure: Regenerate.
228 * aclocal.m4: Regenerate.
230 2008-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
240 2008-08-17 Alan Modra <amodra@bigpond.net.au>
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.
259 2008-08-15 Alan Modra <amodra@bigpond.net.au>
262 * configure.in: Invoke AC_USE_SYSTEM_EXTENSIONS.
263 * Makefile.in: Regenerate.
264 * aclocal.m4: Regenerate.
265 * config.in: Regenerate.
266 * configure: Regenerate.
268 2008-08-09 Alan Modra <amodra@bigpond.net.au>
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.
281 2008-08-08 Anatoly Sokolov <aesok@post.ru>
283 * Makefile.am (ALL_EMULATIONS): Add eavr25.o, eavr31.o, eavr35.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
289 * emulparams/avr25.sh: New file.
290 * emulparams/avr31.sh: New file.
291 * emulparams/avr35.sh: New file.
292 * emulparams/avr51.sh: New file.
294 2008-08-08 Richard Sandiford <rdsandiford@googlemail.com>
295 Daniel Jacobowitz <dan@codesourcery.com>
297 * emulparams/elf32bmip.sh (GOT): Define, moving .got.plt to...
298 (OTHER_RELRO_SECTIONS, OTHER_READWRITE_SECTIONS): ...one of these
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.
316 2008-08-08 Alan Modra <amodra@bigpond.net.au>
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.
324 2008-08-04 Alan Modra <amodra@bigpond.net.au>
326 * Makefile.am (POTFILES.in): Set LC_ALL=C.
327 * Makefile.in: Regenerate.
328 * po/POTFILES.in: Regenerate.
330 2008-08-03 Alan Modra <amodra@bigpond.net.au>
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.
336 2008-08-02 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
348 2008-07-31 Takashi Ono <t_ono@hkfreak.net>
350 * pe-dll.c (generate_relocs): Don't generate relocs for
351 undefined weak symbols.
353 2008-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
355 * emultempl/spuelf.em: Abort on the missing required `spu_ovl.o'.
357 2008-07-30 Alan Modra <amodra@bigpond.net.au>
359 * emultempl/pe.em, emultempl/pep.em: Silence gcc warnings.
361 2008-07-18 Joseph Myers <joseph@codesourcery.com>
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.
372 2008-07-15 Jie Zhang <jie.zhang@analog.com>
374 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
376 2008-07-12 Craig Silverstein <csilvers@google.com>
379 * configure.in: Check for, and include, libz.a if it is present.
380 * configure: Regenerate.
381 * config.in: Regenerate.
383 2008-07-12 Jie Zhang <jie.zhang@analog.com>
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
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.
401 2008-07-12 Jie Zhang <jie.zhang@analog.com>
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
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.
417 2008-07-09 Danny Smith <dannysmith@users.sourceforge.net>
419 *pe-dll.c (autofilter_symbolprefixlist): Excude all symbols
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.
427 2008-07-07 Alan Modra <amodra@bigpond.net.au>
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):
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):
441 2008-07-06 Nathan Sidwell <nathan@codesourcery.com>
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.
450 2008-06-20 Alan Modra <amodra@bigpond.net.au>
452 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Make "can not
453 build overlay stubs" a fatal error.
455 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
457 * config.in: Regenerate.
458 * configure: Regenerate.
460 2008-06-17 Alan Modra <amodra@bigpond.net.au>
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.
470 2008-06-16 Hans-Peter Nilsson <hp@bitrange.com>
472 * ld.texinfo (@node MMIX): For the __.MMIX.start. prefix, only
473 mention it as being special for global symbols.
475 2008-06-12 Nick Clifton <nickc@redhat.com>
477 * ldlang.c (print_output_section_statement): If the output section
478 statement has an update_dot_tree expression, apply it to
480 (print_input_section): Do not update print_dot if it would move
482 (lang_do_assignments_1): If the output section statement has an
483 update_dot_tree expression apply it to dot.
485 2008-06-07 Alan Modra <amodra@bigpond.net.au>
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..
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.
498 2008-06-06 Alan Modra <amodra@bigpond.net.au>
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.
509 2008-06-04 Nick Clifton <nickc@redhat.com>
511 * ld.texinfo (Orphan Sections): Fix texi typo.
513 2008-06-04 Chris Metcalf <cmetcalf@tilera.com>
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.
520 2008-06-04 Alan Modra <amodra@bigpond.net.au>
522 * emultempl/spuelf.em (spu_elf_relink): Correct --no-auto-overlay arg.
524 2008-06-02 Nathan Sidwell <nathan@codesourcery.com>
526 * ldlang.c (closest_target_match): Skip generic big and little
529 2008-05-31 Evandro Menezes <evandro@yahoo.com>
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
538 (parse_args): Handle argument to --sort-common.
539 * ld.texinfo (--sort-common): Document new optional argument.
540 * NEWS: Mention new feature.
542 2008-05-28 Christophe Lyon <christophe.lyon@st.com>
544 * ld.texinfo: State that farcalls stubs are supported for ARM-EABI
547 2008-05-27 Kai Tietz <kai.tietz@onevision.com>
549 * pe-dll.c (fill_edata): Make sure we calculate vma's in
551 (generate_reloc): Likewise.
552 (pe_implied_import_dll): Likewise.
554 2008-05-21 Nick Clifton <nickc@redhat.com>
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.
563 2008-05-21 Maxim Kuvyrkov <maxim@codesourcery.com>
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
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
576 (PARSE_AND_LIST_PROLOGUE): Define shell variable.
577 (OPTION_GOT): New macro.
578 (PARSE_AND_LIST_LONGOPTS): Define shell variable. Specify
580 (got): New linker option.
581 (PARSE_AND_LIST_OPTIONS): Define shell variable. Print help string
583 (PARSE_AND_LIST_ARGS_CASES): Define shell variable. Handle --got
585 * ld.texinfo: Document --got=<type> option.
586 * gen-doc.texi: Add M68K.
587 * NEWS: Mention the new feature.
589 2008-05-21 Evandro Menezes <evandro@yahoo.com>
592 * ld.texinfo (--sort-common): Correct documentation to indicate
593 that sorting is performed by alignment, not size, biggest
596 2008-05-21 Christophe Lyon <christophe.lyon@st.com>
597 Nick Clifton <nickc@redhat.com>
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.
603 2008-05-15 Christophe Lyon <christophe.lyon@st.com>
605 * emultempl/armelf.em (build_section_lists): New function.
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
627 2008-05-14 Alan Modra <amodra@bigpond.net.au>
629 * Makefile.in: Regenerate.
631 2008-05-09 Kai Tietz <kai.tietz@onevision.com>
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
641 (quick_reloc): Change argument address from int to bfd_size_type.
643 2008-05-08 Tom Tromey <tromey@redhat.com>
645 * ld.texinfo (PowerPC64 ELF64): Fix typo.
647 2008-05-08 Alan Modra <amodra@bigpond.net.au>
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.
654 2008-05-08 Alan Modra <amodra@bigpond.net.au>
656 * ldexp.c (exp_print_token): Add ABSOLUTE, MIN_K, ASSERT_K. Correct
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.
662 2008-04-28 Nathan Sidwell <nathan@codesourcery.com>
664 * ldlang.c (lang_size_sections_1): Don't check LMA overflow on
667 2008-04-25 Michael Frysinger <vapier@gentoo.org>
669 * configure.tgt (bfin-*-linux-uclibc*): Set targ_emul to elf32bfinfd
670 and targ_extra_emuls to elf32bfin.
672 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
674 * aclocal.m4: Regenerate.
675 * configure: Regenerate.
677 2008-04-03 Kai Tietz <kai.tietz@onevision.com>
679 * scripttempl/pep.sc: Align start of symbol __CTOR_LIST__.
681 2008-04-08 Alan Modra <amodra@bigpond.net.au>
683 * po/POTFILES.in: Regenerate.
685 2008-04-08 Alan Modra <amodra@bigpond.net.au>
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.
705 2008-04-03 Kai Tietz <kai.tietz@onevision.com>
708 * pe-dll.c (make_head): Fix iat and thunk addend offset.
710 2008-03-31 Nick Clifton <nickc@redhat.com>
712 * po/fr.po: Updated French translation.
714 2008-03-24 Ian Lance Taylor <iant@google.com>
716 The sha1 code is now in libiberty.
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.
726 2008-03-20 Alan Modra <amodra@bigpond.net.au>
728 * emultempl/spuelf.em: Update calls to elf32-spu.c funcs.
730 2008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
732 * aclocal.m4: Regenerate.
733 * configure: Likewise.
734 * Makefile.in: Likewise.
736 2008-03-14 Alan Modra <amodra@bigpond.net.au>
738 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Protect
739 spu_elf_build_stubs with is_spu_target.
741 2008-03-13 Alan Modra <amodra@bigpond.net.au>
743 * Makefile.am: Run "make dep-am".
744 * Makefile.in: Regenerate.
745 * configure: Regenerate.
747 2008-03-06 Joseph Myers <joseph@codesourcery.com>
748 Roman Zippel <zippel@linux-m68k.org>
750 * emulparams/m68kelf.sh (GENERATE_PIE_SCRIPT): Define.
751 (COMMONPAGESIZE): Define.
753 2008-02-22 Nick Clifton <nickc@redhat.com>
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.
760 2008-02-18 Nick Clifton <nickc@redhat.com>
762 * scripttempl/armbpabi.sc (ENTRY): Do not define when performing a
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.
779 2008-02-16 Alan Modra <amodra@bigpond.net.au>
782 * ldexp.c (fold_name <LOADADDR>): Check result of evaluating
783 load_base before calling make_abs.
785 2008-02-15 Alan Modra <amodra@bigpond.net.au>
787 * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id.
788 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
790 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
792 * emultempl/ppc32elf.em (is_ppc_elf32_vec): Delete. Replace all
794 (is_ppc_elf): ..this new macro.
796 2008-02-15 Alan Modra <amodra@bigpond.net.au>
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.
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.
847 2008-02-07 Alan Modra <amodra@bigpond.net.au>
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.
855 2008-02-07 Alan Modra <amodra@bigpond.net.au>
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.
863 2008-02-04 H.J. Lu <hongjiu.lu@intel.com>
866 * configure: Regenerated.
868 2008-01-31 Marc Gauthier <marc@tensilica.com>
870 * configure.tgt (xtensa*-*-*): Recognize processor variants.
872 2008-01-28 Fabian Groffen <grobian@gentoo.org>
874 * configure.tgt (x86_64-*-solaris2): Add support for this target.
876 2008-01-28 Vincent Riviere <vincent.riviere@freesbee.fr>
879 * genscripts.sh: Check for the existence of BASH_LINENO not just
880 the BASH shell before generating line numbers in the emulation
883 2008-01-28 Alan Modra <amodra@bigpond.net.au>
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.
890 (spu_elf_load_ovl_mgr): Adjust for struct _spu_elf_section_data
892 (spu_before_allocation): Adjust spu_elf_size_stubs call.
893 (gld${EMULATION_NAME}_finish): Adjust spu_elf_build_stubs call.
895 2008-01-25 H.J. Lu <hongjiu.lu@intel.com>
898 * ldlang.c (process_insert_statements): Silence gcc 4.1 alias
901 2008-01-25 Alan Modra <amodra@bigpond.net.au>
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..
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.
927 2008-01-18 Bob Wilson <bob.wilson@acm.org>
929 * scripttempl/elfxtensa.sc: Merge ENTRY and .note.gnu.build-id
932 2008-01-16 Alan Modra <amodra@bigpond.net.au>
934 * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test.
936 2008-01-16 Alan Modra <amodra@bigpond.net.au>
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.
944 2008-01-15 Kaz Kojima <kkojima@rr.iij4u.or.jp>
946 * emulparams/shlelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE
948 * emulparams/shelf_nbsd.sh (DATA_START_SYMBOLS): Likewise.
950 2008-01-15 Alan Modra <amodra@bigpond.net.au>
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.
958 2008-01-11 Tristan Gingold <gingold@adacore.com>
959 Eric Botcazou <ebotcazou@adacore.com>
961 * ldlang.c (lang_end): Warns if the entry point is not found when
963 Emit an error if no root is specified when --gc-sections -r.
964 * ld.texinfo (Options): Document that --gc-sections is compatible
966 * ldmain.c (main): Do not error out if -r and --gc-sections.
967 * scripttempl/elf.sc: Emit ENTRY command only if relocating.
969 2008-01-10 Daniel Jacobowitz <drow@sources.redhat.com>
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
976 2008-01-10 Alan Modra <amodra@bigpond.net.au>
978 * ld.texinfo (--gc-sections): Describe linker behaviour.
980 For older changes see ChangeLog-2007
986 version-control: never