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