1 2006-09-07 Joel Sherrill <joel.sherrill@oarcorp.com>
3 * emulparams/h8300elf.sh: _tinydata should not be placed in
5 * emulparams/h8300.sh: Likewise.
6 * emulparams/h8300sxelf.sh: Likewise.
8 2006-09-05 H.J. Lu <hongjiu.lu@intel.com>
11 * emultempl/elf32.em: Enable "-z relro" only if $COMMONPAGESIZE
14 2006-08-29 Nathan Sidwell <nathan@codesourcery.com>
16 * ldlang.c (walk_wild): Allow * to glob '/' in wildcarded match.
18 2006-08-28 Alan Modra <amodra@bigpond.net.au>
20 * scripttempl/elf.sc: Ensure that crtbegin and crtend entries will
21 not match random object files in a path containing "crtbegin" or
22 "crtend" as part of a directory name.
23 * scripttempl/armbpabi.sc: Likewise.
24 * scripttempl/crisaout.sc: Likewise.
25 * scripttempl/elf32crx.sc: Likewise.
26 * scripttempl/elf32sh-symbian.sc: Likewise.
27 * scripttempl/elf_chaos.sc: Likewise.
28 * scripttempl/elfd10v.sc: Likewise.
29 * scripttempl/elfd30v.sc: Likewise.
30 * scripttempl/elfxtensa.sc: Likewise.
31 * scripttempl/iq2000.sc: Likewise.
32 * scripttempl/mmo.sc: Likewise.
33 * scripttempl/xstormy16.sc: Likewise.
35 2006-08-24 Bob Wilson <bob.wilson@acm.org>
37 * emulparams/elf32xtensa.sh (.xt.prop): Add .xt.prop.*.
38 * scripttempl/elfxtensa.sc (.text): Add .literal.*.
40 2006-08-24 Pedro Alves <pedro_alves@portugalmail.pt>
42 * ldlang.c (lang_size_sections_1, lang_assignment_statement_enum):
43 Adjust the current address of DEFAULT_MEMORY_REGION even
44 when dot hasn't changed.
46 2006-08-23 Alan Modra <amodra@bigpond.net.au>
48 * ldexp.c (fold_name <LOADADDR>): Return an absolute value
49 rather than a section relative value.
51 2006-08-22 Alan Modra <amodra@bigpond.net.au>
53 * NEWS: Mention LMA default change.
54 * ld.texinfo (Output Section LMA): Update default description.
55 (Location Counter): Clarify backward movement.
56 * ldlang.c (lang_size_sections_1): Leave non-alloc sections with
57 default lma equal to vma. Warn on backward movement of dot.
59 2006-08-22 Pedro Alves <pedro_alves@portugalmail.pt>
61 * configure.tgt: Set targ_emul to arm_wince_pe for ARM
64 2006-08-22 Pedro Alves <pedro_alves@portugalmail.pt>
66 * Makefile.am: Split arm-wince into its own emulation.
67 * Makefile.in: Regenerate.
68 * pe-dll.c : Define PE_ARCH_arm_wince.
69 (pe_detail_list): Add PE_ARCH_arm_wince case.
70 (make_one): Handle PE_ARCH_arm_epoc and PE_ARCH_arm_wince cases.
71 * emulparams/arm_wince_pe.sh: New file.
72 * emultempl/pe.em: Handle new TARGET_IS_arm_wince_pe define.
73 Remap bfd_arm_allocate_interworking_sections,
74 bfd_arm_get_bfd_for_interworking and
75 bfd_arm_process_before_allocation for arm-pe and arm-wince-pe
77 (gld_${EMULATION_NAME}_recognized_file): Handle arm-wince and
78 arm-epoc bfd format names.
80 2006-08-18 Paul Brook <paul@codesourcery.com>
82 * emultempl/armelf.em (arm_elf_before_allocation): Call
83 gld${EMULATION_NAME}_before_allocation after setting interworking bfd.
85 2006-08-17 Pedro Alves <pedro_alves@portugalmail.pt>
87 * pe-dll.c (autofilter_symbolprefixlist): Remove .idata$.
88 (generate_reloc): Revert to skipping sections without a SEC_LOAD flag,
89 and to not skipping .idata* sections.
91 2006-08-16 Alan Modra <amodra@bigpond.net.au>
94 * ldlang.h (lang_output_section_statement_type): Replace
95 "processed" field with "processed_vma" and "processed_lma".
96 * ldlang.c (lang_do_assignments_1): Move lma setting code..
97 (lang_size_sections_1): ..to here.
98 (lang_reset_memory_regions): Adjust for
99 lang_output_section_statement_type change.
100 * ldexp.c (fold_name): Likewise.
102 2006-08-08 Peter S. Mazinger <ps.m@gmx.net>
104 * emulparams/armelf.sh (MAXPAGESIZE): Changed to
105 "CONSTANT (MAXPAGESIZE)".
107 2006-08-08 H.J. Lu <hongjiu.lu@intel.com>
110 * ldlang.c (lang_section_bst_type): Moved to ...
113 * ldlang.h (lang_wild_statement_struct): Add a tree field.
115 * ldlang.c (wild_sort_fast): Use the tree field for BST.
117 (analyze_walk_wild_section_handler): Initialize the tree field.
119 2006-08-08 H.J. Lu <hongjiu.lu@intel.com>
122 * ldlang.c (update_wild_statements): Update the whole wild
125 2006-08-04 Nick Clifton <nickc@redhat.com>
126 Mike Frysinger <michael.frysinger@analog.com>
128 * scripttempl/elf.sc (USER_LABEL_PREFIX): Define.
129 (__preinit_array_start, __preinit_array_end, __init_array_start,
130 __init_array_end, __fini_array_start, __fini_array_end, edata, end):
131 Use ${USER_LABEL_PREFIX}.
132 * emulparams/bfin.sh (DATA_END_SYMBOLS,END_SYMBOLS): Unset.
133 (USER_LABEL_PREFIX): Set.
135 2006-08-04 Marcelo Tosatti <marcelo@kvack.org>
137 * ldmain.c (main): Initialise print_gc_sections field of link_info
139 * lexsup.c: Add --print-gc-sections and --no-print-gc-sections
141 * ld.texinfo: Document new switches.
142 * NEWS: Mention new switches.
144 2006-08-04 Richard Sandiford <richard@codesourcery.com>
145 Kazu Hirata <kazu@codesourcery.com>
146 Phil Edwards <phil@codesourcery.com>
148 * Makefile.am (ALL_EMULATIONS): Add eshelf_vxworks.o and
150 (eshelf_vxworks.c, eshlelf_vxworks.c): New rules.
151 * Makefile.in: Regenerate.
152 * configure.tgt (sh-*-vxworks): Use shelf_vxworks and
154 * emulparams/shelf_vxworks.sh: New file.
155 * emulparams/shlelf_vxworks.sh: Likewise.
156 * emulparams/vxworks.sh (FINI): Prefix _etext with ${SYMPREFIX}.
157 (OTHER_END_SYMBOLS): Likewise _ehdr.
158 (DATA_END_SYMBOLS): Likewise _edata.
159 * emultempl/vxworks.em (vxworks_after_open): Check whether output_bfd
160 is indeed an ELF file before dealing with --force-dynamic.
162 2006-08-02 Petr Salinger <Petr.Salinger@seznam.cz>
165 * emulparams/elf_x86_64_fbsd.sh (OUTPUT_FORMAT): Define as
166 elf64-x86-64-freebsd.
168 2006-08-01 H.J. Lu <hongjiu.lu@intel.com>
170 * ldlang.c (init_os): Add flags. Replace bfd_make_section with
171 bfd_make_section_with_flags.
172 (exp_init_os): Updated.
173 (lang_add_section): Call init_os with flags.
174 (map_input_to_output_sections): Likewise.
176 2006-07-29 Richard Sandiford <richard@codesourcery.com>
178 * Makefile.am (eelf32b4300.c): Update dependencies.
179 (eelf32bmip.c): Likewise.
180 (eelf32bsmip.c): Likewise.
181 (eelf32btsmip.c): Likewise.
182 (eelf32btsmipn32.c): Likewise.
183 (eelf32ltsmip.c): Likewise.
184 (eelf32ltsmipn32.c): Likewise.
185 (eelf32ebmip.c): Likewise.
186 (eelf32ebmipvxworks.c): Likewise.
187 (eelf32elmip.c): Likewise.
188 (eelf32elmipvxworks.c): Likewise.
189 (eelf32bmipn32.c): Likewise.
190 (eelf32lmip.c): Likewise.
191 (eelf32mipswindiss.c): Likewise.
192 (eelf32lsmip.c): Likewise.
193 (eelf64bmip.c): Likewise.
194 (eelf64btsmip.c): Likewise.
195 (eelf64ltsmip.c): Likewise.
196 (emipsbig.c): Likewise. Canonicalize ${GENSCRIPTS} line.
197 (emipsbsd.c): Likewise.
198 (emipsidt.c): Update dependencies.
199 (emipsidtl.c): Likewise.
200 (emipslit.c): Likewise.
201 (emipslnews.c): Likewise.
202 (emipspe.c): Likewise. Fix ${GENSCRIPTS} invocation.
203 * Makefile.in: Regenerate.
204 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define.
205 * emulparams/elf32bmipn32-defs.sh (EXTRA_EM_FILE): Likewise.
206 * emultempl/irix.em: Include emultempl/mipself.em.
207 * emultempl/mipself.em: New file.
209 2006-07-26 Alan Modra <amodra@bigpond.net.au>
211 * emultempl/elf-generic.em (map_segments): Reorganise loop so that
212 layout happens before segment map. Don't do segment map on
215 2006-07-26 Alan Modra <amodra@bigpond.net.au>
217 * ldexp.c (fold_name <LOADADDR>): Use the lma.
218 * ldlang.h (lang_memory_region_type): Delete old_length. Add
220 * ldlang.c (lang_memory_region_lookup): Init new field.
221 (lang_reset_memory_regions): Reset new field.
222 (lang_insert_orphan): Don't set load_base.
223 (lang_leave_overlay): Likewise.
224 (lang_size_sections_1): Delete unnecessary code setting lma_region
225 to region. Correct lma region check.
226 (lang_do_assignments_1): Rename output_section_statement parm
227 to current_os. Set lma from previous section in region.
229 * ldlang.c: Formatting.
231 2006-07-25 Bob Wilson <bob.wilson@acm.org>
233 * emultempl/xtensaelf.em (xtensa_strip_inconsistent_linkonce_sections):
234 Set discarded section's output_section to bfd_abs_section_ptr.
236 2006-07-26 Alan Modra <amodra@bigpond.net.au>
238 * ldlang.c (analyze_walk_wild_section_handler): Init handler_data
241 2006-07-24 Bob Wilson <bob.wilson@acm.org>
243 * emultempl/xtensaelf.em (is_inconsistent_linkonce_section): Add space
244 in dep_sec_name for null terminator. Make sure dep_sec_name has a
247 2006-07-14 Michael Wetherell <mike.wetherell@ntlworld.com>
249 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX, ELF_INTERPRETER_NAME):
250 Set for *-*-solaris2*.
252 2006-07-24 Ralk Wildenhues <Ralf.Wildenhues@gmx.de>
254 * ld.texinfo: Fix spelling mistakes.
255 * ldint.texinfo: Likewise.
257 2006-07-23 Sonal Santan <sonal.santan@xilinx.com>
259 * ldlang.c (lang_section_bst): New structure for sorting sections
261 (wild_sort_fast): New function: Insert a section into a binary
263 (output_section_callback_fast): New function: Store a section in
265 (output_section_callback_tree_to_list): New function: Convert a
267 (analyze_walk_wild_section_handler): Initialize handler_data
269 (wild): If the data is sorted by name use the BST method to sort
272 2006-07-19 Alan Modra <amodra@bigpond.net.au>
274 * ld.h (handle_asneeded_cref): Declare.
275 * ldcref.c: Include objalloc.h.
276 (old_table, old_count, old_tab, alloc_mark): New variables.
277 (tabsize, entsize, refsize, old_symcount): Likewise.
278 (add_cref): Use bfd_hash_allocate for refs.
279 (handle_asneeded_cref): New function.
280 * ldmain.c (notice): Call handle_asneeded_cref for NULL name.
282 2006-07-14 Michael Wetherell <mike.wetherell@ntlworld.com>
284 * configure.tgt (i[3-7]86-*-solaris2*, i[3-7]86-*-solaris*): Correct
285 typo setting targ_extra_libpath.
287 2006-07-10 Jakub Jelinek <jakub@redhat.com>
289 * scripttempl/elf.sc: Add .gnu.hash section.
290 * emultempl/elf32.em (OPTION_HASH_STYLE): Define.
291 (gld${EMULATION_NAME}_add_options): Register --hash-style option.
292 (gld${EMULATION_NAME}_handle_option): Handle it.
293 (gld${EMULATION_NAME}_list_options): Document it.
294 * ldmain.c (main): Initialize emit_hash and emit_gnu_hash.
295 * ld.texinfo: Document --hash-style option.
297 2006-07-10 Nick Clifton <nickc@redhat.com>
299 * po/zh_TW.po: New Chinese (traditional) translation.
300 * configure.in (ALL_LINGUAS): Add zh_TW.
301 * configure: Regenerate.
303 2006-07-07 Nick Clifton <nickc@redhat.com>
306 * ld.texinfo: Remove "Using LD" from the title since it is
309 2006-07-06 Mohammed Adnène Trojette <adn@diwi.org>
312 * ld.texinfo: Fix spelling mistakes.
314 2006-06-27 Pedro Alves <pedro_alves@portugalmail.pt>
315 Nick Clifton <nickc@redhat.com>
317 * emultempl/pe.em (gld_$_open_dynamic_archive): Compute maximum
318 length of format strings in the libname_fmt[] array, rather than
319 relying upon a statically chosen value. Adjust xmalloc call to
320 use this longest length.
322 2006-06-27 Nick Clifton <nickc@redhat.com>
324 * ld.texinfo (-rpath-link): Clarify distinction between -rpath and
327 2006-06-23 Daniel Jacobowitz <dan@codesourcery.com>
329 * configure.tgt (i[3-7]86-*-solaris2*, i[3-7]86-*-solaris*): Set
332 2006-06-23 Pedro Alves <pedro_alves@portugalmail.pt>
334 * pe-dll.c (pe_details_type): Add new pointer for symbols list
336 (autofilter_symbollist): Split into autofilter_symbollist_generic
337 and autofilter_symbollist_i386.
338 (pe_detail_list): Add autofilter_symbollist_i386 to i386 case and
339 autofilter_symbollist_generic for all the others.
340 (autofilter_symbolprefixlist): Moved _fmode, _impure_ptr, cygwin_attach_dll,
341 cygwin_premain0, cygwin_premain1, cygwin_premain2, cygwin_premain3, environ,
342 into autofilter_symbollist_i386.
343 (auto_export): Get autofilter_symbollist from pe_details.
345 2006-06-22 Nick Clifton <nickc@redhat.com>
348 * emultempl/pe.em (gld_$_after_open): When reporting non PE format
349 output files mention the file name and the fact that it is an
352 2006-06-22 Danny Smith <dannysmith@users.sourceforge.net>
354 * emultempl/pe.em (gld_${EMULATION_NAME}_open_dynamic_archive):
355 Restructure. Add native "%s.lib" format to search list
356 * ld.texinfo (node WIN32): Update documentation on dynamic lib
357 search order. Add another reason for using import libs.
359 2006-06-21 Mark Shinwell <shinwell@codesourcery.com>
361 * ldlang.c (lang_insert_orphan): Correctly handle the case where
362 the section is to end up after the section currently at the end
363 of the list in output_bfd.
365 2006-06-21 Hans-Peter Nilsson <hp@bitrange.com>
367 * emultempl/mmo.em: Improve comments. Explain why there's
370 2006-06-21 Alan Modra <amodra@bigpond.net.au>
372 * emultempl/elf-generic.em (gld${EMULATION_NAME}_map_segments): Limit
373 loop to ten iterations. Throw away any previous linker generated
375 * ldlang.c (lang_phdr_list): Make global.
376 * ldlang.h (lang_phdr_list): Declare.
377 * Makefile.am (ELF_GEN_DEPS): Define. Use in emul deps.
378 * Makefile.in: Regenerate.
380 2006-06-20 Alan Modra <amodra@bigpond.net.au>
382 * Makefile.am (ELF_DEPS): Define. Use in emul file deps. Fix
383 many ELF emul file deps that incorrectly said they needed elf32.em
384 instead of generic.em. Add genelf.em as required.
385 * Makefile.in: Regenerate.
386 * ldlang.c (lang_process): Call ldemul_finish before
387 lang_check_section_addresses.
388 * emulparams/arcelf.sh: Generic elf target needs genelf.
389 * emulparams/d30v_e.sh: Likewise.
390 * emulparams/d30v_o.sh: Likewise.
391 * emulparams/d30velf.sh: Likewise.
392 * emulparams/elf32_dlx.sh: Likewise.
393 * emulparams/elf32_i860.sh: Likewise.
394 * emulparams/elf32fr30.sh: Likewise.
395 * emulparams/elf32frv.sh: Likewise.
396 * emulparams/elf32iq10.sh: Likewise.
397 * emulparams/elf32iq2000.sh: Likewise.
398 * emulparams/elf32mt.sh: Likewise.
399 * emulparams/mn10200.sh: Likewise.
400 * emulparams/or32.sh: Likewise.
401 * emulparams/or32elf.sh: Likewise.
402 * emulparams/pjelf.sh: Likewise.
403 * emulparams/msp430all.sh: Likewise. Extract common entries.
404 * emulparams/pjlelf.sh: Include pjelf.sh.
405 * emulparams/elf32frvfd.sh (EXTRA_EM_FILE): Unset.
406 * emulparams/mn10300.sh (EXTRA_EM_FILE): Unset.
407 * emultempl/elf-generic.em: New file.
408 * emultempl/genelf.em: New file.
409 * emultempl/elf32.em: Include elf-generic.em.
410 (gld${EMULATION_NAME}_layout_sections_again): Delete.
411 (gld${EMULATION_NAME}_finish): Call gld${EMULATION_NAME}_map_segments.
412 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
413 (gld${EMULATION_NAME}_finish): Rename from hppaelf_finish. Call
414 gld${EMULATION_NAME}_map_segments.
415 (LDEMUL_FINISH): Update.
416 * emultempl/mmo.em: Correct comment. Include elf-bfd.h and
417 source elf-generic.em.
418 (mmo_finish): Call gld${EMULATION_NAME}_map_segments.
419 * emultempl/ppc64elf.em (ppc_layout_sections_again): Likewise.
420 (gld${EMULATION_NAME}_finish): Rename from ppc_finish. Call
421 gld${EMULATION_NAME}_map_segments.
422 (LDEMUL_FINISH): Update.
424 2006-06-19 Alan Modra <amodra@bigpond.net.au>
426 * ldexp.c (fold_name): Adjust bfd_sizeof_headers call.
428 2006-06-14 Kevin F. Quinn <kevquinn@gentoo.org>
430 * ld.texinfo: Document new -z lazy option.
431 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
433 (gld${EMULATION_NAME}_list_options): Update help text.
435 2006-06-12 Fred Fish <fnf@specifix.com>
437 * emulparams/elf32bmip.sh (OTHER_SECTIONS): Keep the
438 ".mdebug.<abi>" and ".gcc_compiled_long<size>" sections
439 generated by mips gcc.
441 2006-06-12 Thiemo Seufer <ths@mips.com>
443 * emulparams/elf64bmip.sh, emulparams/elf64btsmip.sh (COMMONPAGESIZE):
446 2006-06-09 Alan Modra <amodra@bigpond.net.au>
448 * ldlang.h (lang_input_statement_type): Use bitfields for booleans.
449 * ldlang.c (struct out_section_hash_entry): Rename from
450 output_statement_hash_entry. Delete output_section_statement_type
451 entry. Add statement_union_type entry. Adjust all users.
452 (output_section_statement_table): Rename from output_statement_table.
454 (output_section_statement_newfunc): Rename from
455 output_statement_newfunc. Adjust all users.
456 (output_section_statement_table_init): Rename from
457 output_statement_table_init. Adjust all users.
458 (output_section_statement_table_free): Rename from
459 output_statement_table_free. Adjust all users.
461 2006-06-07 Joseph S. Myers <joseph@codesourcery.com>
463 * po/Make-in (pdf, ps): New dummy targets.
465 2006-06-07 Alan Modra <amodra@bigpond.net.au>
467 * ldlang.h (enum section_type): Delete dsect_section, copy_section,
468 info_section and overlay_section. Add noalloc_section.
469 * ldlang.c (lang_add_section): Adjust.
470 * ldgram.y (type): Adjust.
472 2006-06-06 Alan Modra <amodra@bigpond.net.au>
474 * ldlang.c (init_os): Whitespace.
475 (map_input_to_output_sections): Don't init_os for lang_input_section.
476 (print_all_symbols): Remove forward declaration. Convert to ISO C.
478 2006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
480 * po/Make-in (top_builddir): Define.
482 2006-06-05 Alan Modra <amodra@bigpond.net.au>
484 * ldexp.c (exp_get_abs_int): Make error message the same as
485 others emitted in this file.
487 2006-06-05 Alan Modra <amodra@bigpond.net.au>
489 * config.in: Regenerate.
491 2006-06-05 Alan Modra <amodra@bigpond.net.au>
493 * ldlang.c (lookup_name): Delete dead code. Remove FIXMEs.
495 2006-06-03 Alan Modra <amodra@bigpond.net.au>
497 * emultempl/elf32.em (global_found): Make it a pointer.
498 (stat_needed, try_needed): Adjust.
499 (check_needed): Don't skip non-loaded as-needed entries. Only
500 consider entries with both filename and the_bfd non-null.
501 (after_open): Try loading non-loaded as-needed libs to satisfy
504 2006-06-02 Joseph S. Myers <joseph@codesourcery.com>
506 * Makefile.am (TEXI2DVI): Add -I $(top_srcdir)/../libiberty.
507 * Makefile.in: Regenerate.
509 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
511 * Makefile.am: Replace INTLLIBS and INTLDEPS with LIBINTL
512 and LIBINTL_DEP everywhere.
514 (INCLUDES): Use @INCINTL@.
515 * configure.in: Use ZW_GNU_GETTEXT_SISTER_DIR and AM_PO_SUBDIRS.
516 Remove local code for po/Makefile.
517 * Makefile.in, configure: Regenerated.
519 2006-05-30 H.J. Lu <hongjiu.lu@intel.com>
521 * emulparams/arcelf.sh (MAXPAGESIZE): Changed to
522 "CONSTANT (MAXPAGESIZE)".
523 * emulparams/armelf_nbsd.sh: Likewise.
524 * emulparams/armelf_vxworks.sh: Likewise.
525 * emulparams/armnto.sh: Likewise.
526 * emulparams/armsymbian.sh: Likewise.
527 * emulparams/crislinux.sh: Likewise.
528 * emulparams/elf32_i860.sh: Likewise.
529 * emulparams/elf32_i960.sh: Likewise.
530 * emulparams/elf32am33lin.sh: Likewise.
531 * emulparams/elf32bfinfd.sh: Likewise.
532 * emulparams/elf32bmipn32-defs.sh: Likewise.
533 * emulparams/elf32frvfd.sh: Likewise.
534 * emulparams/elf32i370.sh: Likewise.
535 * emulparams/elf32lppcnto.sh: Likewise.
536 * emulparams/elf32mcore.sh: Likewise.
537 * emulparams/elf32openrisc.sh: Likewise.
538 * emulparams/elf32ppcnto.sh: Likewise.
539 * emulparams/elf32ppcwindiss.sh: Likewise.
540 * emulparams/elf32vax.sh: Likewise.
541 * emulparams/elf32xc16x.sh: Likewise.
542 * emulparams/elf32xc16xl.sh: Likewise.
543 * emulparams/elf32xc16xs.sh: Likewise.
544 * emulparams/elf64_aix.sh: Likewise.
545 * emulparams/elf64hppa.sh: Likewise.
546 * emulparams/elf64mmix.sh: Likewise.
547 * emulparams/elf_i386_be.sh: Likewise.
548 * emulparams/elf_i386_chaos.sh: Likewise.
549 * emulparams/elf_i386_ldso.sh: Likewise.
550 * emulparams/hppa64linux.sh: Likewise.
551 * emulparams/hppalinux.sh: Likewise.
552 * emulparams/hppaobsd.sh: Likewise.
553 * emulparams/i386lynx.sh: Likewise.
554 * emulparams/i386moss.sh: Likewise.
555 * emulparams/i386nto.sh: Likewise.
556 * emulparams/i386nw.sh: Likewise.
557 * emulparams/m32relf_linux.sh: Likewise.
558 * emulparams/m68kpsos.sh: Likewise.
559 * emulparams/or32elf.sh: Likewise.
560 * emulparams/pjelf.sh: Likewise.
561 * emulparams/pjlelf.sh: Likewise.
562 * emulparams/ppclynx.sh: Likewise.
563 * emulparams/ppcnw.sh: Likewise.
564 * emulparams/shelf32_nbsd.sh : Likewise.
565 * emulparams/shelf_nbsd.sh: Likewise.
566 * emulparams/shelf_nto.sh: Likewise.
567 * emulparams/shlelf_nto.sh: Likewise.
568 * emulparams/xtensa-config.sh: Likewise.
570 * emulparams/armelf_linux.sh (MAXPAGESIZE): Changed to
571 "CONSTANT (MAXPAGESIZE)".
572 (COMMONPAGESIZE): Changed to "CONSTANT (COMMONPAGESIZE)".
573 * emulparams/elf32_sparc.sh: Likewise.
574 * emulparams/elf32bmip.sh: Likewise.
575 * emulparams/elf32ppccommon.sh: Likewise.
576 * emulparams/elf64_ia64.sh: Likewise.
577 * emulparams/elf64_s390.sh: Likewise.
578 * emulparams/elf64_sparc.sh: Likewise.
579 * emulparams/elf64alpha.sh: Likewise.
580 * emulparams/elf64ppc.sh: Likewise.
581 * emulparams/elf_i386.sh: Likewise.
582 * emulparams/elf_i386_vxworks.sh: Likewise.
583 * emulparams/elf_s390.sh: Likewise.
584 * emulparams/elf_x86_64.sh: Likewise.
585 * emulparams/shlelf32_linux.sh: Likewise.
586 * emulparams/shlelf_linux.sh: Likewise.
588 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Changed to
589 "CONSTANT (COMMONPAGESIZE)".
590 * emulparams/elf32btsmipn32.sh: Likewise.
592 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
593 "-z max-page-size=" and "-z common-page-size=".
594 (gld${EMULATION_NAME}_list_options): Likewise.
596 * ld.h (ld_config_type): Add maxpagesize and commonpagesize.
598 * ld.texinfo: Document "-z max-page-size=" and
599 "-z common-page-size=".
601 * ldexp.c (exp_print_token): Handle CONSTANT.
602 (fold_name): Likewise.
603 * ldgram.y: Likewise.
606 * ldmain.c (main): Initiliaze config.maxpagesize and
607 config.commonpagesize. Call bfd_emul_set_maxpagesize if
608 config.maxpagesize isn't 0. Call bfd_emul_set_commonpagesize if
609 config.commonpagesize config.maxpagesize isn't 0.
611 2006-05-30 Nick Clifton <nickc@redhat.com>
613 * po/es.po: Updated Spanish translation.
615 2006-05-25 H.J. Lu <hongjiu.lu@intel.com>
617 * emulparams/elf_x86_64.sh (MAXPAGESIZE): Updated to 0x200000.
619 2006-05-24 H.J. Lu <hongjiu.lu@intel.com>
622 * configure.in: Use ${srcdir}/../bfd/config.bfd to check 64bit
623 bfd. Support 64bit host for --enable-targets=all.
624 * configure: Regenerated.
626 2006-05-24 Nick Clifton <nickc@redhat.com>
628 * po/vi.po: Updated Vietnamese translation.
630 2006-05-24 Bjoern Haase <bjoern.m.haase@web.de>
632 * configure.tgt: Add avr6 to emulation list.
633 * Makefile.am: Add eavr6.o and corresponding rule.
634 * Makefile.in: Regenerate.
635 * emulparams/avr6.sh: New file.
636 * emulparams/avrX.sh (TEMPLATE_NAME): Use elf32 instead of generic
637 for target option support.
638 (EXTRA_EM_FILE): Add reference to new em template file avrelf.
639 * scripttempl/avr.sc: Add ".trampolines" section.
640 * emultempl/avrelf.em: Add new file for target specific options.
642 2006-05-22 Nick Clifton <nickc@redhat.com>
644 * scripttempl/elf32crx.sc (.rdata): Add .rodata.*.
646 2006-05-19 Alan Modra <amodra@bigpond.net.au>
648 * ldlang.c (lang_size_sections_1): Don't check mem regions for
649 os->ignored sections.
651 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
653 * ldlang.c (lang_size_sections): Call lang_reset_memory_regions
654 before redoing one_lang_size_sections_pass.
656 2006-05-11 Carlos O'Donell <carlos@codesourcery.com>
658 * ld.texinfo: Rename "Index" to "LD Index"
660 2006-05-11 Pedro Alves <pedro_alves@portugalmail.pt>
662 * pe-dll.c (autofilter_symbollist): Add Dllmain,
663 DllMainCRTStartup, _DllMainCRTStartup and .text.
664 (autofilter_liblist): Add libcegcc.
665 (autofilter_symbolprefixlist): Add __imp_ and .idata$.
666 (generate_reloc): Do not skip sections without a SEC_LOAD flag,
667 they can still contain relocs that need processing.
668 Skip the .idata$6 section.
669 (jmp_arm_bytes): New array: Contains byte codes for an ARM jump.
670 (make_one): Use the new array.
671 (make_import_fixup_entry): Use .idata$2 instead of .idata$3.
672 * emultempl/pe.em (MajorSubsystemVersion): Set to 3 for armpe.
674 2006-05-05 Alan Modra <amodra@bigpond.net.au>
676 * ld.texinfo: Document PowerPC and PowerPC64 options.
677 * gen-doc.texi: Enable.
679 2006-05-02 Daniel Jacobowitz <dan@codesourcery.com>
681 * Makefile.am (AM_MAKEINFOFLAGS): Add libiberty.
682 (TEXI2POD): Use AM_MAKEINFOFLAGS.
683 (configdoc.texi): Don't set top_srcdir.
684 * ld.texinfo: Don't use top_srcdir.
685 * aclocal.m4, Makefile.in: Regenerated.
687 2006-04-19 Alan Modra <amodra@bigpond.net.au>
689 * ldlang.c (wild): Tidy default_common_section loop.
690 (print_input_section): Format.
692 * configure: Regenerate.
694 2006-04-16 Daniel Jacobowitz <dan@codesourcery.com>
696 * po/POTFILES.in: Regenerated.
698 2006-04-16 Daniel Jacobowitz <dan@codesourcery.com>
700 * config.in: Regenerated.
702 2006-04-14 David Heine <dlheine@tensilica.com>
703 Bob Wilson <bob.wilson@acm.org>
705 * emultempl/xtensaelf.em (elf_xtensa_before_allocation): Call new
706 function to strip inconsistent linkonce sections.
707 (input_section_linked_worker, input_section_linked): New.
708 (is_inconsistent_linkonce_section): New.
709 (xtensa_strip_inconsistent_linkonce_sections): New.
711 2006-04-11 Diego Pettenò <flameeyes@gentoo.org>
713 * emultempl/elf32.em: Add support for elf-hints.h on FreeBSD
714 and Dragonfly targets.
715 * configure.in (AC_CHECK_HEADERS): Add elf-hints.h.
716 * Makefile.am (HFILES): Add elf-hints-local.h.
717 * elf-hints-local.h: New file.
718 * Makefile.in: Regenerate.
719 * configure: Regenerate.
721 2006-04-07 Bernhard Fischer <aldot@gcc.gnu.org>
723 * ld.texinfo: Fix typo in documentation of --check-sections.
725 2006-04-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
727 * ldlang.c (load_symbols): Set as_needed and add_needed according
728 to the corresponding script's fields while processing it.
730 2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
732 * Makefile.am: Add install-html, install-html-am, and
733 install-html-recursive targets.
734 * Makefile.in: Regenerate.
735 * configure.in: AC_SUBST datarootdir, docdir, htmldir.
736 * configure: Regenerate.
737 * po/Make-in: Add install-html target.
739 2006-04-06 H.J. Lu <hongjiu.lu@intel.com>
741 * emultempl/ia64elf.em: Set link_info.relax_pass to 2. Remove
742 link_info.need_relax_finalize.
744 * ldlang.c (relax_sections): New.
745 (lang_process): Use. Call relax_sections link_info.relax_pass
748 * ldmain.c (main): Set link_info.relax_pass to 1. Remove
749 link_info.need_relax_finalize.
751 2006-04-05 Alan Modra <amodra@bigpond.net.au>
753 * Makefile.am (GENSCRIPTS): Pass prefix.
754 * Makefile.in: Regenerate.
755 * genscripts.sh: Adjust for extra parameter.
756 * emultempl/elf32.em (parse_ld_so_conf): Return true iff file
758 (check_ld_so_conf): Use ${prefix}/etc/ld.so.conf if it exists.
761 2006-04-05 Richard Sandiford <richard@codesourcery.com>
762 Daniel Jacobowitz <dan@codesourcery.com>
764 * configure.tgt (sparc*-*-vxworks*): New stanza.
765 * emulparams/elf32_sparc_vxworks.sh: New file.
766 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_vxworks.o.
767 (eelf32_sparc_vxworks.c): New rule.
768 * Makefile.in: Regenerate.
770 2006-04-04 Eric Botcazou <ebotcazou@adacore.com>
772 * ldlang.c (lang_map): Print the list of discarded input sections.
773 (print_input_section): Change parameter and print zero-sized sections.
774 (print_statement): Adjust call to print_input_section.
776 2006-04-01 Danny Smith <dannysmith@users.sourceforge.net>
778 * deffilep.y (def_image_name): If LIBRARY or NAME statement
779 specifies an empty string, retain the name specified on command
781 * ld.texinfo: Document above.
783 2006-03-31 Jakub Jelinek <jakub@redhat.com>
785 * ldmisc.c (vfinfo): Revert 2005-10-05 changes. If
786 bfd_find_nearest_line succeeded for %C or %D, but filename
787 is NULL, print section+offset at the end.
789 2006-03-25 Bernd Schmidt <bernd.schmidt@analog.com>
791 * emulparams/elf32bfinfd.sh: New file.
792 * emultempl/bfin.em: Delete.
793 * emulparams/bfin.sh: Lose reference to bfin.em.
794 * Makefile.am (eelf32bfin.c): Likewise.
795 (eelf32bfinfd.c): New.
796 * Makefile.in: Regenerate.
797 * configure.tgt (bfin-*-elf, bfin-*-uclinux): Add elf32bfinfd to
800 2006-03-22 Richard Sandiford <richard@codesourcery.com>
801 Daniel Jacobowitz <dan@codesourcery.com>
802 Phil Edwards <phil@codesourcery.com>
803 Zack Weinberg <zack@codesourcery.com>
804 Mark Mitchell <mark@codesourcery.com>
805 Nathan Sidwell <nathan@codesourcery.com>
807 * configure.tgt (mips*el-*-vxworks*, mips*-*-vxworks*): Use
808 separate VxWorks emulations.
809 * emulparams/elf32ebmipvxworks.sh: New file.
810 * emulparams/elf32elmipvxworks.sh: New file.
811 * Makefile.am (ALL_EMULATIONS): Add eelf32ebmipvxworks.o and
812 eelf32elmipvxworks.o.
813 (eelf32ebmipvxworks.c, eelf32elmipvxworks.c): New rules.
814 * Makefile.in: Regenerate.
816 2006-03-16 Alan Modra <amodra@bigpond.net.au>
819 * ldcref.c (add_cref): Adjust bfd_hash_table_init calls.
820 * ldlang.c (output_statement_table_init, lang_init): Likewise.
821 * ldmain.c (add_ysym, add_wrap, add_keepsyms_file): Likewise.
822 (undefined_symbol): Likewise.
824 2006-03-07 Richard Sandiford <richard@codesourcery.com>
825 Daniel Jacobowitz <dan@codesourcery.com>
826 Zack Weinberg <zack@codesourcery.com>
827 Nathan Sidwell <nathan@codesourcery.com>
828 Paul Brook <paul@codesourcery.com>
829 Ricardo Anguiano <anguiano@codesourcery.com>
830 Phil Edwards <phil@codesourcery.com>
832 * emulparams/armelf_vxworks.sh: Include vxworks.sh.
833 (MAXPAGESIZE): Define.
834 * emulparams/vxworks.sh: Undefine EMBEDDED.
835 * Makefile.am (earmelf_vxworks.c): Depend on vxworks.sh and vxworks.em.
836 * Makefile.in: Regenerate.
838 2006-03-03 Bjoern Haase <bjoern.m.haase@web.de>
840 * scripttempl/avr.sc: Add *(.jumptables) *(.lowtext) sections.
841 Add KEEP() directives.
842 Add *(.data*) *(.rodata) and *(.rodata*) and *(.bss*) to .data and
843 .bss output sections.
845 2006-03-03 Richard Sandiford <richard@codesourcery.com>
847 * emulparams/vxworks.sh (VXWORKS_BASE_EM_FILE): New variable.
848 (EXTRA_EM_FILE): Define.
849 * emultempl/vxworks.em: New file.
850 * ld.texinfo (--force-dynamic): Document.
851 * Makefile.am (eelf32ppcvxworks.cm, eelf_i386_vxworks.c): Depend
853 * Makefile.in: Regenerate.
855 2006-03-02 Richard Sandiford <richard@codesourcery.com>
857 * emulparams/elf32ppccommon.sh: New file, extracted from...
858 * emulparams/elf32ppc.sh: ...here.
859 * emulparams/elf32ppcvxworks.sh: Include elf32ppccommon.sh
860 instead of elf32ppc.sh.
861 (BSS_PLT): Remove override.
862 * Makefile.am (eelf32lppc.c): Depend on elf32ppccommons.h.
863 (eelf32lppcnto.c, eelf32lppcsim.c, eelf32ppcnto.c): Likewise.
864 (eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppcsimm): Likewise.
865 (eelf32ppclinux.c): Likewise.
866 (eelf32ppcvxworks.c): Likewise. Add missing vxworks.sh dependency.
867 * Makefile.in: Regenerate.
869 2006-02-27 Carlos O'Donell <carlos@codesourcery.com>
871 * Makefile.am: Add html target.
872 * Makefile.in: Regenerate.
873 * po/Make-in: Add html target.
875 2006-02-17 Shrirang Khisti <shrirangk@kpitcummins.com>
876 Anil Paranjape <anilp1@kpitcummins.com>
877 Shilin Shakti <shilins@kpitcummins.com>
879 * scripttemp/elf32xc16x.sc: Default linker script for tiny model.
880 * scripttemp/elf32xc16xl.sc: Default linker script for large model.
881 * scripttemp/elf32xc16xs.sc: Default linker script for small model.
882 * emulparams/elf32xc16x.sh: Emulation script for tiny model.
883 * emulparams/elf32xc16xl.sh: Emulation script for large model.
884 * emulparams/elf32xc16xs.sh: Emulation script for small model.
885 * Makefile.am: Add entry to make xc16x target.
886 * Makefile.in: Regenerate.
887 * configure.tgt: Specify default and other emulation parameters
889 * NEWS: Announce the support for the new target.
891 2006-02-16 Nick Hudson <nick.hudson@dsl.pipex.com>
893 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
894 Use the traditional target.
896 2006-02-13 Joseph S. Myers <joseph@codesourcery.com>
898 * configure.tgt (arm*b-*-linux-gnueabi): Change to
900 (arm*-*-linux-gnueabi): Change to arm*-*-linux-*eabi.
902 2006-02-08 H.J. Lu <hongjiu.lu@intel.com>
905 * NEWS: Updated for the Linux linker search order change.
907 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Call
908 gld${EMULATION_NAME}_check_ld_so_conf before checking default
909 search directories for DT_NEEDED entries.
911 2006-02-07 Paul Brook <paul@codesourcery.com>
913 * emultempl/armelf.em: Include elf/arm.h.
914 (arm_elf_finish): Set low address bit if enty point is a Thumb
917 2006-02-01 Danny Smith <dannysmith@users.sourceforge.net>
919 * deffilep.y (def_image_name): If the image name does not have
920 a suffix, append the default.
921 * ld.texinfo: Document NAME, LIBRARY usage in PE-COFF .def files.
923 2006-01-31 Danny Smith dannysmith@users.sourceforge.net
925 * NEWS: Mention support for forward exports in PE-COFF dll's.
926 * ld.texinfo: Expand documentation of EXPORT statements in
929 2006-01-31 Filip Navara <navaraf@reactos.com>
931 * deffile.h (struct def_file_export): Add field flag_forward.
932 * pe-dll.c (process_def_file): Check for forward exports.
933 (generate_edata): Generate forward export symbols.
934 (fill_edata): Emit them.
936 * pe-dll.c (process_def_file): Don't crash on malformed
937 fastcall symbol names in .def file.
939 2006-01-30 Nick Clifton <nickc@redhat.com>
941 * po/vi.po: Updated Vietnamese translation.
943 2006-01-27 Yitzchak Scott-Thoennes <sthoenna@efn.org>
945 * pe-dll.c (pe_dll_generate_implib): Issue "Creating library
946 file:" as informational message, not a warning.
948 2006-01-18 Roger Sayle <roger@eyesopen.com>
950 * emultempl/irix.em: Use lbasename instead of basename.
952 2006-01-16 Nick Clifton <nickc@redhat.com>
954 * po/zh_CN.po: New Chinese (simplified) translation.
955 * configure.in (ALL_LINGUAS): Add "zh_CH".
956 * configure: Regenerate.
958 2006-01-16 Bernhard Fischer <aldot@gcc.gnu.org>
960 * ld.texinfo (Options): Fix typo.
962 For older changes see ChangeLog-2005
968 version-control: never