1 2006-12-18 Pedro Alves <pedro_alves@portugalmail.pt>
3 * pe-dll.c (pe_bfd_is_dll): New function.
4 * pe-dll.h (pe_bfd_is_dll): Declare.
5 * emultempl/pe.em (gld_${EMULATION_NAME}_recognized_file): Recognize
6 dlls using pe_bfd_is_dll instead of using the filename extension.
8 2006-12-15 Ulrich Weigand <uweigand@de.ibm.com>
10 * configure.tgt (NATIVE_LIB_DIRS): Specify for spu-*-elf*.
12 2006-12-12 Daniel Jacobowitz <dan@codesourcery.com>
14 * Makefile.am (ld_TEXINFOS): Set.
15 (ld.info ld.dvi ld.html): Delete rule.
16 * Makefile.in: Regenerated.
18 2006-12-12 Ina Pandit <inap@kpitcummins.com>
20 * ldlang.c (print_output_section_statement): Print load address
21 when lma differs from vma.
23 2006-12-11 Daniel Jacobowitz <dan@codesourcery.com>
25 * configure.in: Define GENINSRC_NEVER.
26 * doc/Makefile.am (ld.info): Remove srcdir prefix.
27 (MAINTAINERCLEANFILES): Add info file.
28 (DISTCLEANFILES): Pretend to add info file.
29 * po/Make-in (.po.gmo): Put gmo files in objdir.
30 * configure, Makefile.in: Regenerated.
32 2006-12-04 Jan Beulich <jbeulich@novell.com>
34 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Create
35 .eh_frame_hdr section here.
37 2006-11-27 Ian Lance Taylor <ian@airs.com>
39 * Makefile.am (EXTRA_DIST): Put spu_ovl.o in the emultempl
41 * Makefile.in: Regenerate.
43 2006-11-27 Bob Wilson <bob.wilson@acm.org>
45 * emultempl/xtensaelf.em (XSHAL_ABI): Add default definition.
46 (replace_insn_sec_with_prop_sec): Use bfd_make_section_with_flags.
47 Delete redundant code to set sections flags and alignment.
48 (xt_config_info_unpack_and_check, check_xtensa_info): New.
49 (elf_xtensa_after_open): Iterate over input statements instead of
51 (elf_xtensa_before_allocation): Likewise. Call check_xtensa_info for
52 each input, and write a new .xtensa.info section in the output.
54 2006-11-22 Nick Clifton <nickc@redhat.com>
56 * configure.in (LINGUAS): Add ga.
57 * po/ga.po: New Irish translation.
59 2006-11-20 H.J. Lu <hongjiu.lu@intel.com>
61 * ld.texinfo: Fix a typo.
63 2006-11-20 Alan Modra <amodra@bigpond.net.au>
65 * emulparams/elf32_spu.sh (OTHER_SECTIONS): Define.
67 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
69 * emultempl/armelf.em (arm_elf_before_allocation): Only call
70 bfd_elf32_arm_process_before_allocation if no dynamic sections.
72 2006-11-08 Alan Modra <amodra@bigpond.net.au>
74 * emultempl/elf32.em (gld*_before_allocation): Adjust output section
75 size for warning sections.
77 2006-11-06 Vladimir Prus <vladimir@codesourcery.com>
79 * emultempl/elf32.em (gld*_before_allocation): Don't prepend
80 "warning" to the message.
82 2006-10-31 Pedro Alves <pedro_alves@portugalmail.pt>
84 * pe-dll.c (autofilter_entry_type): Change name to const.
85 (pe_details_type) : Change target_name, object_target and
86 autofilter_symbollist to const.
87 (autofilter_symbollist_generic): Change to const.
88 (autofilter_symbollist_i386, pe_detail_list, pe_details,
89 autofilter_liblist, autofilter_objlist autofilter_symbolprefixlist,
90 autofilter_symbolsuffixlist): Likewise.
91 (is_import): Fix indentation.
92 (auto_export): Change afptr to const. Move name declaration to
94 (make_tail): Clear undefined byte.
95 (jmp_ix86_bytes, jmp_sh_bytes, jmp_mips_bytes, jmp_arm_bytes): Change
97 (make_one): Change jmp_bytes to const. Make idata$6 member size
98 arithmetic explicit and add comment.
100 2006-10-30 H.J. Lu <hongjiu.lu@intel.com>
103 * ld.h (args_type): Remove reduce_memory_overheads.
105 * ldlang.c (lang_map): Updated.
106 (section_already_linked): Likewise.
107 (print_input_section): Likewise.
108 * ldmain.c (main): Likewise.
109 * lexsup.c (parse_args): Likewise.
111 2006-10-29 Pedro Alves <pedro_alves@portugalmail.pt>
113 * pe-dll.c (make_singleton_name_thunk): Re-add the NULL terminator.
115 2006-10-27 Alan Modra <amodra@bigpond.net.au>
117 * ldlang.c (lang_map): Don't say SEC_LINKER_CREATED and SEC_KEEP
118 sections have been discarded.
119 (lang_do_version_exports_section): Set SEC_KEEP on export section.
120 * emultempl/elf32.em (before_allocation): Set SEC_KEEP on warning
123 2006-10-26 Joseph S. Myers <joseph@codesourcery.com>
124 Mark Mitchell <mark@codesourcery.com>
126 * configure.tgt (arm*linux*): Support both big- and little-endian.
128 2006-10-25 H.J. Lu <hongjiu.lu@intel.com>
130 * emulparams/hppa64linux.sh (LARGE_SECTIONS): Renamed to ...
131 (OTHER_BSS_SECTIONS): This.
132 * scripttempl/elf.sc (OTHER_BSS_SECTIONS): Support LARGE_SECTIONS.
133 (LARGE_SECTIONS): Move .lbss sections to OTHER_BSS_SECTIONS.
135 2006-10-25 Alan Modra <amodra@bigpond.net.au>
136 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
137 Yukishige Shibata <shibata@rd.scei.sony.co.jp>
138 Nobuhisa Fujinami <fnami@rd.scei.sony.co.jp>
139 Takeaki Fukuoka <fukuoka@rd.scei.sony.co.jp>
141 * emulparams/elf32_spu.sh: New file.
142 * emultempl/spu_inc.s: New file.
143 * emultempl/spu_ovl.S: New file.
144 * emultempl/spu_ovl.o: New file.
145 * emultempl/spuelf.em: New file.
146 * Makefile.am: Add SPU support.
147 * configure.tgt: Likewise.
148 * ldlang.c (load_symbols): Make global.
149 * ldlang.h (load_symbols): Declare.
150 * scripttempl/elf.sc (OTHER_BSS_SECTIONS): Add.
151 * Makefile.in: Regenerate.
153 2006-10-24 Ben Elliston <bje@au.ibm.com>
155 * lexsup.c (parse_args): Add a comment noting a fall-through.
157 2006-10-24 H.J. Lu <hongjiu.lu@intel.com>
159 * configure.in (AC_CHECK_HEADERS): Add limits.h and sys/param.h.
160 * configure: Regenerated.
161 * config.in: Likewise.
163 2006-10-23 Alan Modra <amodra@bigpond.net.au>
165 * emulparams/h8300elf.sh (TINY_DATA_SECTION, TINY_BSS_SECTION): Don't
166 set section address on a relocatable link.
168 * ld.texinfo (Output Section Discarding): Fix xref.
170 2006-10-21 Kaz Kojima <kkojima@rr.iij4u.or.jp>
172 * emulparams/shelf32.sh: Set default stack to 0x80000.
173 * emulparams/shelf64.sh: Likewise.
175 2006-10-20 Richard Sandiford <richard@codesourcery.com>
177 * emulparams/elf32bmip.sh (OTHER_GOT_RELOC_SECTIONS): Define.
178 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_RELOC_SECTIONS): Likewise.
180 2006-10-19 Alan Modra <amodra@bigpond.net.au>
182 * emultempl/armelf.em (arm_elf_before_allocation): Run
183 gld${EMULATION_NAME}_before_allocation later.
184 * ldlang.c (lang_size_sections_1): Revert 2006-09-15 change.
186 2006-10-18 Roy Marples <uberlord@gentoo.org>
188 * emulparams/elf64_sparc_fbsd.sh (OUTPUT_FORMAT): Define as
191 2006-10-18 Joseph Myers <joseph@codesourcery.com>
193 * configure.tgt (i[3-7]86-*-linux-*): Also define
194 targ_extra_libpath in want64 case.
195 * emulparams/elf_x86_64.sh: Handle i[3-7]86-*-linux-* the same as
198 2006-10-17 Alan Modra <amodra@bigpond.net.au>
200 * scripttempl/elf.sc (INTERP): Delete. Move definition to..
201 (INITIAL_READONLY_SECTIONS): ..here.
202 * emulparams/criself.sh (INITIAL_READONLY_SECTIONS): Include .interp.
203 * emulparams/elf32bmip.sh (INITIAL_READONLY_SECTIONS): Ditto.
204 * emulparams/elf32bmipn32-defs.sh (INITIAL_READONLY_SECTIONS): Ditto.
206 2006-10-17 Alan Modra <amodra@bigpond.net.au>
208 * ldlang.c (strip_excluded_output_sections): Do strip sections
209 that define syms, but don't ignore them.
210 * ld.texinfo (Output Section Discarding): Revise.
211 * emultempl/armcoff.em (gld${EMULATION_NAME}_finish): Always call
214 2006-10-16 Richard Sandiford <richard@codesourcery.com>
216 * Makefile.am (eelf64bmip.c): Depend on emulparams/elf64bmip-defs.sh.
217 (eelf64btsmip.c, eelf64ltsmip.c): Likewise.
218 * Makefile.in: Regenerate.
219 * emulparams/elf32bmipn32-defs.sh (INITIAL_READONLY_SECTIONS): Include
220 .reginfo rather than .MIPS.options.
221 * emulparams/elf64bmip-defs.sh: New file.
222 * emulparams/elf64bmip.sh: Include it.
223 (COMMONPAGESIZE): Delete.
224 * emulparams/elf64btsmip.sh: As for elf64bmip.sh.
226 2006-10-12 Bob Wilson <bob.wilson@acm.org>
228 * emultempl/xtensaelf.em (is_inconsistent_linkonce_section): Check
229 for linkonce XCC exception tables (".e" and ".h").
231 2006-10-11 Bob Wilson <bob.wilson@acm.org>
233 * emulparams/elf32xtensa.sh (TEXT_PLT): Enable.
234 (OTHER_READONLY_SECTIONS): Add linkonce .xt_except_table sections.
235 (OTHER_READWRITE_SECTIONS): Add linkonce .xt_except_desc sections.
236 (OTHER_SDATA_SECTIONS): New.
237 * scripttempl/elfxtensa.sc: Import changes from elf.sc.
239 2006-10-11 Jakub Jelinek <jakub@redhat.com>
241 * ldlang.c (lang_append_dynamic_list): When appending, add all elements
242 of the dynamic list rather than just the first entry.
244 2006-10-10 Bob Wilson <bob.wilson@acm.org>
246 * emulparams/elf32xtensa.sh (GENERATE_PIE_SCRIPT): Enable.
248 2006-10-06 Mike Frysinger <vapier@gentoo.org>
250 * genscripts.sh: Respect LIBPATH_SUFFIX when not using sysroot.
252 2006-10-04 Bob Wilson <bob.wilson@acm.org>
254 * emulparams/xtensa-config.sh: Delete file.
255 * emulparams/elf32xtensa.sh: Set MAXPAGESIZE here instead of including
257 * Makefile.am (eelf32xtensa.c): Remove dependency on xtensa-config.sh.
258 * Makefile.in: Regenerate.
260 2006-10-03 Pedro Alves <pedro_alves@portugalmail.pt>
262 * pe-dll.c : Fix typo.
263 (autofilter_symbolprefixlist) : Remove __imp_.
265 (auto-export) : Remove re-import check. Moved to callers.
266 (process_def_file) : Check is symbol is an import. Always
268 Only skip underscore on underscored targets.
269 (make_one) : Always underscore __imp_.
270 (pe_create_runtime_relocator_reference) : Only underscore
271 _pei386_runtime_relocator on underscored targets.
272 (pe_process_import_defs) : Always underscore __imp_.
273 * pe.em (U) : New macro.
274 (set_pe_subsystem) : Remove underscore from _WinMainCRTStartup
275 on wince subsystem case.
276 (pe_find_data_imports) : Use U on "_head_".
277 (gld_${EMULATION_NAME}_unrecognized_file) : Use U.
279 2006-09-26 H.J. Lu <hongjiu.lu@intel.com>
283 * ld.texinfo: Updated Output Section Discarding.
285 * ldlang.h (lang_output_section_statement_type): Add
286 section_relative_symbol.
287 * ldlang.c (strip_excluded_output_sections): Don't strip a
288 section with a symbol relative to it.
289 (lang_size_sections_1): Mark if an output section has a symbol
290 symbol relative to it.
292 2006-09-25 Bob Wilson <bob.wilson@acm.org>
294 * ld.texinfo (Options): Update description of local symbols for -X.
296 2006-09-23 H.J. Lu <hongjiu.lu@intel.com>
299 * scripttempl/elf.sc: Don't combine .gnu.linkonce.d.*personality*
300 and .gnu.linkonce.wi.* sections with .data and .debug_info for
303 2006-09-20 Kai Tietz <Kai.Tietz@onevision.com>
305 * configure.in: Add new target x86_64-pc-mingw64.
306 * configure: Regenerate.
307 * configure.tgt: Add definition of target emulation i386pep.
308 * Makefile.am: Add new target files for target-all.
309 * Makefile.in: Regenerate.
310 * pe-dll.c: Adjust to be inheritable by pep_dll.c as include.
311 Fix memory out of bounds excess for idata relocation section data.
312 * pep-dll.c: Add target specific shared object handling.
313 * pep-dll.h: Add target specific definitions for shared object handling.
314 * emulparams/i386pep.sh: Add new emulation params for target x86_64 coff.
315 * emultempl/pep.em: Add new emulation file for target x86_64 coff.
316 * po/POTFILES.in: Regenerate.
317 * scripttempl/pep.sc: Add linker script template for target x86_64 coff.
318 * NEWS: Mention new target.
320 2006-09-18 Thiemo Seufer <ths@networkno.de>
322 * configure.tgt: Add mips*el-sde-elf* and mips*-sde-elf*
325 2006-09-17 Mei Ligang <ligang@sunnorth.com.cn>
327 * emulparams/scoreelf.sh: New file.
328 * emultempl/scoreelf.em: New file.
329 * Makefile.am: Add Score files.
330 * Makefile.in: Regenerate.
331 * configure.tgt: Add Score target.
332 * NEWS: Mention new target support.
334 2006-09-16 Nick Clifton <nickc@redhat.com>
335 Pedro Alves <pedro_alves@portugalmail.pt>
337 * ldctor.c: Make use of new STRING_COMMA_LEN and CONST_STRNEQ
338 macros defined in bfd.h.
339 * ldmain.c: Likewise.
340 * ldwrite.c: Likewise.
341 * lexsup.c: Likewise.
342 * pe-dll.c: Likewise.
343 * emultempl/aix.em: Likewise.
344 * emultempl/beos.em: Likewise.
345 * emultempl/elf32.em: Likewise.
346 * emultempl/pe.em: Likewise.
347 * emultempl/sunos.em: Likewise.
348 * emultempl/xtensaelf.em: Likewise.
350 2006-09-15 Nick Clifton <nickc@redhat.com>
353 * ldlang.c (lang_size_sections_1): Do not abort when encountering
354 a non-empty section that is ignored. Instead produce a warning
357 2006-09-08 H.J. Lu <hongjiu.lu@intel.com>
359 * ld.texinfo: Document --dynamic-list-cpp-typeinfo.
361 2006-09-07 H.J. Lu <hongjiu.lu@intel.com>
363 * Makefile.am (CXX): Set to g++.
364 (CXX_FOR_TARGET): Likewise.
365 * Makefile.in: Regenerated.
367 * NEWS: Mention --dynamic-list.
369 * ld.texinfo: Document --dynamic-list.
371 * ldgram.y: Support dynamic list.
373 * ldlang.c (lang_process): Call lang_finalize_version_expr_head
374 on link_info.dynamic if needed.
375 (lang_append_dynamic_list): New.
376 (lang_append_dynamic_list_cpp_typeinfo): New.
377 * ldlang.h (lang_append_dynamic_list): Likewise.
378 * ldlang.h (lang_append_dynamic_list_cpp_typeinfo): Likewise.
380 * ldlex.h (input_enum): Add input_dynamic_list.
381 * ldlex.l: Handle it.
383 * ldmain.c (main): Initialize link_info.dynamic.
385 * lexsup.c (option_values): Add OPTION_DYNAMIC_LIST and
386 OPTION_DYNAMIC_LIST_CPP_TYPEINFO.
387 (ld_options): Add entries for OPTION_DYNAMIC_LIST and
388 OPTION_DYNAMIC_LIST_CPP_TYPEINFO.
389 (parse_args): Handle OPTION_DYNAMIC_LIST and
390 OPTION_DYNAMIC_LIST_CPP_TYPEINFO.
392 2006-09-07 Joel Sherrill <joel.sherrill@oarcorp.com>
394 * emulparams/h8300elf.sh: _tinydata should not be placed in
396 * emulparams/h8300.sh: Likewise.
397 * emulparams/h8300sxelf.sh: Likewise.
399 2006-09-05 H.J. Lu <hongjiu.lu@intel.com>
402 * emultempl/elf32.em: Enable "-z relro" only if $COMMONPAGESIZE
405 2006-08-29 Nathan Sidwell <nathan@codesourcery.com>
407 * ldlang.c (walk_wild): Allow * to glob '/' in wildcarded match.
409 2006-08-28 Alan Modra <amodra@bigpond.net.au>
411 * scripttempl/elf.sc: Ensure that crtbegin and crtend entries will
412 not match random object files in a path containing "crtbegin" or
413 "crtend" as part of a directory name.
414 * scripttempl/armbpabi.sc: Likewise.
415 * scripttempl/crisaout.sc: Likewise.
416 * scripttempl/elf32crx.sc: Likewise.
417 * scripttempl/elf32sh-symbian.sc: Likewise.
418 * scripttempl/elf_chaos.sc: Likewise.
419 * scripttempl/elfd10v.sc: Likewise.
420 * scripttempl/elfd30v.sc: Likewise.
421 * scripttempl/elfxtensa.sc: Likewise.
422 * scripttempl/iq2000.sc: Likewise.
423 * scripttempl/mmo.sc: Likewise.
424 * scripttempl/xstormy16.sc: Likewise.
426 2006-08-24 Bob Wilson <bob.wilson@acm.org>
428 * emulparams/elf32xtensa.sh (.xt.prop): Add .xt.prop.*.
429 * scripttempl/elfxtensa.sc (.text): Add .literal.*.
431 2006-08-24 Pedro Alves <pedro_alves@portugalmail.pt>
433 * ldlang.c (lang_size_sections_1, lang_assignment_statement_enum):
434 Adjust the current address of DEFAULT_MEMORY_REGION even
435 when dot hasn't changed.
437 2006-08-23 Alan Modra <amodra@bigpond.net.au>
439 * ldexp.c (fold_name <LOADADDR>): Return an absolute value
440 rather than a section relative value.
442 2006-08-22 Alan Modra <amodra@bigpond.net.au>
444 * NEWS: Mention LMA default change.
445 * ld.texinfo (Output Section LMA): Update default description.
446 (Location Counter): Clarify backward movement.
447 * ldlang.c (lang_size_sections_1): Leave non-alloc sections with
448 default lma equal to vma. Warn on backward movement of dot.
450 2006-08-22 Pedro Alves <pedro_alves@portugalmail.pt>
452 * configure.tgt: Set targ_emul to arm_wince_pe for ARM
455 2006-08-22 Pedro Alves <pedro_alves@portugalmail.pt>
457 * Makefile.am: Split arm-wince into its own emulation.
458 * Makefile.in: Regenerate.
459 * pe-dll.c : Define PE_ARCH_arm_wince.
460 (pe_detail_list): Add PE_ARCH_arm_wince case.
461 (make_one): Handle PE_ARCH_arm_epoc and PE_ARCH_arm_wince cases.
462 * emulparams/arm_wince_pe.sh: New file.
463 * emultempl/pe.em: Handle new TARGET_IS_arm_wince_pe define.
464 Remap bfd_arm_allocate_interworking_sections,
465 bfd_arm_get_bfd_for_interworking and
466 bfd_arm_process_before_allocation for arm-pe and arm-wince-pe
468 (gld_${EMULATION_NAME}_recognized_file): Handle arm-wince and
469 arm-epoc bfd format names.
471 2006-08-18 Paul Brook <paul@codesourcery.com>
473 * emultempl/armelf.em (arm_elf_before_allocation): Call
474 gld${EMULATION_NAME}_before_allocation after setting interworking bfd.
476 2006-08-17 Pedro Alves <pedro_alves@portugalmail.pt>
478 * pe-dll.c (autofilter_symbolprefixlist): Remove .idata$.
479 (generate_reloc): Revert to skipping sections without a SEC_LOAD flag,
480 and to not skipping .idata* sections.
482 2006-08-16 Alan Modra <amodra@bigpond.net.au>
485 * ldlang.h (lang_output_section_statement_type): Replace
486 "processed" field with "processed_vma" and "processed_lma".
487 * ldlang.c (lang_do_assignments_1): Move lma setting code..
488 (lang_size_sections_1): ..to here.
489 (lang_reset_memory_regions): Adjust for
490 lang_output_section_statement_type change.
491 * ldexp.c (fold_name): Likewise.
493 2006-08-08 Peter S. Mazinger <ps.m@gmx.net>
495 * emulparams/armelf.sh (MAXPAGESIZE): Changed to
496 "CONSTANT (MAXPAGESIZE)".
498 2006-08-08 H.J. Lu <hongjiu.lu@intel.com>
501 * ldlang.c (lang_section_bst_type): Moved to ...
504 * ldlang.h (lang_wild_statement_struct): Add a tree field.
506 * ldlang.c (wild_sort_fast): Use the tree field for BST.
508 (analyze_walk_wild_section_handler): Initialize the tree field.
510 2006-08-08 H.J. Lu <hongjiu.lu@intel.com>
513 * ldlang.c (update_wild_statements): Update the whole wild
516 2006-08-04 Nick Clifton <nickc@redhat.com>
517 Mike Frysinger <michael.frysinger@analog.com>
519 * scripttempl/elf.sc (USER_LABEL_PREFIX): Define.
520 (__preinit_array_start, __preinit_array_end, __init_array_start,
521 __init_array_end, __fini_array_start, __fini_array_end, edata, end):
522 Use ${USER_LABEL_PREFIX}.
523 * emulparams/bfin.sh (DATA_END_SYMBOLS,END_SYMBOLS): Unset.
524 (USER_LABEL_PREFIX): Set.
526 2006-08-04 Marcelo Tosatti <marcelo@kvack.org>
528 * ldmain.c (main): Initialise print_gc_sections field of link_info
530 * lexsup.c: Add --print-gc-sections and --no-print-gc-sections
532 * ld.texinfo: Document new switches.
533 * NEWS: Mention new switches.
535 2006-08-04 Richard Sandiford <richard@codesourcery.com>
536 Kazu Hirata <kazu@codesourcery.com>
537 Phil Edwards <phil@codesourcery.com>
539 * Makefile.am (ALL_EMULATIONS): Add eshelf_vxworks.o and
541 (eshelf_vxworks.c, eshlelf_vxworks.c): New rules.
542 * Makefile.in: Regenerate.
543 * configure.tgt (sh-*-vxworks): Use shelf_vxworks and
545 * emulparams/shelf_vxworks.sh: New file.
546 * emulparams/shlelf_vxworks.sh: Likewise.
547 * emulparams/vxworks.sh (FINI): Prefix _etext with ${SYMPREFIX}.
548 (OTHER_END_SYMBOLS): Likewise _ehdr.
549 (DATA_END_SYMBOLS): Likewise _edata.
550 * emultempl/vxworks.em (vxworks_after_open): Check whether output_bfd
551 is indeed an ELF file before dealing with --force-dynamic.
553 2006-08-02 Petr Salinger <Petr.Salinger@seznam.cz>
556 * emulparams/elf_x86_64_fbsd.sh (OUTPUT_FORMAT): Define as
557 elf64-x86-64-freebsd.
559 2006-08-01 H.J. Lu <hongjiu.lu@intel.com>
561 * ldlang.c (init_os): Add flags. Replace bfd_make_section with
562 bfd_make_section_with_flags.
563 (exp_init_os): Updated.
564 (lang_add_section): Call init_os with flags.
565 (map_input_to_output_sections): Likewise.
567 2006-07-29 Richard Sandiford <richard@codesourcery.com>
569 * Makefile.am (eelf32b4300.c): Update dependencies.
570 (eelf32bmip.c): Likewise.
571 (eelf32bsmip.c): Likewise.
572 (eelf32btsmip.c): Likewise.
573 (eelf32btsmipn32.c): Likewise.
574 (eelf32ltsmip.c): Likewise.
575 (eelf32ltsmipn32.c): Likewise.
576 (eelf32ebmip.c): Likewise.
577 (eelf32ebmipvxworks.c): Likewise.
578 (eelf32elmip.c): Likewise.
579 (eelf32elmipvxworks.c): Likewise.
580 (eelf32bmipn32.c): Likewise.
581 (eelf32lmip.c): Likewise.
582 (eelf32mipswindiss.c): Likewise.
583 (eelf32lsmip.c): Likewise.
584 (eelf64bmip.c): Likewise.
585 (eelf64btsmip.c): Likewise.
586 (eelf64ltsmip.c): Likewise.
587 (emipsbig.c): Likewise. Canonicalize ${GENSCRIPTS} line.
588 (emipsbsd.c): Likewise.
589 (emipsidt.c): Update dependencies.
590 (emipsidtl.c): Likewise.
591 (emipslit.c): Likewise.
592 (emipslnews.c): Likewise.
593 (emipspe.c): Likewise. Fix ${GENSCRIPTS} invocation.
594 * Makefile.in: Regenerate.
595 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define.
596 * emulparams/elf32bmipn32-defs.sh (EXTRA_EM_FILE): Likewise.
597 * emultempl/irix.em: Include emultempl/mipself.em.
598 * emultempl/mipself.em: New file.
600 2006-07-26 Alan Modra <amodra@bigpond.net.au>
602 * emultempl/elf-generic.em (map_segments): Reorganise loop so that
603 layout happens before segment map. Don't do segment map on
606 2006-07-26 Alan Modra <amodra@bigpond.net.au>
608 * ldexp.c (fold_name <LOADADDR>): Use the lma.
609 * ldlang.h (lang_memory_region_type): Delete old_length. Add
611 * ldlang.c (lang_memory_region_lookup): Init new field.
612 (lang_reset_memory_regions): Reset new field.
613 (lang_insert_orphan): Don't set load_base.
614 (lang_leave_overlay): Likewise.
615 (lang_size_sections_1): Delete unnecessary code setting lma_region
616 to region. Correct lma region check.
617 (lang_do_assignments_1): Rename output_section_statement parm
618 to current_os. Set lma from previous section in region.
620 * ldlang.c: Formatting.
622 2006-07-25 Bob Wilson <bob.wilson@acm.org>
624 * emultempl/xtensaelf.em (xtensa_strip_inconsistent_linkonce_sections):
625 Set discarded section's output_section to bfd_abs_section_ptr.
627 2006-07-26 Alan Modra <amodra@bigpond.net.au>
629 * ldlang.c (analyze_walk_wild_section_handler): Init handler_data
632 2006-07-24 Bob Wilson <bob.wilson@acm.org>
634 * emultempl/xtensaelf.em (is_inconsistent_linkonce_section): Add space
635 in dep_sec_name for null terminator. Make sure dep_sec_name has a
638 2006-07-14 Michael Wetherell <mike.wetherell@ntlworld.com>
640 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX, ELF_INTERPRETER_NAME):
641 Set for *-*-solaris2*.
643 2006-07-24 Ralk Wildenhues <Ralf.Wildenhues@gmx.de>
645 * ld.texinfo: Fix spelling mistakes.
646 * ldint.texinfo: Likewise.
648 2006-07-23 Sonal Santan <sonal.santan@xilinx.com>
650 * ldlang.c (lang_section_bst): New structure for sorting sections
652 (wild_sort_fast): New function: Insert a section into a binary
654 (output_section_callback_fast): New function: Store a section in
656 (output_section_callback_tree_to_list): New function: Convert a
658 (analyze_walk_wild_section_handler): Initialize handler_data
660 (wild): If the data is sorted by name use the BST method to sort
663 2006-07-19 Alan Modra <amodra@bigpond.net.au>
665 * ld.h (handle_asneeded_cref): Declare.
666 * ldcref.c: Include objalloc.h.
667 (old_table, old_count, old_tab, alloc_mark): New variables.
668 (tabsize, entsize, refsize, old_symcount): Likewise.
669 (add_cref): Use bfd_hash_allocate for refs.
670 (handle_asneeded_cref): New function.
671 * ldmain.c (notice): Call handle_asneeded_cref for NULL name.
673 2006-07-14 Michael Wetherell <mike.wetherell@ntlworld.com>
675 * configure.tgt (i[3-7]86-*-solaris2*, i[3-7]86-*-solaris*): Correct
676 typo setting targ_extra_libpath.
678 2006-07-10 Jakub Jelinek <jakub@redhat.com>
680 * scripttempl/elf.sc: Add .gnu.hash section.
681 * emultempl/elf32.em (OPTION_HASH_STYLE): Define.
682 (gld${EMULATION_NAME}_add_options): Register --hash-style option.
683 (gld${EMULATION_NAME}_handle_option): Handle it.
684 (gld${EMULATION_NAME}_list_options): Document it.
685 * ldmain.c (main): Initialize emit_hash and emit_gnu_hash.
686 * ld.texinfo: Document --hash-style option.
688 2006-07-10 Nick Clifton <nickc@redhat.com>
690 * po/zh_TW.po: New Chinese (traditional) translation.
691 * configure.in (ALL_LINGUAS): Add zh_TW.
692 * configure: Regenerate.
694 2006-07-07 Nick Clifton <nickc@redhat.com>
697 * ld.texinfo: Remove "Using LD" from the title since it is
700 2006-07-06 Mohammed Adnène Trojette <adn@diwi.org>
703 * ld.texinfo: Fix spelling mistakes.
705 2006-06-27 Pedro Alves <pedro_alves@portugalmail.pt>
706 Nick Clifton <nickc@redhat.com>
708 * emultempl/pe.em (gld_$_open_dynamic_archive): Compute maximum
709 length of format strings in the libname_fmt[] array, rather than
710 relying upon a statically chosen value. Adjust xmalloc call to
711 use this longest length.
713 2006-06-27 Nick Clifton <nickc@redhat.com>
715 * ld.texinfo (-rpath-link): Clarify distinction between -rpath and
718 2006-06-23 Daniel Jacobowitz <dan@codesourcery.com>
720 * configure.tgt (i[3-7]86-*-solaris2*, i[3-7]86-*-solaris*): Set
723 2006-06-23 Pedro Alves <pedro_alves@portugalmail.pt>
725 * pe-dll.c (pe_details_type): Add new pointer for symbols list
727 (autofilter_symbollist): Split into autofilter_symbollist_generic
728 and autofilter_symbollist_i386.
729 (pe_detail_list): Add autofilter_symbollist_i386 to i386 case and
730 autofilter_symbollist_generic for all the others.
731 (autofilter_symbolprefixlist): Moved _fmode, _impure_ptr, cygwin_attach_dll,
732 cygwin_premain0, cygwin_premain1, cygwin_premain2, cygwin_premain3, environ,
733 into autofilter_symbollist_i386.
734 (auto_export): Get autofilter_symbollist from pe_details.
736 2006-06-22 Nick Clifton <nickc@redhat.com>
739 * emultempl/pe.em (gld_$_after_open): When reporting non PE format
740 output files mention the file name and the fact that it is an
743 2006-06-22 Danny Smith <dannysmith@users.sourceforge.net>
745 * emultempl/pe.em (gld_${EMULATION_NAME}_open_dynamic_archive):
746 Restructure. Add native "%s.lib" format to search list
747 * ld.texinfo (node WIN32): Update documentation on dynamic lib
748 search order. Add another reason for using import libs.
750 2006-06-21 Mark Shinwell <shinwell@codesourcery.com>
752 * ldlang.c (lang_insert_orphan): Correctly handle the case where
753 the section is to end up after the section currently at the end
754 of the list in output_bfd.
756 2006-06-21 Hans-Peter Nilsson <hp@bitrange.com>
758 * emultempl/mmo.em: Improve comments. Explain why there's
761 2006-06-21 Alan Modra <amodra@bigpond.net.au>
763 * emultempl/elf-generic.em (gld${EMULATION_NAME}_map_segments): Limit
764 loop to ten iterations. Throw away any previous linker generated
766 * ldlang.c (lang_phdr_list): Make global.
767 * ldlang.h (lang_phdr_list): Declare.
768 * Makefile.am (ELF_GEN_DEPS): Define. Use in emul deps.
769 * Makefile.in: Regenerate.
771 2006-06-20 Alan Modra <amodra@bigpond.net.au>
773 * Makefile.am (ELF_DEPS): Define. Use in emul file deps. Fix
774 many ELF emul file deps that incorrectly said they needed elf32.em
775 instead of generic.em. Add genelf.em as required.
776 * Makefile.in: Regenerate.
777 * ldlang.c (lang_process): Call ldemul_finish before
778 lang_check_section_addresses.
779 * emulparams/arcelf.sh: Generic elf target needs genelf.
780 * emulparams/d30v_e.sh: Likewise.
781 * emulparams/d30v_o.sh: Likewise.
782 * emulparams/d30velf.sh: Likewise.
783 * emulparams/elf32_dlx.sh: Likewise.
784 * emulparams/elf32_i860.sh: Likewise.
785 * emulparams/elf32fr30.sh: Likewise.
786 * emulparams/elf32frv.sh: Likewise.
787 * emulparams/elf32iq10.sh: Likewise.
788 * emulparams/elf32iq2000.sh: Likewise.
789 * emulparams/elf32mt.sh: Likewise.
790 * emulparams/mn10200.sh: Likewise.
791 * emulparams/or32.sh: Likewise.
792 * emulparams/or32elf.sh: Likewise.
793 * emulparams/pjelf.sh: Likewise.
794 * emulparams/msp430all.sh: Likewise. Extract common entries.
795 * emulparams/pjlelf.sh: Include pjelf.sh.
796 * emulparams/elf32frvfd.sh (EXTRA_EM_FILE): Unset.
797 * emulparams/mn10300.sh (EXTRA_EM_FILE): Unset.
798 * emultempl/elf-generic.em: New file.
799 * emultempl/genelf.em: New file.
800 * emultempl/elf32.em: Include elf-generic.em.
801 (gld${EMULATION_NAME}_layout_sections_again): Delete.
802 (gld${EMULATION_NAME}_finish): Call gld${EMULATION_NAME}_map_segments.
803 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
804 (gld${EMULATION_NAME}_finish): Rename from hppaelf_finish. Call
805 gld${EMULATION_NAME}_map_segments.
806 (LDEMUL_FINISH): Update.
807 * emultempl/mmo.em: Correct comment. Include elf-bfd.h and
808 source elf-generic.em.
809 (mmo_finish): Call gld${EMULATION_NAME}_map_segments.
810 * emultempl/ppc64elf.em (ppc_layout_sections_again): Likewise.
811 (gld${EMULATION_NAME}_finish): Rename from ppc_finish. Call
812 gld${EMULATION_NAME}_map_segments.
813 (LDEMUL_FINISH): Update.
815 2006-06-19 Alan Modra <amodra@bigpond.net.au>
817 * ldexp.c (fold_name): Adjust bfd_sizeof_headers call.
819 2006-06-14 Kevin F. Quinn <kevquinn@gentoo.org>
821 * ld.texinfo: Document new -z lazy option.
822 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
824 (gld${EMULATION_NAME}_list_options): Update help text.
826 2006-06-12 Fred Fish <fnf@specifix.com>
828 * emulparams/elf32bmip.sh (OTHER_SECTIONS): Keep the
829 ".mdebug.<abi>" and ".gcc_compiled_long<size>" sections
830 generated by mips gcc.
832 2006-06-12 Thiemo Seufer <ths@mips.com>
834 * emulparams/elf64bmip.sh, emulparams/elf64btsmip.sh (COMMONPAGESIZE):
837 2006-06-09 Alan Modra <amodra@bigpond.net.au>
839 * ldlang.h (lang_input_statement_type): Use bitfields for booleans.
840 * ldlang.c (struct out_section_hash_entry): Rename from
841 output_statement_hash_entry. Delete output_section_statement_type
842 entry. Add statement_union_type entry. Adjust all users.
843 (output_section_statement_table): Rename from output_statement_table.
845 (output_section_statement_newfunc): Rename from
846 output_statement_newfunc. Adjust all users.
847 (output_section_statement_table_init): Rename from
848 output_statement_table_init. Adjust all users.
849 (output_section_statement_table_free): Rename from
850 output_statement_table_free. Adjust all users.
852 2006-06-07 Joseph S. Myers <joseph@codesourcery.com>
854 * po/Make-in (pdf, ps): New dummy targets.
856 2006-06-07 Alan Modra <amodra@bigpond.net.au>
858 * ldlang.h (enum section_type): Delete dsect_section, copy_section,
859 info_section and overlay_section. Add noalloc_section.
860 * ldlang.c (lang_add_section): Adjust.
861 * ldgram.y (type): Adjust.
863 2006-06-06 Alan Modra <amodra@bigpond.net.au>
865 * ldlang.c (init_os): Whitespace.
866 (map_input_to_output_sections): Don't init_os for lang_input_section.
867 (print_all_symbols): Remove forward declaration. Convert to ISO C.
869 2006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
871 * po/Make-in (top_builddir): Define.
873 2006-06-05 Alan Modra <amodra@bigpond.net.au>
875 * ldexp.c (exp_get_abs_int): Make error message the same as
876 others emitted in this file.
878 2006-06-05 Alan Modra <amodra@bigpond.net.au>
880 * config.in: Regenerate.
882 2006-06-05 Alan Modra <amodra@bigpond.net.au>
884 * ldlang.c (lookup_name): Delete dead code. Remove FIXMEs.
886 2006-06-03 Alan Modra <amodra@bigpond.net.au>
888 * emultempl/elf32.em (global_found): Make it a pointer.
889 (stat_needed, try_needed): Adjust.
890 (check_needed): Don't skip non-loaded as-needed entries. Only
891 consider entries with both filename and the_bfd non-null.
892 (after_open): Try loading non-loaded as-needed libs to satisfy
895 2006-06-02 Joseph S. Myers <joseph@codesourcery.com>
897 * Makefile.am (TEXI2DVI): Add -I $(top_srcdir)/../libiberty.
898 * Makefile.in: Regenerate.
900 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
902 * Makefile.am: Replace INTLLIBS and INTLDEPS with LIBINTL
903 and LIBINTL_DEP everywhere.
905 (INCLUDES): Use @INCINTL@.
906 * configure.in: Use ZW_GNU_GETTEXT_SISTER_DIR and AM_PO_SUBDIRS.
907 Remove local code for po/Makefile.
908 * Makefile.in, configure: Regenerated.
910 2006-05-30 H.J. Lu <hongjiu.lu@intel.com>
912 * emulparams/arcelf.sh (MAXPAGESIZE): Changed to
913 "CONSTANT (MAXPAGESIZE)".
914 * emulparams/armelf_nbsd.sh: Likewise.
915 * emulparams/armelf_vxworks.sh: Likewise.
916 * emulparams/armnto.sh: Likewise.
917 * emulparams/armsymbian.sh: Likewise.
918 * emulparams/crislinux.sh: Likewise.
919 * emulparams/elf32_i860.sh: Likewise.
920 * emulparams/elf32_i960.sh: Likewise.
921 * emulparams/elf32am33lin.sh: Likewise.
922 * emulparams/elf32bfinfd.sh: Likewise.
923 * emulparams/elf32bmipn32-defs.sh: Likewise.
924 * emulparams/elf32frvfd.sh: Likewise.
925 * emulparams/elf32i370.sh: Likewise.
926 * emulparams/elf32lppcnto.sh: Likewise.
927 * emulparams/elf32mcore.sh: Likewise.
928 * emulparams/elf32openrisc.sh: Likewise.
929 * emulparams/elf32ppcnto.sh: Likewise.
930 * emulparams/elf32ppcwindiss.sh: Likewise.
931 * emulparams/elf32vax.sh: Likewise.
932 * emulparams/elf32xc16x.sh: Likewise.
933 * emulparams/elf32xc16xl.sh: Likewise.
934 * emulparams/elf32xc16xs.sh: Likewise.
935 * emulparams/elf64_aix.sh: Likewise.
936 * emulparams/elf64hppa.sh: Likewise.
937 * emulparams/elf64mmix.sh: Likewise.
938 * emulparams/elf_i386_be.sh: Likewise.
939 * emulparams/elf_i386_chaos.sh: Likewise.
940 * emulparams/elf_i386_ldso.sh: Likewise.
941 * emulparams/hppa64linux.sh: Likewise.
942 * emulparams/hppalinux.sh: Likewise.
943 * emulparams/hppaobsd.sh: Likewise.
944 * emulparams/i386lynx.sh: Likewise.
945 * emulparams/i386moss.sh: Likewise.
946 * emulparams/i386nto.sh: Likewise.
947 * emulparams/i386nw.sh: Likewise.
948 * emulparams/m32relf_linux.sh: Likewise.
949 * emulparams/m68kpsos.sh: Likewise.
950 * emulparams/or32elf.sh: Likewise.
951 * emulparams/pjelf.sh: Likewise.
952 * emulparams/pjlelf.sh: Likewise.
953 * emulparams/ppclynx.sh: Likewise.
954 * emulparams/ppcnw.sh: Likewise.
955 * emulparams/shelf32_nbsd.sh : Likewise.
956 * emulparams/shelf_nbsd.sh: Likewise.
957 * emulparams/shelf_nto.sh: Likewise.
958 * emulparams/shlelf_nto.sh: Likewise.
959 * emulparams/xtensa-config.sh: Likewise.
961 * emulparams/armelf_linux.sh (MAXPAGESIZE): Changed to
962 "CONSTANT (MAXPAGESIZE)".
963 (COMMONPAGESIZE): Changed to "CONSTANT (COMMONPAGESIZE)".
964 * emulparams/elf32_sparc.sh: Likewise.
965 * emulparams/elf32bmip.sh: Likewise.
966 * emulparams/elf32ppccommon.sh: Likewise.
967 * emulparams/elf64_ia64.sh: Likewise.
968 * emulparams/elf64_s390.sh: Likewise.
969 * emulparams/elf64_sparc.sh: Likewise.
970 * emulparams/elf64alpha.sh: Likewise.
971 * emulparams/elf64ppc.sh: Likewise.
972 * emulparams/elf_i386.sh: Likewise.
973 * emulparams/elf_i386_vxworks.sh: Likewise.
974 * emulparams/elf_s390.sh: Likewise.
975 * emulparams/elf_x86_64.sh: Likewise.
976 * emulparams/shlelf32_linux.sh: Likewise.
977 * emulparams/shlelf_linux.sh: Likewise.
979 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Changed to
980 "CONSTANT (COMMONPAGESIZE)".
981 * emulparams/elf32btsmipn32.sh: Likewise.
983 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
984 "-z max-page-size=" and "-z common-page-size=".
985 (gld${EMULATION_NAME}_list_options): Likewise.
987 * ld.h (ld_config_type): Add maxpagesize and commonpagesize.
989 * ld.texinfo: Document "-z max-page-size=" and
990 "-z common-page-size=".
992 * ldexp.c (exp_print_token): Handle CONSTANT.
993 (fold_name): Likewise.
994 * ldgram.y: Likewise.
997 * ldmain.c (main): Initiliaze config.maxpagesize and
998 config.commonpagesize. Call bfd_emul_set_maxpagesize if
999 config.maxpagesize isn't 0. Call bfd_emul_set_commonpagesize if
1000 config.commonpagesize config.maxpagesize isn't 0.
1002 2006-05-30 Nick Clifton <nickc@redhat.com>
1004 * po/es.po: Updated Spanish translation.
1006 2006-05-25 H.J. Lu <hongjiu.lu@intel.com>
1008 * emulparams/elf_x86_64.sh (MAXPAGESIZE): Updated to 0x200000.
1010 2006-05-24 H.J. Lu <hongjiu.lu@intel.com>
1013 * configure.in: Use ${srcdir}/../bfd/config.bfd to check 64bit
1014 bfd. Support 64bit host for --enable-targets=all.
1015 * configure: Regenerated.
1017 2006-05-24 Nick Clifton <nickc@redhat.com>
1019 * po/vi.po: Updated Vietnamese translation.
1021 2006-05-24 Bjoern Haase <bjoern.m.haase@web.de>
1023 * configure.tgt: Add avr6 to emulation list.
1024 * Makefile.am: Add eavr6.o and corresponding rule.
1025 * Makefile.in: Regenerate.
1026 * emulparams/avr6.sh: New file.
1027 * emulparams/avrX.sh (TEMPLATE_NAME): Use elf32 instead of generic
1028 for target option support.
1029 (EXTRA_EM_FILE): Add reference to new em template file avrelf.
1030 * scripttempl/avr.sc: Add ".trampolines" section.
1031 * emultempl/avrelf.em: Add new file for target specific options.
1033 2006-05-22 Nick Clifton <nickc@redhat.com>
1035 * scripttempl/elf32crx.sc (.rdata): Add .rodata.*.
1037 2006-05-19 Alan Modra <amodra@bigpond.net.au>
1039 * ldlang.c (lang_size_sections_1): Don't check mem regions for
1040 os->ignored sections.
1042 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
1044 * ldlang.c (lang_size_sections): Call lang_reset_memory_regions
1045 before redoing one_lang_size_sections_pass.
1047 2006-05-11 Carlos O'Donell <carlos@codesourcery.com>
1049 * ld.texinfo: Rename "Index" to "LD Index"
1051 2006-05-11 Pedro Alves <pedro_alves@portugalmail.pt>
1053 * pe-dll.c (autofilter_symbollist): Add Dllmain,
1054 DllMainCRTStartup, _DllMainCRTStartup and .text.
1055 (autofilter_liblist): Add libcegcc.
1056 (autofilter_symbolprefixlist): Add __imp_ and .idata$.
1057 (generate_reloc): Do not skip sections without a SEC_LOAD flag,
1058 they can still contain relocs that need processing.
1059 Skip the .idata$6 section.
1060 (jmp_arm_bytes): New array: Contains byte codes for an ARM jump.
1061 (make_one): Use the new array.
1062 (make_import_fixup_entry): Use .idata$2 instead of .idata$3.
1063 * emultempl/pe.em (MajorSubsystemVersion): Set to 3 for armpe.
1065 2006-05-05 Alan Modra <amodra@bigpond.net.au>
1067 * ld.texinfo: Document PowerPC and PowerPC64 options.
1068 * gen-doc.texi: Enable.
1070 2006-05-02 Daniel Jacobowitz <dan@codesourcery.com>
1072 * Makefile.am (AM_MAKEINFOFLAGS): Add libiberty.
1073 (TEXI2POD): Use AM_MAKEINFOFLAGS.
1074 (configdoc.texi): Don't set top_srcdir.
1075 * ld.texinfo: Don't use top_srcdir.
1076 * aclocal.m4, Makefile.in: Regenerated.
1078 2006-04-19 Alan Modra <amodra@bigpond.net.au>
1080 * ldlang.c (wild): Tidy default_common_section loop.
1081 (print_input_section): Format.
1083 * configure: Regenerate.
1085 2006-04-16 Daniel Jacobowitz <dan@codesourcery.com>
1087 * po/POTFILES.in: Regenerated.
1089 2006-04-16 Daniel Jacobowitz <dan@codesourcery.com>
1091 * config.in: Regenerated.
1093 2006-04-14 David Heine <dlheine@tensilica.com>
1094 Bob Wilson <bob.wilson@acm.org>
1096 * emultempl/xtensaelf.em (elf_xtensa_before_allocation): Call new
1097 function to strip inconsistent linkonce sections.
1098 (input_section_linked_worker, input_section_linked): New.
1099 (is_inconsistent_linkonce_section): New.
1100 (xtensa_strip_inconsistent_linkonce_sections): New.
1102 2006-04-11 Diego Pettenò <flameeyes@gentoo.org>
1104 * emultempl/elf32.em: Add support for elf-hints.h on FreeBSD
1105 and Dragonfly targets.
1106 * configure.in (AC_CHECK_HEADERS): Add elf-hints.h.
1107 * Makefile.am (HFILES): Add elf-hints-local.h.
1108 * elf-hints-local.h: New file.
1109 * Makefile.in: Regenerate.
1110 * configure: Regenerate.
1112 2006-04-07 Bernhard Fischer <aldot@gcc.gnu.org>
1114 * ld.texinfo: Fix typo in documentation of --check-sections.
1116 2006-04-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1118 * ldlang.c (load_symbols): Set as_needed and add_needed according
1119 to the corresponding script's fields while processing it.
1121 2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
1123 * Makefile.am: Add install-html, install-html-am, and
1124 install-html-recursive targets.
1125 * Makefile.in: Regenerate.
1126 * configure.in: AC_SUBST datarootdir, docdir, htmldir.
1127 * configure: Regenerate.
1128 * po/Make-in: Add install-html target.
1130 2006-04-06 H.J. Lu <hongjiu.lu@intel.com>
1132 * emultempl/ia64elf.em: Set link_info.relax_pass to 2. Remove
1133 link_info.need_relax_finalize.
1135 * ldlang.c (relax_sections): New.
1136 (lang_process): Use. Call relax_sections link_info.relax_pass
1139 * ldmain.c (main): Set link_info.relax_pass to 1. Remove
1140 link_info.need_relax_finalize.
1142 2006-04-05 Alan Modra <amodra@bigpond.net.au>
1144 * Makefile.am (GENSCRIPTS): Pass prefix.
1145 * Makefile.in: Regenerate.
1146 * genscripts.sh: Adjust for extra parameter.
1147 * emultempl/elf32.em (parse_ld_so_conf): Return true iff file
1149 (check_ld_so_conf): Use ${prefix}/etc/ld.so.conf if it exists.
1152 2006-04-05 Richard Sandiford <richard@codesourcery.com>
1153 Daniel Jacobowitz <dan@codesourcery.com>
1155 * configure.tgt (sparc*-*-vxworks*): New stanza.
1156 * emulparams/elf32_sparc_vxworks.sh: New file.
1157 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_vxworks.o.
1158 (eelf32_sparc_vxworks.c): New rule.
1159 * Makefile.in: Regenerate.
1161 2006-04-04 Eric Botcazou <ebotcazou@adacore.com>
1163 * ldlang.c (lang_map): Print the list of discarded input sections.
1164 (print_input_section): Change parameter and print zero-sized sections.
1165 (print_statement): Adjust call to print_input_section.
1167 2006-04-01 Danny Smith <dannysmith@users.sourceforge.net>
1169 * deffilep.y (def_image_name): If LIBRARY or NAME statement
1170 specifies an empty string, retain the name specified on command
1172 * ld.texinfo: Document above.
1174 2006-03-31 Jakub Jelinek <jakub@redhat.com>
1176 * ldmisc.c (vfinfo): Revert 2005-10-05 changes. If
1177 bfd_find_nearest_line succeeded for %C or %D, but filename
1178 is NULL, print section+offset at the end.
1180 2006-03-25 Bernd Schmidt <bernd.schmidt@analog.com>
1182 * emulparams/elf32bfinfd.sh: New file.
1183 * emultempl/bfin.em: Delete.
1184 * emulparams/bfin.sh: Lose reference to bfin.em.
1185 * Makefile.am (eelf32bfin.c): Likewise.
1186 (eelf32bfinfd.c): New.
1187 * Makefile.in: Regenerate.
1188 * configure.tgt (bfin-*-elf, bfin-*-uclinux): Add elf32bfinfd to
1191 2006-03-22 Richard Sandiford <richard@codesourcery.com>
1192 Daniel Jacobowitz <dan@codesourcery.com>
1193 Phil Edwards <phil@codesourcery.com>
1194 Zack Weinberg <zack@codesourcery.com>
1195 Mark Mitchell <mark@codesourcery.com>
1196 Nathan Sidwell <nathan@codesourcery.com>
1198 * configure.tgt (mips*el-*-vxworks*, mips*-*-vxworks*): Use
1199 separate VxWorks emulations.
1200 * emulparams/elf32ebmipvxworks.sh: New file.
1201 * emulparams/elf32elmipvxworks.sh: New file.
1202 * Makefile.am (ALL_EMULATIONS): Add eelf32ebmipvxworks.o and
1203 eelf32elmipvxworks.o.
1204 (eelf32ebmipvxworks.c, eelf32elmipvxworks.c): New rules.
1205 * Makefile.in: Regenerate.
1207 2006-03-16 Alan Modra <amodra@bigpond.net.au>
1210 * ldcref.c (add_cref): Adjust bfd_hash_table_init calls.
1211 * ldlang.c (output_statement_table_init, lang_init): Likewise.
1212 * ldmain.c (add_ysym, add_wrap, add_keepsyms_file): Likewise.
1213 (undefined_symbol): Likewise.
1215 2006-03-07 Richard Sandiford <richard@codesourcery.com>
1216 Daniel Jacobowitz <dan@codesourcery.com>
1217 Zack Weinberg <zack@codesourcery.com>
1218 Nathan Sidwell <nathan@codesourcery.com>
1219 Paul Brook <paul@codesourcery.com>
1220 Ricardo Anguiano <anguiano@codesourcery.com>
1221 Phil Edwards <phil@codesourcery.com>
1223 * emulparams/armelf_vxworks.sh: Include vxworks.sh.
1224 (MAXPAGESIZE): Define.
1225 * emulparams/vxworks.sh: Undefine EMBEDDED.
1226 * Makefile.am (earmelf_vxworks.c): Depend on vxworks.sh and vxworks.em.
1227 * Makefile.in: Regenerate.
1229 2006-03-03 Bjoern Haase <bjoern.m.haase@web.de>
1231 * scripttempl/avr.sc: Add *(.jumptables) *(.lowtext) sections.
1232 Add KEEP() directives.
1233 Add *(.data*) *(.rodata) and *(.rodata*) and *(.bss*) to .data and
1234 .bss output sections.
1236 2006-03-03 Richard Sandiford <richard@codesourcery.com>
1238 * emulparams/vxworks.sh (VXWORKS_BASE_EM_FILE): New variable.
1239 (EXTRA_EM_FILE): Define.
1240 * emultempl/vxworks.em: New file.
1241 * ld.texinfo (--force-dynamic): Document.
1242 * Makefile.am (eelf32ppcvxworks.cm, eelf_i386_vxworks.c): Depend
1244 * Makefile.in: Regenerate.
1246 2006-03-02 Richard Sandiford <richard@codesourcery.com>
1248 * emulparams/elf32ppccommon.sh: New file, extracted from...
1249 * emulparams/elf32ppc.sh: ...here.
1250 * emulparams/elf32ppcvxworks.sh: Include elf32ppccommon.sh
1251 instead of elf32ppc.sh.
1252 (BSS_PLT): Remove override.
1253 * Makefile.am (eelf32lppc.c): Depend on elf32ppccommons.h.
1254 (eelf32lppcnto.c, eelf32lppcsim.c, eelf32ppcnto.c): Likewise.
1255 (eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppcsimm): Likewise.
1256 (eelf32ppclinux.c): Likewise.
1257 (eelf32ppcvxworks.c): Likewise. Add missing vxworks.sh dependency.
1258 * Makefile.in: Regenerate.
1260 2006-02-27 Carlos O'Donell <carlos@codesourcery.com>
1262 * Makefile.am: Add html target.
1263 * Makefile.in: Regenerate.
1264 * po/Make-in: Add html target.
1266 2006-02-17 Shrirang Khisti <shrirangk@kpitcummins.com>
1267 Anil Paranjape <anilp1@kpitcummins.com>
1268 Shilin Shakti <shilins@kpitcummins.com>
1270 * scripttemp/elf32xc16x.sc: Default linker script for tiny model.
1271 * scripttemp/elf32xc16xl.sc: Default linker script for large model.
1272 * scripttemp/elf32xc16xs.sc: Default linker script for small model.
1273 * emulparams/elf32xc16x.sh: Emulation script for tiny model.
1274 * emulparams/elf32xc16xl.sh: Emulation script for large model.
1275 * emulparams/elf32xc16xs.sh: Emulation script for small model.
1276 * Makefile.am: Add entry to make xc16x target.
1277 * Makefile.in: Regenerate.
1278 * configure.tgt: Specify default and other emulation parameters
1280 * NEWS: Announce the support for the new target.
1282 2006-02-16 Nick Hudson <nick.hudson@dsl.pipex.com>
1284 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1285 Use the traditional target.
1287 2006-02-13 Joseph S. Myers <joseph@codesourcery.com>
1289 * configure.tgt (arm*b-*-linux-gnueabi): Change to
1290 arm*b-*-linux-*eabi.
1291 (arm*-*-linux-gnueabi): Change to arm*-*-linux-*eabi.
1293 2006-02-08 H.J. Lu <hongjiu.lu@intel.com>
1296 * NEWS: Updated for the Linux linker search order change.
1298 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Call
1299 gld${EMULATION_NAME}_check_ld_so_conf before checking default
1300 search directories for DT_NEEDED entries.
1302 2006-02-07 Paul Brook <paul@codesourcery.com>
1304 * emultempl/armelf.em: Include elf/arm.h.
1305 (arm_elf_finish): Set low address bit if enty point is a Thumb
1308 2006-02-01 Danny Smith <dannysmith@users.sourceforge.net>
1310 * deffilep.y (def_image_name): If the image name does not have
1311 a suffix, append the default.
1312 * ld.texinfo: Document NAME, LIBRARY usage in PE-COFF .def files.
1314 2006-01-31 Danny Smith dannysmith@users.sourceforge.net
1316 * NEWS: Mention support for forward exports in PE-COFF dll's.
1317 * ld.texinfo: Expand documentation of EXPORT statements in
1320 2006-01-31 Filip Navara <navaraf@reactos.com>
1322 * deffile.h (struct def_file_export): Add field flag_forward.
1323 * pe-dll.c (process_def_file): Check for forward exports.
1324 (generate_edata): Generate forward export symbols.
1325 (fill_edata): Emit them.
1327 * pe-dll.c (process_def_file): Don't crash on malformed
1328 fastcall symbol names in .def file.
1330 2006-01-30 Nick Clifton <nickc@redhat.com>
1332 * po/vi.po: Updated Vietnamese translation.
1334 2006-01-27 Yitzchak Scott-Thoennes <sthoenna@efn.org>
1336 * pe-dll.c (pe_dll_generate_implib): Issue "Creating library
1337 file:" as informational message, not a warning.
1339 2006-01-18 Roger Sayle <roger@eyesopen.com>
1341 * emultempl/irix.em: Use lbasename instead of basename.
1343 2006-01-16 Nick Clifton <nickc@redhat.com>
1345 * po/zh_CN.po: New Chinese (simplified) translation.
1346 * configure.in (ALL_LINGUAS): Add "zh_CH".
1347 * configure: Regenerate.
1349 2006-01-16 Bernhard Fischer <aldot@gcc.gnu.org>
1351 * ld.texinfo (Options): Fix typo.
1353 For older changes see ChangeLog-2005
1359 version-control: never