1 2006-09-25 Bob Wilson <bob.wilson@acm.org>
3 * ld.texinfo (Options): Update description of local symbols for -X.
5 2006-09-23 H.J. Lu <hongjiu.lu@intel.com>
8 * scripttempl/elf.sc: Don't combine .gnu.linkonce.d.*personality*
9 and .gnu.linkonce.wi.* sections with .data and .debug_info for
12 2006-09-20 Kai Tietz <Kai.Tietz@onevision.com>
14 * configure.in: Add new target x86_64-pc-mingw64.
15 * configure: Regenerate.
16 * configure.tgt: Add definition of target emulation i386pep.
17 * Makefile.am: Add new target files for target-all.
18 * Makefile.in: Regenerate.
19 * pe-dll.c: Adjust to be inheritable by pep_dll.c as include.
20 Fix memory out of bounds excess for idata relocation section data.
21 * pep-dll.c: Add target specific shared object handling.
22 * pep-dll.h: Add target specific definitions for shared object handling.
23 * emulparams/i386pep.sh: Add new emulation params for target x86_64 coff.
24 * emultempl/pep.em: Add new emulation file for target x86_64 coff.
25 * po/POTFILES.in: Regenerate.
26 * scripttempl/pep.sc: Add linker script template for target x86_64 coff.
27 * NEWS: Mention new target.
29 2006-09-18 Thiemo Seufer <ths@networkno.de>
31 * configure.tgt: Add mips*el-sde-elf* and mips*-sde-elf*
34 2006-09-17 Mei Ligang <ligang@sunnorth.com.cn>
36 * emulparams/scoreelf.sh: New file.
37 * emultempl/scoreelf.em: New file.
38 * Makefile.am: Add Score files.
39 * Makefile.in: Regenerate.
40 * configure.tgt: Add Score target.
41 * NEWS: Mention new target support.
43 2006-09-16 Nick Clifton <nickc@redhat.com>
44 Pedro Alves <pedro_alves@portugalmail.pt>
46 * ldctor.c: Make use of new STRING_COMMA_LEN and CONST_STRNEQ
47 macros defined in bfd.h.
49 * ldwrite.c: Likewise.
52 * emultempl/aix.em: Likewise.
53 * emultempl/beos.em: Likewise.
54 * emultempl/elf32.em: Likewise.
55 * emultempl/pe.em: Likewise.
56 * emultempl/sunos.em: Likewise.
57 * emultempl/xtensaelf.em: Likewise.
59 2006-09-15 Nick Clifton <nickc@redhat.com>
62 * ldlang.c (lang_size_sections_1): Do not abort when encountering
63 a non-empty section that is ignored. Instead produce a warning
66 2006-09-08 H.J. Lu <hongjiu.lu@intel.com>
68 * ld.texinfo: Document --dynamic-list-cpp-typeinfo.
70 2006-09-07 H.J. Lu <hongjiu.lu@intel.com>
72 * Makefile.am (CXX): Set to g++.
73 (CXX_FOR_TARGET): Likewise.
74 * Makefile.in: Regenerated.
76 * NEWS: Mention --dynamic-list.
78 * ld.texinfo: Document --dynamic-list.
80 * ldgram.y: Support dynamic list.
82 * ldlang.c (lang_process): Call lang_finalize_version_expr_head
83 on link_info.dynamic if needed.
84 (lang_append_dynamic_list): New.
85 (lang_append_dynamic_list_cpp_typeinfo): New.
86 * ldlang.h (lang_append_dynamic_list): Likewise.
87 * ldlang.h (lang_append_dynamic_list_cpp_typeinfo): Likewise.
89 * ldlex.h (input_enum): Add input_dynamic_list.
92 * ldmain.c (main): Initialize link_info.dynamic.
94 * lexsup.c (option_values): Add OPTION_DYNAMIC_LIST and
95 OPTION_DYNAMIC_LIST_CPP_TYPEINFO.
96 (ld_options): Add entries for OPTION_DYNAMIC_LIST and
97 OPTION_DYNAMIC_LIST_CPP_TYPEINFO.
98 (parse_args): Handle OPTION_DYNAMIC_LIST and
99 OPTION_DYNAMIC_LIST_CPP_TYPEINFO.
101 2006-09-07 Joel Sherrill <joel.sherrill@oarcorp.com>
103 * emulparams/h8300elf.sh: _tinydata should not be placed in
105 * emulparams/h8300.sh: Likewise.
106 * emulparams/h8300sxelf.sh: Likewise.
108 2006-09-05 H.J. Lu <hongjiu.lu@intel.com>
111 * emultempl/elf32.em: Enable "-z relro" only if $COMMONPAGESIZE
114 2006-08-29 Nathan Sidwell <nathan@codesourcery.com>
116 * ldlang.c (walk_wild): Allow * to glob '/' in wildcarded match.
118 2006-08-28 Alan Modra <amodra@bigpond.net.au>
120 * scripttempl/elf.sc: Ensure that crtbegin and crtend entries will
121 not match random object files in a path containing "crtbegin" or
122 "crtend" as part of a directory name.
123 * scripttempl/armbpabi.sc: Likewise.
124 * scripttempl/crisaout.sc: Likewise.
125 * scripttempl/elf32crx.sc: Likewise.
126 * scripttempl/elf32sh-symbian.sc: Likewise.
127 * scripttempl/elf_chaos.sc: Likewise.
128 * scripttempl/elfd10v.sc: Likewise.
129 * scripttempl/elfd30v.sc: Likewise.
130 * scripttempl/elfxtensa.sc: Likewise.
131 * scripttempl/iq2000.sc: Likewise.
132 * scripttempl/mmo.sc: Likewise.
133 * scripttempl/xstormy16.sc: Likewise.
135 2006-08-24 Bob Wilson <bob.wilson@acm.org>
137 * emulparams/elf32xtensa.sh (.xt.prop): Add .xt.prop.*.
138 * scripttempl/elfxtensa.sc (.text): Add .literal.*.
140 2006-08-24 Pedro Alves <pedro_alves@portugalmail.pt>
142 * ldlang.c (lang_size_sections_1, lang_assignment_statement_enum):
143 Adjust the current address of DEFAULT_MEMORY_REGION even
144 when dot hasn't changed.
146 2006-08-23 Alan Modra <amodra@bigpond.net.au>
148 * ldexp.c (fold_name <LOADADDR>): Return an absolute value
149 rather than a section relative value.
151 2006-08-22 Alan Modra <amodra@bigpond.net.au>
153 * NEWS: Mention LMA default change.
154 * ld.texinfo (Output Section LMA): Update default description.
155 (Location Counter): Clarify backward movement.
156 * ldlang.c (lang_size_sections_1): Leave non-alloc sections with
157 default lma equal to vma. Warn on backward movement of dot.
159 2006-08-22 Pedro Alves <pedro_alves@portugalmail.pt>
161 * configure.tgt: Set targ_emul to arm_wince_pe for ARM
164 2006-08-22 Pedro Alves <pedro_alves@portugalmail.pt>
166 * Makefile.am: Split arm-wince into its own emulation.
167 * Makefile.in: Regenerate.
168 * pe-dll.c : Define PE_ARCH_arm_wince.
169 (pe_detail_list): Add PE_ARCH_arm_wince case.
170 (make_one): Handle PE_ARCH_arm_epoc and PE_ARCH_arm_wince cases.
171 * emulparams/arm_wince_pe.sh: New file.
172 * emultempl/pe.em: Handle new TARGET_IS_arm_wince_pe define.
173 Remap bfd_arm_allocate_interworking_sections,
174 bfd_arm_get_bfd_for_interworking and
175 bfd_arm_process_before_allocation for arm-pe and arm-wince-pe
177 (gld_${EMULATION_NAME}_recognized_file): Handle arm-wince and
178 arm-epoc bfd format names.
180 2006-08-18 Paul Brook <paul@codesourcery.com>
182 * emultempl/armelf.em (arm_elf_before_allocation): Call
183 gld${EMULATION_NAME}_before_allocation after setting interworking bfd.
185 2006-08-17 Pedro Alves <pedro_alves@portugalmail.pt>
187 * pe-dll.c (autofilter_symbolprefixlist): Remove .idata$.
188 (generate_reloc): Revert to skipping sections without a SEC_LOAD flag,
189 and to not skipping .idata* sections.
191 2006-08-16 Alan Modra <amodra@bigpond.net.au>
194 * ldlang.h (lang_output_section_statement_type): Replace
195 "processed" field with "processed_vma" and "processed_lma".
196 * ldlang.c (lang_do_assignments_1): Move lma setting code..
197 (lang_size_sections_1): ..to here.
198 (lang_reset_memory_regions): Adjust for
199 lang_output_section_statement_type change.
200 * ldexp.c (fold_name): Likewise.
202 2006-08-08 Peter S. Mazinger <ps.m@gmx.net>
204 * emulparams/armelf.sh (MAXPAGESIZE): Changed to
205 "CONSTANT (MAXPAGESIZE)".
207 2006-08-08 H.J. Lu <hongjiu.lu@intel.com>
210 * ldlang.c (lang_section_bst_type): Moved to ...
213 * ldlang.h (lang_wild_statement_struct): Add a tree field.
215 * ldlang.c (wild_sort_fast): Use the tree field for BST.
217 (analyze_walk_wild_section_handler): Initialize the tree field.
219 2006-08-08 H.J. Lu <hongjiu.lu@intel.com>
222 * ldlang.c (update_wild_statements): Update the whole wild
225 2006-08-04 Nick Clifton <nickc@redhat.com>
226 Mike Frysinger <michael.frysinger@analog.com>
228 * scripttempl/elf.sc (USER_LABEL_PREFIX): Define.
229 (__preinit_array_start, __preinit_array_end, __init_array_start,
230 __init_array_end, __fini_array_start, __fini_array_end, edata, end):
231 Use ${USER_LABEL_PREFIX}.
232 * emulparams/bfin.sh (DATA_END_SYMBOLS,END_SYMBOLS): Unset.
233 (USER_LABEL_PREFIX): Set.
235 2006-08-04 Marcelo Tosatti <marcelo@kvack.org>
237 * ldmain.c (main): Initialise print_gc_sections field of link_info
239 * lexsup.c: Add --print-gc-sections and --no-print-gc-sections
241 * ld.texinfo: Document new switches.
242 * NEWS: Mention new switches.
244 2006-08-04 Richard Sandiford <richard@codesourcery.com>
245 Kazu Hirata <kazu@codesourcery.com>
246 Phil Edwards <phil@codesourcery.com>
248 * Makefile.am (ALL_EMULATIONS): Add eshelf_vxworks.o and
250 (eshelf_vxworks.c, eshlelf_vxworks.c): New rules.
251 * Makefile.in: Regenerate.
252 * configure.tgt (sh-*-vxworks): Use shelf_vxworks and
254 * emulparams/shelf_vxworks.sh: New file.
255 * emulparams/shlelf_vxworks.sh: Likewise.
256 * emulparams/vxworks.sh (FINI): Prefix _etext with ${SYMPREFIX}.
257 (OTHER_END_SYMBOLS): Likewise _ehdr.
258 (DATA_END_SYMBOLS): Likewise _edata.
259 * emultempl/vxworks.em (vxworks_after_open): Check whether output_bfd
260 is indeed an ELF file before dealing with --force-dynamic.
262 2006-08-02 Petr Salinger <Petr.Salinger@seznam.cz>
265 * emulparams/elf_x86_64_fbsd.sh (OUTPUT_FORMAT): Define as
266 elf64-x86-64-freebsd.
268 2006-08-01 H.J. Lu <hongjiu.lu@intel.com>
270 * ldlang.c (init_os): Add flags. Replace bfd_make_section with
271 bfd_make_section_with_flags.
272 (exp_init_os): Updated.
273 (lang_add_section): Call init_os with flags.
274 (map_input_to_output_sections): Likewise.
276 2006-07-29 Richard Sandiford <richard@codesourcery.com>
278 * Makefile.am (eelf32b4300.c): Update dependencies.
279 (eelf32bmip.c): Likewise.
280 (eelf32bsmip.c): Likewise.
281 (eelf32btsmip.c): Likewise.
282 (eelf32btsmipn32.c): Likewise.
283 (eelf32ltsmip.c): Likewise.
284 (eelf32ltsmipn32.c): Likewise.
285 (eelf32ebmip.c): Likewise.
286 (eelf32ebmipvxworks.c): Likewise.
287 (eelf32elmip.c): Likewise.
288 (eelf32elmipvxworks.c): Likewise.
289 (eelf32bmipn32.c): Likewise.
290 (eelf32lmip.c): Likewise.
291 (eelf32mipswindiss.c): Likewise.
292 (eelf32lsmip.c): Likewise.
293 (eelf64bmip.c): Likewise.
294 (eelf64btsmip.c): Likewise.
295 (eelf64ltsmip.c): Likewise.
296 (emipsbig.c): Likewise. Canonicalize ${GENSCRIPTS} line.
297 (emipsbsd.c): Likewise.
298 (emipsidt.c): Update dependencies.
299 (emipsidtl.c): Likewise.
300 (emipslit.c): Likewise.
301 (emipslnews.c): Likewise.
302 (emipspe.c): Likewise. Fix ${GENSCRIPTS} invocation.
303 * Makefile.in: Regenerate.
304 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define.
305 * emulparams/elf32bmipn32-defs.sh (EXTRA_EM_FILE): Likewise.
306 * emultempl/irix.em: Include emultempl/mipself.em.
307 * emultempl/mipself.em: New file.
309 2006-07-26 Alan Modra <amodra@bigpond.net.au>
311 * emultempl/elf-generic.em (map_segments): Reorganise loop so that
312 layout happens before segment map. Don't do segment map on
315 2006-07-26 Alan Modra <amodra@bigpond.net.au>
317 * ldexp.c (fold_name <LOADADDR>): Use the lma.
318 * ldlang.h (lang_memory_region_type): Delete old_length. Add
320 * ldlang.c (lang_memory_region_lookup): Init new field.
321 (lang_reset_memory_regions): Reset new field.
322 (lang_insert_orphan): Don't set load_base.
323 (lang_leave_overlay): Likewise.
324 (lang_size_sections_1): Delete unnecessary code setting lma_region
325 to region. Correct lma region check.
326 (lang_do_assignments_1): Rename output_section_statement parm
327 to current_os. Set lma from previous section in region.
329 * ldlang.c: Formatting.
331 2006-07-25 Bob Wilson <bob.wilson@acm.org>
333 * emultempl/xtensaelf.em (xtensa_strip_inconsistent_linkonce_sections):
334 Set discarded section's output_section to bfd_abs_section_ptr.
336 2006-07-26 Alan Modra <amodra@bigpond.net.au>
338 * ldlang.c (analyze_walk_wild_section_handler): Init handler_data
341 2006-07-24 Bob Wilson <bob.wilson@acm.org>
343 * emultempl/xtensaelf.em (is_inconsistent_linkonce_section): Add space
344 in dep_sec_name for null terminator. Make sure dep_sec_name has a
347 2006-07-14 Michael Wetherell <mike.wetherell@ntlworld.com>
349 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX, ELF_INTERPRETER_NAME):
350 Set for *-*-solaris2*.
352 2006-07-24 Ralk Wildenhues <Ralf.Wildenhues@gmx.de>
354 * ld.texinfo: Fix spelling mistakes.
355 * ldint.texinfo: Likewise.
357 2006-07-23 Sonal Santan <sonal.santan@xilinx.com>
359 * ldlang.c (lang_section_bst): New structure for sorting sections
361 (wild_sort_fast): New function: Insert a section into a binary
363 (output_section_callback_fast): New function: Store a section in
365 (output_section_callback_tree_to_list): New function: Convert a
367 (analyze_walk_wild_section_handler): Initialize handler_data
369 (wild): If the data is sorted by name use the BST method to sort
372 2006-07-19 Alan Modra <amodra@bigpond.net.au>
374 * ld.h (handle_asneeded_cref): Declare.
375 * ldcref.c: Include objalloc.h.
376 (old_table, old_count, old_tab, alloc_mark): New variables.
377 (tabsize, entsize, refsize, old_symcount): Likewise.
378 (add_cref): Use bfd_hash_allocate for refs.
379 (handle_asneeded_cref): New function.
380 * ldmain.c (notice): Call handle_asneeded_cref for NULL name.
382 2006-07-14 Michael Wetherell <mike.wetherell@ntlworld.com>
384 * configure.tgt (i[3-7]86-*-solaris2*, i[3-7]86-*-solaris*): Correct
385 typo setting targ_extra_libpath.
387 2006-07-10 Jakub Jelinek <jakub@redhat.com>
389 * scripttempl/elf.sc: Add .gnu.hash section.
390 * emultempl/elf32.em (OPTION_HASH_STYLE): Define.
391 (gld${EMULATION_NAME}_add_options): Register --hash-style option.
392 (gld${EMULATION_NAME}_handle_option): Handle it.
393 (gld${EMULATION_NAME}_list_options): Document it.
394 * ldmain.c (main): Initialize emit_hash and emit_gnu_hash.
395 * ld.texinfo: Document --hash-style option.
397 2006-07-10 Nick Clifton <nickc@redhat.com>
399 * po/zh_TW.po: New Chinese (traditional) translation.
400 * configure.in (ALL_LINGUAS): Add zh_TW.
401 * configure: Regenerate.
403 2006-07-07 Nick Clifton <nickc@redhat.com>
406 * ld.texinfo: Remove "Using LD" from the title since it is
409 2006-07-06 Mohammed Adnène Trojette <adn@diwi.org>
412 * ld.texinfo: Fix spelling mistakes.
414 2006-06-27 Pedro Alves <pedro_alves@portugalmail.pt>
415 Nick Clifton <nickc@redhat.com>
417 * emultempl/pe.em (gld_$_open_dynamic_archive): Compute maximum
418 length of format strings in the libname_fmt[] array, rather than
419 relying upon a statically chosen value. Adjust xmalloc call to
420 use this longest length.
422 2006-06-27 Nick Clifton <nickc@redhat.com>
424 * ld.texinfo (-rpath-link): Clarify distinction between -rpath and
427 2006-06-23 Daniel Jacobowitz <dan@codesourcery.com>
429 * configure.tgt (i[3-7]86-*-solaris2*, i[3-7]86-*-solaris*): Set
432 2006-06-23 Pedro Alves <pedro_alves@portugalmail.pt>
434 * pe-dll.c (pe_details_type): Add new pointer for symbols list
436 (autofilter_symbollist): Split into autofilter_symbollist_generic
437 and autofilter_symbollist_i386.
438 (pe_detail_list): Add autofilter_symbollist_i386 to i386 case and
439 autofilter_symbollist_generic for all the others.
440 (autofilter_symbolprefixlist): Moved _fmode, _impure_ptr, cygwin_attach_dll,
441 cygwin_premain0, cygwin_premain1, cygwin_premain2, cygwin_premain3, environ,
442 into autofilter_symbollist_i386.
443 (auto_export): Get autofilter_symbollist from pe_details.
445 2006-06-22 Nick Clifton <nickc@redhat.com>
448 * emultempl/pe.em (gld_$_after_open): When reporting non PE format
449 output files mention the file name and the fact that it is an
452 2006-06-22 Danny Smith <dannysmith@users.sourceforge.net>
454 * emultempl/pe.em (gld_${EMULATION_NAME}_open_dynamic_archive):
455 Restructure. Add native "%s.lib" format to search list
456 * ld.texinfo (node WIN32): Update documentation on dynamic lib
457 search order. Add another reason for using import libs.
459 2006-06-21 Mark Shinwell <shinwell@codesourcery.com>
461 * ldlang.c (lang_insert_orphan): Correctly handle the case where
462 the section is to end up after the section currently at the end
463 of the list in output_bfd.
465 2006-06-21 Hans-Peter Nilsson <hp@bitrange.com>
467 * emultempl/mmo.em: Improve comments. Explain why there's
470 2006-06-21 Alan Modra <amodra@bigpond.net.au>
472 * emultempl/elf-generic.em (gld${EMULATION_NAME}_map_segments): Limit
473 loop to ten iterations. Throw away any previous linker generated
475 * ldlang.c (lang_phdr_list): Make global.
476 * ldlang.h (lang_phdr_list): Declare.
477 * Makefile.am (ELF_GEN_DEPS): Define. Use in emul deps.
478 * Makefile.in: Regenerate.
480 2006-06-20 Alan Modra <amodra@bigpond.net.au>
482 * Makefile.am (ELF_DEPS): Define. Use in emul file deps. Fix
483 many ELF emul file deps that incorrectly said they needed elf32.em
484 instead of generic.em. Add genelf.em as required.
485 * Makefile.in: Regenerate.
486 * ldlang.c (lang_process): Call ldemul_finish before
487 lang_check_section_addresses.
488 * emulparams/arcelf.sh: Generic elf target needs genelf.
489 * emulparams/d30v_e.sh: Likewise.
490 * emulparams/d30v_o.sh: Likewise.
491 * emulparams/d30velf.sh: Likewise.
492 * emulparams/elf32_dlx.sh: Likewise.
493 * emulparams/elf32_i860.sh: Likewise.
494 * emulparams/elf32fr30.sh: Likewise.
495 * emulparams/elf32frv.sh: Likewise.
496 * emulparams/elf32iq10.sh: Likewise.
497 * emulparams/elf32iq2000.sh: Likewise.
498 * emulparams/elf32mt.sh: Likewise.
499 * emulparams/mn10200.sh: Likewise.
500 * emulparams/or32.sh: Likewise.
501 * emulparams/or32elf.sh: Likewise.
502 * emulparams/pjelf.sh: Likewise.
503 * emulparams/msp430all.sh: Likewise. Extract common entries.
504 * emulparams/pjlelf.sh: Include pjelf.sh.
505 * emulparams/elf32frvfd.sh (EXTRA_EM_FILE): Unset.
506 * emulparams/mn10300.sh (EXTRA_EM_FILE): Unset.
507 * emultempl/elf-generic.em: New file.
508 * emultempl/genelf.em: New file.
509 * emultempl/elf32.em: Include elf-generic.em.
510 (gld${EMULATION_NAME}_layout_sections_again): Delete.
511 (gld${EMULATION_NAME}_finish): Call gld${EMULATION_NAME}_map_segments.
512 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
513 (gld${EMULATION_NAME}_finish): Rename from hppaelf_finish. Call
514 gld${EMULATION_NAME}_map_segments.
515 (LDEMUL_FINISH): Update.
516 * emultempl/mmo.em: Correct comment. Include elf-bfd.h and
517 source elf-generic.em.
518 (mmo_finish): Call gld${EMULATION_NAME}_map_segments.
519 * emultempl/ppc64elf.em (ppc_layout_sections_again): Likewise.
520 (gld${EMULATION_NAME}_finish): Rename from ppc_finish. Call
521 gld${EMULATION_NAME}_map_segments.
522 (LDEMUL_FINISH): Update.
524 2006-06-19 Alan Modra <amodra@bigpond.net.au>
526 * ldexp.c (fold_name): Adjust bfd_sizeof_headers call.
528 2006-06-14 Kevin F. Quinn <kevquinn@gentoo.org>
530 * ld.texinfo: Document new -z lazy option.
531 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
533 (gld${EMULATION_NAME}_list_options): Update help text.
535 2006-06-12 Fred Fish <fnf@specifix.com>
537 * emulparams/elf32bmip.sh (OTHER_SECTIONS): Keep the
538 ".mdebug.<abi>" and ".gcc_compiled_long<size>" sections
539 generated by mips gcc.
541 2006-06-12 Thiemo Seufer <ths@mips.com>
543 * emulparams/elf64bmip.sh, emulparams/elf64btsmip.sh (COMMONPAGESIZE):
546 2006-06-09 Alan Modra <amodra@bigpond.net.au>
548 * ldlang.h (lang_input_statement_type): Use bitfields for booleans.
549 * ldlang.c (struct out_section_hash_entry): Rename from
550 output_statement_hash_entry. Delete output_section_statement_type
551 entry. Add statement_union_type entry. Adjust all users.
552 (output_section_statement_table): Rename from output_statement_table.
554 (output_section_statement_newfunc): Rename from
555 output_statement_newfunc. Adjust all users.
556 (output_section_statement_table_init): Rename from
557 output_statement_table_init. Adjust all users.
558 (output_section_statement_table_free): Rename from
559 output_statement_table_free. Adjust all users.
561 2006-06-07 Joseph S. Myers <joseph@codesourcery.com>
563 * po/Make-in (pdf, ps): New dummy targets.
565 2006-06-07 Alan Modra <amodra@bigpond.net.au>
567 * ldlang.h (enum section_type): Delete dsect_section, copy_section,
568 info_section and overlay_section. Add noalloc_section.
569 * ldlang.c (lang_add_section): Adjust.
570 * ldgram.y (type): Adjust.
572 2006-06-06 Alan Modra <amodra@bigpond.net.au>
574 * ldlang.c (init_os): Whitespace.
575 (map_input_to_output_sections): Don't init_os for lang_input_section.
576 (print_all_symbols): Remove forward declaration. Convert to ISO C.
578 2006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
580 * po/Make-in (top_builddir): Define.
582 2006-06-05 Alan Modra <amodra@bigpond.net.au>
584 * ldexp.c (exp_get_abs_int): Make error message the same as
585 others emitted in this file.
587 2006-06-05 Alan Modra <amodra@bigpond.net.au>
589 * config.in: Regenerate.
591 2006-06-05 Alan Modra <amodra@bigpond.net.au>
593 * ldlang.c (lookup_name): Delete dead code. Remove FIXMEs.
595 2006-06-03 Alan Modra <amodra@bigpond.net.au>
597 * emultempl/elf32.em (global_found): Make it a pointer.
598 (stat_needed, try_needed): Adjust.
599 (check_needed): Don't skip non-loaded as-needed entries. Only
600 consider entries with both filename and the_bfd non-null.
601 (after_open): Try loading non-loaded as-needed libs to satisfy
604 2006-06-02 Joseph S. Myers <joseph@codesourcery.com>
606 * Makefile.am (TEXI2DVI): Add -I $(top_srcdir)/../libiberty.
607 * Makefile.in: Regenerate.
609 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
611 * Makefile.am: Replace INTLLIBS and INTLDEPS with LIBINTL
612 and LIBINTL_DEP everywhere.
614 (INCLUDES): Use @INCINTL@.
615 * configure.in: Use ZW_GNU_GETTEXT_SISTER_DIR and AM_PO_SUBDIRS.
616 Remove local code for po/Makefile.
617 * Makefile.in, configure: Regenerated.
619 2006-05-30 H.J. Lu <hongjiu.lu@intel.com>
621 * emulparams/arcelf.sh (MAXPAGESIZE): Changed to
622 "CONSTANT (MAXPAGESIZE)".
623 * emulparams/armelf_nbsd.sh: Likewise.
624 * emulparams/armelf_vxworks.sh: Likewise.
625 * emulparams/armnto.sh: Likewise.
626 * emulparams/armsymbian.sh: Likewise.
627 * emulparams/crislinux.sh: Likewise.
628 * emulparams/elf32_i860.sh: Likewise.
629 * emulparams/elf32_i960.sh: Likewise.
630 * emulparams/elf32am33lin.sh: Likewise.
631 * emulparams/elf32bfinfd.sh: Likewise.
632 * emulparams/elf32bmipn32-defs.sh: Likewise.
633 * emulparams/elf32frvfd.sh: Likewise.
634 * emulparams/elf32i370.sh: Likewise.
635 * emulparams/elf32lppcnto.sh: Likewise.
636 * emulparams/elf32mcore.sh: Likewise.
637 * emulparams/elf32openrisc.sh: Likewise.
638 * emulparams/elf32ppcnto.sh: Likewise.
639 * emulparams/elf32ppcwindiss.sh: Likewise.
640 * emulparams/elf32vax.sh: Likewise.
641 * emulparams/elf32xc16x.sh: Likewise.
642 * emulparams/elf32xc16xl.sh: Likewise.
643 * emulparams/elf32xc16xs.sh: Likewise.
644 * emulparams/elf64_aix.sh: Likewise.
645 * emulparams/elf64hppa.sh: Likewise.
646 * emulparams/elf64mmix.sh: Likewise.
647 * emulparams/elf_i386_be.sh: Likewise.
648 * emulparams/elf_i386_chaos.sh: Likewise.
649 * emulparams/elf_i386_ldso.sh: Likewise.
650 * emulparams/hppa64linux.sh: Likewise.
651 * emulparams/hppalinux.sh: Likewise.
652 * emulparams/hppaobsd.sh: Likewise.
653 * emulparams/i386lynx.sh: Likewise.
654 * emulparams/i386moss.sh: Likewise.
655 * emulparams/i386nto.sh: Likewise.
656 * emulparams/i386nw.sh: Likewise.
657 * emulparams/m32relf_linux.sh: Likewise.
658 * emulparams/m68kpsos.sh: Likewise.
659 * emulparams/or32elf.sh: Likewise.
660 * emulparams/pjelf.sh: Likewise.
661 * emulparams/pjlelf.sh: Likewise.
662 * emulparams/ppclynx.sh: Likewise.
663 * emulparams/ppcnw.sh: Likewise.
664 * emulparams/shelf32_nbsd.sh : Likewise.
665 * emulparams/shelf_nbsd.sh: Likewise.
666 * emulparams/shelf_nto.sh: Likewise.
667 * emulparams/shlelf_nto.sh: Likewise.
668 * emulparams/xtensa-config.sh: Likewise.
670 * emulparams/armelf_linux.sh (MAXPAGESIZE): Changed to
671 "CONSTANT (MAXPAGESIZE)".
672 (COMMONPAGESIZE): Changed to "CONSTANT (COMMONPAGESIZE)".
673 * emulparams/elf32_sparc.sh: Likewise.
674 * emulparams/elf32bmip.sh: Likewise.
675 * emulparams/elf32ppccommon.sh: Likewise.
676 * emulparams/elf64_ia64.sh: Likewise.
677 * emulparams/elf64_s390.sh: Likewise.
678 * emulparams/elf64_sparc.sh: Likewise.
679 * emulparams/elf64alpha.sh: Likewise.
680 * emulparams/elf64ppc.sh: Likewise.
681 * emulparams/elf_i386.sh: Likewise.
682 * emulparams/elf_i386_vxworks.sh: Likewise.
683 * emulparams/elf_s390.sh: Likewise.
684 * emulparams/elf_x86_64.sh: Likewise.
685 * emulparams/shlelf32_linux.sh: Likewise.
686 * emulparams/shlelf_linux.sh: Likewise.
688 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Changed to
689 "CONSTANT (COMMONPAGESIZE)".
690 * emulparams/elf32btsmipn32.sh: Likewise.
692 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
693 "-z max-page-size=" and "-z common-page-size=".
694 (gld${EMULATION_NAME}_list_options): Likewise.
696 * ld.h (ld_config_type): Add maxpagesize and commonpagesize.
698 * ld.texinfo: Document "-z max-page-size=" and
699 "-z common-page-size=".
701 * ldexp.c (exp_print_token): Handle CONSTANT.
702 (fold_name): Likewise.
703 * ldgram.y: Likewise.
706 * ldmain.c (main): Initiliaze config.maxpagesize and
707 config.commonpagesize. Call bfd_emul_set_maxpagesize if
708 config.maxpagesize isn't 0. Call bfd_emul_set_commonpagesize if
709 config.commonpagesize config.maxpagesize isn't 0.
711 2006-05-30 Nick Clifton <nickc@redhat.com>
713 * po/es.po: Updated Spanish translation.
715 2006-05-25 H.J. Lu <hongjiu.lu@intel.com>
717 * emulparams/elf_x86_64.sh (MAXPAGESIZE): Updated to 0x200000.
719 2006-05-24 H.J. Lu <hongjiu.lu@intel.com>
722 * configure.in: Use ${srcdir}/../bfd/config.bfd to check 64bit
723 bfd. Support 64bit host for --enable-targets=all.
724 * configure: Regenerated.
726 2006-05-24 Nick Clifton <nickc@redhat.com>
728 * po/vi.po: Updated Vietnamese translation.
730 2006-05-24 Bjoern Haase <bjoern.m.haase@web.de>
732 * configure.tgt: Add avr6 to emulation list.
733 * Makefile.am: Add eavr6.o and corresponding rule.
734 * Makefile.in: Regenerate.
735 * emulparams/avr6.sh: New file.
736 * emulparams/avrX.sh (TEMPLATE_NAME): Use elf32 instead of generic
737 for target option support.
738 (EXTRA_EM_FILE): Add reference to new em template file avrelf.
739 * scripttempl/avr.sc: Add ".trampolines" section.
740 * emultempl/avrelf.em: Add new file for target specific options.
742 2006-05-22 Nick Clifton <nickc@redhat.com>
744 * scripttempl/elf32crx.sc (.rdata): Add .rodata.*.
746 2006-05-19 Alan Modra <amodra@bigpond.net.au>
748 * ldlang.c (lang_size_sections_1): Don't check mem regions for
749 os->ignored sections.
751 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
753 * ldlang.c (lang_size_sections): Call lang_reset_memory_regions
754 before redoing one_lang_size_sections_pass.
756 2006-05-11 Carlos O'Donell <carlos@codesourcery.com>
758 * ld.texinfo: Rename "Index" to "LD Index"
760 2006-05-11 Pedro Alves <pedro_alves@portugalmail.pt>
762 * pe-dll.c (autofilter_symbollist): Add Dllmain,
763 DllMainCRTStartup, _DllMainCRTStartup and .text.
764 (autofilter_liblist): Add libcegcc.
765 (autofilter_symbolprefixlist): Add __imp_ and .idata$.
766 (generate_reloc): Do not skip sections without a SEC_LOAD flag,
767 they can still contain relocs that need processing.
768 Skip the .idata$6 section.
769 (jmp_arm_bytes): New array: Contains byte codes for an ARM jump.
770 (make_one): Use the new array.
771 (make_import_fixup_entry): Use .idata$2 instead of .idata$3.
772 * emultempl/pe.em (MajorSubsystemVersion): Set to 3 for armpe.
774 2006-05-05 Alan Modra <amodra@bigpond.net.au>
776 * ld.texinfo: Document PowerPC and PowerPC64 options.
777 * gen-doc.texi: Enable.
779 2006-05-02 Daniel Jacobowitz <dan@codesourcery.com>
781 * Makefile.am (AM_MAKEINFOFLAGS): Add libiberty.
782 (TEXI2POD): Use AM_MAKEINFOFLAGS.
783 (configdoc.texi): Don't set top_srcdir.
784 * ld.texinfo: Don't use top_srcdir.
785 * aclocal.m4, Makefile.in: Regenerated.
787 2006-04-19 Alan Modra <amodra@bigpond.net.au>
789 * ldlang.c (wild): Tidy default_common_section loop.
790 (print_input_section): Format.
792 * configure: Regenerate.
794 2006-04-16 Daniel Jacobowitz <dan@codesourcery.com>
796 * po/POTFILES.in: Regenerated.
798 2006-04-16 Daniel Jacobowitz <dan@codesourcery.com>
800 * config.in: Regenerated.
802 2006-04-14 David Heine <dlheine@tensilica.com>
803 Bob Wilson <bob.wilson@acm.org>
805 * emultempl/xtensaelf.em (elf_xtensa_before_allocation): Call new
806 function to strip inconsistent linkonce sections.
807 (input_section_linked_worker, input_section_linked): New.
808 (is_inconsistent_linkonce_section): New.
809 (xtensa_strip_inconsistent_linkonce_sections): New.
811 2006-04-11 Diego Pettenò <flameeyes@gentoo.org>
813 * emultempl/elf32.em: Add support for elf-hints.h on FreeBSD
814 and Dragonfly targets.
815 * configure.in (AC_CHECK_HEADERS): Add elf-hints.h.
816 * Makefile.am (HFILES): Add elf-hints-local.h.
817 * elf-hints-local.h: New file.
818 * Makefile.in: Regenerate.
819 * configure: Regenerate.
821 2006-04-07 Bernhard Fischer <aldot@gcc.gnu.org>
823 * ld.texinfo: Fix typo in documentation of --check-sections.
825 2006-04-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
827 * ldlang.c (load_symbols): Set as_needed and add_needed according
828 to the corresponding script's fields while processing it.
830 2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
832 * Makefile.am: Add install-html, install-html-am, and
833 install-html-recursive targets.
834 * Makefile.in: Regenerate.
835 * configure.in: AC_SUBST datarootdir, docdir, htmldir.
836 * configure: Regenerate.
837 * po/Make-in: Add install-html target.
839 2006-04-06 H.J. Lu <hongjiu.lu@intel.com>
841 * emultempl/ia64elf.em: Set link_info.relax_pass to 2. Remove
842 link_info.need_relax_finalize.
844 * ldlang.c (relax_sections): New.
845 (lang_process): Use. Call relax_sections link_info.relax_pass
848 * ldmain.c (main): Set link_info.relax_pass to 1. Remove
849 link_info.need_relax_finalize.
851 2006-04-05 Alan Modra <amodra@bigpond.net.au>
853 * Makefile.am (GENSCRIPTS): Pass prefix.
854 * Makefile.in: Regenerate.
855 * genscripts.sh: Adjust for extra parameter.
856 * emultempl/elf32.em (parse_ld_so_conf): Return true iff file
858 (check_ld_so_conf): Use ${prefix}/etc/ld.so.conf if it exists.
861 2006-04-05 Richard Sandiford <richard@codesourcery.com>
862 Daniel Jacobowitz <dan@codesourcery.com>
864 * configure.tgt (sparc*-*-vxworks*): New stanza.
865 * emulparams/elf32_sparc_vxworks.sh: New file.
866 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_vxworks.o.
867 (eelf32_sparc_vxworks.c): New rule.
868 * Makefile.in: Regenerate.
870 2006-04-04 Eric Botcazou <ebotcazou@adacore.com>
872 * ldlang.c (lang_map): Print the list of discarded input sections.
873 (print_input_section): Change parameter and print zero-sized sections.
874 (print_statement): Adjust call to print_input_section.
876 2006-04-01 Danny Smith <dannysmith@users.sourceforge.net>
878 * deffilep.y (def_image_name): If LIBRARY or NAME statement
879 specifies an empty string, retain the name specified on command
881 * ld.texinfo: Document above.
883 2006-03-31 Jakub Jelinek <jakub@redhat.com>
885 * ldmisc.c (vfinfo): Revert 2005-10-05 changes. If
886 bfd_find_nearest_line succeeded for %C or %D, but filename
887 is NULL, print section+offset at the end.
889 2006-03-25 Bernd Schmidt <bernd.schmidt@analog.com>
891 * emulparams/elf32bfinfd.sh: New file.
892 * emultempl/bfin.em: Delete.
893 * emulparams/bfin.sh: Lose reference to bfin.em.
894 * Makefile.am (eelf32bfin.c): Likewise.
895 (eelf32bfinfd.c): New.
896 * Makefile.in: Regenerate.
897 * configure.tgt (bfin-*-elf, bfin-*-uclinux): Add elf32bfinfd to
900 2006-03-22 Richard Sandiford <richard@codesourcery.com>
901 Daniel Jacobowitz <dan@codesourcery.com>
902 Phil Edwards <phil@codesourcery.com>
903 Zack Weinberg <zack@codesourcery.com>
904 Mark Mitchell <mark@codesourcery.com>
905 Nathan Sidwell <nathan@codesourcery.com>
907 * configure.tgt (mips*el-*-vxworks*, mips*-*-vxworks*): Use
908 separate VxWorks emulations.
909 * emulparams/elf32ebmipvxworks.sh: New file.
910 * emulparams/elf32elmipvxworks.sh: New file.
911 * Makefile.am (ALL_EMULATIONS): Add eelf32ebmipvxworks.o and
912 eelf32elmipvxworks.o.
913 (eelf32ebmipvxworks.c, eelf32elmipvxworks.c): New rules.
914 * Makefile.in: Regenerate.
916 2006-03-16 Alan Modra <amodra@bigpond.net.au>
919 * ldcref.c (add_cref): Adjust bfd_hash_table_init calls.
920 * ldlang.c (output_statement_table_init, lang_init): Likewise.
921 * ldmain.c (add_ysym, add_wrap, add_keepsyms_file): Likewise.
922 (undefined_symbol): Likewise.
924 2006-03-07 Richard Sandiford <richard@codesourcery.com>
925 Daniel Jacobowitz <dan@codesourcery.com>
926 Zack Weinberg <zack@codesourcery.com>
927 Nathan Sidwell <nathan@codesourcery.com>
928 Paul Brook <paul@codesourcery.com>
929 Ricardo Anguiano <anguiano@codesourcery.com>
930 Phil Edwards <phil@codesourcery.com>
932 * emulparams/armelf_vxworks.sh: Include vxworks.sh.
933 (MAXPAGESIZE): Define.
934 * emulparams/vxworks.sh: Undefine EMBEDDED.
935 * Makefile.am (earmelf_vxworks.c): Depend on vxworks.sh and vxworks.em.
936 * Makefile.in: Regenerate.
938 2006-03-03 Bjoern Haase <bjoern.m.haase@web.de>
940 * scripttempl/avr.sc: Add *(.jumptables) *(.lowtext) sections.
941 Add KEEP() directives.
942 Add *(.data*) *(.rodata) and *(.rodata*) and *(.bss*) to .data and
943 .bss output sections.
945 2006-03-03 Richard Sandiford <richard@codesourcery.com>
947 * emulparams/vxworks.sh (VXWORKS_BASE_EM_FILE): New variable.
948 (EXTRA_EM_FILE): Define.
949 * emultempl/vxworks.em: New file.
950 * ld.texinfo (--force-dynamic): Document.
951 * Makefile.am (eelf32ppcvxworks.cm, eelf_i386_vxworks.c): Depend
953 * Makefile.in: Regenerate.
955 2006-03-02 Richard Sandiford <richard@codesourcery.com>
957 * emulparams/elf32ppccommon.sh: New file, extracted from...
958 * emulparams/elf32ppc.sh: ...here.
959 * emulparams/elf32ppcvxworks.sh: Include elf32ppccommon.sh
960 instead of elf32ppc.sh.
961 (BSS_PLT): Remove override.
962 * Makefile.am (eelf32lppc.c): Depend on elf32ppccommons.h.
963 (eelf32lppcnto.c, eelf32lppcsim.c, eelf32ppcnto.c): Likewise.
964 (eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppcsimm): Likewise.
965 (eelf32ppclinux.c): Likewise.
966 (eelf32ppcvxworks.c): Likewise. Add missing vxworks.sh dependency.
967 * Makefile.in: Regenerate.
969 2006-02-27 Carlos O'Donell <carlos@codesourcery.com>
971 * Makefile.am: Add html target.
972 * Makefile.in: Regenerate.
973 * po/Make-in: Add html target.
975 2006-02-17 Shrirang Khisti <shrirangk@kpitcummins.com>
976 Anil Paranjape <anilp1@kpitcummins.com>
977 Shilin Shakti <shilins@kpitcummins.com>
979 * scripttemp/elf32xc16x.sc: Default linker script for tiny model.
980 * scripttemp/elf32xc16xl.sc: Default linker script for large model.
981 * scripttemp/elf32xc16xs.sc: Default linker script for small model.
982 * emulparams/elf32xc16x.sh: Emulation script for tiny model.
983 * emulparams/elf32xc16xl.sh: Emulation script for large model.
984 * emulparams/elf32xc16xs.sh: Emulation script for small model.
985 * Makefile.am: Add entry to make xc16x target.
986 * Makefile.in: Regenerate.
987 * configure.tgt: Specify default and other emulation parameters
989 * NEWS: Announce the support for the new target.
991 2006-02-16 Nick Hudson <nick.hudson@dsl.pipex.com>
993 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
994 Use the traditional target.
996 2006-02-13 Joseph S. Myers <joseph@codesourcery.com>
998 * configure.tgt (arm*b-*-linux-gnueabi): Change to
1000 (arm*-*-linux-gnueabi): Change to arm*-*-linux-*eabi.
1002 2006-02-08 H.J. Lu <hongjiu.lu@intel.com>
1005 * NEWS: Updated for the Linux linker search order change.
1007 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Call
1008 gld${EMULATION_NAME}_check_ld_so_conf before checking default
1009 search directories for DT_NEEDED entries.
1011 2006-02-07 Paul Brook <paul@codesourcery.com>
1013 * emultempl/armelf.em: Include elf/arm.h.
1014 (arm_elf_finish): Set low address bit if enty point is a Thumb
1017 2006-02-01 Danny Smith <dannysmith@users.sourceforge.net>
1019 * deffilep.y (def_image_name): If the image name does not have
1020 a suffix, append the default.
1021 * ld.texinfo: Document NAME, LIBRARY usage in PE-COFF .def files.
1023 2006-01-31 Danny Smith dannysmith@users.sourceforge.net
1025 * NEWS: Mention support for forward exports in PE-COFF dll's.
1026 * ld.texinfo: Expand documentation of EXPORT statements in
1029 2006-01-31 Filip Navara <navaraf@reactos.com>
1031 * deffile.h (struct def_file_export): Add field flag_forward.
1032 * pe-dll.c (process_def_file): Check for forward exports.
1033 (generate_edata): Generate forward export symbols.
1034 (fill_edata): Emit them.
1036 * pe-dll.c (process_def_file): Don't crash on malformed
1037 fastcall symbol names in .def file.
1039 2006-01-30 Nick Clifton <nickc@redhat.com>
1041 * po/vi.po: Updated Vietnamese translation.
1043 2006-01-27 Yitzchak Scott-Thoennes <sthoenna@efn.org>
1045 * pe-dll.c (pe_dll_generate_implib): Issue "Creating library
1046 file:" as informational message, not a warning.
1048 2006-01-18 Roger Sayle <roger@eyesopen.com>
1050 * emultempl/irix.em: Use lbasename instead of basename.
1052 2006-01-16 Nick Clifton <nickc@redhat.com>
1054 * po/zh_CN.po: New Chinese (simplified) translation.
1055 * configure.in (ALL_LINGUAS): Add "zh_CH".
1056 * configure: Regenerate.
1058 2006-01-16 Bernhard Fischer <aldot@gcc.gnu.org>
1060 * ld.texinfo (Options): Fix typo.
1062 For older changes see ChangeLog-2005
1068 version-control: never