* configure.host: Add *-*-openbsd support.
[binutils.git] / ld / ChangeLog
blob9e4e2593437dec4f1c60c96f3dfe9eb6046968ad
1 2005-04-24  Mark Kettenis  <kettenis@gnu.org>
3         * configure.host: Add *-*-openbsd support.
5 2005-04-15  Julian Brown  <julian@codesourcery.com>
7         * ld.texinfo: Document --use-blx.
8         * emultempl/armelf.em (use_blx): New variable.
9         (arm_elf_create_output_section_statements): Communicate value of
10         use_blx to bfd.
11         (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
12         (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
13         (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
15 2005-04-14  Alan Modra  <amodra@bigpond.net.au>
17         * Makefile.am (NO_WERROR): Define.  Use instead of -Wno-error.
18         * configure.in: Include ../bfd/warning.m4 contents.
19         * Makefile.in: Regenerate.
20         * configure: Regenerate.
22 2005-04-12  Alan Modra  <amodra@bigpond.net.au>
24         * Makefile.am: Run "make dep-am".
25         (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
26         * Makefile.in: Regenerate.
27         * config.in: Regenerate.
29 2005-04-11  Alan Modra  <amodra@bigpond.net.au>
31         * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
32         as_needed libs that were not needed.
33         (gld${EMULATION_NAME}_check_needed): Likewise.
35 2005-04-07  Nick Clifton  <nickc@redhat.com>
37         * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
38         ldfile.h can use the lang_input_statement type. 
40 2005-04-06  Jakub Jelinek  <jakub@redhat.com>
42         * ldlang.c: Formatting.
43         (walk_wild_consider_section): Remember return value from wildcardp.
44         (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
45         (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
47 2005-04-06  Robert O'Callahan  <rocallahan@novell.com>
49         * ld.h (lean_section_userdata_type): Remove.
50         (fat_section_userdata_type): Remove file field.
51         (SECTION_USERDATA_SIZE): Remove.
52         * ldlang.c (init_os): Eliminate initialization of unused
53         lean_section_userdata_type.
55         * ldlang.h (callback_t, walk_wild_section_handler_t): New
56         typedefs.
57         (struct lang_wild_statement_struct): Add walk_wild_section_handler
58         and handler_data fields.
59         * ldlang.c (callback_t): Removed.
60         (walk_wild_consider_section, walk_wild_section_general,
61         section_iterator_callback, find_section, is_simple_wild,
62         match_simple_wild, walk_wild_section_specs1_wild0,
63         walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
64         walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
65         wild_spec_can_overlap, analyze_walk_wild_section_handler): New
66         functions.
67         (lang_add_wild): Call analyze_walk_wild_section_handler.
68         (walk_wild_section): Renamed to walk_wild_section_general and
69         created a wrapper function.
70         (section_iterator_callback_data): New typedef.
72 2005-04-04  Nick Clifton  <nickc@redhat.com>
74         * configure.in: Add a check for <unistd.h> providing a prototype
75         for getopt() which is compatible with the one in
76         include/getopt.h.  If so then define HAVE_DECL_GETOPT.
77         * configure: Regenerate.
78         * config.in (HAVE_DECL_GETOPT): Add.
79         * ldemul.c: Include config.h
80         * lexsup.c: Likewise.
81         * emultempl/elf32.sc: Likewise.
83 2005-03-29  Alan Modra  <amodra@bigpond.net.au>
85         * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
86         New function, extracted from static void gld${EMULATION_NAME}_finish.
87         (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
88         (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
89         * emultempl/ppc64elf.em: Revert last change.
90         (ppc_layout_sections_again): Use
91         gld${EMULATION_NAME}_layout_sections_again.
92         (ppc_finish): Don't call gld${EMULATION_NAME}_finish.  Instead call
93         gld${EMULATION_NAME}_strip_empty_sections and
94         gld${EMULATION_NAME}_provide_init_fini_syms.
95         * emultempl/hppaelf.em: Similarly.
97 2005-03-29  Alan Modra  <amodra@bigpond.net.au>
99         * emultempl/ppc64elf.em (need_laying_out): Delete.  Remove all refs.
100         (ppc_finish): Don't call bfd_elf_discard_info.
101         * emultempl/hppaelf.em: Similarly.
103 2005-03-24  Nick Clifton  <nickc@redhat.com>
105         * po/fr.po: Updated French translation.
107 2005-03-23  Mike Frysinger  <vapier@gentoo.org>
108             Nick Clifton  <nickc@redhat.com>
110         * configure.host: Accept any C library to accompany a GNU Linux
111         implementation, not just the GNU C library.
112         * configure.tgt: Likewise.
113         * emultempl/elf32.em: Likewise.
115 2005-03-22  H.J. Lu  <hongjiu.lu@intel.com>
117         * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
118         (gld${EMULATION_NAME}_finish): Call
119         gld${EMULATION_NAME}_provide_bound_symbols to provide
120         __preinit_array_start, __preinit_array_end, __init_array_start,
121         __init_array_end, __fini_array_start and __fini_array_end.
123         * scripttempl/elf.sc: Don't provide __preinit_array_start,
124         __preinit_array_end, __init_array_start, __init_array_end,
125         __fini_array_start nor __fini_array_end.
127 2005-03-23  Alan Modra  <amodra@bigpond.net.au>
129         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
130         SEC_EXCLUDE on .gnu.warning sections.
132 2005-03-22  Alan Modra  <amodra@bigpond.net.au>
134         * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
136 2005-03-21  Alan Modra  <amodra@bigpond.net.au>
138         * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
139         function.
140         (LDEMUL_AFTER_ALLOCATION): Define.
142 2005-03-21  Alan Modra  <amodra@bigpond.net.au>
144         * emultempl/ppc64elf.em (ppc_finish): Rename from
145         gld${EMULATION_NAME}_finish.  Call gld${EMULATION_NAME}_finish.
146         (LDEMUL_FINISH): Update.
147         * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
148         * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
150 2005-03-18  Julian Brown  <julian@codesourcery.com>
152         * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
153         .rel.fini_array.
154         (.rela.dyn): Add .rela.init_array, .rela.fini_array.
155         (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
157 2005-03-18  H.J. Lu  <hongjiu.lu@intel.com>
159         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
160         bfd_section when removing unused empty output sections for
161         non-relocatable link.
163 2005-03-19  Alan Modra  <amodra@bigpond.net.au>
165         * ldlang.c (lang_insert_orphan): Use old section_tail rather than
166         traversing the bfd section list to find pointer to new section.
168 2005-03-18  Alan Modra  <amodra@bigpond.net.au>
170         * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
171         input sections into .sdata and .sbss output respectively.
173 2005-03-16  David Heine  <dlheine@tensilica.com>
174             Bob Wilson  <bob.wilson@acm.org>
176         * ldlang.c (IGNORE_SECTION): Remove check for zero size.
177         (lang_check_section_addresses): Ignore zero size sections here.
179 2005-03-16  H.J. Lu  <hongjiu.lu@intel.com>
181         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
182         unused empty output sections for non-relocatable link.
184         * ld.h (args_type): Remove gc_sections.
186         * ldlang.c (lang_mark_used_section): New.
187         (lang_gc_sections): Use link_info.gc_sections instead of
188         command_line.gc_sections.
189         * ldmain.c (main): Likewise.
190         * lexsup.c (parse_args): Likewise.
191         * ldlang.c (lang_process): Call lang_mark_used_section.
193         * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
195 2005-03-16  Nick Clifton  <nickc@redhat.com>
196             Ben Elliston  <bje@au.ibm.com>
198         * configure.in (werror): New switch: Add -Werror to the
199         compiler command line.  Enabled by default.  Disable via
200         --disable-werror.
201         * configure: Regenerate.
203 2005-03-16  Alan Modra  <amodra@bigpond.net.au>
205         * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
206         (OTHER_RELRO_SECTIONS): Set this instead.
208 2005-03-15  Nick Clifton  <nickc@redhat.com>
210         * NEWS: Add cutoff for changes in 2.16 release.
212 2005-03-15  Mikkel Krautz  <krautz@gmail.com>
214         * configure.tgt (x86_64-elf): Add target.
216 2005-03-15  Alan Modra  <amodra@bigpond.net.au>
218         * po/es.po: Commit new Spanish translation.
220 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
222         * ldexp.c (exp_fold_tree): Ensure return value is initialized.
223         Tidy etree_assert case.
225 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
227         * po/tr.po: Commit new Turkish translation.
229 2005-03-11  Daniel Jacobowitz  <dan@codesourcery.com>
231         * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
232         * Makefile.in: Regenerated.
233         * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
235 2005-03-07  Nick Clifton  <nickc@redhat.com>
237         * po/fr.po: Updated translation.
239 2005-03-05  Alan Modra  <amodra@bigpond.net.au>
241         * po/ld.pot: Regenerate.
243 2005-03-02  Jan Beulich  <jbeulich@novell.com>
245         * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
246         * pe-dll.c (pe_dll_generate_implib): Likewise.
248 2005-02-24  Ben Elliston  <bje@au.ibm.com>
250         * ldfile.c: Remove GNU960 conditional code.
251         * emultempl/gld960.em: Likewise.
252         * emultempl/gld960c.em: Likewise.
253         * emultempl/lnk960.em: Likewise.
255 2005-02-24  Nick Clifton  <nickc@redhat.com>
257         * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
258         empty string from calls to concat.
260 2005-02-23  Nick Clifton  <nickc@redhat.com>
262         * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
263         arguments passed to concat() with a NULL.
265         * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
266         define types needed by ldfile.h
268 2005-02-23  Alan Modra  <amodra@bigpond.net.au>
270         * pe-dll.c: Warning fixes.
271         * emultempl/sunos.em: Likewise.
273 2005-02-22  Daniel Jacobowitz  <dan@codesourcery.com>
275         * ldlang.c (section_already_linked): Don't call
276         bfd_section_already_linked for dynamic objects.
278 2005-02-22  Alan Modra  <amodra@bigpond.net.au>
280         * ldexp.c: Warning fixes.
281         * ldwrite.c: Likewise.
282         * emultempl/elf32.em: Likewise.
284 2005-02-21  H.J. Lu  <hongjiu.lu@intel.com>
286         * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
287         tic54x input only.
288         (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
289         and ECOFF output only.
291 2005-02-21  Alan Modra  <amodra@bigpond.net.au>
293         * config.in: Regenerate.
294         * configure: Regenerate.
296 2005-02-17  Zack Weinberg  <zack@codesourcery.com>
298         * ldexp.c (assigning_to_dot): New global flag.
299         (fold_name): If assigning_to_dot is true, object immediately to
300         an undefined symbol.
301         (exp_fold_tree): Set and clear assigning_to_dot around the
302         recursive call to exp_fold_tree to process the right-hand side
303         of an assignment to the location counter.
305 2005-02-17  Paul Brook  <paul@codesourcery.com>
307         * scripttempl/armbpabi.sc: Add dummy name to version block.
309 2005-02-17  Alan Modra  <amodra@bigpond.net.au>
311         * ldexp.c (new_abs): Init new.str.
313 2005-02-15  Mark Mitchell  <mark@codesourcery.com>
315         * configure.in (AC_CHECK_FUNCS): Add glob.
316         * configure: Regenerated.
317         * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
318         not defined.
319         (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
320         if HAVE_GLOB is not defined.
322 2005-02-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
324         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
325         lib_path if NATIVE is yes.
327 2005-02-16  Alan Modra  <amodra@bigpond.net.au>
329         * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
330         an error creating fake bfd fatal.
331         (ppc_before_allocation): Continue on after errors.
332         (gld${EMULATION_NAME}_finish): Likewise.
334 2005-02-15  Nick Clifton  <nickc@redhat.com>
336         * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
337         not declared.  It is not used and its presence causes a compile
338         time warning.
340 2005-02-11  Zack Weinberg  <zack@codesourcery.com>
342         * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
343         If st.st_ino is zero, do not treat the library as a duplicate.
345 2005-02-10  Jakub Jelinek  <jakub@redhat.com>
347         * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
348         Set BFD_LINKER_CREATED on the stubs bfd.
349         * emultempl/ppc64elf.em (ppc_create_output_section_statements):
350         Likewise.
352 2005-02-08  Mark Mitchell  <mark@codesourcery.com>
354         * scripttempl/armbpabi.sc (VERSION): Make special section symbols
355         local.
356         (Image$$ER_RO$$Base): Define whenever RELOCATING.
357         (Image$$ER_RO$$Limit): Likewise.
358         (SHT$$INIT_ARRAY$$Base): Likewise.
359         (SHT$$INIT_ARRAY$$Limit): Likeise.
361 2005-02-10  Ben Elliston  <bje@au.ibm.com>
363         * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
365 2005-02-08  Richard Sandiford  <rsandifo@redhat.com>
367         * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
368         to include o32 and n64 emulations.
369         (mips64*-*-linux-gnu*): Likewise.
371 2005-02-08  Hans-Peter Nilsson  <hp@axis.com>
373         * ldmain.c (warning_callback, warning_find_reloc): Prepend
374         "warning: " to warning messages.
376 2005-02-04  Alan Modra  <amodra@bigpond.net.au>
378         * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
379         look up symbol for etree_provide here.
381 2005-02-02  Daniel Jacobowitz  <dan@codesourcery.com>
383         * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
385 2005-02-01  Edward Welbourne  <eddy@opera.com>
386             Nick Clifton  <nickc@redhat.com>
388         * ld.texinfo (Source Code Reference): New node describing how to
389         access linker script defined variables from source code.
391 2005-02-01  Alan Modra  <amodra@bigpond.net.au>
393         * ld.texinfo: Clarify --as-needed operation.
395 2005-01-31  Andrew Cagney  <cagney@gnu.org>
397         * configure: Regenerate to track ../gettext.m4.
399 2005-01-31  Nick Clifton  <nickc@redhat.com>
401         * ldver.c (ldversion): Bump reported copyright date to 2005.
403 2005-01-31  Nick Clifton  <nickc@redhat.com>
405         * configure.tgt: Remove obsolete targets m68k-lynxos and
406         sparc-lynxos.
408 2005-01-28  Julian Brown  <julian@codesourcery.com>
410         * emultempl/armelf.em (fix_v4bx): New variable.
411         (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
412         value to bfd.
413         (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
414         (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
415         (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
416         (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
417         * NEWS: Mention --fix-v4bx.
418         * ld.texinfo: Document --fix-v4bx.
420 2005-01-25  Mark Mitchell  <mark@codesourcery.com>
422         * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
423         as to include .ARM.exidx$${Base,Limit}.
424         * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
425         Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
426         Put .init_array, .fini_array, etc. into the read-only data
427         segment.
429 2005-01-25  Alan Modra  <amodra@bigpond.net.au>
431         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
432         (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
433         only needed by an as-needed lib that didn't get linked.
435 2005-01-23  Alan Modra  <amodra@bigpond.net.au>
437         * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
438         __DTOR_LIST__ description.
440 2005-01-23  Alan Modra  <amodra@bigpond.net.au>
442         * ld.texinfo (Location Counter <dot outside sections>): Document
443         effects of orphan section placement, and ". = ." workaround.
444         * Makefile.in: Regenerate.
446 2005-01-22  Richard Sandiford  <rsandifo@redhat.com>
448         * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
449         * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
451 2005-01-21  Jakub Jelinek  <jakub@redhat.com>
453         * ldgram.y (AS_NEEDED): New token.
454         (input_list): Handle AS_NEEDED ( input_list ).
455         * ldlex.l (AS_NEEDED): Add.
456         * ld.texinfo: Document AS_NEEDED ().
457         * NEWS: Mention AS_NEEDED ().
459 2005-01-21  Ben Elliston  <bje@au.ibm.com>
461         * ldlang.c (lang_reasonable_defaults): Remove.
462         (lang_process): Don't call lang_reasonable_defaults.
464         * ldexp.c (exp_assop): Remove #if 0'd code.
465         (exp_print_tree): Likewise.
466         * ldlang.c (lang_memory_region_lookup): Likewise.
467         (open_output): Likewise.
468         (lang_do_assignments_1): Likewise.
469         (lang_place_orphans): Likewise.
470         (lang_enter_output_section_statement): Likewise.
471         (lang_reasonable_defaults): Likewise.
472         * ldlang.h (struct lang_input_statement_struct): Likewise.
473         * mri.c (mri_draw_tree): Likewise.
474         (mri_load): Likewise.
475         * pe-dll.c (generate_reloc): Likewise.
476         (make_import_fixup_entry): Likewise.
477         (pe_as16): Likewise.
478         * emultempl/beos.em (set_pe_subsystem): Likewise.
479         * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
480         * emultempl/pe.em: Likewise.
481         * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
483 2005-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
485         * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
486         (earmelfb_linux_eabi.c): New target.
487         * Makefile.in: Regenerated.
488         * configure.tgt (arm*b-*-linux-gnueabi): New target.
489         * emulparams/armelfb_linux_eabi.sh: New file.
491 2005-01-20  Nick Hudson  <skrll@netbsd.org>
493         PR ld/676
494         * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
495         Handle bfd_elf32_hppa_nbsd_vec.
497 2005-01-19  Richard Sandiford  <rsandifo@redhat.com>
499         * ldmain.h (ld_sysroot): Change type to a constant string.
500         * ldmain.c (ld_sysroot): Likewise.
501         (get_relative_sysroot, get_sysroot): New functions, adding command-line
502         support for changing the sysroot.
503         (main): Call the new functions.
504         * lexsup.c (OPTION_SYSROOT): New.
505         (ld_options): Add --sysroot.
506         (parse_args): Add a dummy handler for it.
507         * ld.texinfo (--sysroot): Document.
508         * NEWS: Mention the new --sysroot option.
510 2005-01-18  Alan Modra  <amodra@bigpond.net.au>
512         * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
513         (lang_place_orphans): Don't abort on just_syms_flag, instead call
514         bfd_link_just_syms.
516 2005-01-16  Danny Smith  <dannysmith@users.sourceforge.net>
518         * defilep.y (def_name, def_library): Combine into...
519         (def_image_name): New function.  Strip name to basename,
520         with warning.
522 2005-01-12  Mark Kettenis  <kettenis@gnu.org>
524         * configure.in: Be sure to invoke config.sub using the shell.
525         * configure: Regenerate.
527 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
529         * configure.host: Correct sed patterns for last change.
531 2005-01-10  Nick Clifton  <nickc@redhat.com>
533         PR binutils/609
534         * ldmisc.c (vfinfo): Add an extra argument: is_warning.  Use this
535         to determine whether config.make_executable should be set to FALSE in
536         conjunction with config.fatal_warnings.
537         (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
538         (einfo): Pass TRUE as the extra argument.
540 2005-01-10  Greg Schaffer  <gschafer@zip.com.au>
542         * configure.host (linux targets): Use "${CC} -dumpspecs" instead
543         of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
544         (ia64-*-aix): Delete - this target is obsolete, and would be
545         broken by this patch.
547 2005-01-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
549         * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
550         (sparc64-sun-solaris2*): New host.
552 2005-01-06  Paul Brook  <paul@codesourcery.com>
554         * Makefie.am: Add earmelf_vxworks.
555         * Makefile.in: Regenerate.
556         * configure.tgt: Make arm-*-vxworks a separate case.
557         * emulparams/armelf_vxworks.sh: New function.
559 2005-01-06  Alan Modra  <amodra@bigpond.net.au>
561         * emultempl/ppc64elf.em (no_multi_toc): New var.
562         (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
563         (OPTION_NO_MULTI_TOC): Define.
564         (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
565         (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
567 2005-01-05  Nick Clifton  <nickc@redhat.com>
569         PR binutils/614
570         * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
571         Standard's specification for parsable error messages.
573 2005-01-04  Paul Brook  <paul@codesourcery.com>
575         * Makefile.am: Correct dependency for earmsymbian.c.
576         * Makefile.in: Regenerate.
578 2004-12-28  Danny Smith  <dannysmith@users.sourceforge.net>
580         * emultempl/pe.em (set_pe_subsystem): Change second arg to
581         lang_add_entry to FALSE.
583 2004-12-23  Nick Clifton  <nickc@redhat.com>
585         PR 600
586         * emulparams/shelf.sh (.stack): Increase stack start address to
587         0x300000.
589 2004-12-20  Nick Clifton  <nickc@redhat.com>
591         * ldmain.c (main): Issue an error message if -static and -shared
592         are used together.
594 2004-12-17  Jakub Jelinek  <jakub@redhat.com>
596         * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
597         * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
598         * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
599         address space at DATA_SEGMENT_ALIGN.  Fix computation of expected
600         PT_GNU_RELRO segment end.
602 2004-12-14  P.J. Darcy  <darcypj@us.ibm.com>
604         * configure.tgt: Add s390x-ibm-tpf support.
606 2004-12-16  Martin Kögler  <mkoegler@auto.tuwien.ac.at>
608         * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
609         BFD.
611 2004-12-07  Ben Elliston  <bje@gnu.org>
613         * ldemul.h: Forward declare struct option.
615 2004-12-01  Danny Smith  <dannysmith@users.sourceforge.net>
617         * scripttempl/pe.sc (.data): Add .jcr subsection.
619 2004-11-30  Paul Brook  <paul@codesourcery.com>
621         * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
623 2004-11-30  Tero Niemela  <tero_niemela@yahoo.com>
625         * Makefile.am: Change LOCALEDIR to $(datadir)/share.
626         * Makefile.in: Regenerate.
628 2004-11-26  Melissa Mears  <asterisk@graces.dricas.com>
630         * emultempl/pe.em: Add --subsystem:xbox as well as
631         --subsystem:%d.
632         * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
633         and numeric subsystems.
635 2004-11-24  Alan Modra  <amodra@bigpond.net.au>
637         * ldexp.c (fold_name): Correct PR 338 fix.
639 2004-11-19  Mark Mitchell  <mark@codesourcery.com>
641         * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
642         (earmelf_linux_eabi.c): New target.
643         * configure.tgt (arm*-*-linux-gnueabi): Handle it.
644         * emulparams/armelf_linux_eabi.sh: New file.
645         * Makefile.in: Regenerated.
647 2004-11-19  Nick Clifton  <nickc@redhat.com>
649         PR 518
650         * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
651         LENGTH fields in the MEMORY command, to explicitly state that
652         symbols cannot be used in their expressions.
654 2004-11-19  Jon Beniston <jon@beniston.com>
656         * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
657         * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
658         * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
659         which return the length and origin of a memory.
660         * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
661         * NEWS: Mention support for ORIGIN and LENGTH operators.
663 2004-11-17  Daniel Jacobowitz  <dan@codesourcery.com>
665         * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
666         a dynamic object for stubs.
668 2004-11-04  Paul Brook  <paul@codesourcery.com>
670         * ld.texinfo: Document --default-imported-symver.
671         * ldmain.c (main): Set link_info.default_imported_symver.
672         * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
673         (ld_options): Add --default-imported-symver.
674         (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
676 2004-11-08  Inderpreet Singh   <inderpreetb@nioda.hcltech.com>
677             Vineet Sharma      <vineets@noida.hcltech.com>
679         * Makefile.am: Add entries for new maxq-coff target.
680         * Makefile.in: Regenerate.
681         * configure.tgt: Add support for maxq.
682         * emulparams/maxqcoff.sh: New File.
683         * scripttempl/maxqcoff.sc: New linker script for target maxq.
684         * NEWS: Mention the new target.
686 2004-11-08  Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
688         * testsuite/ld-scripts/weak.exp: Enable test on PE,
689         XFAIL non-i386 PE.
690         * testsuite/ld-undefined/weak-undef.exp: Enable test on PE,
691         XFAIL non-i386 PE.
692         * testsuite/lib/ld-lib.exp (is_pecoff_format): New.
694 2004-11-04  Daniel Jacobowitz  <dan@debian.org>
696         * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
697         (earmelf_oabi.c): Remove rule.
698         * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
699         * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
700         * Makefile.in: Regenerated.
702 2004-11-04  Hans-Peter Nilsson  <hp@axis.com>
704         * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
705         * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
706         (FINI_START): Ditto.
707         (INIT_END): Remove emitted "jump [sp+]".
708         (FINI_END): Ditto.
710 2004-11-04  Alan Modra  <amodra@bigpond.net.au>
712         * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
713         (no_opd_opt, no_toc_opt): New static vars.
714         (ppc_before_allocation): Don't edit opt if no_opd_opt.  Call
715         ppc64_elf_edit_toc.
716         (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
717         (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
718         (PARSE_AND_LIST_OPTIONS): Describe new options.
719         (PARSE_AND_LIST_ARGS_CASES): Handle them.
721 2004-10-27  Nick Clifton  <nickc@redhat.com>
723         * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
724         parameter to invocation of lang_section_start.
725         * emultempl/aix.em (_handle_option): Likewise.
727         * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
728         eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
729         * Makefile.in: Regenerate.
731 2004-10-26  Mark Mitchell  <mark@codesourcery.com>
733         * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
734         __exidx_{start,end} when not relocating.
736 2004-10-25  Mark Mitchell  <mark@codesourcery.com>
738         * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
739         * ldexp.h (segment_type): New type.
740         (segments): New variable.
741         * ldexp.c (segments): New variable.
742         (exp_print_token): Handle SEGMENT_START.
743         (fold_binary): Likewise.
744         * ldgram.y (SEGMENT_START): Declare it as a token.
745         (exp): Handle SEGMENT_START.
746         * ldlang.h (lang_address_statement_type): Add segment field.
747         (lang_section_start): Change prototype.
748         * ldlang.c (map_input_to_output_sections): Do not process section
749         assignments if a corresponding SEGMENT_START has already been
750         seen.
751         (lang_section_start): Add segment parameter.
752         * ldlex.l (SEGMENT_START): Add it.
753         * lexsup.c (seg_segment_start): New function.
754         (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
755         * ld.texinfo (SEGMENT_START): Document it.
756         * emulparams/armsymbian.sh (EMBEDDED): Set it.
757         * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
758         base addresses.  Do not map relocations.
759         * NEWS: Mention SEGMENT_START.
761 2004-10-26  Paul Brook  <paul@codesourcery.com>
763         * ld.texinfo: Document --default-symver.
764         * ldmain.c (main): Set link_info.create_default_symver.
765         * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
766         (ld_options): Add default-symver.
767         (parse_args): Handle OPTION_DEFAULT_SYMVER.
769 2004-10-24 Danny Smith  <dannysmith@users.sourceforge.net>
771         * pe-dll.c (process_def_file): Don't export all symbols by default if
772         building a position-independent executable.
774 2004-10-21  H.J. Lu  <hongjiu.lu@intel.com>
776         PR 463
777         * ldmain.c (reloc_overflow): Accept a pointer to struct
778         bfd_link_hash_entry. Report symbol location for relocation
779         overflow.
781 2004-10-21  H.J. Lu  <hongjiu.lu@intel.com>
783         * genscripts.sh (libpath.exp): Really generate for first
784         emulation only.
786 2004-10-19  Danny Smith  <dannysmith@users.sourceforge.net>
788         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
789         comparison and replacement of filenames.
791 2004-10-19  H.J. Lu  <hongjiu.lu@intel.com>
793         PR 459
794         * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
795         option on linker script as the one for linker script.
797 2004-10-16  Daniel Jacobowitz  <dan@debian.org>
799         * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
800         (check_excluded_libs): New.
801         (load_symbols): Call check_excluded_libs.
802         * ldlang.h (add_excluded_libs): New prototype.
803         * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
804         (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
805         (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
806         * ld.texinfo (Command Line Variables): Document --exclude-libs.
807         (Options Specific to i386 PE Targets): Remove --exclude-libs.
809 2004-10-15  Alan Modra  <amodra@bigpond.net.au>
811         * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
812         failing link script assert.
814         * ldctor.c (ldctor_add_set_entry): Fix comment typo.
816 2004-10-14  H.J. Lu  <hongjiu.lu@intel.com>
818         PR 445
819         * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
820         (SMALL_DATA_DTOR): Set.
821         * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
822         (SMALL_DATA_DTOR): Unset.
823         * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
824         after .data. If SMALL_DATA_DTOR is set, move .dtors after
825         .data.
827 2004-10-14  Alan Modra  <amodra@bigpond.net.au>
829         PR 63
830         * ldlang.h (lang_output_section_statement_type): Make "next" a
831         struct lang_output_section_statement_struct *.
832         (struct orphan_save): Move from elf32.em.  Add "name" and "flags".
833         (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
834         * ldlang.c (lang_output_section_find_1): Adjust for changed
835         output_section_statement "next".
836         (strip_excluded_output_sections): Likewise.
837         (lang_record_phdrs): Likewise.
838         (lang_output_section_find_by_flags): New function.
839         (output_prev_sec_find): Move from pe.em.  Adjust iterator.
840         (lang_insert_orphan): New function.  Tail end of elf32.em's
841         place_orphan merged with that from pe.em.  Allow bfd_section to
842         be placed first.  New heuristic for placing new output section
843         statement in existing script, and accompanying split of __start
844         symbol alignment into a separate assignment to dot.
845         (lang_add_section): Consistently use output->bfd_section rather than
846         an alias, section->output_section.
847         (map_input_to_output_sections): Rename overly long arg.  Move
848         initialization of data_statement output section to here..
849         (lang_check_section_addresses): ..from here.
850         (print_assignment): Correct printing of etree_assert.
851         (print_all_symbols): Don't bomb if userdata is NULL.
852         (IGNORE_SECTION): Rearrange.
853         * emultempl/elf32.em (output_rel_find): Adjust interator.
854         (output_prev_sec_find): Delete.
855         (struct orphan_save): Delete.
856         (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
857         flags without creating a duplicate output section statement.
858         Revise code holding history of various orphan section placements.
859         Allow orphan sections to place before script specified output
860         sections.  Call lang_output_section_find_by_flags when placement
861         by name fails.  Use lang_insert_orphan.
862         * emultempl/mmo.em (output_prev_sec_find): Delete.
863         (struct orphan_save): Delete.
864         (mmo_place_orphan): Revise code holding history of orphan placement.
865         Allow orphans to place before existing output sections.  Use
866         lang_insert_orphan.
867         * emultempl/pe.em (output_prev_sec_find): Delete.
868         (struct orphan_save): Delete.
869         (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
870         lang_insert_orphan.
872 2004-10-13  Mark Mitchell  <mark@codesourcery.com>
874         * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
875         loadable segment.
877 2004-10-13  Alan Modra  <amodra@bigpond.net.au>
879         PR 44
880         * ldcref.c (check_section_sym_xref): Delete.
881         (check_local_sym_xref): New function.
882         (check_nocrossrefs): Adjust call.
883         * emultempl/pe.em (struct orphan_save): Add os_tail.
884         (place_orphan): Backport assorted fixes from elf32.em.
886 2004-10-12  Bob Wilson  <bob.wilson@acm.org>
888         * emultempl/xtensaelf.em: Use ISO C90 formatting.
890 2004-10-11  Jakub Jelinek  <jakub@redhat.com>
892         * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
893         getline for portability.
895         * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
896         (gld${EMULATION_NAME}_parse_ld_so_conf,
897         gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
898         (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
900 2004-10-11  Alan Modra  <amodra@bigpond.net.au>
902         PR 423
903         * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
904         rejected when linking statically.
906 2004-10-08  Daniel Jacobowitz  <dan@debian.org>
908         * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
910 2004-10-07  Bob Wilson  <bob.wilson@acm.org>
912         * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
913         assembler-generated longcall sequences.  Describe new --size-opt
914         option.
915         * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
916         * emultempl/xtensaelf.em (remove_section,
917         replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
918         elf_xtensa_after_open): New.
919         (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
920         OPTION_NO_LITERAL_MOVEMENT): Define.
921         (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
922         (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
923         (PARSE_AND_LIST_OPTIONS): Add --size-opt.
924         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
925         OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
926         (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
927         * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
928         * Makefile.am (eelf32xtensa.c): Update dependencies.
929         * Makefile.in: Regenerate.
931 2004-10-07  Jeff Baker  <jbaker@qnx.com>
933         * lexsup.c: Handle --warn-shared-textrel option.
934         (ld_options): Restore alpha sorting of options.
935         * ldmain.c (main): Initialise warn_shared_info field to FALSE.
936         * ld.texinfo: Add documentation for --warn-shared-textrel.
937         * NEWS: Added mention of --warn-shared-textrel option.
939 2004-10-05  Tomer Levi  <Tomer.Levi@nsc.com>
941         * emultempl/crxelf.em (disable_relaxation): Add.
942         (crxelf_before_allocation): Enable --relax option by default.
943         (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
944         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
945         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
947 2004-10-04  H.J. Lu  <hongjiu.lu@intel.com>
949         * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
950         --sort-section name|alignment.
952         * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
953         --sort-section name|alignment.
955         * ld.h (sort_type): New enum.
956         (wildcard_spec): Change the type of `sorted' to sort_type.
958         * ldgram.y (SORT): Removed.
959         (SORT_BY_NAME): Added.
960         (SORT_BY_ALIGNMENT): Added.
961         (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
962         SORT_BY_ALIGNMENT.
963         (input_section_spec_no_keep): Updated `sorted'.
964         (statement): Replace SORT with SORT_BY_NAME.
966         * ldlang.c (compare_section): New function to compare 2
967         sections with different sorting schemes.
968         (wild_sort): Updated. Use compare_section.
969         (update_wild_statements): New function.
970         (lang_process): Call update_wild_statements before
971         map_input_to_output_sections.
973         * ldlex.l (SORT_BY_NAME): New.
974         (SORT_BY_ALIGNMENT): New.
975         (SORT): Return SORT_BY_NAME.
977         * ldmain.c (sort_section): New. Defined.
978         (main): Initialize it to none.
980         * lexsup.c (option_values): Add OPTION_SORT_SECTION.
981         (ld_options): Add an entry for OPTION_SORT_SECTION.
982         (parse_args): Handle OPTION_SORT_SECTION.
984         * mri.c (mri_draw_tree): Updated `sorted'.
986 2004-10-04  Jakub Jelinek  <jakub@redhat.com>
988         * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
989         * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
990         argument.
991         (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
992         and . as second argument.
993         (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
994         * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
995         (fold_binary): Add it here.  Insert padding to make relro_end
996         COMMONPAGESIZE bytes aligned.  For DATA_SEGMENT_ALIGN in
997         exp_dataseg_relro_adjust phase just use previously computed
998         exp_data_seg.base.
999         * ldlang.c (lang_size_sections): Set exp_data_seg.base for
1000         relro_adjust here.  Call lang_size_sections_1 once more if there
1001         was too big padding at DATA_SEGMENT_RELRO_END.
1002         * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
1004 2004-10-01  Paul Brook  <paul@codesourcery.com>
1006         * emulparams/armelf.sh: Add unwinding table sections.
1008 2004-09-30  Filip Navara  <navaraf@reactos.com>
1010         * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
1011         correct base address for position independant executables.
1012         * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
1013         executables as DLLs.
1015 2004-09-30  Paul Brook  <paul@codesourcery.com>
1017         * ld.texinfo: Document --target2=abs.
1018         * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
1020 2004-09-29  Nick Clifton  <nickc@redhat.com>
1022         * scripttempl/xstormy16.sc: Only perform the assignments to the
1023         ROM region when not performing a relocatable link.  The ROM region
1024         does not start at address 0, but the sections will.
1025         * Makefile.am: Fix linker script dependency for the generation of
1026         eelf32xstormy16.c.
1027         * Makefile.in: Regenerate.
1029 2004-09-18  Filip Navara  <navaraf@reactos.com>
1031         * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
1032         emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
1033         emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
1034         TARGET_PAGE_SIZE.
1035         * scripttempl/pe.sc: Make the virtual address and file offset synced if
1036         the alignment is lower than the target page size.
1038 2004-09-27  Filip Navara  <navaraf@reactos.com>
1040         * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
1041         def_file_parse to handle pe_def_file if NULL and prevent crash with
1042         invalid .def files.
1044 2004-09-27  Alan Modra  <amodra@bigpond.net.au>
1046         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
1047         --emit-stub-syms automatically when --emit-relocs.
1049 2004-09-24  Paul Brook  <paul@codeosurcery.com>
1051         * scripttempl/elf.sc: Keep .preinit_array, .init_array and
1052         .fini_array sections.
1054 2004-09-19  Andreas Schwab  <schwab@suse.de>
1056         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
1057         base so that relro end is suitably aligned.
1059 2004-09-17  Paul Brook  <paul@codesourcery.com>
1061         * ld.texinfo: Rename arm-specific section.  Document --target*
1062         * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
1063         * emulparams/armelf_linux.sh: Ditto.
1064         * emulparams/armelf_nbsd.sh: Ditto.
1065         * emultempl/armelf.em: Set default for TARGET2_TYPE.
1066         (target2_type): New variable.
1067         (arm_elf_before_allocation): Don't pass target1_type.
1068         (arm_elf_create_output_section_statements): New function.
1069         (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
1070         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
1071         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
1072         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
1073         * emultempl/armelf_oabi.em (_before_allocation): Remove extra
1074         argument to bfd_elf32_arm_process_before_allocation.
1076 2004-09-17  Alan Modra  <amodra@bigpond.net.au>
1078         * ldexp.c (fold_name): Update u.undef.next refs.
1079         * emultempl/pe.em: Likewise.
1080         * emultempl/sunos.em: Likewise.
1082 2004-09-17  Alan Modra  <amodra@bigpond.net.au>
1084         * Makefile.am: Run "make dep-am".
1085         * Makefile.in: Regenerate.
1086         * config.in: Regenerate.
1087         * configure: Regenerate.
1088         * aclocal.m4: Regenerate.
1089         * po/ld.pot: Regenerate.
1091 2004-09-16  Tomer Levi  <Tomer.Levi@nsc.com>
1093         * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
1094         (.fini): Likewise.
1095         (.jcr): Likewise.
1097 2004-09-16  Alan Modra  <amodra@bigpond.net.au>
1099         * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
1100         to bfd_elf32_arm_process_before_allocation call.
1102 2004-09-13  Paul Brook  <paul@codesourcery.com>
1104         * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
1105         * emultempl/armelf.em: Use TARGET1_IS_REL.  Add --target1-{rel,abs}.
1107 2004-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1109         * configure: Regenerated with autconfig 2.13.
1111 2004-09-07  Andreas Schwab  <schwab@suse.de>
1113         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
1114         alignment before adjusting DATA_SEGMENT_RELRO_END.
1116 2004-09-06  Mark Mitchell  <mark@codesourcery.com>
1118         * emulparams/armsymbian.sh: Use armbpabi script.
1119         * scripttempl/armbpabi.sc: New script.
1121 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
1123         * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
1124         (earmsymbian.c): New target.
1125         * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
1126         * Makefile.in: Regenerated.
1127         * aclocal.m4: Likewise.
1128         * configure: Likewise.
1129         * emulparams/armsymbian.sh: New file.
1131 2004-09-03  Tomer Levi  <Tomer.Levi@nsc.com>
1133         * scripttempl/elf32crx.sc: Edit file with comments.
1134         (.init): Add new section.
1135         (.fini): Likewise.
1136         (.ctor): Control the linkage order.
1137         (.dtor): Likewise.
1139 2004-08-27  Nick Clifton  <nickc@redhat.com>
1141         * emultempl/pe.em (after_open): Do not assume that either bfd is
1142         an archive.
1144 2004-08-26  Alan Modra  <amodra@bigpond.net.au>
1146         * ldlang.c (lang_init): Don't compare with TRUE.
1148 2004-08-25  Dmitry Diky  <diwil@spec.ru>
1150         * emulparams/msp430all.sh: Fix RAM sizes for all targets.
1151         * scripttempl/elf32msp430.sc: Add .profiler section definition.
1153 2004-08-24  H.J. Lu  <hongjiu.lu@intel.com>
1155         * ldlang.c (wildcardp): Defined as a macro with strpbrk.
1157 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
1159         * configure.tgt (arm*-*-symbianelf*): New target.
1160         (arm*-*-eabi*): Likewise.
1162 2004-08-19  Jakub Jelinek  <jakub@redhat.com>
1164         * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
1165         (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
1166         (OPTION_NON_OVERLAPPING_OPD): Define.
1167         (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
1168         --non-overlapping-opd option.
1170 2004-08-18  Alan Modra  <amodra@bigpond.net.au>
1172         PR 338
1173         * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
1174         was already on the undefs list.
1176 2004-08-17  Alan Modra  <amodra@bigpond.net.au>
1178         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
1179         prefix the symbol field too.
1181 2004-08-13  Alan Modra  <amodra@bigpond.net.au>
1183         * ldmain.c (link_callbacks): Remove "error_handler".
1184         * ldmisc.c: Include elf-bfd.h.
1185         (vfinfo): Sort comment.  Handle %A.  Use %A instead of
1186         bfd_get_section_indent.
1187         (error_handler): Delete.
1188         * ldmisc.h (error_handler): Delete declaration.
1190 2004-08-10  Alan Modra  <amodra@bigpond.net.au>
1192         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
1193         ppc64_elf_restore_symbols.
1195 2004-08-09  Alan Modra  <amodra@bigpond.net.au>
1197         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
1198         .toc is too large on relocatable linking.
1200 2004-08-09  Alan Modra  <amodra@bigpond.net.au>
1202         * emultempl/ppc64elf.em (ppc_after_open): Delete.
1203         (LDEMUL_AFTER_OPEN): Don't define.
1205 2004-08-02  Stephane Carrez  <stcarrez@nerim.fr>
1207         * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
1209 2004-08-01  Stephane Carrez  <stcarrez@nerim.fr>
1211         * scripttempl/elfm68hc12.sc: Align text, rodata and data section
1212         on power of 2.
1214 2004-07-27  Jason Thorpe  <thorpej@wasabisystems.com>
1216         * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
1218 2004-07-26  Dmitry Diky  <diwil@spec.ru>
1220         * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
1221         msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
1222         msp430xG439.
1223         * configure.tgt: Likewise.
1224         * emulparams/msp430all.sh: Likewise.
1225         * Makefile.in: Regenerate.
1227 2004-07-23  Nick Clifton  <nickc@redhat.com>
1229         * emultempl/elf32.em (_place_orphan): Use an already existing
1230         section name if that section does not have any flags set.
1232 2004-07-21  H.J. Lu  <hongjiu.lu@intel.com>
1234         * ldlang.c (already_linked_hash_entry): Removed.
1235         (already_linked): Likewise.
1236         (already_linked_table): Likewise.
1237         (section_already_linked): Call bfd_section_already_linked.
1238         (lang_process): Replace already_linked_table_init with
1239         bfd_section_already_linked_table_init and check return. Replace
1240         already_linked_table_free with bfd_section_already_linked_table_free.
1242 2004-07-21  Nick Clifton  <nickc@redhat.com>
1244         * ldlang.c (init_os): Make sure that the newly allocated userdata
1245         structure is zeroed out.
1247 2004-07-19  H.J. Lu  <hongjiu.lu@intel.com>
1249         * NEWS: Mention the new --add-needed/--no-add-needed and
1250         --as-needed/--no-as-needed options.
1252 2004-07-19  H.J. Lu  <hongjiu.lu@intel.com>
1254         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
1255         check the add_needed field.
1256         (dt_needed): New struct.
1257         (gld${EMULATION_NAME}_try_needed): Change the first argument
1258         to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
1259         bit in the file where the DT_NEEDED entry comes from.
1260         (gld${EMULATION_NAME}_search_needed): Change the second
1261         argument to a pointer to struct dt_needed.
1262         (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
1263         (gld${EMULATION_NAME}_after_open): Likewise.
1265         * ld.texinfo: Add --add-needed document.
1266         * ldlang.c (new_afile): Set p->add_needed.
1267         * ldlang.h (lang_input_statement_type): Add add_needed field.
1268         * ldmain.h (add_needed): Declare.
1269         * ldmain.c (add_needed): New global var.
1270         * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
1271         OPTION_NO_ADD_NEEDED.
1272         (ld_options): Likewise.
1273         (parse_args): Handle them.
1275 2004-07-13  Christof Petig  <christof@petig-baender.de>
1277         * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
1278         for endian-ness of extracted addend.
1280 2004-07-13  Danny Smith  <dannysmith@usesr.sourceforge.net>
1282         * pe-dll.c (auto_export):  Filter on just the import prefix,
1283         "_imp_", not "_imp__".
1285 2004-07-09  Nick Clifton  <nickc@redhat.com>
1287         * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
1289 2004-07-06  Tomer Levi  <Tomer.Levi@nsc.com>
1291         * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
1292         (eelf32crx.c): New target.
1293         * Makefile.in: Regenerate.
1294         * configure.tgt: Handle crx-*-elf*.
1295         * emulparams/elf32crx.sh: New file.
1296         * emultempl/crxelf.em: New file.
1297         * scripttempl/elf32crx.sc: New file.
1298         * NEWS: Mention new target.
1300 2004-07-06  Nick Clifton  <nickc@redhat.com>
1302         * Makefile.am: Add eshlsymbian.c.
1303         * Makefile.in: Regenerate.
1304         * configure.tgt: Add sh*-symbian-elf target.
1305         * emulparams/shlsymbian.sh: New file.  Configure the
1306         sh-symbian-elf linker scripts.
1307         * scripttemp/elf32sh-symbian.sc: New file.  Linker script
1308         template for the sh-symbian-elf target.
1310 2004-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1312         * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
1313         * emulparams/hppalinux.sh: Likewise.
1314         * scripttempl/elf.sc: Place .plt just before .got when .plt is in
1315         data segment and PLT_BEFORE_GOT is defined.
1317 2004-07-03  Aaron W. LaFramboise  <aaron98wiridge9@aaronwl.com>
1319         * ld.texinfo (WIN32): Document PE weak symbols.
1321 2004-07-02  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1323         * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
1325 2004-07-01  H.J. Lu  <hongjiu.lu@intel.com>
1327         * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
1328         the section.
1330 2004-06-29  Alan Modra  <amodra@bigpond.net.au>
1332         * ldlang.c (lang_reset_memory_regions): Save last relax pass section
1333         size in rawsize.
1335 2004-06-24  Alan Modra  <amodra@bigpond.net.au>
1337         * ldlang.c (print_output_section_statement): Don't print size before
1338         relaxation.
1339         (IGNORE_SECTION): Remove bfd arg.  Update all callers.
1341         * ldexp.c (fold_name): .. See below.
1342         * ldlang.c (section_already_linked, print_output_section_statement,
1343         print_input_section, insert_pad, size_input_section,
1344         lang_check_section_addresses, lang_size_sections_1,
1345         lang_size_sections, lang_do_assignments_1, lang_set_startof,
1346         lang_one_common, lang_reset_memory_regions, lang_process,
1347         lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
1348         * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
1349         * pe-dll.c (process_def_file, generate_reloc): ..
1350         * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
1351         gld${EMULATION_NAME}_before_allocation): ..
1352         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
1353         * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
1354         sh64_elf_${EMULATION_NAME}_after_allocation): ..
1355         * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
1356         * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
1357         ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
1358         "size" instead of "_raw_size" and "_cooked_size".  Expand
1359         bfd_section_size macro invocations.
1361 2004-06-22  Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1363         * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
1364         ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
1365         ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
1366         ___crt_xt_end__.
1367         (.tls): Define ___tls_start__ and ___tls_end__.
1369 2004-06-21  Alexandre Oliva  <aoliva@redhat.com>
1371         * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
1373 2004-06-18  Adam Nemet  <anemet@lnxw.com>
1375         * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
1376         * configure: Regenerate.
1378 2004-06-15  Jakub Jelinek  <jakub@redhat.com>
1380         * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
1381         .gcc_except_table output sections lost accidentally with
1382         -z relro patch.
1384 2004-06-15  Alan Modra  <amodra@bigpond.net.au>
1386         * ldwrite.c (build_link_order): Use bfd_get_section_size
1387         instead of bfd_get_section_size_before_reloc or _raw_size.
1388         * pe-dll.c (process_def_file): Likewise.
1390 2004-06-14  Alan Modra  <amodra@bigpond.net.au>
1392         From Richard Wirth <r.wirth@wirthware.de>
1393         * ldlang.c (lang_finish): Don't free lang_definedness_table.
1395 2004-05-29  Alan Modra  <amodra@bigpond.net.au>
1397         * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
1398         (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
1400 2004-05-28  Andrew Stubbs <andrew.stubbs@superh.com>
1402         * testsuite/ld-sh/arch/arch.exp: New test script.
1403         * testsuite/ld-sh/arch/arch_expected.txt: New file.
1404         * testsuite/ld-sh/arch/sh.s: New file.
1405         * testsuite/ld-sh/arch/sh2.s: New file.
1406         * testsuite/ld-sh/arch/sh-dsp.s: New file.
1407         * testsuite/ld-sh/arch/sh2e.s: New file.
1408         * testsuite/ld-sh/arch/sh3-nommu.s: New file.
1409         * testsuite/ld-sh/arch/sh3.s: New file.
1410         * testsuite/ld-sh/arch/sh3-dsp.s: New file.
1411         * testsuite/ld-sh/arch/sh3e.s: New file.
1412         * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
1413         * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
1414         * testsuite/ld-sh/arch/sh4.s: New file.
1415         * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
1416         * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
1417         * testsuite/ld-sh/arch/sh4a.s: New file.
1419 2004-05-28  Alan Modra  <amodra@bigpond.net.au>
1421         * ldlang.c: Formatting.  Wrap long lines, expand bfd_get_section_flags
1422         throughout file.
1423         * lexsup.c: Formatting.  Wrap long lines.
1424         * ldwrite.c: Update copyright date.
1426         * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
1427         (output_section_callback): Nor SEC_KEEP here.
1428         (gc_section_callback): Twiddle SEC_EXCLUDE here.
1429         (lang_gc_wild): Delete.  Fold into..
1430         (lang_gc_sections_1): ..here.  Only call bfd_gc_sections when garbage
1431         collecting.
1432         (lang_process): Always call lang_gc_sections.
1433         (lang_place_orphans): Handle SEC_EXCLUDE sections.
1434         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
1435         SEC_EXCLUDE code.
1437 2004-05-26  H.J. Lu  <hongjiu.lu@intel.com>
1439         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
1440         SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
1441         * ldlang.c (lang_add_section): Likewise.
1443 2004-05-26  Alan Modra  <amodra@bigpond.net.au>
1445         * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
1446         sections when doing a final link.  Clear SEC_EXCLUDE when doing
1447         a relocable link, except for SEC_DEBUGGING sections.
1448         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
1449         same condition here to drop SEC_EXCLUDE orphan sections.
1451 2004-05-25  Alan Modra  <amodra@bigpond.net.au>
1453         * ldlang.c (lang_process): Call bfd_merge_sections later, and
1454         only when not a relocatable link.
1455         (print_input_section): Handle SEC_EXCLUDE sections.
1456         (size_input_section): Don't update dot on SEC_EXCLUDE sections.
1457         (lang_do_assignments_1): Likewise.
1458         * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
1459         * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
1460         * emultempl/hppaelf.em (build_section_lists): Likewise.
1461         * emultempl/ppc64elf.em (build_toc_list): Likewise.
1462         (build_section_lists): Likewise.
1464 2004-05-23  Andreas Schwab  <schwab@suse.de>
1466         * ld.texinfo (Options): Fix typo in last change.
1468 2004-05-21  Andy Chittenden  <achittenden@bluearc.com>
1470         * ld.h (ld_config_type): Add new field: hash_table_size.
1471         * ldmain.c: Initialise the new field to zero.  If it is non-zero
1472         after parsing the linker's command line call
1473         bfd_hash_set_default_size.
1474         * lexsup.c (option_values): Add OPTION_HASH_SIZE.
1475         (ld_options): Add hash-size.
1476         (parse_args): Parse --hash-size option.  Allow
1477         --reduce-memory-overheads to set the default hash table size as
1478         well.
1479         * ld.texinfo: Document the new switch.  Also mention that
1480         --reduce-memory-overheads can affect the hash table size.
1481         * NEWS: Mention the new feature.
1483 2004-05-19  J"orn Rennecke <joern.rennecke@superh.com>
1485         * NEWS: Mention new linker map file generation and the
1486         --reduce-memory-overheads option.
1487         * ld.texinfo: Document --reduce-memory-overheads option.
1488         * ld.h (map_symbol_def): New struct.
1489         (struct user_section_struct, section_userdata_type): Rename to:
1490         (struct lean_user_section_struct, lean_section_userdata_type).
1491         (struct fat_user_section_struct, fat_section_userdata_type): New.
1492         (SECTION_USERDATA_SIZE): Define.
1493         (args_type): New member reduce_memory_overheads.
1494         * ldlang.c (map_obstack): New static variable.
1495         (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
1496         (lang_map): Unless command_line.reduce_memory_overheads is set,
1497         initialize lists of defined symbols for each section.
1498         (print_input_section): Unless command_line.reduce_memory_overheads
1499         is set, use print_all_symbols.
1500         (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
1501         * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
1502         * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
1503         (ld_options): Add entry for --reduce-memory-overheads.
1504         (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
1506 2004-05-19  Jakub Jelinek  <jakub@redhat.com>
1508         * ldgram.y (sect_constraint): New.
1509         (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1510         (section): Add sect_constraint.  Pass additional argument
1511         to lang_enter_output_section_statement.
1512         * mri.c (mri_draw_tree): Pass additional argument to
1513         lang_enter_output_section_statement.
1514         * emultempl/pe.em (place_orphan): Likewise.
1515         (output_prev_sec_find): Disregard output section statements with
1516         constraint == -1.
1517         * emultempl/mmo.em (output_prev_sec_find): Likewise.
1518         (mmo_place_orphan): Pass additional argument to
1519         lang_enter_output_section_statement.
1520         * emultempl/elf32.em (output_prev_sec_find): Disregard output section
1521         statements with constraint == -1.
1522         (place_orphan): Pass additional argument to
1523         lang_enter_output_section_statement.
1524         * ldlang.c (lang_enter_overlay_section): Likewise.
1525         (lang_output_section_find_1): New.
1526         (lang_output_section_find): Use it.
1527         (lang_output_section_statement_lookup_1): New.
1528         (lang_output_section_statement_lookup): Use it.
1529         (check_section_callback, check_input_sections): New.
1530         (map_input_to_output_sections): Check if all input sections
1531         are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
1532         (strip_excluded_output_sections): Disregard output section statements
1533         with constraint == -1.
1534         (lang_record_phdrs): Likewise.
1535         (lang_enter_output_section_statement): Add constraint argument.
1536         Use lang_output_section_statement_lookup_1.
1537         * ldlang.h (lang_output_section_statement_type): Add constraint
1538         and all_input_readonly fields.
1539         (lang_enter_output_section_statement): Adjust prototype.
1540         * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1541         * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
1542         segment if all input sections are readonly.
1544 2004-05-19  Adam Nemet  <anemet@lnxw.com>
1546         * scripttempl/i386lynx.sc: Remove file.
1548 2004-05-17  Bob Wilson  <bob.wilson@acm.org>
1550         * ld.texinfo (Output Section Address): Correct subsection name.
1552 2004-05-17  Adam Nemet  <anemet@lnxw.com>
1554         * configure.tgt (powerpc-*-lynxos* case): New case.
1555         * configure.host (i[3-7]86-*-lynxos* case): Remove case.
1556         * emulparams/ppclynx.sh: New file.
1557         * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
1558         * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
1559         (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
1560         (eppclynx.c): New rule.
1561         * Makefile.in: Regenerate.
1563 2004-05-13  Joel Sherrill <joel@oarcorp.com>
1565         * configure.tgt (or32-*-rtems*): Switch to elf and
1566         support versioned targets.
1568 2004-05-13  Nick Clifton  <nickc@redhat.com>
1570         * po/fr.po: Updated French translation.
1572 2004-05-11  Jakub Jelinek  <jakub@redhat.com>
1574         * genscripts.sh: Generate -z combreloc -z now -z relro scripts
1575         for binaries, -shared and -pie.
1576         * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
1577         * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
1578         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
1579         (OTHER_RELRO_SECTIONS): ... this.
1580         * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
1581         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1582         -z relro and -z norelro.
1583         (gld${EMULATION_NAME}_list_options): Add it to usage.
1584         (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
1585         -z relro scripts when appropriate.
1586         * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
1587         Create separate .got.plt section if SEPARATE_GOTPLT.
1588         Move sections which are only written during relocation handling
1589         to the beginning of RW segment.  If NO_SMALL_DATA, move .got
1590         before .data.  Add DATA_SEGMENT_RELRO_END directive.
1591         Include OTHER_RELRO_SECTIONS.
1592         * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
1593         * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
1594         (fold_unary): Likewise.
1595         (fold_binary): Handle -z relro.
1596         * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
1597         exp_dataseg_relro_adjust phases.  Add relro_end field.
1598         * ldmain.c (main): Initialize link_info.relro to FALSE.
1599         * ldlang.c (lang_size_sections): Handle -z relro.
1601 2004-05-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1603         * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1605 2004-05-07  J"orn Rennecke <joern.rennecke@superh.com>
1607         * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1608         before printing it with %W.
1610 2004-05-07  Brian Ford  <ford@vss.fsi.com>
1611             DJ Delorie  <dj@redhat.com>
1613         * emultempl/pe.em (real_flags): New static.
1614         (OPTION_LARGE_ADDRESS_AWARE): New define.
1615         (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1616         (gld_${EMULATION_NAME}_list_options): Likewise.
1617         (gld${EMULATION_NAME}_handle_option): Likewise.
1618         (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1619         * ld.texinfo: Document it.
1620         * NEWS: Mention it.
1622 2004-05-07  Brian Ford  <ford@vss.fsi.com>
1624         * NEWS: Mention DWARF 2 support for i386pe.
1626 2004-05-05  Alexandre Oliva  <aoliva@redhat.com>
1628         * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1629         elf32-frvfdpic.
1631 2004-04-30  Alan Modra  <amodra@bigpond.net.au>
1633         * ldlang.c (unique_section_p): Pass section parm, return true on
1634         group sections.
1635         (output_section_callback): Adjust.
1636         * ldlang.h (unique_section_p): Update prototype.
1637         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1639 2004-04-30  Eric Botcazou  <ebotcazou@act-europe.fr>
1641         * ld.texinfo (--gc-sections): Remove restriction for
1642         dynamic linking.
1644 2004-04-29  Brian Ford  <ford@vss.fsi.com>
1646         * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1647         for DWARF 2/3.  Update stab section's syntax.
1649 2004-04-29  Alan Modra  <amodra@bigpond.net.au>
1651         * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1652         (fill_edata): Correct pointer arithmetic.
1654 2004-04-21  Chris Demetriou  <cgd@broadcom.com>
1656         * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1657         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1658         * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1659         (EXTRA_EM_FILE): Use mipsecoff.em
1660         * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1661         (EXTRA_EM_FILE): Use mipsecoff.em
1662         * emultempl/mipsecoff.em: Restructure to be included as an
1663         extra emulation file.
1664         (check_sections, gld${EMULATION_NAME}_after_open)
1665         (gld${EMULATION_NAME}_after_allocation)
1666         (gld${EMULATION_NAME}_get_script)
1667         (ld_${EMULATION_NAME}_emulation): Remove
1668         (gld${EMULATION_NAME}_before_parse): Rename to...
1669         (mipsecoff_before_parse): This.
1670         (LDEMUL_BEFORE_PARSE): Define.
1671         * emultempl/mipself.em: Remove file.
1672         * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1673         (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1674         these symbols.
1675         * Makefile.am: Remove dependencies on emultempl/mipself.em.
1676         * Makefile.in: Regenerate.
1678 2004-04-21      Anil Paranjpe   <anilp1@kpitcummins.com>
1680         * ld.texinfo (synthesizing on H8/300): Information about linker
1681         relaxation support for bit manipulation instructions and system
1682         control instructions is added.
1684 2004-04-21  Hans-Peter Nilsson  <hp@axis.com>
1686         * NEWS: Mention change in DEFINED semantics.
1688 2004-04-21  Eric Botcazou  <ebotcazou@act-europe.fr>
1690         * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1691         (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1692         (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1694 2004-04-21  Ben Elliston  <bje@au.ibm.com>
1696         * ld.texinfo (Simple Example): Add missing punctuation.
1698 2004-04-20  Chris Demetriou  <cgd@broadcom.com>
1700         * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1702 2004-04-19  Jakub Jelinek  <jakub@redhat.com>
1704         * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1705         specially.
1707 2004-04-18  Danny Smith  <dannysmith@users.sourceforge.net>
1709         * scriptempl/pe.sc:  Put numbered .ctors.* after .ctors
1710         with default priority. Likewise for dtors.
1712 2004-04-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
1714         * configure.host: Remove mips*-dec-bsd* target.
1715         * configure.tgt: Likewise.
1717 2004-04-08  Richard Sandiford  <rsandifo@redhat.com>
1719         * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1720         * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1721         * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1722         * emultempl/irix.em: New file.
1723         * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1724         dependencies.
1725         * Makefile.in: Regenerate.
1727 2004-04-01  Paul Brook  <paul@codesourcery.com>
1729         * emultempl/armelf.em (byteswap_code): Add.
1730         (arm_elf_before_allocation): Pass extra parameter.
1731         (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1732         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1733         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1734         * emultempl/armelf_oabi.em: Pass extra parameter.
1735         * ld.texinfo: Document --be8.
1737 2004-03-30  Stan Shebs  <shebs@apple.com>
1739         Remove long-obsolete MPW support.
1740         * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1741         * Makefile.am (mpw): Remove file-presynthesizing actions.
1742         * Makefile.in: Likewise.
1743         * ldfile.c (slash): Remove MPW case.
1744         * ldlex.l [MPW]: Remove unused definition.
1746 2004-03-30  Galit Heller  <Galit.Heller@nsc.com>
1748         * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1749         (eelf32cr16c.c): New target.
1750         * Makefile.in: Regenerate.
1751         * configure.tgt: Handle cr16c-*-elf*.
1752         * emulparams/elf32cr16c.sh: New file.
1753         * scripttempl/elfcr16c.sc: Likewise
1754         * NEWS: Mention support for new target.
1756 2004-03-30  Nick Clifton  <nickc@redhat.com>
1758         * po/sv.po: Updated Swedish translation.
1760 2004-03-27  Alan Modra  <amodra@bigpond.net.au>
1762         * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1763         * emultempl/hppaelf.em: Likewise.
1764         * emultempl/ppc64elf.em: Likewise.
1765         * emultempl/sh64elf.em: Likewise.
1767 2004-03-25  Alan Modra  <amodra@bigpond.net.au>
1769         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1770         size_dynamic_sections call.
1772 2004-03-23  Alan Modra  <amodra@bigpond.net.au>
1774         PR 51.
1775         * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1776         link_info.wrap_char.
1778 2004-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1780         * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1781         or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1783 2004-03-20  Alexandre Oliva  <aoliva@redhat.com>
1785         * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1787 2004-03-19  Alan Modra  <amodra@bigpond.net.au>
1789         * config.in: Regenerate.
1790         * po/ld.pot: Regenerate.
1792 2004-03-18  Alan Modra  <amodra@bigpond.net.au>
1794         * ld.texinfo: Add --as-needed doco.
1795         * ldmain.c (as_needed): New global var.
1796         * ldmain.h (as_needed): Declare.
1797         * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1798         OPTION_NO_AS_NEEDED.
1799         (ld_options): Likewise.
1800         (parse_args): Handle them.
1801         * ldlang.h (lang_input_statement_type): Add as_needed field.
1802         * ldlang.c (new_afile): Set p->as_needed.
1803         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1804         (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1805         (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1807         * ldlang.c (open_input_bfds): Remove useless cast.
1808         (lang_do_assignments_1): Likewise.
1809         (lang_for_each_input_section): Delete.
1811 2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1813         * configure.tgt: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff*.
1815 2004-03-08  Danny Smith  <dannysmith@users.sourceforge.net>
1817         * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1818         private when building implib.
1820 2004-03-05  Nathan Sidwell  <nathan@codesourcery.com>
1822         * ldlang.c (lang_add_section): Don't force SEC_LOAD on
1823         SEC_THREAD_LOCAL.
1824         (IGNORE_SECTION): Ignore .tbss sections too.
1825         (lang_size_sections_1): .tbss sections do not advance dot.
1827 2004-03-01  Andreas Schwab  <schwab@suse.de>
1829         * ld.texinfo (Options): Fix example for --wrap.
1831 2004-02-25  Danny Smith  <dannysmith@users.sourceforge.net>
1833         * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1834         not NULL.
1836 2004-02-23  Ian Lance Taylor  <ian@wasabisystems.com>
1838         * ldlang.c (lang_check): Use %P, not %E, in error message.
1840 2004-02-23  Nathan Sidwell  <nathan@codesourcery.com>
1842         * ldlang.h (struct lang_output_section_state): Change processed
1843         field's type.
1844         * ldexp.c (check, invalid): Remove.
1845         (fold_name): Move valid_p assignments. Create undefined symbol
1846         when needed. Directly exampine section's processd flag.
1847         * ldlang.c (lang_output_section_statement_lookup): Adjust
1848         processed field init.
1849         (lang_size_sections_1): Allow LOADADDR when determining section's
1850         VMA. Adjust error message. Fold data statement's expr.
1851         (lang_size_sections): Correctly increment lang_statement_iteration.
1853 2004-02-23  Alan Modra <amodra@bigpond.net.au>
1855         * ldexp.c (fold_tree): Follow indirect symbols.
1857 2004-02-20  Nathan Sidwell  <nathan@codesourcery.com>
1859         * ldgram.y (exp): Add two operand ALIGN.
1860         * ldexp.c (fold_binary): Add ALIGN_K case.
1861         * ld.texinfo (ALIGN): Document two operand version.
1863 2004-02-19  Nathan Sidwell  <nathan@codesourcery.com>
1865         * ldlang.c (map_input_to_output_sections): Initialize sections
1866         mentioned in a data statement expression.
1867         (lang_do_assignments_1): Add data statement's expression's
1868         section's vma.
1870 2004-02-18  Nathan Sidwell  <nathan@codesourcery.com>
1872         * ldgram.y (statement_anywhere): Add assert rule.
1873         * ldlang.c (exp_init_os): Add assert case.
1875 2004-02-14  Andrew Cagney  <cagney@redhat.com>
1877         * ldmain.c (remove_output): Call bfd_cache_close.
1879 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
1881         * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
1882         .MIPS.content* and .MIPS.events* sections.
1884 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
1886         * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
1887         .note.gnu.arm.ident to after allocated sections.  Mark its
1888         address as 0.
1890 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
1892         * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
1893         * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
1894         * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
1895         * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
1896         * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
1898 2004-02-05  Nick Clifton  <nickc@redhat.com>
1900         * emultempl/pe.em (_after_open): Fix typo in previous delta.
1902 2004-02-04  Danny Smith  <dannysmith@users.sourceforge.net>
1904         * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
1906 2004-01-28  Alan Modra  <amodra@bigpond.net.au>
1908         * genscripts.sh: Fix typo.
1910         * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1912 2004-01-24  Jakub Jelinek  <jakub@redhat.com>
1914         * emulparams/elf64_ia64.sh: Put .rela.opd into
1915         OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1917 2004-01-20  Danny Smith  <dannysmith@users.sourceforge.net>
1919         * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1920         * ld.texinfo (--omagic): Note that writable text section
1921         does not conform to published PE-COFF specs.
1922         (--enable-auto-import): Likewise.
1924 2004-01-15  Alan Modra  <amodra@bigpond.net.au>
1926         * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
1928 2004-01-13  Nick Clifton  <nickc@redhat.com>
1930         * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
1931         which if true will prevent the LMA region being used as a
1932         replacement for a default VMA region.
1933         (lang_leave_output_section_statement): Pass extra parameter.
1934         (lang_leave_overlay): Likewise.
1935         * ld.texinfo (Output Section LMA): Document that the LMA
1936         region can be set to the VMA region if no VMA has been set.
1937         * ldlang.h (struct lang_output_section_phdr_list): Create a
1938         typedef for this type.  Minor formatting fixes.
1940 2004-01-13  Nick Clifton  <nickc@redhat.com>
1942         * ldlang.c (lang_size_sections_1): If dot is advanced, then
1943         assume that the section should be allocated.
1945 2004-01-13  Alan Modra  <amodra@bigpond.net.au>
1947         * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1948         sections.  Do ignore SEC_NEVER_LOAD sections.
1949         (lang_size_sections_1): Remove test made redundant with the above.
1951 2004-01-09  Alan Modra  <amodra@bigpond.net.au>
1953         * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1954         program_header_size.
1956 2004-01-06  Alexandre Oliva  <aoliva@redhat.com>
1958         2003-11-28  Alexandre Oliva  <aoliva@redhat.com>
1959         * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1960         2003-11-05  Alexandre Oliva  <aoliva@redhat.com>
1961         * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1962         (MAXPAGESIZE): Set to 64Kb.
1963         (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1964         __ROFIXUP_END__.  Don't map .rofixup.got any more.
1965         * emulparams/elf32frv.sh (NOP): Set.
1966         2003-10-31  Alexandre Oliva  <aoliva@redhat.com>
1967         * configure.tgt: Add frv-*-*linux*.
1968         2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
1969         * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1970         (eelf32frvfd.c): New.
1971         * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1972         * emulparams/elf32frv.sh: Reverted previous two patches.
1973         * emulparams/elf32frvfd.sh: New.
1974         * Makefile.in: Rebuilt.
1975         2003-09-18  Alexandre Oliva  <aoliva@redhat.com>
1976         * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1977         .rofixup.got to .rofixup.
1978         2003-09-15  Alexandre Oliva  <aoliva@redhat.com>
1979         * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
1980         (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
1982 2004-01-05  Jakub Jelinek  <jakub@redhat.com>
1984         * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
1985         * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
1987 2004-01-03  Alan Modra  <amodra@bigpond.net.au>
1989         * ldexp.c (align_n): Make static.
1990         * ldexp.h (align_n): Delete declaration.
1991         * ldlang.h (lang_enter_output_section_statement): Remove
1992         block_value param.
1993         * ldlang.c (lang_enter_output_section_statement): Likewise.
1994         (TO_ADDR, TO_SIZE): Define.
1995         (opb_shift): New var.
1996         (init_opb): New function.
1997         (print_input_section): Call init_opb and use TO_ADDR.
1998         (print_data_statement, print_reloc_statement): Likewise.
1999         (print_padding_statement): Likewise.
2000         (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
2001         (lang_check_section_addresses): Likewise.
2002         (lang_size_sections_1): Likewise.
2003         (lang_do_assignments_1): Likewise.
2004         (lang_set_startof): Likewise.
2005         (lang_one_common): Likewise.  Combine power_of_two and opb_shift align.
2006         (lang_process): Call init_opb.
2007         (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
2008         (lang_enter_overlay_section): Adjust
2009         lang_enter_output_section_statement call.
2010         * ldgram.y: Likewise.
2011         * mri.c (mri_draw_tree): Likewise.
2012         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2013         * emultempl/mmo.em (mmo_place_orphan): Likewise.
2014         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2016         * ldfile.c (ldfile_set_output_arch): Add defarch param.
2017         * ldfile.h (ldfile_set_output_arch): Ditto.
2018         * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
2019         ldfile_set_output_arch.
2020         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2021         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
2022         * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
2023         * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2024         * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
2025         * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2026         * ldgram.y: Adjust ldfile_set_output_arch call.
2027         * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2028         * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
2029         * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
2030         * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
2031         * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
2032         * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2033         * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2035 2004-01-02  Bernardo Innocenti  <bernie@develer.com>
2037         * configure.tgt: Add m68k-uClinux target.
2039 For older changes see ChangeLog-0203
2041 Local Variables:
2042 mode: change-log
2043 left-margin: 8
2044 fill-column: 74
2045 version-control: never
2046 End: