1 2006-09-18 Thiemo Seufer <ths@networkno.de>
3 * configure.tgt: Add mips*el-sde-elf* and mips*-sde-elf*
6 2006-09-17 Mei Ligang <ligang@sunnorth.com.cn>
8 * emulparams/scoreelf.sh: New file.
9 * emultempl/scoreelf.em: New file.
10 * Makefile.am: Add Score files.
11 * Makefile.in: Regenerate.
12 * configure.tgt: Add Score target.
13 * NEWS: Mention new target support.
15 2006-09-16 Nick Clifton <nickc@redhat.com>
16 Pedro Alves <pedro_alves@portugalmail.pt>
18 * ldctor.c: Make use of new STRING_COMMA_LEN and CONST_STRNEQ
19 macros defined in bfd.h.
21 * ldwrite.c: Likewise.
24 * emultempl/aix.em: Likewise.
25 * emultempl/beos.em: Likewise.
26 * emultempl/elf32.em: Likewise.
27 * emultempl/pe.em: Likewise.
28 * emultempl/sunos.em: Likewise.
29 * emultempl/xtensaelf.em: Likewise.
31 2006-09-15 Nick Clifton <nickc@redhat.com>
34 * ldlang.c (lang_size_sections_1): Do not abort when encountering
35 a non-empty section that is ignored. Instead produce a warning
38 2006-09-08 H.J. Lu <hongjiu.lu@intel.com>
40 * ld.texinfo: Document --dynamic-list-cpp-typeinfo.
42 2006-09-07 H.J. Lu <hongjiu.lu@intel.com>
44 * Makefile.am (CXX): Set to g++.
45 (CXX_FOR_TARGET): Likewise.
46 * Makefile.in: Regenerated.
48 * NEWS: Mention --dynamic-list.
50 * ld.texinfo: Document --dynamic-list.
52 * ldgram.y: Support dynamic list.
54 * ldlang.c (lang_process): Call lang_finalize_version_expr_head
55 on link_info.dynamic if needed.
56 (lang_append_dynamic_list): New.
57 (lang_append_dynamic_list_cpp_typeinfo): New.
58 * ldlang.h (lang_append_dynamic_list): Likewise.
59 * ldlang.h (lang_append_dynamic_list_cpp_typeinfo): Likewise.
61 * ldlex.h (input_enum): Add input_dynamic_list.
64 * ldmain.c (main): Initialize link_info.dynamic.
66 * lexsup.c (option_values): Add OPTION_DYNAMIC_LIST and
67 OPTION_DYNAMIC_LIST_CPP_TYPEINFO.
68 (ld_options): Add entries for OPTION_DYNAMIC_LIST and
69 OPTION_DYNAMIC_LIST_CPP_TYPEINFO.
70 (parse_args): Handle OPTION_DYNAMIC_LIST and
71 OPTION_DYNAMIC_LIST_CPP_TYPEINFO.
73 2006-09-07 Joel Sherrill <joel.sherrill@oarcorp.com>
75 * emulparams/h8300elf.sh: _tinydata should not be placed in
77 * emulparams/h8300.sh: Likewise.
78 * emulparams/h8300sxelf.sh: Likewise.
80 2006-09-05 H.J. Lu <hongjiu.lu@intel.com>
83 * emultempl/elf32.em: Enable "-z relro" only if $COMMONPAGESIZE
86 2006-08-29 Nathan Sidwell <nathan@codesourcery.com>
88 * ldlang.c (walk_wild): Allow * to glob '/' in wildcarded match.
90 2006-08-28 Alan Modra <amodra@bigpond.net.au>
92 * scripttempl/elf.sc: Ensure that crtbegin and crtend entries will
93 not match random object files in a path containing "crtbegin" or
94 "crtend" as part of a directory name.
95 * scripttempl/armbpabi.sc: Likewise.
96 * scripttempl/crisaout.sc: Likewise.
97 * scripttempl/elf32crx.sc: Likewise.
98 * scripttempl/elf32sh-symbian.sc: Likewise.
99 * scripttempl/elf_chaos.sc: Likewise.
100 * scripttempl/elfd10v.sc: Likewise.
101 * scripttempl/elfd30v.sc: Likewise.
102 * scripttempl/elfxtensa.sc: Likewise.
103 * scripttempl/iq2000.sc: Likewise.
104 * scripttempl/mmo.sc: Likewise.
105 * scripttempl/xstormy16.sc: Likewise.
107 2006-08-24 Bob Wilson <bob.wilson@acm.org>
109 * emulparams/elf32xtensa.sh (.xt.prop): Add .xt.prop.*.
110 * scripttempl/elfxtensa.sc (.text): Add .literal.*.
112 2006-08-24 Pedro Alves <pedro_alves@portugalmail.pt>
114 * ldlang.c (lang_size_sections_1, lang_assignment_statement_enum):
115 Adjust the current address of DEFAULT_MEMORY_REGION even
116 when dot hasn't changed.
118 2006-08-23 Alan Modra <amodra@bigpond.net.au>
120 * ldexp.c (fold_name <LOADADDR>): Return an absolute value
121 rather than a section relative value.
123 2006-08-22 Alan Modra <amodra@bigpond.net.au>
125 * NEWS: Mention LMA default change.
126 * ld.texinfo (Output Section LMA): Update default description.
127 (Location Counter): Clarify backward movement.
128 * ldlang.c (lang_size_sections_1): Leave non-alloc sections with
129 default lma equal to vma. Warn on backward movement of dot.
131 2006-08-22 Pedro Alves <pedro_alves@portugalmail.pt>
133 * configure.tgt: Set targ_emul to arm_wince_pe for ARM
136 2006-08-22 Pedro Alves <pedro_alves@portugalmail.pt>
138 * Makefile.am: Split arm-wince into its own emulation.
139 * Makefile.in: Regenerate.
140 * pe-dll.c : Define PE_ARCH_arm_wince.
141 (pe_detail_list): Add PE_ARCH_arm_wince case.
142 (make_one): Handle PE_ARCH_arm_epoc and PE_ARCH_arm_wince cases.
143 * emulparams/arm_wince_pe.sh: New file.
144 * emultempl/pe.em: Handle new TARGET_IS_arm_wince_pe define.
145 Remap bfd_arm_allocate_interworking_sections,
146 bfd_arm_get_bfd_for_interworking and
147 bfd_arm_process_before_allocation for arm-pe and arm-wince-pe
149 (gld_${EMULATION_NAME}_recognized_file): Handle arm-wince and
150 arm-epoc bfd format names.
152 2006-08-18 Paul Brook <paul@codesourcery.com>
154 * emultempl/armelf.em (arm_elf_before_allocation): Call
155 gld${EMULATION_NAME}_before_allocation after setting interworking bfd.
157 2006-08-17 Pedro Alves <pedro_alves@portugalmail.pt>
159 * pe-dll.c (autofilter_symbolprefixlist): Remove .idata$.
160 (generate_reloc): Revert to skipping sections without a SEC_LOAD flag,
161 and to not skipping .idata* sections.
163 2006-08-16 Alan Modra <amodra@bigpond.net.au>
166 * ldlang.h (lang_output_section_statement_type): Replace
167 "processed" field with "processed_vma" and "processed_lma".
168 * ldlang.c (lang_do_assignments_1): Move lma setting code..
169 (lang_size_sections_1): ..to here.
170 (lang_reset_memory_regions): Adjust for
171 lang_output_section_statement_type change.
172 * ldexp.c (fold_name): Likewise.
174 2006-08-08 Peter S. Mazinger <ps.m@gmx.net>
176 * emulparams/armelf.sh (MAXPAGESIZE): Changed to
177 "CONSTANT (MAXPAGESIZE)".
179 2006-08-08 H.J. Lu <hongjiu.lu@intel.com>
182 * ldlang.c (lang_section_bst_type): Moved to ...
185 * ldlang.h (lang_wild_statement_struct): Add a tree field.
187 * ldlang.c (wild_sort_fast): Use the tree field for BST.
189 (analyze_walk_wild_section_handler): Initialize the tree field.
191 2006-08-08 H.J. Lu <hongjiu.lu@intel.com>
194 * ldlang.c (update_wild_statements): Update the whole wild
197 2006-08-04 Nick Clifton <nickc@redhat.com>
198 Mike Frysinger <michael.frysinger@analog.com>
200 * scripttempl/elf.sc (USER_LABEL_PREFIX): Define.
201 (__preinit_array_start, __preinit_array_end, __init_array_start,
202 __init_array_end, __fini_array_start, __fini_array_end, edata, end):
203 Use ${USER_LABEL_PREFIX}.
204 * emulparams/bfin.sh (DATA_END_SYMBOLS,END_SYMBOLS): Unset.
205 (USER_LABEL_PREFIX): Set.
207 2006-08-04 Marcelo Tosatti <marcelo@kvack.org>
209 * ldmain.c (main): Initialise print_gc_sections field of link_info
211 * lexsup.c: Add --print-gc-sections and --no-print-gc-sections
213 * ld.texinfo: Document new switches.
214 * NEWS: Mention new switches.
216 2006-08-04 Richard Sandiford <richard@codesourcery.com>
217 Kazu Hirata <kazu@codesourcery.com>
218 Phil Edwards <phil@codesourcery.com>
220 * Makefile.am (ALL_EMULATIONS): Add eshelf_vxworks.o and
222 (eshelf_vxworks.c, eshlelf_vxworks.c): New rules.
223 * Makefile.in: Regenerate.
224 * configure.tgt (sh-*-vxworks): Use shelf_vxworks and
226 * emulparams/shelf_vxworks.sh: New file.
227 * emulparams/shlelf_vxworks.sh: Likewise.
228 * emulparams/vxworks.sh (FINI): Prefix _etext with ${SYMPREFIX}.
229 (OTHER_END_SYMBOLS): Likewise _ehdr.
230 (DATA_END_SYMBOLS): Likewise _edata.
231 * emultempl/vxworks.em (vxworks_after_open): Check whether output_bfd
232 is indeed an ELF file before dealing with --force-dynamic.
234 2006-08-02 Petr Salinger <Petr.Salinger@seznam.cz>
237 * emulparams/elf_x86_64_fbsd.sh (OUTPUT_FORMAT): Define as
238 elf64-x86-64-freebsd.
240 2006-08-01 H.J. Lu <hongjiu.lu@intel.com>
242 * ldlang.c (init_os): Add flags. Replace bfd_make_section with
243 bfd_make_section_with_flags.
244 (exp_init_os): Updated.
245 (lang_add_section): Call init_os with flags.
246 (map_input_to_output_sections): Likewise.
248 2006-07-29 Richard Sandiford <richard@codesourcery.com>
250 * Makefile.am (eelf32b4300.c): Update dependencies.
251 (eelf32bmip.c): Likewise.
252 (eelf32bsmip.c): Likewise.
253 (eelf32btsmip.c): Likewise.
254 (eelf32btsmipn32.c): Likewise.
255 (eelf32ltsmip.c): Likewise.
256 (eelf32ltsmipn32.c): Likewise.
257 (eelf32ebmip.c): Likewise.
258 (eelf32ebmipvxworks.c): Likewise.
259 (eelf32elmip.c): Likewise.
260 (eelf32elmipvxworks.c): Likewise.
261 (eelf32bmipn32.c): Likewise.
262 (eelf32lmip.c): Likewise.
263 (eelf32mipswindiss.c): Likewise.
264 (eelf32lsmip.c): Likewise.
265 (eelf64bmip.c): Likewise.
266 (eelf64btsmip.c): Likewise.
267 (eelf64ltsmip.c): Likewise.
268 (emipsbig.c): Likewise. Canonicalize ${GENSCRIPTS} line.
269 (emipsbsd.c): Likewise.
270 (emipsidt.c): Update dependencies.
271 (emipsidtl.c): Likewise.
272 (emipslit.c): Likewise.
273 (emipslnews.c): Likewise.
274 (emipspe.c): Likewise. Fix ${GENSCRIPTS} invocation.
275 * Makefile.in: Regenerate.
276 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define.
277 * emulparams/elf32bmipn32-defs.sh (EXTRA_EM_FILE): Likewise.
278 * emultempl/irix.em: Include emultempl/mipself.em.
279 * emultempl/mipself.em: New file.
281 2006-07-26 Alan Modra <amodra@bigpond.net.au>
283 * emultempl/elf-generic.em (map_segments): Reorganise loop so that
284 layout happens before segment map. Don't do segment map on
287 2006-07-26 Alan Modra <amodra@bigpond.net.au>
289 * ldexp.c (fold_name <LOADADDR>): Use the lma.
290 * ldlang.h (lang_memory_region_type): Delete old_length. Add
292 * ldlang.c (lang_memory_region_lookup): Init new field.
293 (lang_reset_memory_regions): Reset new field.
294 (lang_insert_orphan): Don't set load_base.
295 (lang_leave_overlay): Likewise.
296 (lang_size_sections_1): Delete unnecessary code setting lma_region
297 to region. Correct lma region check.
298 (lang_do_assignments_1): Rename output_section_statement parm
299 to current_os. Set lma from previous section in region.
301 * ldlang.c: Formatting.
303 2006-07-25 Bob Wilson <bob.wilson@acm.org>
305 * emultempl/xtensaelf.em (xtensa_strip_inconsistent_linkonce_sections):
306 Set discarded section's output_section to bfd_abs_section_ptr.
308 2006-07-26 Alan Modra <amodra@bigpond.net.au>
310 * ldlang.c (analyze_walk_wild_section_handler): Init handler_data
313 2006-07-24 Bob Wilson <bob.wilson@acm.org>
315 * emultempl/xtensaelf.em (is_inconsistent_linkonce_section): Add space
316 in dep_sec_name for null terminator. Make sure dep_sec_name has a
319 2006-07-14 Michael Wetherell <mike.wetherell@ntlworld.com>
321 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX, ELF_INTERPRETER_NAME):
322 Set for *-*-solaris2*.
324 2006-07-24 Ralk Wildenhues <Ralf.Wildenhues@gmx.de>
326 * ld.texinfo: Fix spelling mistakes.
327 * ldint.texinfo: Likewise.
329 2006-07-23 Sonal Santan <sonal.santan@xilinx.com>
331 * ldlang.c (lang_section_bst): New structure for sorting sections
333 (wild_sort_fast): New function: Insert a section into a binary
335 (output_section_callback_fast): New function: Store a section in
337 (output_section_callback_tree_to_list): New function: Convert a
339 (analyze_walk_wild_section_handler): Initialize handler_data
341 (wild): If the data is sorted by name use the BST method to sort
344 2006-07-19 Alan Modra <amodra@bigpond.net.au>
346 * ld.h (handle_asneeded_cref): Declare.
347 * ldcref.c: Include objalloc.h.
348 (old_table, old_count, old_tab, alloc_mark): New variables.
349 (tabsize, entsize, refsize, old_symcount): Likewise.
350 (add_cref): Use bfd_hash_allocate for refs.
351 (handle_asneeded_cref): New function.
352 * ldmain.c (notice): Call handle_asneeded_cref for NULL name.
354 2006-07-14 Michael Wetherell <mike.wetherell@ntlworld.com>
356 * configure.tgt (i[3-7]86-*-solaris2*, i[3-7]86-*-solaris*): Correct
357 typo setting targ_extra_libpath.
359 2006-07-10 Jakub Jelinek <jakub@redhat.com>
361 * scripttempl/elf.sc: Add .gnu.hash section.
362 * emultempl/elf32.em (OPTION_HASH_STYLE): Define.
363 (gld${EMULATION_NAME}_add_options): Register --hash-style option.
364 (gld${EMULATION_NAME}_handle_option): Handle it.
365 (gld${EMULATION_NAME}_list_options): Document it.
366 * ldmain.c (main): Initialize emit_hash and emit_gnu_hash.
367 * ld.texinfo: Document --hash-style option.
369 2006-07-10 Nick Clifton <nickc@redhat.com>
371 * po/zh_TW.po: New Chinese (traditional) translation.
372 * configure.in (ALL_LINGUAS): Add zh_TW.
373 * configure: Regenerate.
375 2006-07-07 Nick Clifton <nickc@redhat.com>
378 * ld.texinfo: Remove "Using LD" from the title since it is
381 2006-07-06 Mohammed Adnène Trojette <adn@diwi.org>
384 * ld.texinfo: Fix spelling mistakes.
386 2006-06-27 Pedro Alves <pedro_alves@portugalmail.pt>
387 Nick Clifton <nickc@redhat.com>
389 * emultempl/pe.em (gld_$_open_dynamic_archive): Compute maximum
390 length of format strings in the libname_fmt[] array, rather than
391 relying upon a statically chosen value. Adjust xmalloc call to
392 use this longest length.
394 2006-06-27 Nick Clifton <nickc@redhat.com>
396 * ld.texinfo (-rpath-link): Clarify distinction between -rpath and
399 2006-06-23 Daniel Jacobowitz <dan@codesourcery.com>
401 * configure.tgt (i[3-7]86-*-solaris2*, i[3-7]86-*-solaris*): Set
404 2006-06-23 Pedro Alves <pedro_alves@portugalmail.pt>
406 * pe-dll.c (pe_details_type): Add new pointer for symbols list
408 (autofilter_symbollist): Split into autofilter_symbollist_generic
409 and autofilter_symbollist_i386.
410 (pe_detail_list): Add autofilter_symbollist_i386 to i386 case and
411 autofilter_symbollist_generic for all the others.
412 (autofilter_symbolprefixlist): Moved _fmode, _impure_ptr, cygwin_attach_dll,
413 cygwin_premain0, cygwin_premain1, cygwin_premain2, cygwin_premain3, environ,
414 into autofilter_symbollist_i386.
415 (auto_export): Get autofilter_symbollist from pe_details.
417 2006-06-22 Nick Clifton <nickc@redhat.com>
420 * emultempl/pe.em (gld_$_after_open): When reporting non PE format
421 output files mention the file name and the fact that it is an
424 2006-06-22 Danny Smith <dannysmith@users.sourceforge.net>
426 * emultempl/pe.em (gld_${EMULATION_NAME}_open_dynamic_archive):
427 Restructure. Add native "%s.lib" format to search list
428 * ld.texinfo (node WIN32): Update documentation on dynamic lib
429 search order. Add another reason for using import libs.
431 2006-06-21 Mark Shinwell <shinwell@codesourcery.com>
433 * ldlang.c (lang_insert_orphan): Correctly handle the case where
434 the section is to end up after the section currently at the end
435 of the list in output_bfd.
437 2006-06-21 Hans-Peter Nilsson <hp@bitrange.com>
439 * emultempl/mmo.em: Improve comments. Explain why there's
442 2006-06-21 Alan Modra <amodra@bigpond.net.au>
444 * emultempl/elf-generic.em (gld${EMULATION_NAME}_map_segments): Limit
445 loop to ten iterations. Throw away any previous linker generated
447 * ldlang.c (lang_phdr_list): Make global.
448 * ldlang.h (lang_phdr_list): Declare.
449 * Makefile.am (ELF_GEN_DEPS): Define. Use in emul deps.
450 * Makefile.in: Regenerate.
452 2006-06-20 Alan Modra <amodra@bigpond.net.au>
454 * Makefile.am (ELF_DEPS): Define. Use in emul file deps. Fix
455 many ELF emul file deps that incorrectly said they needed elf32.em
456 instead of generic.em. Add genelf.em as required.
457 * Makefile.in: Regenerate.
458 * ldlang.c (lang_process): Call ldemul_finish before
459 lang_check_section_addresses.
460 * emulparams/arcelf.sh: Generic elf target needs genelf.
461 * emulparams/d30v_e.sh: Likewise.
462 * emulparams/d30v_o.sh: Likewise.
463 * emulparams/d30velf.sh: Likewise.
464 * emulparams/elf32_dlx.sh: Likewise.
465 * emulparams/elf32_i860.sh: Likewise.
466 * emulparams/elf32fr30.sh: Likewise.
467 * emulparams/elf32frv.sh: Likewise.
468 * emulparams/elf32iq10.sh: Likewise.
469 * emulparams/elf32iq2000.sh: Likewise.
470 * emulparams/elf32mt.sh: Likewise.
471 * emulparams/mn10200.sh: Likewise.
472 * emulparams/or32.sh: Likewise.
473 * emulparams/or32elf.sh: Likewise.
474 * emulparams/pjelf.sh: Likewise.
475 * emulparams/msp430all.sh: Likewise. Extract common entries.
476 * emulparams/pjlelf.sh: Include pjelf.sh.
477 * emulparams/elf32frvfd.sh (EXTRA_EM_FILE): Unset.
478 * emulparams/mn10300.sh (EXTRA_EM_FILE): Unset.
479 * emultempl/elf-generic.em: New file.
480 * emultempl/genelf.em: New file.
481 * emultempl/elf32.em: Include elf-generic.em.
482 (gld${EMULATION_NAME}_layout_sections_again): Delete.
483 (gld${EMULATION_NAME}_finish): Call gld${EMULATION_NAME}_map_segments.
484 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
485 (gld${EMULATION_NAME}_finish): Rename from hppaelf_finish. Call
486 gld${EMULATION_NAME}_map_segments.
487 (LDEMUL_FINISH): Update.
488 * emultempl/mmo.em: Correct comment. Include elf-bfd.h and
489 source elf-generic.em.
490 (mmo_finish): Call gld${EMULATION_NAME}_map_segments.
491 * emultempl/ppc64elf.em (ppc_layout_sections_again): Likewise.
492 (gld${EMULATION_NAME}_finish): Rename from ppc_finish. Call
493 gld${EMULATION_NAME}_map_segments.
494 (LDEMUL_FINISH): Update.
496 2006-06-19 Alan Modra <amodra@bigpond.net.au>
498 * ldexp.c (fold_name): Adjust bfd_sizeof_headers call.
500 2006-06-14 Kevin F. Quinn <kevquinn@gentoo.org>
502 * ld.texinfo: Document new -z lazy option.
503 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
505 (gld${EMULATION_NAME}_list_options): Update help text.
507 2006-06-12 Fred Fish <fnf@specifix.com>
509 * emulparams/elf32bmip.sh (OTHER_SECTIONS): Keep the
510 ".mdebug.<abi>" and ".gcc_compiled_long<size>" sections
511 generated by mips gcc.
513 2006-06-12 Thiemo Seufer <ths@mips.com>
515 * emulparams/elf64bmip.sh, emulparams/elf64btsmip.sh (COMMONPAGESIZE):
518 2006-06-09 Alan Modra <amodra@bigpond.net.au>
520 * ldlang.h (lang_input_statement_type): Use bitfields for booleans.
521 * ldlang.c (struct out_section_hash_entry): Rename from
522 output_statement_hash_entry. Delete output_section_statement_type
523 entry. Add statement_union_type entry. Adjust all users.
524 (output_section_statement_table): Rename from output_statement_table.
526 (output_section_statement_newfunc): Rename from
527 output_statement_newfunc. Adjust all users.
528 (output_section_statement_table_init): Rename from
529 output_statement_table_init. Adjust all users.
530 (output_section_statement_table_free): Rename from
531 output_statement_table_free. Adjust all users.
533 2006-06-07 Joseph S. Myers <joseph@codesourcery.com>
535 * po/Make-in (pdf, ps): New dummy targets.
537 2006-06-07 Alan Modra <amodra@bigpond.net.au>
539 * ldlang.h (enum section_type): Delete dsect_section, copy_section,
540 info_section and overlay_section. Add noalloc_section.
541 * ldlang.c (lang_add_section): Adjust.
542 * ldgram.y (type): Adjust.
544 2006-06-06 Alan Modra <amodra@bigpond.net.au>
546 * ldlang.c (init_os): Whitespace.
547 (map_input_to_output_sections): Don't init_os for lang_input_section.
548 (print_all_symbols): Remove forward declaration. Convert to ISO C.
550 2006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
552 * po/Make-in (top_builddir): Define.
554 2006-06-05 Alan Modra <amodra@bigpond.net.au>
556 * ldexp.c (exp_get_abs_int): Make error message the same as
557 others emitted in this file.
559 2006-06-05 Alan Modra <amodra@bigpond.net.au>
561 * config.in: Regenerate.
563 2006-06-05 Alan Modra <amodra@bigpond.net.au>
565 * ldlang.c (lookup_name): Delete dead code. Remove FIXMEs.
567 2006-06-03 Alan Modra <amodra@bigpond.net.au>
569 * emultempl/elf32.em (global_found): Make it a pointer.
570 (stat_needed, try_needed): Adjust.
571 (check_needed): Don't skip non-loaded as-needed entries. Only
572 consider entries with both filename and the_bfd non-null.
573 (after_open): Try loading non-loaded as-needed libs to satisfy
576 2006-06-02 Joseph S. Myers <joseph@codesourcery.com>
578 * Makefile.am (TEXI2DVI): Add -I $(top_srcdir)/../libiberty.
579 * Makefile.in: Regenerate.
581 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
583 * Makefile.am: Replace INTLLIBS and INTLDEPS with LIBINTL
584 and LIBINTL_DEP everywhere.
586 (INCLUDES): Use @INCINTL@.
587 * configure.in: Use ZW_GNU_GETTEXT_SISTER_DIR and AM_PO_SUBDIRS.
588 Remove local code for po/Makefile.
589 * Makefile.in, configure: Regenerated.
591 2006-05-30 H.J. Lu <hongjiu.lu@intel.com>
593 * emulparams/arcelf.sh (MAXPAGESIZE): Changed to
594 "CONSTANT (MAXPAGESIZE)".
595 * emulparams/armelf_nbsd.sh: Likewise.
596 * emulparams/armelf_vxworks.sh: Likewise.
597 * emulparams/armnto.sh: Likewise.
598 * emulparams/armsymbian.sh: Likewise.
599 * emulparams/crislinux.sh: Likewise.
600 * emulparams/elf32_i860.sh: Likewise.
601 * emulparams/elf32_i960.sh: Likewise.
602 * emulparams/elf32am33lin.sh: Likewise.
603 * emulparams/elf32bfinfd.sh: Likewise.
604 * emulparams/elf32bmipn32-defs.sh: Likewise.
605 * emulparams/elf32frvfd.sh: Likewise.
606 * emulparams/elf32i370.sh: Likewise.
607 * emulparams/elf32lppcnto.sh: Likewise.
608 * emulparams/elf32mcore.sh: Likewise.
609 * emulparams/elf32openrisc.sh: Likewise.
610 * emulparams/elf32ppcnto.sh: Likewise.
611 * emulparams/elf32ppcwindiss.sh: Likewise.
612 * emulparams/elf32vax.sh: Likewise.
613 * emulparams/elf32xc16x.sh: Likewise.
614 * emulparams/elf32xc16xl.sh: Likewise.
615 * emulparams/elf32xc16xs.sh: Likewise.
616 * emulparams/elf64_aix.sh: Likewise.
617 * emulparams/elf64hppa.sh: Likewise.
618 * emulparams/elf64mmix.sh: Likewise.
619 * emulparams/elf_i386_be.sh: Likewise.
620 * emulparams/elf_i386_chaos.sh: Likewise.
621 * emulparams/elf_i386_ldso.sh: Likewise.
622 * emulparams/hppa64linux.sh: Likewise.
623 * emulparams/hppalinux.sh: Likewise.
624 * emulparams/hppaobsd.sh: Likewise.
625 * emulparams/i386lynx.sh: Likewise.
626 * emulparams/i386moss.sh: Likewise.
627 * emulparams/i386nto.sh: Likewise.
628 * emulparams/i386nw.sh: Likewise.
629 * emulparams/m32relf_linux.sh: Likewise.
630 * emulparams/m68kpsos.sh: Likewise.
631 * emulparams/or32elf.sh: Likewise.
632 * emulparams/pjelf.sh: Likewise.
633 * emulparams/pjlelf.sh: Likewise.
634 * emulparams/ppclynx.sh: Likewise.
635 * emulparams/ppcnw.sh: Likewise.
636 * emulparams/shelf32_nbsd.sh : Likewise.
637 * emulparams/shelf_nbsd.sh: Likewise.
638 * emulparams/shelf_nto.sh: Likewise.
639 * emulparams/shlelf_nto.sh: Likewise.
640 * emulparams/xtensa-config.sh: Likewise.
642 * emulparams/armelf_linux.sh (MAXPAGESIZE): Changed to
643 "CONSTANT (MAXPAGESIZE)".
644 (COMMONPAGESIZE): Changed to "CONSTANT (COMMONPAGESIZE)".
645 * emulparams/elf32_sparc.sh: Likewise.
646 * emulparams/elf32bmip.sh: Likewise.
647 * emulparams/elf32ppccommon.sh: Likewise.
648 * emulparams/elf64_ia64.sh: Likewise.
649 * emulparams/elf64_s390.sh: Likewise.
650 * emulparams/elf64_sparc.sh: Likewise.
651 * emulparams/elf64alpha.sh: Likewise.
652 * emulparams/elf64ppc.sh: Likewise.
653 * emulparams/elf_i386.sh: Likewise.
654 * emulparams/elf_i386_vxworks.sh: Likewise.
655 * emulparams/elf_s390.sh: Likewise.
656 * emulparams/elf_x86_64.sh: Likewise.
657 * emulparams/shlelf32_linux.sh: Likewise.
658 * emulparams/shlelf_linux.sh: Likewise.
660 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Changed to
661 "CONSTANT (COMMONPAGESIZE)".
662 * emulparams/elf32btsmipn32.sh: Likewise.
664 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
665 "-z max-page-size=" and "-z common-page-size=".
666 (gld${EMULATION_NAME}_list_options): Likewise.
668 * ld.h (ld_config_type): Add maxpagesize and commonpagesize.
670 * ld.texinfo: Document "-z max-page-size=" and
671 "-z common-page-size=".
673 * ldexp.c (exp_print_token): Handle CONSTANT.
674 (fold_name): Likewise.
675 * ldgram.y: Likewise.
678 * ldmain.c (main): Initiliaze config.maxpagesize and
679 config.commonpagesize. Call bfd_emul_set_maxpagesize if
680 config.maxpagesize isn't 0. Call bfd_emul_set_commonpagesize if
681 config.commonpagesize config.maxpagesize isn't 0.
683 2006-05-30 Nick Clifton <nickc@redhat.com>
685 * po/es.po: Updated Spanish translation.
687 2006-05-25 H.J. Lu <hongjiu.lu@intel.com>
689 * emulparams/elf_x86_64.sh (MAXPAGESIZE): Updated to 0x200000.
691 2006-05-24 H.J. Lu <hongjiu.lu@intel.com>
694 * configure.in: Use ${srcdir}/../bfd/config.bfd to check 64bit
695 bfd. Support 64bit host for --enable-targets=all.
696 * configure: Regenerated.
698 2006-05-24 Nick Clifton <nickc@redhat.com>
700 * po/vi.po: Updated Vietnamese translation.
702 2006-05-24 Bjoern Haase <bjoern.m.haase@web.de>
704 * configure.tgt: Add avr6 to emulation list.
705 * Makefile.am: Add eavr6.o and corresponding rule.
706 * Makefile.in: Regenerate.
707 * emulparams/avr6.sh: New file.
708 * emulparams/avrX.sh (TEMPLATE_NAME): Use elf32 instead of generic
709 for target option support.
710 (EXTRA_EM_FILE): Add reference to new em template file avrelf.
711 * scripttempl/avr.sc: Add ".trampolines" section.
712 * emultempl/avrelf.em: Add new file for target specific options.
714 2006-05-22 Nick Clifton <nickc@redhat.com>
716 * scripttempl/elf32crx.sc (.rdata): Add .rodata.*.
718 2006-05-19 Alan Modra <amodra@bigpond.net.au>
720 * ldlang.c (lang_size_sections_1): Don't check mem regions for
721 os->ignored sections.
723 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
725 * ldlang.c (lang_size_sections): Call lang_reset_memory_regions
726 before redoing one_lang_size_sections_pass.
728 2006-05-11 Carlos O'Donell <carlos@codesourcery.com>
730 * ld.texinfo: Rename "Index" to "LD Index"
732 2006-05-11 Pedro Alves <pedro_alves@portugalmail.pt>
734 * pe-dll.c (autofilter_symbollist): Add Dllmain,
735 DllMainCRTStartup, _DllMainCRTStartup and .text.
736 (autofilter_liblist): Add libcegcc.
737 (autofilter_symbolprefixlist): Add __imp_ and .idata$.
738 (generate_reloc): Do not skip sections without a SEC_LOAD flag,
739 they can still contain relocs that need processing.
740 Skip the .idata$6 section.
741 (jmp_arm_bytes): New array: Contains byte codes for an ARM jump.
742 (make_one): Use the new array.
743 (make_import_fixup_entry): Use .idata$2 instead of .idata$3.
744 * emultempl/pe.em (MajorSubsystemVersion): Set to 3 for armpe.
746 2006-05-05 Alan Modra <amodra@bigpond.net.au>
748 * ld.texinfo: Document PowerPC and PowerPC64 options.
749 * gen-doc.texi: Enable.
751 2006-05-02 Daniel Jacobowitz <dan@codesourcery.com>
753 * Makefile.am (AM_MAKEINFOFLAGS): Add libiberty.
754 (TEXI2POD): Use AM_MAKEINFOFLAGS.
755 (configdoc.texi): Don't set top_srcdir.
756 * ld.texinfo: Don't use top_srcdir.
757 * aclocal.m4, Makefile.in: Regenerated.
759 2006-04-19 Alan Modra <amodra@bigpond.net.au>
761 * ldlang.c (wild): Tidy default_common_section loop.
762 (print_input_section): Format.
764 * configure: Regenerate.
766 2006-04-16 Daniel Jacobowitz <dan@codesourcery.com>
768 * po/POTFILES.in: Regenerated.
770 2006-04-16 Daniel Jacobowitz <dan@codesourcery.com>
772 * config.in: Regenerated.
774 2006-04-14 David Heine <dlheine@tensilica.com>
775 Bob Wilson <bob.wilson@acm.org>
777 * emultempl/xtensaelf.em (elf_xtensa_before_allocation): Call new
778 function to strip inconsistent linkonce sections.
779 (input_section_linked_worker, input_section_linked): New.
780 (is_inconsistent_linkonce_section): New.
781 (xtensa_strip_inconsistent_linkonce_sections): New.
783 2006-04-11 Diego Pettenò <flameeyes@gentoo.org>
785 * emultempl/elf32.em: Add support for elf-hints.h on FreeBSD
786 and Dragonfly targets.
787 * configure.in (AC_CHECK_HEADERS): Add elf-hints.h.
788 * Makefile.am (HFILES): Add elf-hints-local.h.
789 * elf-hints-local.h: New file.
790 * Makefile.in: Regenerate.
791 * configure: Regenerate.
793 2006-04-07 Bernhard Fischer <aldot@gcc.gnu.org>
795 * ld.texinfo: Fix typo in documentation of --check-sections.
797 2006-04-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
799 * ldlang.c (load_symbols): Set as_needed and add_needed according
800 to the corresponding script's fields while processing it.
802 2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
804 * Makefile.am: Add install-html, install-html-am, and
805 install-html-recursive targets.
806 * Makefile.in: Regenerate.
807 * configure.in: AC_SUBST datarootdir, docdir, htmldir.
808 * configure: Regenerate.
809 * po/Make-in: Add install-html target.
811 2006-04-06 H.J. Lu <hongjiu.lu@intel.com>
813 * emultempl/ia64elf.em: Set link_info.relax_pass to 2. Remove
814 link_info.need_relax_finalize.
816 * ldlang.c (relax_sections): New.
817 (lang_process): Use. Call relax_sections link_info.relax_pass
820 * ldmain.c (main): Set link_info.relax_pass to 1. Remove
821 link_info.need_relax_finalize.
823 2006-04-05 Alan Modra <amodra@bigpond.net.au>
825 * Makefile.am (GENSCRIPTS): Pass prefix.
826 * Makefile.in: Regenerate.
827 * genscripts.sh: Adjust for extra parameter.
828 * emultempl/elf32.em (parse_ld_so_conf): Return true iff file
830 (check_ld_so_conf): Use ${prefix}/etc/ld.so.conf if it exists.
833 2006-04-05 Richard Sandiford <richard@codesourcery.com>
834 Daniel Jacobowitz <dan@codesourcery.com>
836 * configure.tgt (sparc*-*-vxworks*): New stanza.
837 * emulparams/elf32_sparc_vxworks.sh: New file.
838 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_vxworks.o.
839 (eelf32_sparc_vxworks.c): New rule.
840 * Makefile.in: Regenerate.
842 2006-04-04 Eric Botcazou <ebotcazou@adacore.com>
844 * ldlang.c (lang_map): Print the list of discarded input sections.
845 (print_input_section): Change parameter and print zero-sized sections.
846 (print_statement): Adjust call to print_input_section.
848 2006-04-01 Danny Smith <dannysmith@users.sourceforge.net>
850 * deffilep.y (def_image_name): If LIBRARY or NAME statement
851 specifies an empty string, retain the name specified on command
853 * ld.texinfo: Document above.
855 2006-03-31 Jakub Jelinek <jakub@redhat.com>
857 * ldmisc.c (vfinfo): Revert 2005-10-05 changes. If
858 bfd_find_nearest_line succeeded for %C or %D, but filename
859 is NULL, print section+offset at the end.
861 2006-03-25 Bernd Schmidt <bernd.schmidt@analog.com>
863 * emulparams/elf32bfinfd.sh: New file.
864 * emultempl/bfin.em: Delete.
865 * emulparams/bfin.sh: Lose reference to bfin.em.
866 * Makefile.am (eelf32bfin.c): Likewise.
867 (eelf32bfinfd.c): New.
868 * Makefile.in: Regenerate.
869 * configure.tgt (bfin-*-elf, bfin-*-uclinux): Add elf32bfinfd to
872 2006-03-22 Richard Sandiford <richard@codesourcery.com>
873 Daniel Jacobowitz <dan@codesourcery.com>
874 Phil Edwards <phil@codesourcery.com>
875 Zack Weinberg <zack@codesourcery.com>
876 Mark Mitchell <mark@codesourcery.com>
877 Nathan Sidwell <nathan@codesourcery.com>
879 * configure.tgt (mips*el-*-vxworks*, mips*-*-vxworks*): Use
880 separate VxWorks emulations.
881 * emulparams/elf32ebmipvxworks.sh: New file.
882 * emulparams/elf32elmipvxworks.sh: New file.
883 * Makefile.am (ALL_EMULATIONS): Add eelf32ebmipvxworks.o and
884 eelf32elmipvxworks.o.
885 (eelf32ebmipvxworks.c, eelf32elmipvxworks.c): New rules.
886 * Makefile.in: Regenerate.
888 2006-03-16 Alan Modra <amodra@bigpond.net.au>
891 * ldcref.c (add_cref): Adjust bfd_hash_table_init calls.
892 * ldlang.c (output_statement_table_init, lang_init): Likewise.
893 * ldmain.c (add_ysym, add_wrap, add_keepsyms_file): Likewise.
894 (undefined_symbol): Likewise.
896 2006-03-07 Richard Sandiford <richard@codesourcery.com>
897 Daniel Jacobowitz <dan@codesourcery.com>
898 Zack Weinberg <zack@codesourcery.com>
899 Nathan Sidwell <nathan@codesourcery.com>
900 Paul Brook <paul@codesourcery.com>
901 Ricardo Anguiano <anguiano@codesourcery.com>
902 Phil Edwards <phil@codesourcery.com>
904 * emulparams/armelf_vxworks.sh: Include vxworks.sh.
905 (MAXPAGESIZE): Define.
906 * emulparams/vxworks.sh: Undefine EMBEDDED.
907 * Makefile.am (earmelf_vxworks.c): Depend on vxworks.sh and vxworks.em.
908 * Makefile.in: Regenerate.
910 2006-03-03 Bjoern Haase <bjoern.m.haase@web.de>
912 * scripttempl/avr.sc: Add *(.jumptables) *(.lowtext) sections.
913 Add KEEP() directives.
914 Add *(.data*) *(.rodata) and *(.rodata*) and *(.bss*) to .data and
915 .bss output sections.
917 2006-03-03 Richard Sandiford <richard@codesourcery.com>
919 * emulparams/vxworks.sh (VXWORKS_BASE_EM_FILE): New variable.
920 (EXTRA_EM_FILE): Define.
921 * emultempl/vxworks.em: New file.
922 * ld.texinfo (--force-dynamic): Document.
923 * Makefile.am (eelf32ppcvxworks.cm, eelf_i386_vxworks.c): Depend
925 * Makefile.in: Regenerate.
927 2006-03-02 Richard Sandiford <richard@codesourcery.com>
929 * emulparams/elf32ppccommon.sh: New file, extracted from...
930 * emulparams/elf32ppc.sh: ...here.
931 * emulparams/elf32ppcvxworks.sh: Include elf32ppccommon.sh
932 instead of elf32ppc.sh.
933 (BSS_PLT): Remove override.
934 * Makefile.am (eelf32lppc.c): Depend on elf32ppccommons.h.
935 (eelf32lppcnto.c, eelf32lppcsim.c, eelf32ppcnto.c): Likewise.
936 (eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppcsimm): Likewise.
937 (eelf32ppclinux.c): Likewise.
938 (eelf32ppcvxworks.c): Likewise. Add missing vxworks.sh dependency.
939 * Makefile.in: Regenerate.
941 2006-02-27 Carlos O'Donell <carlos@codesourcery.com>
943 * Makefile.am: Add html target.
944 * Makefile.in: Regenerate.
945 * po/Make-in: Add html target.
947 2006-02-17 Shrirang Khisti <shrirangk@kpitcummins.com>
948 Anil Paranjape <anilp1@kpitcummins.com>
949 Shilin Shakti <shilins@kpitcummins.com>
951 * scripttemp/elf32xc16x.sc: Default linker script for tiny model.
952 * scripttemp/elf32xc16xl.sc: Default linker script for large model.
953 * scripttemp/elf32xc16xs.sc: Default linker script for small model.
954 * emulparams/elf32xc16x.sh: Emulation script for tiny model.
955 * emulparams/elf32xc16xl.sh: Emulation script for large model.
956 * emulparams/elf32xc16xs.sh: Emulation script for small model.
957 * Makefile.am: Add entry to make xc16x target.
958 * Makefile.in: Regenerate.
959 * configure.tgt: Specify default and other emulation parameters
961 * NEWS: Announce the support for the new target.
963 2006-02-16 Nick Hudson <nick.hudson@dsl.pipex.com>
965 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
966 Use the traditional target.
968 2006-02-13 Joseph S. Myers <joseph@codesourcery.com>
970 * configure.tgt (arm*b-*-linux-gnueabi): Change to
972 (arm*-*-linux-gnueabi): Change to arm*-*-linux-*eabi.
974 2006-02-08 H.J. Lu <hongjiu.lu@intel.com>
977 * NEWS: Updated for the Linux linker search order change.
979 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Call
980 gld${EMULATION_NAME}_check_ld_so_conf before checking default
981 search directories for DT_NEEDED entries.
983 2006-02-07 Paul Brook <paul@codesourcery.com>
985 * emultempl/armelf.em: Include elf/arm.h.
986 (arm_elf_finish): Set low address bit if enty point is a Thumb
989 2006-02-01 Danny Smith <dannysmith@users.sourceforge.net>
991 * deffilep.y (def_image_name): If the image name does not have
992 a suffix, append the default.
993 * ld.texinfo: Document NAME, LIBRARY usage in PE-COFF .def files.
995 2006-01-31 Danny Smith dannysmith@users.sourceforge.net
997 * NEWS: Mention support for forward exports in PE-COFF dll's.
998 * ld.texinfo: Expand documentation of EXPORT statements in
1001 2006-01-31 Filip Navara <navaraf@reactos.com>
1003 * deffile.h (struct def_file_export): Add field flag_forward.
1004 * pe-dll.c (process_def_file): Check for forward exports.
1005 (generate_edata): Generate forward export symbols.
1006 (fill_edata): Emit them.
1008 * pe-dll.c (process_def_file): Don't crash on malformed
1009 fastcall symbol names in .def file.
1011 2006-01-30 Nick Clifton <nickc@redhat.com>
1013 * po/vi.po: Updated Vietnamese translation.
1015 2006-01-27 Yitzchak Scott-Thoennes <sthoenna@efn.org>
1017 * pe-dll.c (pe_dll_generate_implib): Issue "Creating library
1018 file:" as informational message, not a warning.
1020 2006-01-18 Roger Sayle <roger@eyesopen.com>
1022 * emultempl/irix.em: Use lbasename instead of basename.
1024 2006-01-16 Nick Clifton <nickc@redhat.com>
1026 * po/zh_CN.po: New Chinese (simplified) translation.
1027 * configure.in (ALL_LINGUAS): Add "zh_CH".
1028 * configure: Regenerate.
1030 2006-01-16 Bernhard Fischer <aldot@gcc.gnu.org>
1032 * ld.texinfo (Options): Fix typo.
1034 For older changes see ChangeLog-2005
1040 version-control: never