1 2006-10-10 Bob Wilson <bob.wilson@acm.org>
3 * emulparams/elf32xtensa.sh (GENERATE_PIE_SCRIPT): Enable.
5 2006-10-06 Mike Frysinger <vapier@gentoo.org>
7 * genscripts.sh: Respect LIBPATH_SUFFIX when not using sysroot.
9 2006-10-04 Bob Wilson <bob.wilson@acm.org>
11 * emulparams/xtensa-config.sh: Delete file.
12 * emulparams/elf32xtensa.sh: Set MAXPAGESIZE here instead of including
14 * Makefile.am (eelf32xtensa.c): Remove dependency on xtensa-config.sh.
15 * Makefile.in: Regenerate.
17 2006-10-03 Pedro Alves <pedro_alves@portugalmail.pt>
19 * pe-dll.c : Fix typo.
20 (autofilter_symbolprefixlist) : Remove __imp_.
22 (auto-export) : Remove re-import check. Moved to callers.
23 (process_def_file) : Check is symbol is an import. Always
25 Only skip underscore on underscored targets.
26 (make_one) : Always underscore __imp_.
27 (pe_create_runtime_relocator_reference) : Only underscore
28 _pei386_runtime_relocator on underscored targets.
29 (pe_process_import_defs) : Always underscore __imp_.
30 * pe.em (U) : New macro.
31 (set_pe_subsystem) : Remove underscore from _WinMainCRTStartup
32 on wince subsystem case.
33 (pe_find_data_imports) : Use U on "_head_".
34 (gld_${EMULATION_NAME}_unrecognized_file) : Use U.
36 2006-09-26 H.J. Lu <hongjiu.lu@intel.com>
40 * ld.texinfo: Updated Output Section Discarding.
42 * ldlang.h (lang_output_section_statement_type): Add
43 section_relative_symbol.
44 * ldlang.c (strip_excluded_output_sections): Don't strip a
45 section with a symbol relative to it.
46 (lang_size_sections_1): Mark if an output section has a symbol
47 symbol relative to it.
49 2006-09-25 Bob Wilson <bob.wilson@acm.org>
51 * ld.texinfo (Options): Update description of local symbols for -X.
53 2006-09-23 H.J. Lu <hongjiu.lu@intel.com>
56 * scripttempl/elf.sc: Don't combine .gnu.linkonce.d.*personality*
57 and .gnu.linkonce.wi.* sections with .data and .debug_info for
60 2006-09-20 Kai Tietz <Kai.Tietz@onevision.com>
62 * configure.in: Add new target x86_64-pc-mingw64.
63 * configure: Regenerate.
64 * configure.tgt: Add definition of target emulation i386pep.
65 * Makefile.am: Add new target files for target-all.
66 * Makefile.in: Regenerate.
67 * pe-dll.c: Adjust to be inheritable by pep_dll.c as include.
68 Fix memory out of bounds excess for idata relocation section data.
69 * pep-dll.c: Add target specific shared object handling.
70 * pep-dll.h: Add target specific definitions for shared object handling.
71 * emulparams/i386pep.sh: Add new emulation params for target x86_64 coff.
72 * emultempl/pep.em: Add new emulation file for target x86_64 coff.
73 * po/POTFILES.in: Regenerate.
74 * scripttempl/pep.sc: Add linker script template for target x86_64 coff.
75 * NEWS: Mention new target.
77 2006-09-18 Thiemo Seufer <ths@networkno.de>
79 * configure.tgt: Add mips*el-sde-elf* and mips*-sde-elf*
82 2006-09-17 Mei Ligang <ligang@sunnorth.com.cn>
84 * emulparams/scoreelf.sh: New file.
85 * emultempl/scoreelf.em: New file.
86 * Makefile.am: Add Score files.
87 * Makefile.in: Regenerate.
88 * configure.tgt: Add Score target.
89 * NEWS: Mention new target support.
91 2006-09-16 Nick Clifton <nickc@redhat.com>
92 Pedro Alves <pedro_alves@portugalmail.pt>
94 * ldctor.c: Make use of new STRING_COMMA_LEN and CONST_STRNEQ
95 macros defined in bfd.h.
97 * ldwrite.c: Likewise.
100 * emultempl/aix.em: Likewise.
101 * emultempl/beos.em: Likewise.
102 * emultempl/elf32.em: Likewise.
103 * emultempl/pe.em: Likewise.
104 * emultempl/sunos.em: Likewise.
105 * emultempl/xtensaelf.em: Likewise.
107 2006-09-15 Nick Clifton <nickc@redhat.com>
110 * ldlang.c (lang_size_sections_1): Do not abort when encountering
111 a non-empty section that is ignored. Instead produce a warning
114 2006-09-08 H.J. Lu <hongjiu.lu@intel.com>
116 * ld.texinfo: Document --dynamic-list-cpp-typeinfo.
118 2006-09-07 H.J. Lu <hongjiu.lu@intel.com>
120 * Makefile.am (CXX): Set to g++.
121 (CXX_FOR_TARGET): Likewise.
122 * Makefile.in: Regenerated.
124 * NEWS: Mention --dynamic-list.
126 * ld.texinfo: Document --dynamic-list.
128 * ldgram.y: Support dynamic list.
130 * ldlang.c (lang_process): Call lang_finalize_version_expr_head
131 on link_info.dynamic if needed.
132 (lang_append_dynamic_list): New.
133 (lang_append_dynamic_list_cpp_typeinfo): New.
134 * ldlang.h (lang_append_dynamic_list): Likewise.
135 * ldlang.h (lang_append_dynamic_list_cpp_typeinfo): Likewise.
137 * ldlex.h (input_enum): Add input_dynamic_list.
138 * ldlex.l: Handle it.
140 * ldmain.c (main): Initialize link_info.dynamic.
142 * lexsup.c (option_values): Add OPTION_DYNAMIC_LIST and
143 OPTION_DYNAMIC_LIST_CPP_TYPEINFO.
144 (ld_options): Add entries for OPTION_DYNAMIC_LIST and
145 OPTION_DYNAMIC_LIST_CPP_TYPEINFO.
146 (parse_args): Handle OPTION_DYNAMIC_LIST and
147 OPTION_DYNAMIC_LIST_CPP_TYPEINFO.
149 2006-09-07 Joel Sherrill <joel.sherrill@oarcorp.com>
151 * emulparams/h8300elf.sh: _tinydata should not be placed in
153 * emulparams/h8300.sh: Likewise.
154 * emulparams/h8300sxelf.sh: Likewise.
156 2006-09-05 H.J. Lu <hongjiu.lu@intel.com>
159 * emultempl/elf32.em: Enable "-z relro" only if $COMMONPAGESIZE
162 2006-08-29 Nathan Sidwell <nathan@codesourcery.com>
164 * ldlang.c (walk_wild): Allow * to glob '/' in wildcarded match.
166 2006-08-28 Alan Modra <amodra@bigpond.net.au>
168 * scripttempl/elf.sc: Ensure that crtbegin and crtend entries will
169 not match random object files in a path containing "crtbegin" or
170 "crtend" as part of a directory name.
171 * scripttempl/armbpabi.sc: Likewise.
172 * scripttempl/crisaout.sc: Likewise.
173 * scripttempl/elf32crx.sc: Likewise.
174 * scripttempl/elf32sh-symbian.sc: Likewise.
175 * scripttempl/elf_chaos.sc: Likewise.
176 * scripttempl/elfd10v.sc: Likewise.
177 * scripttempl/elfd30v.sc: Likewise.
178 * scripttempl/elfxtensa.sc: Likewise.
179 * scripttempl/iq2000.sc: Likewise.
180 * scripttempl/mmo.sc: Likewise.
181 * scripttempl/xstormy16.sc: Likewise.
183 2006-08-24 Bob Wilson <bob.wilson@acm.org>
185 * emulparams/elf32xtensa.sh (.xt.prop): Add .xt.prop.*.
186 * scripttempl/elfxtensa.sc (.text): Add .literal.*.
188 2006-08-24 Pedro Alves <pedro_alves@portugalmail.pt>
190 * ldlang.c (lang_size_sections_1, lang_assignment_statement_enum):
191 Adjust the current address of DEFAULT_MEMORY_REGION even
192 when dot hasn't changed.
194 2006-08-23 Alan Modra <amodra@bigpond.net.au>
196 * ldexp.c (fold_name <LOADADDR>): Return an absolute value
197 rather than a section relative value.
199 2006-08-22 Alan Modra <amodra@bigpond.net.au>
201 * NEWS: Mention LMA default change.
202 * ld.texinfo (Output Section LMA): Update default description.
203 (Location Counter): Clarify backward movement.
204 * ldlang.c (lang_size_sections_1): Leave non-alloc sections with
205 default lma equal to vma. Warn on backward movement of dot.
207 2006-08-22 Pedro Alves <pedro_alves@portugalmail.pt>
209 * configure.tgt: Set targ_emul to arm_wince_pe for ARM
212 2006-08-22 Pedro Alves <pedro_alves@portugalmail.pt>
214 * Makefile.am: Split arm-wince into its own emulation.
215 * Makefile.in: Regenerate.
216 * pe-dll.c : Define PE_ARCH_arm_wince.
217 (pe_detail_list): Add PE_ARCH_arm_wince case.
218 (make_one): Handle PE_ARCH_arm_epoc and PE_ARCH_arm_wince cases.
219 * emulparams/arm_wince_pe.sh: New file.
220 * emultempl/pe.em: Handle new TARGET_IS_arm_wince_pe define.
221 Remap bfd_arm_allocate_interworking_sections,
222 bfd_arm_get_bfd_for_interworking and
223 bfd_arm_process_before_allocation for arm-pe and arm-wince-pe
225 (gld_${EMULATION_NAME}_recognized_file): Handle arm-wince and
226 arm-epoc bfd format names.
228 2006-08-18 Paul Brook <paul@codesourcery.com>
230 * emultempl/armelf.em (arm_elf_before_allocation): Call
231 gld${EMULATION_NAME}_before_allocation after setting interworking bfd.
233 2006-08-17 Pedro Alves <pedro_alves@portugalmail.pt>
235 * pe-dll.c (autofilter_symbolprefixlist): Remove .idata$.
236 (generate_reloc): Revert to skipping sections without a SEC_LOAD flag,
237 and to not skipping .idata* sections.
239 2006-08-16 Alan Modra <amodra@bigpond.net.au>
242 * ldlang.h (lang_output_section_statement_type): Replace
243 "processed" field with "processed_vma" and "processed_lma".
244 * ldlang.c (lang_do_assignments_1): Move lma setting code..
245 (lang_size_sections_1): ..to here.
246 (lang_reset_memory_regions): Adjust for
247 lang_output_section_statement_type change.
248 * ldexp.c (fold_name): Likewise.
250 2006-08-08 Peter S. Mazinger <ps.m@gmx.net>
252 * emulparams/armelf.sh (MAXPAGESIZE): Changed to
253 "CONSTANT (MAXPAGESIZE)".
255 2006-08-08 H.J. Lu <hongjiu.lu@intel.com>
258 * ldlang.c (lang_section_bst_type): Moved to ...
261 * ldlang.h (lang_wild_statement_struct): Add a tree field.
263 * ldlang.c (wild_sort_fast): Use the tree field for BST.
265 (analyze_walk_wild_section_handler): Initialize the tree field.
267 2006-08-08 H.J. Lu <hongjiu.lu@intel.com>
270 * ldlang.c (update_wild_statements): Update the whole wild
273 2006-08-04 Nick Clifton <nickc@redhat.com>
274 Mike Frysinger <michael.frysinger@analog.com>
276 * scripttempl/elf.sc (USER_LABEL_PREFIX): Define.
277 (__preinit_array_start, __preinit_array_end, __init_array_start,
278 __init_array_end, __fini_array_start, __fini_array_end, edata, end):
279 Use ${USER_LABEL_PREFIX}.
280 * emulparams/bfin.sh (DATA_END_SYMBOLS,END_SYMBOLS): Unset.
281 (USER_LABEL_PREFIX): Set.
283 2006-08-04 Marcelo Tosatti <marcelo@kvack.org>
285 * ldmain.c (main): Initialise print_gc_sections field of link_info
287 * lexsup.c: Add --print-gc-sections and --no-print-gc-sections
289 * ld.texinfo: Document new switches.
290 * NEWS: Mention new switches.
292 2006-08-04 Richard Sandiford <richard@codesourcery.com>
293 Kazu Hirata <kazu@codesourcery.com>
294 Phil Edwards <phil@codesourcery.com>
296 * Makefile.am (ALL_EMULATIONS): Add eshelf_vxworks.o and
298 (eshelf_vxworks.c, eshlelf_vxworks.c): New rules.
299 * Makefile.in: Regenerate.
300 * configure.tgt (sh-*-vxworks): Use shelf_vxworks and
302 * emulparams/shelf_vxworks.sh: New file.
303 * emulparams/shlelf_vxworks.sh: Likewise.
304 * emulparams/vxworks.sh (FINI): Prefix _etext with ${SYMPREFIX}.
305 (OTHER_END_SYMBOLS): Likewise _ehdr.
306 (DATA_END_SYMBOLS): Likewise _edata.
307 * emultempl/vxworks.em (vxworks_after_open): Check whether output_bfd
308 is indeed an ELF file before dealing with --force-dynamic.
310 2006-08-02 Petr Salinger <Petr.Salinger@seznam.cz>
313 * emulparams/elf_x86_64_fbsd.sh (OUTPUT_FORMAT): Define as
314 elf64-x86-64-freebsd.
316 2006-08-01 H.J. Lu <hongjiu.lu@intel.com>
318 * ldlang.c (init_os): Add flags. Replace bfd_make_section with
319 bfd_make_section_with_flags.
320 (exp_init_os): Updated.
321 (lang_add_section): Call init_os with flags.
322 (map_input_to_output_sections): Likewise.
324 2006-07-29 Richard Sandiford <richard@codesourcery.com>
326 * Makefile.am (eelf32b4300.c): Update dependencies.
327 (eelf32bmip.c): Likewise.
328 (eelf32bsmip.c): Likewise.
329 (eelf32btsmip.c): Likewise.
330 (eelf32btsmipn32.c): Likewise.
331 (eelf32ltsmip.c): Likewise.
332 (eelf32ltsmipn32.c): Likewise.
333 (eelf32ebmip.c): Likewise.
334 (eelf32ebmipvxworks.c): Likewise.
335 (eelf32elmip.c): Likewise.
336 (eelf32elmipvxworks.c): Likewise.
337 (eelf32bmipn32.c): Likewise.
338 (eelf32lmip.c): Likewise.
339 (eelf32mipswindiss.c): Likewise.
340 (eelf32lsmip.c): Likewise.
341 (eelf64bmip.c): Likewise.
342 (eelf64btsmip.c): Likewise.
343 (eelf64ltsmip.c): Likewise.
344 (emipsbig.c): Likewise. Canonicalize ${GENSCRIPTS} line.
345 (emipsbsd.c): Likewise.
346 (emipsidt.c): Update dependencies.
347 (emipsidtl.c): Likewise.
348 (emipslit.c): Likewise.
349 (emipslnews.c): Likewise.
350 (emipspe.c): Likewise. Fix ${GENSCRIPTS} invocation.
351 * Makefile.in: Regenerate.
352 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define.
353 * emulparams/elf32bmipn32-defs.sh (EXTRA_EM_FILE): Likewise.
354 * emultempl/irix.em: Include emultempl/mipself.em.
355 * emultempl/mipself.em: New file.
357 2006-07-26 Alan Modra <amodra@bigpond.net.au>
359 * emultempl/elf-generic.em (map_segments): Reorganise loop so that
360 layout happens before segment map. Don't do segment map on
363 2006-07-26 Alan Modra <amodra@bigpond.net.au>
365 * ldexp.c (fold_name <LOADADDR>): Use the lma.
366 * ldlang.h (lang_memory_region_type): Delete old_length. Add
368 * ldlang.c (lang_memory_region_lookup): Init new field.
369 (lang_reset_memory_regions): Reset new field.
370 (lang_insert_orphan): Don't set load_base.
371 (lang_leave_overlay): Likewise.
372 (lang_size_sections_1): Delete unnecessary code setting lma_region
373 to region. Correct lma region check.
374 (lang_do_assignments_1): Rename output_section_statement parm
375 to current_os. Set lma from previous section in region.
377 * ldlang.c: Formatting.
379 2006-07-25 Bob Wilson <bob.wilson@acm.org>
381 * emultempl/xtensaelf.em (xtensa_strip_inconsistent_linkonce_sections):
382 Set discarded section's output_section to bfd_abs_section_ptr.
384 2006-07-26 Alan Modra <amodra@bigpond.net.au>
386 * ldlang.c (analyze_walk_wild_section_handler): Init handler_data
389 2006-07-24 Bob Wilson <bob.wilson@acm.org>
391 * emultempl/xtensaelf.em (is_inconsistent_linkonce_section): Add space
392 in dep_sec_name for null terminator. Make sure dep_sec_name has a
395 2006-07-14 Michael Wetherell <mike.wetherell@ntlworld.com>
397 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX, ELF_INTERPRETER_NAME):
398 Set for *-*-solaris2*.
400 2006-07-24 Ralk Wildenhues <Ralf.Wildenhues@gmx.de>
402 * ld.texinfo: Fix spelling mistakes.
403 * ldint.texinfo: Likewise.
405 2006-07-23 Sonal Santan <sonal.santan@xilinx.com>
407 * ldlang.c (lang_section_bst): New structure for sorting sections
409 (wild_sort_fast): New function: Insert a section into a binary
411 (output_section_callback_fast): New function: Store a section in
413 (output_section_callback_tree_to_list): New function: Convert a
415 (analyze_walk_wild_section_handler): Initialize handler_data
417 (wild): If the data is sorted by name use the BST method to sort
420 2006-07-19 Alan Modra <amodra@bigpond.net.au>
422 * ld.h (handle_asneeded_cref): Declare.
423 * ldcref.c: Include objalloc.h.
424 (old_table, old_count, old_tab, alloc_mark): New variables.
425 (tabsize, entsize, refsize, old_symcount): Likewise.
426 (add_cref): Use bfd_hash_allocate for refs.
427 (handle_asneeded_cref): New function.
428 * ldmain.c (notice): Call handle_asneeded_cref for NULL name.
430 2006-07-14 Michael Wetherell <mike.wetherell@ntlworld.com>
432 * configure.tgt (i[3-7]86-*-solaris2*, i[3-7]86-*-solaris*): Correct
433 typo setting targ_extra_libpath.
435 2006-07-10 Jakub Jelinek <jakub@redhat.com>
437 * scripttempl/elf.sc: Add .gnu.hash section.
438 * emultempl/elf32.em (OPTION_HASH_STYLE): Define.
439 (gld${EMULATION_NAME}_add_options): Register --hash-style option.
440 (gld${EMULATION_NAME}_handle_option): Handle it.
441 (gld${EMULATION_NAME}_list_options): Document it.
442 * ldmain.c (main): Initialize emit_hash and emit_gnu_hash.
443 * ld.texinfo: Document --hash-style option.
445 2006-07-10 Nick Clifton <nickc@redhat.com>
447 * po/zh_TW.po: New Chinese (traditional) translation.
448 * configure.in (ALL_LINGUAS): Add zh_TW.
449 * configure: Regenerate.
451 2006-07-07 Nick Clifton <nickc@redhat.com>
454 * ld.texinfo: Remove "Using LD" from the title since it is
457 2006-07-06 Mohammed Adnène Trojette <adn@diwi.org>
460 * ld.texinfo: Fix spelling mistakes.
462 2006-06-27 Pedro Alves <pedro_alves@portugalmail.pt>
463 Nick Clifton <nickc@redhat.com>
465 * emultempl/pe.em (gld_$_open_dynamic_archive): Compute maximum
466 length of format strings in the libname_fmt[] array, rather than
467 relying upon a statically chosen value. Adjust xmalloc call to
468 use this longest length.
470 2006-06-27 Nick Clifton <nickc@redhat.com>
472 * ld.texinfo (-rpath-link): Clarify distinction between -rpath and
475 2006-06-23 Daniel Jacobowitz <dan@codesourcery.com>
477 * configure.tgt (i[3-7]86-*-solaris2*, i[3-7]86-*-solaris*): Set
480 2006-06-23 Pedro Alves <pedro_alves@portugalmail.pt>
482 * pe-dll.c (pe_details_type): Add new pointer for symbols list
484 (autofilter_symbollist): Split into autofilter_symbollist_generic
485 and autofilter_symbollist_i386.
486 (pe_detail_list): Add autofilter_symbollist_i386 to i386 case and
487 autofilter_symbollist_generic for all the others.
488 (autofilter_symbolprefixlist): Moved _fmode, _impure_ptr, cygwin_attach_dll,
489 cygwin_premain0, cygwin_premain1, cygwin_premain2, cygwin_premain3, environ,
490 into autofilter_symbollist_i386.
491 (auto_export): Get autofilter_symbollist from pe_details.
493 2006-06-22 Nick Clifton <nickc@redhat.com>
496 * emultempl/pe.em (gld_$_after_open): When reporting non PE format
497 output files mention the file name and the fact that it is an
500 2006-06-22 Danny Smith <dannysmith@users.sourceforge.net>
502 * emultempl/pe.em (gld_${EMULATION_NAME}_open_dynamic_archive):
503 Restructure. Add native "%s.lib" format to search list
504 * ld.texinfo (node WIN32): Update documentation on dynamic lib
505 search order. Add another reason for using import libs.
507 2006-06-21 Mark Shinwell <shinwell@codesourcery.com>
509 * ldlang.c (lang_insert_orphan): Correctly handle the case where
510 the section is to end up after the section currently at the end
511 of the list in output_bfd.
513 2006-06-21 Hans-Peter Nilsson <hp@bitrange.com>
515 * emultempl/mmo.em: Improve comments. Explain why there's
518 2006-06-21 Alan Modra <amodra@bigpond.net.au>
520 * emultempl/elf-generic.em (gld${EMULATION_NAME}_map_segments): Limit
521 loop to ten iterations. Throw away any previous linker generated
523 * ldlang.c (lang_phdr_list): Make global.
524 * ldlang.h (lang_phdr_list): Declare.
525 * Makefile.am (ELF_GEN_DEPS): Define. Use in emul deps.
526 * Makefile.in: Regenerate.
528 2006-06-20 Alan Modra <amodra@bigpond.net.au>
530 * Makefile.am (ELF_DEPS): Define. Use in emul file deps. Fix
531 many ELF emul file deps that incorrectly said they needed elf32.em
532 instead of generic.em. Add genelf.em as required.
533 * Makefile.in: Regenerate.
534 * ldlang.c (lang_process): Call ldemul_finish before
535 lang_check_section_addresses.
536 * emulparams/arcelf.sh: Generic elf target needs genelf.
537 * emulparams/d30v_e.sh: Likewise.
538 * emulparams/d30v_o.sh: Likewise.
539 * emulparams/d30velf.sh: Likewise.
540 * emulparams/elf32_dlx.sh: Likewise.
541 * emulparams/elf32_i860.sh: Likewise.
542 * emulparams/elf32fr30.sh: Likewise.
543 * emulparams/elf32frv.sh: Likewise.
544 * emulparams/elf32iq10.sh: Likewise.
545 * emulparams/elf32iq2000.sh: Likewise.
546 * emulparams/elf32mt.sh: Likewise.
547 * emulparams/mn10200.sh: Likewise.
548 * emulparams/or32.sh: Likewise.
549 * emulparams/or32elf.sh: Likewise.
550 * emulparams/pjelf.sh: Likewise.
551 * emulparams/msp430all.sh: Likewise. Extract common entries.
552 * emulparams/pjlelf.sh: Include pjelf.sh.
553 * emulparams/elf32frvfd.sh (EXTRA_EM_FILE): Unset.
554 * emulparams/mn10300.sh (EXTRA_EM_FILE): Unset.
555 * emultempl/elf-generic.em: New file.
556 * emultempl/genelf.em: New file.
557 * emultempl/elf32.em: Include elf-generic.em.
558 (gld${EMULATION_NAME}_layout_sections_again): Delete.
559 (gld${EMULATION_NAME}_finish): Call gld${EMULATION_NAME}_map_segments.
560 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
561 (gld${EMULATION_NAME}_finish): Rename from hppaelf_finish. Call
562 gld${EMULATION_NAME}_map_segments.
563 (LDEMUL_FINISH): Update.
564 * emultempl/mmo.em: Correct comment. Include elf-bfd.h and
565 source elf-generic.em.
566 (mmo_finish): Call gld${EMULATION_NAME}_map_segments.
567 * emultempl/ppc64elf.em (ppc_layout_sections_again): Likewise.
568 (gld${EMULATION_NAME}_finish): Rename from ppc_finish. Call
569 gld${EMULATION_NAME}_map_segments.
570 (LDEMUL_FINISH): Update.
572 2006-06-19 Alan Modra <amodra@bigpond.net.au>
574 * ldexp.c (fold_name): Adjust bfd_sizeof_headers call.
576 2006-06-14 Kevin F. Quinn <kevquinn@gentoo.org>
578 * ld.texinfo: Document new -z lazy option.
579 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
581 (gld${EMULATION_NAME}_list_options): Update help text.
583 2006-06-12 Fred Fish <fnf@specifix.com>
585 * emulparams/elf32bmip.sh (OTHER_SECTIONS): Keep the
586 ".mdebug.<abi>" and ".gcc_compiled_long<size>" sections
587 generated by mips gcc.
589 2006-06-12 Thiemo Seufer <ths@mips.com>
591 * emulparams/elf64bmip.sh, emulparams/elf64btsmip.sh (COMMONPAGESIZE):
594 2006-06-09 Alan Modra <amodra@bigpond.net.au>
596 * ldlang.h (lang_input_statement_type): Use bitfields for booleans.
597 * ldlang.c (struct out_section_hash_entry): Rename from
598 output_statement_hash_entry. Delete output_section_statement_type
599 entry. Add statement_union_type entry. Adjust all users.
600 (output_section_statement_table): Rename from output_statement_table.
602 (output_section_statement_newfunc): Rename from
603 output_statement_newfunc. Adjust all users.
604 (output_section_statement_table_init): Rename from
605 output_statement_table_init. Adjust all users.
606 (output_section_statement_table_free): Rename from
607 output_statement_table_free. Adjust all users.
609 2006-06-07 Joseph S. Myers <joseph@codesourcery.com>
611 * po/Make-in (pdf, ps): New dummy targets.
613 2006-06-07 Alan Modra <amodra@bigpond.net.au>
615 * ldlang.h (enum section_type): Delete dsect_section, copy_section,
616 info_section and overlay_section. Add noalloc_section.
617 * ldlang.c (lang_add_section): Adjust.
618 * ldgram.y (type): Adjust.
620 2006-06-06 Alan Modra <amodra@bigpond.net.au>
622 * ldlang.c (init_os): Whitespace.
623 (map_input_to_output_sections): Don't init_os for lang_input_section.
624 (print_all_symbols): Remove forward declaration. Convert to ISO C.
626 2006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
628 * po/Make-in (top_builddir): Define.
630 2006-06-05 Alan Modra <amodra@bigpond.net.au>
632 * ldexp.c (exp_get_abs_int): Make error message the same as
633 others emitted in this file.
635 2006-06-05 Alan Modra <amodra@bigpond.net.au>
637 * config.in: Regenerate.
639 2006-06-05 Alan Modra <amodra@bigpond.net.au>
641 * ldlang.c (lookup_name): Delete dead code. Remove FIXMEs.
643 2006-06-03 Alan Modra <amodra@bigpond.net.au>
645 * emultempl/elf32.em (global_found): Make it a pointer.
646 (stat_needed, try_needed): Adjust.
647 (check_needed): Don't skip non-loaded as-needed entries. Only
648 consider entries with both filename and the_bfd non-null.
649 (after_open): Try loading non-loaded as-needed libs to satisfy
652 2006-06-02 Joseph S. Myers <joseph@codesourcery.com>
654 * Makefile.am (TEXI2DVI): Add -I $(top_srcdir)/../libiberty.
655 * Makefile.in: Regenerate.
657 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
659 * Makefile.am: Replace INTLLIBS and INTLDEPS with LIBINTL
660 and LIBINTL_DEP everywhere.
662 (INCLUDES): Use @INCINTL@.
663 * configure.in: Use ZW_GNU_GETTEXT_SISTER_DIR and AM_PO_SUBDIRS.
664 Remove local code for po/Makefile.
665 * Makefile.in, configure: Regenerated.
667 2006-05-30 H.J. Lu <hongjiu.lu@intel.com>
669 * emulparams/arcelf.sh (MAXPAGESIZE): Changed to
670 "CONSTANT (MAXPAGESIZE)".
671 * emulparams/armelf_nbsd.sh: Likewise.
672 * emulparams/armelf_vxworks.sh: Likewise.
673 * emulparams/armnto.sh: Likewise.
674 * emulparams/armsymbian.sh: Likewise.
675 * emulparams/crislinux.sh: Likewise.
676 * emulparams/elf32_i860.sh: Likewise.
677 * emulparams/elf32_i960.sh: Likewise.
678 * emulparams/elf32am33lin.sh: Likewise.
679 * emulparams/elf32bfinfd.sh: Likewise.
680 * emulparams/elf32bmipn32-defs.sh: Likewise.
681 * emulparams/elf32frvfd.sh: Likewise.
682 * emulparams/elf32i370.sh: Likewise.
683 * emulparams/elf32lppcnto.sh: Likewise.
684 * emulparams/elf32mcore.sh: Likewise.
685 * emulparams/elf32openrisc.sh: Likewise.
686 * emulparams/elf32ppcnto.sh: Likewise.
687 * emulparams/elf32ppcwindiss.sh: Likewise.
688 * emulparams/elf32vax.sh: Likewise.
689 * emulparams/elf32xc16x.sh: Likewise.
690 * emulparams/elf32xc16xl.sh: Likewise.
691 * emulparams/elf32xc16xs.sh: Likewise.
692 * emulparams/elf64_aix.sh: Likewise.
693 * emulparams/elf64hppa.sh: Likewise.
694 * emulparams/elf64mmix.sh: Likewise.
695 * emulparams/elf_i386_be.sh: Likewise.
696 * emulparams/elf_i386_chaos.sh: Likewise.
697 * emulparams/elf_i386_ldso.sh: Likewise.
698 * emulparams/hppa64linux.sh: Likewise.
699 * emulparams/hppalinux.sh: Likewise.
700 * emulparams/hppaobsd.sh: Likewise.
701 * emulparams/i386lynx.sh: Likewise.
702 * emulparams/i386moss.sh: Likewise.
703 * emulparams/i386nto.sh: Likewise.
704 * emulparams/i386nw.sh: Likewise.
705 * emulparams/m32relf_linux.sh: Likewise.
706 * emulparams/m68kpsos.sh: Likewise.
707 * emulparams/or32elf.sh: Likewise.
708 * emulparams/pjelf.sh: Likewise.
709 * emulparams/pjlelf.sh: Likewise.
710 * emulparams/ppclynx.sh: Likewise.
711 * emulparams/ppcnw.sh: Likewise.
712 * emulparams/shelf32_nbsd.sh : Likewise.
713 * emulparams/shelf_nbsd.sh: Likewise.
714 * emulparams/shelf_nto.sh: Likewise.
715 * emulparams/shlelf_nto.sh: Likewise.
716 * emulparams/xtensa-config.sh: Likewise.
718 * emulparams/armelf_linux.sh (MAXPAGESIZE): Changed to
719 "CONSTANT (MAXPAGESIZE)".
720 (COMMONPAGESIZE): Changed to "CONSTANT (COMMONPAGESIZE)".
721 * emulparams/elf32_sparc.sh: Likewise.
722 * emulparams/elf32bmip.sh: Likewise.
723 * emulparams/elf32ppccommon.sh: Likewise.
724 * emulparams/elf64_ia64.sh: Likewise.
725 * emulparams/elf64_s390.sh: Likewise.
726 * emulparams/elf64_sparc.sh: Likewise.
727 * emulparams/elf64alpha.sh: Likewise.
728 * emulparams/elf64ppc.sh: Likewise.
729 * emulparams/elf_i386.sh: Likewise.
730 * emulparams/elf_i386_vxworks.sh: Likewise.
731 * emulparams/elf_s390.sh: Likewise.
732 * emulparams/elf_x86_64.sh: Likewise.
733 * emulparams/shlelf32_linux.sh: Likewise.
734 * emulparams/shlelf_linux.sh: Likewise.
736 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Changed to
737 "CONSTANT (COMMONPAGESIZE)".
738 * emulparams/elf32btsmipn32.sh: Likewise.
740 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
741 "-z max-page-size=" and "-z common-page-size=".
742 (gld${EMULATION_NAME}_list_options): Likewise.
744 * ld.h (ld_config_type): Add maxpagesize and commonpagesize.
746 * ld.texinfo: Document "-z max-page-size=" and
747 "-z common-page-size=".
749 * ldexp.c (exp_print_token): Handle CONSTANT.
750 (fold_name): Likewise.
751 * ldgram.y: Likewise.
754 * ldmain.c (main): Initiliaze config.maxpagesize and
755 config.commonpagesize. Call bfd_emul_set_maxpagesize if
756 config.maxpagesize isn't 0. Call bfd_emul_set_commonpagesize if
757 config.commonpagesize config.maxpagesize isn't 0.
759 2006-05-30 Nick Clifton <nickc@redhat.com>
761 * po/es.po: Updated Spanish translation.
763 2006-05-25 H.J. Lu <hongjiu.lu@intel.com>
765 * emulparams/elf_x86_64.sh (MAXPAGESIZE): Updated to 0x200000.
767 2006-05-24 H.J. Lu <hongjiu.lu@intel.com>
770 * configure.in: Use ${srcdir}/../bfd/config.bfd to check 64bit
771 bfd. Support 64bit host for --enable-targets=all.
772 * configure: Regenerated.
774 2006-05-24 Nick Clifton <nickc@redhat.com>
776 * po/vi.po: Updated Vietnamese translation.
778 2006-05-24 Bjoern Haase <bjoern.m.haase@web.de>
780 * configure.tgt: Add avr6 to emulation list.
781 * Makefile.am: Add eavr6.o and corresponding rule.
782 * Makefile.in: Regenerate.
783 * emulparams/avr6.sh: New file.
784 * emulparams/avrX.sh (TEMPLATE_NAME): Use elf32 instead of generic
785 for target option support.
786 (EXTRA_EM_FILE): Add reference to new em template file avrelf.
787 * scripttempl/avr.sc: Add ".trampolines" section.
788 * emultempl/avrelf.em: Add new file for target specific options.
790 2006-05-22 Nick Clifton <nickc@redhat.com>
792 * scripttempl/elf32crx.sc (.rdata): Add .rodata.*.
794 2006-05-19 Alan Modra <amodra@bigpond.net.au>
796 * ldlang.c (lang_size_sections_1): Don't check mem regions for
797 os->ignored sections.
799 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
801 * ldlang.c (lang_size_sections): Call lang_reset_memory_regions
802 before redoing one_lang_size_sections_pass.
804 2006-05-11 Carlos O'Donell <carlos@codesourcery.com>
806 * ld.texinfo: Rename "Index" to "LD Index"
808 2006-05-11 Pedro Alves <pedro_alves@portugalmail.pt>
810 * pe-dll.c (autofilter_symbollist): Add Dllmain,
811 DllMainCRTStartup, _DllMainCRTStartup and .text.
812 (autofilter_liblist): Add libcegcc.
813 (autofilter_symbolprefixlist): Add __imp_ and .idata$.
814 (generate_reloc): Do not skip sections without a SEC_LOAD flag,
815 they can still contain relocs that need processing.
816 Skip the .idata$6 section.
817 (jmp_arm_bytes): New array: Contains byte codes for an ARM jump.
818 (make_one): Use the new array.
819 (make_import_fixup_entry): Use .idata$2 instead of .idata$3.
820 * emultempl/pe.em (MajorSubsystemVersion): Set to 3 for armpe.
822 2006-05-05 Alan Modra <amodra@bigpond.net.au>
824 * ld.texinfo: Document PowerPC and PowerPC64 options.
825 * gen-doc.texi: Enable.
827 2006-05-02 Daniel Jacobowitz <dan@codesourcery.com>
829 * Makefile.am (AM_MAKEINFOFLAGS): Add libiberty.
830 (TEXI2POD): Use AM_MAKEINFOFLAGS.
831 (configdoc.texi): Don't set top_srcdir.
832 * ld.texinfo: Don't use top_srcdir.
833 * aclocal.m4, Makefile.in: Regenerated.
835 2006-04-19 Alan Modra <amodra@bigpond.net.au>
837 * ldlang.c (wild): Tidy default_common_section loop.
838 (print_input_section): Format.
840 * configure: Regenerate.
842 2006-04-16 Daniel Jacobowitz <dan@codesourcery.com>
844 * po/POTFILES.in: Regenerated.
846 2006-04-16 Daniel Jacobowitz <dan@codesourcery.com>
848 * config.in: Regenerated.
850 2006-04-14 David Heine <dlheine@tensilica.com>
851 Bob Wilson <bob.wilson@acm.org>
853 * emultempl/xtensaelf.em (elf_xtensa_before_allocation): Call new
854 function to strip inconsistent linkonce sections.
855 (input_section_linked_worker, input_section_linked): New.
856 (is_inconsistent_linkonce_section): New.
857 (xtensa_strip_inconsistent_linkonce_sections): New.
859 2006-04-11 Diego Pettenò <flameeyes@gentoo.org>
861 * emultempl/elf32.em: Add support for elf-hints.h on FreeBSD
862 and Dragonfly targets.
863 * configure.in (AC_CHECK_HEADERS): Add elf-hints.h.
864 * Makefile.am (HFILES): Add elf-hints-local.h.
865 * elf-hints-local.h: New file.
866 * Makefile.in: Regenerate.
867 * configure: Regenerate.
869 2006-04-07 Bernhard Fischer <aldot@gcc.gnu.org>
871 * ld.texinfo: Fix typo in documentation of --check-sections.
873 2006-04-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
875 * ldlang.c (load_symbols): Set as_needed and add_needed according
876 to the corresponding script's fields while processing it.
878 2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
880 * Makefile.am: Add install-html, install-html-am, and
881 install-html-recursive targets.
882 * Makefile.in: Regenerate.
883 * configure.in: AC_SUBST datarootdir, docdir, htmldir.
884 * configure: Regenerate.
885 * po/Make-in: Add install-html target.
887 2006-04-06 H.J. Lu <hongjiu.lu@intel.com>
889 * emultempl/ia64elf.em: Set link_info.relax_pass to 2. Remove
890 link_info.need_relax_finalize.
892 * ldlang.c (relax_sections): New.
893 (lang_process): Use. Call relax_sections link_info.relax_pass
896 * ldmain.c (main): Set link_info.relax_pass to 1. Remove
897 link_info.need_relax_finalize.
899 2006-04-05 Alan Modra <amodra@bigpond.net.au>
901 * Makefile.am (GENSCRIPTS): Pass prefix.
902 * Makefile.in: Regenerate.
903 * genscripts.sh: Adjust for extra parameter.
904 * emultempl/elf32.em (parse_ld_so_conf): Return true iff file
906 (check_ld_so_conf): Use ${prefix}/etc/ld.so.conf if it exists.
909 2006-04-05 Richard Sandiford <richard@codesourcery.com>
910 Daniel Jacobowitz <dan@codesourcery.com>
912 * configure.tgt (sparc*-*-vxworks*): New stanza.
913 * emulparams/elf32_sparc_vxworks.sh: New file.
914 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_vxworks.o.
915 (eelf32_sparc_vxworks.c): New rule.
916 * Makefile.in: Regenerate.
918 2006-04-04 Eric Botcazou <ebotcazou@adacore.com>
920 * ldlang.c (lang_map): Print the list of discarded input sections.
921 (print_input_section): Change parameter and print zero-sized sections.
922 (print_statement): Adjust call to print_input_section.
924 2006-04-01 Danny Smith <dannysmith@users.sourceforge.net>
926 * deffilep.y (def_image_name): If LIBRARY or NAME statement
927 specifies an empty string, retain the name specified on command
929 * ld.texinfo: Document above.
931 2006-03-31 Jakub Jelinek <jakub@redhat.com>
933 * ldmisc.c (vfinfo): Revert 2005-10-05 changes. If
934 bfd_find_nearest_line succeeded for %C or %D, but filename
935 is NULL, print section+offset at the end.
937 2006-03-25 Bernd Schmidt <bernd.schmidt@analog.com>
939 * emulparams/elf32bfinfd.sh: New file.
940 * emultempl/bfin.em: Delete.
941 * emulparams/bfin.sh: Lose reference to bfin.em.
942 * Makefile.am (eelf32bfin.c): Likewise.
943 (eelf32bfinfd.c): New.
944 * Makefile.in: Regenerate.
945 * configure.tgt (bfin-*-elf, bfin-*-uclinux): Add elf32bfinfd to
948 2006-03-22 Richard Sandiford <richard@codesourcery.com>
949 Daniel Jacobowitz <dan@codesourcery.com>
950 Phil Edwards <phil@codesourcery.com>
951 Zack Weinberg <zack@codesourcery.com>
952 Mark Mitchell <mark@codesourcery.com>
953 Nathan Sidwell <nathan@codesourcery.com>
955 * configure.tgt (mips*el-*-vxworks*, mips*-*-vxworks*): Use
956 separate VxWorks emulations.
957 * emulparams/elf32ebmipvxworks.sh: New file.
958 * emulparams/elf32elmipvxworks.sh: New file.
959 * Makefile.am (ALL_EMULATIONS): Add eelf32ebmipvxworks.o and
960 eelf32elmipvxworks.o.
961 (eelf32ebmipvxworks.c, eelf32elmipvxworks.c): New rules.
962 * Makefile.in: Regenerate.
964 2006-03-16 Alan Modra <amodra@bigpond.net.au>
967 * ldcref.c (add_cref): Adjust bfd_hash_table_init calls.
968 * ldlang.c (output_statement_table_init, lang_init): Likewise.
969 * ldmain.c (add_ysym, add_wrap, add_keepsyms_file): Likewise.
970 (undefined_symbol): Likewise.
972 2006-03-07 Richard Sandiford <richard@codesourcery.com>
973 Daniel Jacobowitz <dan@codesourcery.com>
974 Zack Weinberg <zack@codesourcery.com>
975 Nathan Sidwell <nathan@codesourcery.com>
976 Paul Brook <paul@codesourcery.com>
977 Ricardo Anguiano <anguiano@codesourcery.com>
978 Phil Edwards <phil@codesourcery.com>
980 * emulparams/armelf_vxworks.sh: Include vxworks.sh.
981 (MAXPAGESIZE): Define.
982 * emulparams/vxworks.sh: Undefine EMBEDDED.
983 * Makefile.am (earmelf_vxworks.c): Depend on vxworks.sh and vxworks.em.
984 * Makefile.in: Regenerate.
986 2006-03-03 Bjoern Haase <bjoern.m.haase@web.de>
988 * scripttempl/avr.sc: Add *(.jumptables) *(.lowtext) sections.
989 Add KEEP() directives.
990 Add *(.data*) *(.rodata) and *(.rodata*) and *(.bss*) to .data and
991 .bss output sections.
993 2006-03-03 Richard Sandiford <richard@codesourcery.com>
995 * emulparams/vxworks.sh (VXWORKS_BASE_EM_FILE): New variable.
996 (EXTRA_EM_FILE): Define.
997 * emultempl/vxworks.em: New file.
998 * ld.texinfo (--force-dynamic): Document.
999 * Makefile.am (eelf32ppcvxworks.cm, eelf_i386_vxworks.c): Depend
1001 * Makefile.in: Regenerate.
1003 2006-03-02 Richard Sandiford <richard@codesourcery.com>
1005 * emulparams/elf32ppccommon.sh: New file, extracted from...
1006 * emulparams/elf32ppc.sh: ...here.
1007 * emulparams/elf32ppcvxworks.sh: Include elf32ppccommon.sh
1008 instead of elf32ppc.sh.
1009 (BSS_PLT): Remove override.
1010 * Makefile.am (eelf32lppc.c): Depend on elf32ppccommons.h.
1011 (eelf32lppcnto.c, eelf32lppcsim.c, eelf32ppcnto.c): Likewise.
1012 (eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppcsimm): Likewise.
1013 (eelf32ppclinux.c): Likewise.
1014 (eelf32ppcvxworks.c): Likewise. Add missing vxworks.sh dependency.
1015 * Makefile.in: Regenerate.
1017 2006-02-27 Carlos O'Donell <carlos@codesourcery.com>
1019 * Makefile.am: Add html target.
1020 * Makefile.in: Regenerate.
1021 * po/Make-in: Add html target.
1023 2006-02-17 Shrirang Khisti <shrirangk@kpitcummins.com>
1024 Anil Paranjape <anilp1@kpitcummins.com>
1025 Shilin Shakti <shilins@kpitcummins.com>
1027 * scripttemp/elf32xc16x.sc: Default linker script for tiny model.
1028 * scripttemp/elf32xc16xl.sc: Default linker script for large model.
1029 * scripttemp/elf32xc16xs.sc: Default linker script for small model.
1030 * emulparams/elf32xc16x.sh: Emulation script for tiny model.
1031 * emulparams/elf32xc16xl.sh: Emulation script for large model.
1032 * emulparams/elf32xc16xs.sh: Emulation script for small model.
1033 * Makefile.am: Add entry to make xc16x target.
1034 * Makefile.in: Regenerate.
1035 * configure.tgt: Specify default and other emulation parameters
1037 * NEWS: Announce the support for the new target.
1039 2006-02-16 Nick Hudson <nick.hudson@dsl.pipex.com>
1041 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1042 Use the traditional target.
1044 2006-02-13 Joseph S. Myers <joseph@codesourcery.com>
1046 * configure.tgt (arm*b-*-linux-gnueabi): Change to
1047 arm*b-*-linux-*eabi.
1048 (arm*-*-linux-gnueabi): Change to arm*-*-linux-*eabi.
1050 2006-02-08 H.J. Lu <hongjiu.lu@intel.com>
1053 * NEWS: Updated for the Linux linker search order change.
1055 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Call
1056 gld${EMULATION_NAME}_check_ld_so_conf before checking default
1057 search directories for DT_NEEDED entries.
1059 2006-02-07 Paul Brook <paul@codesourcery.com>
1061 * emultempl/armelf.em: Include elf/arm.h.
1062 (arm_elf_finish): Set low address bit if enty point is a Thumb
1065 2006-02-01 Danny Smith <dannysmith@users.sourceforge.net>
1067 * deffilep.y (def_image_name): If the image name does not have
1068 a suffix, append the default.
1069 * ld.texinfo: Document NAME, LIBRARY usage in PE-COFF .def files.
1071 2006-01-31 Danny Smith dannysmith@users.sourceforge.net
1073 * NEWS: Mention support for forward exports in PE-COFF dll's.
1074 * ld.texinfo: Expand documentation of EXPORT statements in
1077 2006-01-31 Filip Navara <navaraf@reactos.com>
1079 * deffile.h (struct def_file_export): Add field flag_forward.
1080 * pe-dll.c (process_def_file): Check for forward exports.
1081 (generate_edata): Generate forward export symbols.
1082 (fill_edata): Emit them.
1084 * pe-dll.c (process_def_file): Don't crash on malformed
1085 fastcall symbol names in .def file.
1087 2006-01-30 Nick Clifton <nickc@redhat.com>
1089 * po/vi.po: Updated Vietnamese translation.
1091 2006-01-27 Yitzchak Scott-Thoennes <sthoenna@efn.org>
1093 * pe-dll.c (pe_dll_generate_implib): Issue "Creating library
1094 file:" as informational message, not a warning.
1096 2006-01-18 Roger Sayle <roger@eyesopen.com>
1098 * emultempl/irix.em: Use lbasename instead of basename.
1100 2006-01-16 Nick Clifton <nickc@redhat.com>
1102 * po/zh_CN.po: New Chinese (simplified) translation.
1103 * configure.in (ALL_LINGUAS): Add "zh_CH".
1104 * configure: Regenerate.
1106 2006-01-16 Bernhard Fischer <aldot@gcc.gnu.org>
1108 * ld.texinfo (Options): Fix typo.
1110 For older changes see ChangeLog-2005
1116 version-control: never