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