1 2006-08-08 H.J. Lu <hongjiu.lu@intel.com>
4 * ldlang.c (lang_section_bst_type): Moved to ...
7 * ldlang.h (lang_wild_statement_struct): Add a tree field.
9 * ldlang.c (wild_sort_fast): Use the tree field for BST.
11 (analyze_walk_wild_section_handler): Initialize the tree field.
13 2006-08-08 H.J. Lu <hongjiu.lu@intel.com>
16 * ldlang.c (update_wild_statements): Update the whole wild
19 2006-08-04 Nick Clifton <nickc@redhat.com>
20 Mike Frysinger <michael.frysinger@analog.com>
22 * scripttempl/elf.sc (USER_LABEL_PREFIX): Define.
23 (__preinit_array_start, __preinit_array_end, __init_array_start,
24 __init_array_end, __fini_array_start, __fini_array_end, edata, end):
25 Use ${USER_LABEL_PREFIX}.
26 * emulparams/bfin.sh (DATA_END_SYMBOLS,END_SYMBOLS): Unset.
27 (USER_LABEL_PREFIX): Set.
29 2006-08-04 Marcelo Tosatti <marcelo@kvack.org>
31 * ldmain.c (main): Initialise print_gc_sections field of link_info
33 * lexsup.c: Add --print-gc-sections and --no-print-gc-sections
35 * ld.texinfo: Document new switches.
36 * NEWS: Mention new switches.
38 2006-08-04 Richard Sandiford <richard@codesourcery.com>
39 Kazu Hirata <kazu@codesourcery.com>
40 Phil Edwards <phil@codesourcery.com>
42 * Makefile.am (ALL_EMULATIONS): Add eshelf_vxworks.o and
44 (eshelf_vxworks.c, eshlelf_vxworks.c): New rules.
45 * Makefile.in: Regenerate.
46 * configure.tgt (sh-*-vxworks): Use shelf_vxworks and
48 * emulparams/shelf_vxworks.sh: New file.
49 * emulparams/shlelf_vxworks.sh: Likewise.
50 * emulparams/vxworks.sh (FINI): Prefix _etext with ${SYMPREFIX}.
51 (OTHER_END_SYMBOLS): Likewise _ehdr.
52 (DATA_END_SYMBOLS): Likewise _edata.
53 * emultempl/vxworks.em (vxworks_after_open): Check whether output_bfd
54 is indeed an ELF file before dealing with --force-dynamic.
56 2006-08-02 Petr Salinger <Petr.Salinger@seznam.cz>
59 * emulparams/elf_x86_64_fbsd.sh (OUTPUT_FORMAT): Define as
62 2006-08-01 H.J. Lu <hongjiu.lu@intel.com>
64 * ldlang.c (init_os): Add flags. Replace bfd_make_section with
65 bfd_make_section_with_flags.
66 (exp_init_os): Updated.
67 (lang_add_section): Call init_os with flags.
68 (map_input_to_output_sections): Likewise.
70 2006-07-29 Richard Sandiford <richard@codesourcery.com>
72 * Makefile.am (eelf32b4300.c): Update dependencies.
73 (eelf32bmip.c): Likewise.
74 (eelf32bsmip.c): Likewise.
75 (eelf32btsmip.c): Likewise.
76 (eelf32btsmipn32.c): Likewise.
77 (eelf32ltsmip.c): Likewise.
78 (eelf32ltsmipn32.c): Likewise.
79 (eelf32ebmip.c): Likewise.
80 (eelf32ebmipvxworks.c): Likewise.
81 (eelf32elmip.c): Likewise.
82 (eelf32elmipvxworks.c): Likewise.
83 (eelf32bmipn32.c): Likewise.
84 (eelf32lmip.c): Likewise.
85 (eelf32mipswindiss.c): Likewise.
86 (eelf32lsmip.c): Likewise.
87 (eelf64bmip.c): Likewise.
88 (eelf64btsmip.c): Likewise.
89 (eelf64ltsmip.c): Likewise.
90 (emipsbig.c): Likewise. Canonicalize ${GENSCRIPTS} line.
91 (emipsbsd.c): Likewise.
92 (emipsidt.c): Update dependencies.
93 (emipsidtl.c): Likewise.
94 (emipslit.c): Likewise.
95 (emipslnews.c): Likewise.
96 (emipspe.c): Likewise. Fix ${GENSCRIPTS} invocation.
97 * Makefile.in: Regenerate.
98 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define.
99 * emulparams/elf32bmipn32-defs.sh (EXTRA_EM_FILE): Likewise.
100 * emultempl/irix.em: Include emultempl/mipself.em.
101 * emultempl/mipself.em: New file.
103 2006-07-26 Alan Modra <amodra@bigpond.net.au>
105 * emultempl/elf-generic.em (map_segments): Reorganise loop so that
106 layout happens before segment map. Don't do segment map on
109 2006-07-26 Alan Modra <amodra@bigpond.net.au>
111 * ldexp.c (fold_name <LOADADDR>): Use the lma.
112 * ldlang.h (lang_memory_region_type): Delete old_length. Add
114 * ldlang.c (lang_memory_region_lookup): Init new field.
115 (lang_reset_memory_regions): Reset new field.
116 (lang_insert_orphan): Don't set load_base.
117 (lang_leave_overlay): Likewise.
118 (lang_size_sections_1): Delete unnecessary code setting lma_region
119 to region. Correct lma region check.
120 (lang_do_assignments_1): Rename output_section_statement parm
121 to current_os. Set lma from previous section in region.
123 * ldlang.c: Formatting.
125 2006-07-25 Bob Wilson <bob.wilson@acm.org>
127 * emultempl/xtensaelf.em (xtensa_strip_inconsistent_linkonce_sections):
128 Set discarded section's output_section to bfd_abs_section_ptr.
130 2006-07-26 Alan Modra <amodra@bigpond.net.au>
132 * ldlang.c (analyze_walk_wild_section_handler): Init handler_data
135 2006-07-24 Bob Wilson <bob.wilson@acm.org>
137 * emultempl/xtensaelf.em (is_inconsistent_linkonce_section): Add space
138 in dep_sec_name for null terminator. Make sure dep_sec_name has a
141 2006-07-14 Michael Wetherell <mike.wetherell@ntlworld.com>
143 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX, ELF_INTERPRETER_NAME):
144 Set for *-*-solaris2*.
146 2006-07-24 Ralk Wildenhues <Ralf.Wildenhues@gmx.de>
148 * ld.texinfo: Fix spelling mistakes.
149 * ldint.texinfo: Likewise.
151 2006-07-23 Sonal Santan <sonal.santan@xilinx.com>
153 * ldlang.c (lang_section_bst): New structure for sorting sections
155 (wild_sort_fast): New function: Insert a section into a binary
157 (output_section_callback_fast): New function: Store a section in
159 (output_section_callback_tree_to_list): New function: Convert a
161 (analyze_walk_wild_section_handler): Initialize handler_data
163 (wild): If the data is sorted by name use the BST method to sort
166 2006-07-19 Alan Modra <amodra@bigpond.net.au>
168 * ld.h (handle_asneeded_cref): Declare.
169 * ldcref.c: Include objalloc.h.
170 (old_table, old_count, old_tab, alloc_mark): New variables.
171 (tabsize, entsize, refsize, old_symcount): Likewise.
172 (add_cref): Use bfd_hash_allocate for refs.
173 (handle_asneeded_cref): New function.
174 * ldmain.c (notice): Call handle_asneeded_cref for NULL name.
176 2006-07-14 Michael Wetherell <mike.wetherell@ntlworld.com>
178 * configure.tgt (i[3-7]86-*-solaris2*, i[3-7]86-*-solaris*): Correct
179 typo setting targ_extra_libpath.
181 2006-07-10 Jakub Jelinek <jakub@redhat.com>
183 * scripttempl/elf.sc: Add .gnu.hash section.
184 * emultempl/elf32.em (OPTION_HASH_STYLE): Define.
185 (gld${EMULATION_NAME}_add_options): Register --hash-style option.
186 (gld${EMULATION_NAME}_handle_option): Handle it.
187 (gld${EMULATION_NAME}_list_options): Document it.
188 * ldmain.c (main): Initialize emit_hash and emit_gnu_hash.
189 * ld.texinfo: Document --hash-style option.
191 2006-07-10 Nick Clifton <nickc@redhat.com>
193 * po/zh_TW.po: New Chinese (traditional) translation.
194 * configure.in (ALL_LINGUAS): Add zh_TW.
195 * configure: Regenerate.
197 2006-07-07 Nick Clifton <nickc@redhat.com>
200 * ld.texinfo: Remove "Using LD" from the title since it is
203 2006-07-06 Mohammed Adnène Trojette <adn@diwi.org>
206 * ld.texinfo: Fix spelling mistakes.
208 2006-06-27 Pedro Alves <pedro_alves@portugalmail.pt>
209 Nick Clifton <nickc@redhat.com>
211 * emultempl/pe.em (gld_$_open_dynamic_archive): Compute maximum
212 length of format strings in the libname_fmt[] array, rather than
213 relying upon a statically chosen value. Adjust xmalloc call to
214 use this longest length.
216 2006-06-27 Nick Clifton <nickc@redhat.com>
218 * ld.texinfo (-rpath-link): Clarify distinction between -rpath and
221 2006-06-23 Daniel Jacobowitz <dan@codesourcery.com>
223 * configure.tgt (i[3-7]86-*-solaris2*, i[3-7]86-*-solaris*): Set
226 2006-06-23 Pedro Alves <pedro_alves@portugalmail.pt>
228 * pe-dll.c (pe_details_type): Add new pointer for symbols list
230 (autofilter_symbollist): Split into autofilter_symbollist_generic
231 and autofilter_symbollist_i386.
232 (pe_detail_list): Add autofilter_symbollist_i386 to i386 case and
233 autofilter_symbollist_generic for all the others.
234 (autofilter_symbolprefixlist): Moved _fmode, _impure_ptr, cygwin_attach_dll,
235 cygwin_premain0, cygwin_premain1, cygwin_premain2, cygwin_premain3, environ,
236 into autofilter_symbollist_i386.
237 (auto_export): Get autofilter_symbollist from pe_details.
239 2006-06-22 Nick Clifton <nickc@redhat.com>
242 * emultempl/pe.em (gld_$_after_open): When reporting non PE format
243 output files mention the file name and the fact that it is an
246 2006-06-22 Danny Smith <dannysmith@users.sourceforge.net>
248 * emultempl/pe.em (gld_${EMULATION_NAME}_open_dynamic_archive):
249 Restructure. Add native "%s.lib" format to search list
250 * ld.texinfo (node WIN32): Update documentation on dynamic lib
251 search order. Add another reason for using import libs.
253 2006-06-21 Mark Shinwell <shinwell@codesourcery.com>
255 * ldlang.c (lang_insert_orphan): Correctly handle the case where
256 the section is to end up after the section currently at the end
257 of the list in output_bfd.
259 2006-06-21 Hans-Peter Nilsson <hp@bitrange.com>
261 * emultempl/mmo.em: Improve comments. Explain why there's
264 2006-06-21 Alan Modra <amodra@bigpond.net.au>
266 * emultempl/elf-generic.em (gld${EMULATION_NAME}_map_segments): Limit
267 loop to ten iterations. Throw away any previous linker generated
269 * ldlang.c (lang_phdr_list): Make global.
270 * ldlang.h (lang_phdr_list): Declare.
271 * Makefile.am (ELF_GEN_DEPS): Define. Use in emul deps.
272 * Makefile.in: Regenerate.
274 2006-06-20 Alan Modra <amodra@bigpond.net.au>
276 * Makefile.am (ELF_DEPS): Define. Use in emul file deps. Fix
277 many ELF emul file deps that incorrectly said they needed elf32.em
278 instead of generic.em. Add genelf.em as required.
279 * Makefile.in: Regenerate.
280 * ldlang.c (lang_process): Call ldemul_finish before
281 lang_check_section_addresses.
282 * emulparams/arcelf.sh: Generic elf target needs genelf.
283 * emulparams/d30v_e.sh: Likewise.
284 * emulparams/d30v_o.sh: Likewise.
285 * emulparams/d30velf.sh: Likewise.
286 * emulparams/elf32_dlx.sh: Likewise.
287 * emulparams/elf32_i860.sh: Likewise.
288 * emulparams/elf32fr30.sh: Likewise.
289 * emulparams/elf32frv.sh: Likewise.
290 * emulparams/elf32iq10.sh: Likewise.
291 * emulparams/elf32iq2000.sh: Likewise.
292 * emulparams/elf32mt.sh: Likewise.
293 * emulparams/mn10200.sh: Likewise.
294 * emulparams/or32.sh: Likewise.
295 * emulparams/or32elf.sh: Likewise.
296 * emulparams/pjelf.sh: Likewise.
297 * emulparams/msp430all.sh: Likewise. Extract common entries.
298 * emulparams/pjlelf.sh: Include pjelf.sh.
299 * emulparams/elf32frvfd.sh (EXTRA_EM_FILE): Unset.
300 * emulparams/mn10300.sh (EXTRA_EM_FILE): Unset.
301 * emultempl/elf-generic.em: New file.
302 * emultempl/genelf.em: New file.
303 * emultempl/elf32.em: Include elf-generic.em.
304 (gld${EMULATION_NAME}_layout_sections_again): Delete.
305 (gld${EMULATION_NAME}_finish): Call gld${EMULATION_NAME}_map_segments.
306 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
307 (gld${EMULATION_NAME}_finish): Rename from hppaelf_finish. Call
308 gld${EMULATION_NAME}_map_segments.
309 (LDEMUL_FINISH): Update.
310 * emultempl/mmo.em: Correct comment. Include elf-bfd.h and
311 source elf-generic.em.
312 (mmo_finish): Call gld${EMULATION_NAME}_map_segments.
313 * emultempl/ppc64elf.em (ppc_layout_sections_again): Likewise.
314 (gld${EMULATION_NAME}_finish): Rename from ppc_finish. Call
315 gld${EMULATION_NAME}_map_segments.
316 (LDEMUL_FINISH): Update.
318 2006-06-19 Alan Modra <amodra@bigpond.net.au>
320 * ldexp.c (fold_name): Adjust bfd_sizeof_headers call.
322 2006-06-14 Kevin F. Quinn <kevquinn@gentoo.org>
324 * ld.texinfo: Document new -z lazy option.
325 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
327 (gld${EMULATION_NAME}_list_options): Update help text.
329 2006-06-12 Fred Fish <fnf@specifix.com>
331 * emulparams/elf32bmip.sh (OTHER_SECTIONS): Keep the
332 ".mdebug.<abi>" and ".gcc_compiled_long<size>" sections
333 generated by mips gcc.
335 2006-06-12 Thiemo Seufer <ths@mips.com>
337 * emulparams/elf64bmip.sh, emulparams/elf64btsmip.sh (COMMONPAGESIZE):
340 2006-06-09 Alan Modra <amodra@bigpond.net.au>
342 * ldlang.h (lang_input_statement_type): Use bitfields for booleans.
343 * ldlang.c (struct out_section_hash_entry): Rename from
344 output_statement_hash_entry. Delete output_section_statement_type
345 entry. Add statement_union_type entry. Adjust all users.
346 (output_section_statement_table): Rename from output_statement_table.
348 (output_section_statement_newfunc): Rename from
349 output_statement_newfunc. Adjust all users.
350 (output_section_statement_table_init): Rename from
351 output_statement_table_init. Adjust all users.
352 (output_section_statement_table_free): Rename from
353 output_statement_table_free. Adjust all users.
355 2006-06-07 Joseph S. Myers <joseph@codesourcery.com>
357 * po/Make-in (pdf, ps): New dummy targets.
359 2006-06-07 Alan Modra <amodra@bigpond.net.au>
361 * ldlang.h (enum section_type): Delete dsect_section, copy_section,
362 info_section and overlay_section. Add noalloc_section.
363 * ldlang.c (lang_add_section): Adjust.
364 * ldgram.y (type): Adjust.
366 2006-06-06 Alan Modra <amodra@bigpond.net.au>
368 * ldlang.c (init_os): Whitespace.
369 (map_input_to_output_sections): Don't init_os for lang_input_section.
370 (print_all_symbols): Remove forward declaration. Convert to ISO C.
372 2006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
374 * po/Make-in (top_builddir): Define.
376 2006-06-05 Alan Modra <amodra@bigpond.net.au>
378 * ldexp.c (exp_get_abs_int): Make error message the same as
379 others emitted in this file.
381 2006-06-05 Alan Modra <amodra@bigpond.net.au>
383 * config.in: Regenerate.
385 2006-06-05 Alan Modra <amodra@bigpond.net.au>
387 * ldlang.c (lookup_name): Delete dead code. Remove FIXMEs.
389 2006-06-03 Alan Modra <amodra@bigpond.net.au>
391 * emultempl/elf32.em (global_found): Make it a pointer.
392 (stat_needed, try_needed): Adjust.
393 (check_needed): Don't skip non-loaded as-needed entries. Only
394 consider entries with both filename and the_bfd non-null.
395 (after_open): Try loading non-loaded as-needed libs to satisfy
398 2006-06-02 Joseph S. Myers <joseph@codesourcery.com>
400 * Makefile.am (TEXI2DVI): Add -I $(top_srcdir)/../libiberty.
401 * Makefile.in: Regenerate.
403 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
405 * Makefile.am: Replace INTLLIBS and INTLDEPS with LIBINTL
406 and LIBINTL_DEP everywhere.
408 (INCLUDES): Use @INCINTL@.
409 * configure.in: Use ZW_GNU_GETTEXT_SISTER_DIR and AM_PO_SUBDIRS.
410 Remove local code for po/Makefile.
411 * Makefile.in, configure: Regenerated.
413 2006-05-30 H.J. Lu <hongjiu.lu@intel.com>
415 * emulparams/arcelf.sh (MAXPAGESIZE): Changed to
416 "CONSTANT (MAXPAGESIZE)".
417 * emulparams/armelf_nbsd.sh: Likewise.
418 * emulparams/armelf_vxworks.sh: Likewise.
419 * emulparams/armnto.sh: Likewise.
420 * emulparams/armsymbian.sh: Likewise.
421 * emulparams/crislinux.sh: Likewise.
422 * emulparams/elf32_i860.sh: Likewise.
423 * emulparams/elf32_i960.sh: Likewise.
424 * emulparams/elf32am33lin.sh: Likewise.
425 * emulparams/elf32bfinfd.sh: Likewise.
426 * emulparams/elf32bmipn32-defs.sh: Likewise.
427 * emulparams/elf32frvfd.sh: Likewise.
428 * emulparams/elf32i370.sh: Likewise.
429 * emulparams/elf32lppcnto.sh: Likewise.
430 * emulparams/elf32mcore.sh: Likewise.
431 * emulparams/elf32openrisc.sh: Likewise.
432 * emulparams/elf32ppcnto.sh: Likewise.
433 * emulparams/elf32ppcwindiss.sh: Likewise.
434 * emulparams/elf32vax.sh: Likewise.
435 * emulparams/elf32xc16x.sh: Likewise.
436 * emulparams/elf32xc16xl.sh: Likewise.
437 * emulparams/elf32xc16xs.sh: Likewise.
438 * emulparams/elf64_aix.sh: Likewise.
439 * emulparams/elf64hppa.sh: Likewise.
440 * emulparams/elf64mmix.sh: Likewise.
441 * emulparams/elf_i386_be.sh: Likewise.
442 * emulparams/elf_i386_chaos.sh: Likewise.
443 * emulparams/elf_i386_ldso.sh: Likewise.
444 * emulparams/hppa64linux.sh: Likewise.
445 * emulparams/hppalinux.sh: Likewise.
446 * emulparams/hppaobsd.sh: Likewise.
447 * emulparams/i386lynx.sh: Likewise.
448 * emulparams/i386moss.sh: Likewise.
449 * emulparams/i386nto.sh: Likewise.
450 * emulparams/i386nw.sh: Likewise.
451 * emulparams/m32relf_linux.sh: Likewise.
452 * emulparams/m68kpsos.sh: Likewise.
453 * emulparams/or32elf.sh: Likewise.
454 * emulparams/pjelf.sh: Likewise.
455 * emulparams/pjlelf.sh: Likewise.
456 * emulparams/ppclynx.sh: Likewise.
457 * emulparams/ppcnw.sh: Likewise.
458 * emulparams/shelf32_nbsd.sh : Likewise.
459 * emulparams/shelf_nbsd.sh: Likewise.
460 * emulparams/shelf_nto.sh: Likewise.
461 * emulparams/shlelf_nto.sh: Likewise.
462 * emulparams/xtensa-config.sh: Likewise.
464 * emulparams/armelf_linux.sh (MAXPAGESIZE): Changed to
465 "CONSTANT (MAXPAGESIZE)".
466 (COMMONPAGESIZE): Changed to "CONSTANT (COMMONPAGESIZE)".
467 * emulparams/elf32_sparc.sh: Likewise.
468 * emulparams/elf32bmip.sh: Likewise.
469 * emulparams/elf32ppccommon.sh: Likewise.
470 * emulparams/elf64_ia64.sh: Likewise.
471 * emulparams/elf64_s390.sh: Likewise.
472 * emulparams/elf64_sparc.sh: Likewise.
473 * emulparams/elf64alpha.sh: Likewise.
474 * emulparams/elf64ppc.sh: Likewise.
475 * emulparams/elf_i386.sh: Likewise.
476 * emulparams/elf_i386_vxworks.sh: Likewise.
477 * emulparams/elf_s390.sh: Likewise.
478 * emulparams/elf_x86_64.sh: Likewise.
479 * emulparams/shlelf32_linux.sh: Likewise.
480 * emulparams/shlelf_linux.sh: Likewise.
482 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Changed to
483 "CONSTANT (COMMONPAGESIZE)".
484 * emulparams/elf32btsmipn32.sh: Likewise.
486 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
487 "-z max-page-size=" and "-z common-page-size=".
488 (gld${EMULATION_NAME}_list_options): Likewise.
490 * ld.h (ld_config_type): Add maxpagesize and commonpagesize.
492 * ld.texinfo: Document "-z max-page-size=" and
493 "-z common-page-size=".
495 * ldexp.c (exp_print_token): Handle CONSTANT.
496 (fold_name): Likewise.
497 * ldgram.y: Likewise.
500 * ldmain.c (main): Initiliaze config.maxpagesize and
501 config.commonpagesize. Call bfd_emul_set_maxpagesize if
502 config.maxpagesize isn't 0. Call bfd_emul_set_commonpagesize if
503 config.commonpagesize config.maxpagesize isn't 0.
505 2006-05-30 Nick Clifton <nickc@redhat.com>
507 * po/es.po: Updated Spanish translation.
509 2006-05-25 H.J. Lu <hongjiu.lu@intel.com>
511 * emulparams/elf_x86_64.sh (MAXPAGESIZE): Updated to 0x200000.
513 2006-05-24 H.J. Lu <hongjiu.lu@intel.com>
516 * configure.in: Use ${srcdir}/../bfd/config.bfd to check 64bit
517 bfd. Support 64bit host for --enable-targets=all.
518 * configure: Regenerated.
520 2006-05-24 Nick Clifton <nickc@redhat.com>
522 * po/vi.po: Updated Vietnamese translation.
524 2006-05-24 Bjoern Haase <bjoern.m.haase@web.de>
526 * configure.tgt: Add avr6 to emulation list.
527 * Makefile.am: Add eavr6.o and corresponding rule.
528 * Makefile.in: Regenerate.
529 * emulparams/avr6.sh: New file.
530 * emulparams/avrX.sh (TEMPLATE_NAME): Use elf32 instead of generic
531 for target option support.
532 (EXTRA_EM_FILE): Add reference to new em template file avrelf.
533 * scripttempl/avr.sc: Add ".trampolines" section.
534 * emultempl/avrelf.em: Add new file for target specific options.
536 2006-05-22 Nick Clifton <nickc@redhat.com>
538 * scripttempl/elf32crx.sc (.rdata): Add .rodata.*.
540 2006-05-19 Alan Modra <amodra@bigpond.net.au>
542 * ldlang.c (lang_size_sections_1): Don't check mem regions for
543 os->ignored sections.
545 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
547 * ldlang.c (lang_size_sections): Call lang_reset_memory_regions
548 before redoing one_lang_size_sections_pass.
550 2006-05-11 Carlos O'Donell <carlos@codesourcery.com>
552 * ld.texinfo: Rename "Index" to "LD Index"
554 2006-05-11 Pedro Alves <pedro_alves@portugalmail.pt>
556 * pe-dll.c (autofilter_symbollist): Add Dllmain,
557 DllMainCRTStartup, _DllMainCRTStartup and .text.
558 (autofilter_liblist): Add libcegcc.
559 (autofilter_symbolprefixlist): Add __imp_ and .idata$.
560 (generate_reloc): Do not skip sections without a SEC_LOAD flag,
561 they can still contain relocs that need processing.
562 Skip the .idata$6 section.
563 (jmp_arm_bytes): New array: Contains byte codes for an ARM jump.
564 (make_one): Use the new array.
565 (make_import_fixup_entry): Use .idata$2 instead of .idata$3.
566 * emultempl/pe.em (MajorSubsystemVersion): Set to 3 for armpe.
568 2006-05-05 Alan Modra <amodra@bigpond.net.au>
570 * ld.texinfo: Document PowerPC and PowerPC64 options.
571 * gen-doc.texi: Enable.
573 2006-05-02 Daniel Jacobowitz <dan@codesourcery.com>
575 * Makefile.am (AM_MAKEINFOFLAGS): Add libiberty.
576 (TEXI2POD): Use AM_MAKEINFOFLAGS.
577 (configdoc.texi): Don't set top_srcdir.
578 * ld.texinfo: Don't use top_srcdir.
579 * aclocal.m4, Makefile.in: Regenerated.
581 2006-04-19 Alan Modra <amodra@bigpond.net.au>
583 * ldlang.c (wild): Tidy default_common_section loop.
584 (print_input_section): Format.
586 * configure: Regenerate.
588 2006-04-16 Daniel Jacobowitz <dan@codesourcery.com>
590 * po/POTFILES.in: Regenerated.
592 2006-04-16 Daniel Jacobowitz <dan@codesourcery.com>
594 * config.in: Regenerated.
596 2006-04-14 David Heine <dlheine@tensilica.com>
597 Bob Wilson <bob.wilson@acm.org>
599 * emultempl/xtensaelf.em (elf_xtensa_before_allocation): Call new
600 function to strip inconsistent linkonce sections.
601 (input_section_linked_worker, input_section_linked): New.
602 (is_inconsistent_linkonce_section): New.
603 (xtensa_strip_inconsistent_linkonce_sections): New.
605 2006-04-11 Diego Pettenò <flameeyes@gentoo.org>
607 * emultempl/elf32.em: Add support for elf-hints.h on FreeBSD
608 and Dragonfly targets.
609 * configure.in (AC_CHECK_HEADERS): Add elf-hints.h.
610 * Makefile.am (HFILES): Add elf-hints-local.h.
611 * elf-hints-local.h: New file.
612 * Makefile.in: Regenerate.
613 * configure: Regenerate.
615 2006-04-07 Bernhard Fischer <aldot@gcc.gnu.org>
617 * ld.texinfo: Fix typo in documentation of --check-sections.
619 2006-04-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
621 * ldlang.c (load_symbols): Set as_needed and add_needed according
622 to the corresponding script's fields while processing it.
624 2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
626 * Makefile.am: Add install-html, install-html-am, and
627 install-html-recursive targets.
628 * Makefile.in: Regenerate.
629 * configure.in: AC_SUBST datarootdir, docdir, htmldir.
630 * configure: Regenerate.
631 * po/Make-in: Add install-html target.
633 2006-04-06 H.J. Lu <hongjiu.lu@intel.com>
635 * emultempl/ia64elf.em: Set link_info.relax_pass to 2. Remove
636 link_info.need_relax_finalize.
638 * ldlang.c (relax_sections): New.
639 (lang_process): Use. Call relax_sections link_info.relax_pass
642 * ldmain.c (main): Set link_info.relax_pass to 1. Remove
643 link_info.need_relax_finalize.
645 2006-04-05 Alan Modra <amodra@bigpond.net.au>
647 * Makefile.am (GENSCRIPTS): Pass prefix.
648 * Makefile.in: Regenerate.
649 * genscripts.sh: Adjust for extra parameter.
650 * emultempl/elf32.em (parse_ld_so_conf): Return true iff file
652 (check_ld_so_conf): Use ${prefix}/etc/ld.so.conf if it exists.
655 2006-04-05 Richard Sandiford <richard@codesourcery.com>
656 Daniel Jacobowitz <dan@codesourcery.com>
658 * configure.tgt (sparc*-*-vxworks*): New stanza.
659 * emulparams/elf32_sparc_vxworks.sh: New file.
660 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_vxworks.o.
661 (eelf32_sparc_vxworks.c): New rule.
662 * Makefile.in: Regenerate.
664 2006-04-04 Eric Botcazou <ebotcazou@adacore.com>
666 * ldlang.c (lang_map): Print the list of discarded input sections.
667 (print_input_section): Change parameter and print zero-sized sections.
668 (print_statement): Adjust call to print_input_section.
670 2006-04-01 Danny Smith <dannysmith@users.sourceforge.net>
672 * deffilep.y (def_image_name): If LIBRARY or NAME statement
673 specifies an empty string, retain the name specified on command
675 * ld.texinfo: Document above.
677 2006-03-31 Jakub Jelinek <jakub@redhat.com>
679 * ldmisc.c (vfinfo): Revert 2005-10-05 changes. If
680 bfd_find_nearest_line succeeded for %C or %D, but filename
681 is NULL, print section+offset at the end.
683 2006-03-25 Bernd Schmidt <bernd.schmidt@analog.com>
685 * emulparams/elf32bfinfd.sh: New file.
686 * emultempl/bfin.em: Delete.
687 * emulparams/bfin.sh: Lose reference to bfin.em.
688 * Makefile.am (eelf32bfin.c): Likewise.
689 (eelf32bfinfd.c): New.
690 * Makefile.in: Regenerate.
691 * configure.tgt (bfin-*-elf, bfin-*-uclinux): Add elf32bfinfd to
694 2006-03-22 Richard Sandiford <richard@codesourcery.com>
695 Daniel Jacobowitz <dan@codesourcery.com>
696 Phil Edwards <phil@codesourcery.com>
697 Zack Weinberg <zack@codesourcery.com>
698 Mark Mitchell <mark@codesourcery.com>
699 Nathan Sidwell <nathan@codesourcery.com>
701 * configure.tgt (mips*el-*-vxworks*, mips*-*-vxworks*): Use
702 separate VxWorks emulations.
703 * emulparams/elf32ebmipvxworks.sh: New file.
704 * emulparams/elf32elmipvxworks.sh: New file.
705 * Makefile.am (ALL_EMULATIONS): Add eelf32ebmipvxworks.o and
706 eelf32elmipvxworks.o.
707 (eelf32ebmipvxworks.c, eelf32elmipvxworks.c): New rules.
708 * Makefile.in: Regenerate.
710 2006-03-16 Alan Modra <amodra@bigpond.net.au>
713 * ldcref.c (add_cref): Adjust bfd_hash_table_init calls.
714 * ldlang.c (output_statement_table_init, lang_init): Likewise.
715 * ldmain.c (add_ysym, add_wrap, add_keepsyms_file): Likewise.
716 (undefined_symbol): Likewise.
718 2006-03-07 Richard Sandiford <richard@codesourcery.com>
719 Daniel Jacobowitz <dan@codesourcery.com>
720 Zack Weinberg <zack@codesourcery.com>
721 Nathan Sidwell <nathan@codesourcery.com>
722 Paul Brook <paul@codesourcery.com>
723 Ricardo Anguiano <anguiano@codesourcery.com>
724 Phil Edwards <phil@codesourcery.com>
726 * emulparams/armelf_vxworks.sh: Include vxworks.sh.
727 (MAXPAGESIZE): Define.
728 * emulparams/vxworks.sh: Undefine EMBEDDED.
729 * Makefile.am (earmelf_vxworks.c): Depend on vxworks.sh and vxworks.em.
730 * Makefile.in: Regenerate.
732 2006-03-03 Bjoern Haase <bjoern.m.haase@web.de>
734 * scripttempl/avr.sc: Add *(.jumptables) *(.lowtext) sections.
735 Add KEEP() directives.
736 Add *(.data*) *(.rodata) and *(.rodata*) and *(.bss*) to .data and
737 .bss output sections.
739 2006-03-03 Richard Sandiford <richard@codesourcery.com>
741 * emulparams/vxworks.sh (VXWORKS_BASE_EM_FILE): New variable.
742 (EXTRA_EM_FILE): Define.
743 * emultempl/vxworks.em: New file.
744 * ld.texinfo (--force-dynamic): Document.
745 * Makefile.am (eelf32ppcvxworks.cm, eelf_i386_vxworks.c): Depend
747 * Makefile.in: Regenerate.
749 2006-03-02 Richard Sandiford <richard@codesourcery.com>
751 * emulparams/elf32ppccommon.sh: New file, extracted from...
752 * emulparams/elf32ppc.sh: ...here.
753 * emulparams/elf32ppcvxworks.sh: Include elf32ppccommon.sh
754 instead of elf32ppc.sh.
755 (BSS_PLT): Remove override.
756 * Makefile.am (eelf32lppc.c): Depend on elf32ppccommons.h.
757 (eelf32lppcnto.c, eelf32lppcsim.c, eelf32ppcnto.c): Likewise.
758 (eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppcsimm): Likewise.
759 (eelf32ppclinux.c): Likewise.
760 (eelf32ppcvxworks.c): Likewise. Add missing vxworks.sh dependency.
761 * Makefile.in: Regenerate.
763 2006-02-27 Carlos O'Donell <carlos@codesourcery.com>
765 * Makefile.am: Add html target.
766 * Makefile.in: Regenerate.
767 * po/Make-in: Add html target.
769 2006-02-17 Shrirang Khisti <shrirangk@kpitcummins.com>
770 Anil Paranjape <anilp1@kpitcummins.com>
771 Shilin Shakti <shilins@kpitcummins.com>
773 * scripttemp/elf32xc16x.sc: Default linker script for tiny model.
774 * scripttemp/elf32xc16xl.sc: Default linker script for large model.
775 * scripttemp/elf32xc16xs.sc: Default linker script for small model.
776 * emulparams/elf32xc16x.sh: Emulation script for tiny model.
777 * emulparams/elf32xc16xl.sh: Emulation script for large model.
778 * emulparams/elf32xc16xs.sh: Emulation script for small model.
779 * Makefile.am: Add entry to make xc16x target.
780 * Makefile.in: Regenerate.
781 * configure.tgt: Specify default and other emulation parameters
783 * NEWS: Announce the support for the new target.
785 2006-02-16 Nick Hudson <nick.hudson@dsl.pipex.com>
787 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
788 Use the traditional target.
790 2006-02-13 Joseph S. Myers <joseph@codesourcery.com>
792 * configure.tgt (arm*b-*-linux-gnueabi): Change to
794 (arm*-*-linux-gnueabi): Change to arm*-*-linux-*eabi.
796 2006-02-08 H.J. Lu <hongjiu.lu@intel.com>
799 * NEWS: Updated for the Linux linker search order change.
801 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Call
802 gld${EMULATION_NAME}_check_ld_so_conf before checking default
803 search directories for DT_NEEDED entries.
805 2006-02-07 Paul Brook <paul@codesourcery.com>
807 * emultempl/armelf.em: Include elf/arm.h.
808 (arm_elf_finish): Set low address bit if enty point is a Thumb
811 2006-02-01 Danny Smith <dannysmith@users.sourceforge.net>
813 * deffilep.y (def_image_name): If the image name does not have
814 a suffix, append the default.
815 * ld.texinfo: Document NAME, LIBRARY usage in PE-COFF .def files.
817 2006-01-31 Danny Smith dannysmith@users.sourceforge.net
819 * NEWS: Mention support for forward exports in PE-COFF dll's.
820 * ld.texinfo: Expand documentation of EXPORT statements in
823 2006-01-31 Filip Navara <navaraf@reactos.com>
825 * deffile.h (struct def_file_export): Add field flag_forward.
826 * pe-dll.c (process_def_file): Check for forward exports.
827 (generate_edata): Generate forward export symbols.
828 (fill_edata): Emit them.
830 * pe-dll.c (process_def_file): Don't crash on malformed
831 fastcall symbol names in .def file.
833 2006-01-30 Nick Clifton <nickc@redhat.com>
835 * po/vi.po: Updated Vietnamese translation.
837 2006-01-27 Yitzchak Scott-Thoennes <sthoenna@efn.org>
839 * pe-dll.c (pe_dll_generate_implib): Issue "Creating library
840 file:" as informational message, not a warning.
842 2006-01-18 Roger Sayle <roger@eyesopen.com>
844 * emultempl/irix.em: Use lbasename instead of basename.
846 2006-01-16 Nick Clifton <nickc@redhat.com>
848 * po/zh_CN.po: New Chinese (simplified) translation.
849 * configure.in (ALL_LINGUAS): Add "zh_CH".
850 * configure: Regenerate.
852 2006-01-16 Bernhard Fischer <aldot@gcc.gnu.org>
854 * ld.texinfo (Options): Fix typo.
856 For older changes see ChangeLog-2005
862 version-control: never