Accept any C library to accompany a GNU Linux implementation, not just the GNU
[binutils.git] / ld / ChangeLog
blob02e604a44201e64bf2b1523774f38f2c00e30182
1 2005-03-23  Mike Frysinger  <vapier@gentoo.org>
2             Nick Clifton  <nickc@redhat.com>
4         * configure.host: Accept any C library to accompany a GNU Linux
5         implementation, not just the GNU C library.
6         * configure.tgt: Likewise.
7         * emultempl/elf32.em: Likewise.
8                 
9 2005-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11         * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
12         (gld${EMULATION_NAME}_finish): Call
13         gld${EMULATION_NAME}_provide_bound_symbols to provide
14         __preinit_array_start, __preinit_array_end, __init_array_start,
15         __init_array_end, __fini_array_start and __fini_array_end.
17         * scripttempl/elf.sc: Don't provide __preinit_array_start,
18         __preinit_array_end, __init_array_start, __init_array_end,
19         __fini_array_start nor __fini_array_end.
21 2005-03-23  Alan Modra  <amodra@bigpond.net.au>
23         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
24         SEC_EXCLUDE on .gnu.warning sections.
26 2005-03-22  Alan Modra  <amodra@bigpond.net.au>
28         * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
30 2005-03-21  Alan Modra  <amodra@bigpond.net.au>
32         * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
33         function.
34         (LDEMUL_AFTER_ALLOCATION): Define.
36 2005-03-21  Alan Modra  <amodra@bigpond.net.au>
38         * emultempl/ppc64elf.em (ppc_finish): Rename from
39         gld${EMULATION_NAME}_finish.  Call gld${EMULATION_NAME}_finish.
40         (LDEMUL_FINISH): Update.
41         * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
42         * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
44 2005-03-18  Julian Brown  <julian@codesourcery.com>
46         * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
47         .rel.fini_array.
48         (.rela.dyn): Add .rela.init_array, .rela.fini_array.
49         (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
51 2005-03-18  H.J. Lu  <hongjiu.lu@intel.com>
53         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
54         bfd_section when removing unused empty output sections for
55         non-relocatable link.
57 2005-03-19  Alan Modra  <amodra@bigpond.net.au>
59         * ldlang.c (lang_insert_orphan): Use old section_tail rather than
60         traversing the bfd section list to find pointer to new section.
62 2005-03-18  Alan Modra  <amodra@bigpond.net.au>
64         * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
65         input sections into .sdata and .sbss output respectively.
67 2005-03-16  David Heine  <dlheine@tensilica.com>
68             Bob Wilson  <bob.wilson@acm.org>
70         * ldlang.c (IGNORE_SECTION): Remove check for zero size.
71         (lang_check_section_addresses): Ignore zero size sections here.
73 2005-03-16  H.J. Lu  <hongjiu.lu@intel.com>
75         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
76         unused empty output sections for non-relocatable link.
78         * ld.h (args_type): Remove gc_sections.
80         * ldlang.c (lang_mark_used_section): New.
81         (lang_gc_sections): Use link_info.gc_sections instead of
82         command_line.gc_sections.
83         * ldmain.c (main): Likewise.
84         * lexsup.c (parse_args): Likewise.
85         * ldlang.c (lang_process): Call lang_mark_used_section.
87         * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
89 2005-03-16  Nick Clifton  <nickc@redhat.com>
90             Ben Elliston  <bje@au.ibm.com>
92         * configure.in (werror): New switch: Add -Werror to the
93         compiler command line.  Enabled by default.  Disable via
94         --disable-werror.
95         * configure: Regenerate.
97 2005-03-16  Alan Modra  <amodra@bigpond.net.au>
99         * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
100         (OTHER_RELRO_SECTIONS): Set this instead.
102 2005-03-15  Nick Clifton  <nickc@redhat.com>
104         * NEWS: Add cutoff for changes in 2.16 release.
106 2005-03-15  Mikkel Krautz  <krautz@gmail.com>
108         * configure.tgt (x86_64-elf): Add target.
110 2005-03-15  Alan Modra  <amodra@bigpond.net.au>
112         * po/es.po: Commit new Spanish translation.
114 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
116         * ldexp.c (exp_fold_tree): Ensure return value is initialized.
117         Tidy etree_assert case.
119 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
121         * po/tr.po: Commit new Turkish translation.
123 2005-03-11  Daniel Jacobowitz  <dan@codesourcery.com>
125         * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
126         * Makefile.in: Regenerated.
127         * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
129 2005-03-07  Nick Clifton  <nickc@redhat.com>
131         * po/fr.po: Updated translation.
133 2005-03-05  Alan Modra  <amodra@bigpond.net.au>
135         * po/ld.pot: Regenerate.
137 2005-03-02  Jan Beulich  <jbeulich@novell.com>
139         * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
140         * pe-dll.c (pe_dll_generate_implib): Likewise.
142 2005-02-24  Ben Elliston  <bje@au.ibm.com>
144         * ldfile.c: Remove GNU960 conditional code.
145         * emultempl/gld960.em: Likewise.
146         * emultempl/gld960c.em: Likewise.
147         * emultempl/lnk960.em: Likewise.
149 2005-02-24  Nick Clifton  <nickc@redhat.com>
151         * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
152         empty string from calls to concat.
154 2005-02-23  Nick Clifton  <nickc@redhat.com>
156         * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
157         arguments passed to concat() with a NULL.
159         * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
160         define types needed by ldfile.h
162 2005-02-23  Alan Modra  <amodra@bigpond.net.au>
164         * pe-dll.c: Warning fixes.
165         * emultempl/sunos.em: Likewise.
167 2005-02-22  Daniel Jacobowitz  <dan@codesourcery.com>
169         * ldlang.c (section_already_linked): Don't call
170         bfd_section_already_linked for dynamic objects.
172 2005-02-22  Alan Modra  <amodra@bigpond.net.au>
174         * ldexp.c: Warning fixes.
175         * ldwrite.c: Likewise.
176         * emultempl/elf32.em: Likewise.
178 2005-02-21  H.J. Lu  <hongjiu.lu@intel.com>
180         * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
181         tic54x input only.
182         (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
183         and ECOFF output only.
185 2005-02-21  Alan Modra  <amodra@bigpond.net.au>
187         * config.in: Regenerate.
188         * configure: Regenerate.
190 2005-02-17  Zack Weinberg  <zack@codesourcery.com>
192         * ldexp.c (assigning_to_dot): New global flag.
193         (fold_name): If assigning_to_dot is true, object immediately to
194         an undefined symbol.
195         (exp_fold_tree): Set and clear assigning_to_dot around the
196         recursive call to exp_fold_tree to process the right-hand side
197         of an assignment to the location counter.
199 2005-02-17  Paul Brook  <paul@codesourcery.com>
201         * scripttempl/armbpabi.sc: Add dummy name to version block.
203 2005-02-17  Alan Modra  <amodra@bigpond.net.au>
205         * ldexp.c (new_abs): Init new.str.
207 2005-02-15  Mark Mitchell  <mark@codesourcery.com>
209         * configure.in (AC_CHECK_FUNCS): Add glob.
210         * configure: Regenerated.
211         * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
212         not defined.
213         (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
214         if HAVE_GLOB is not defined.
216 2005-02-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
218         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
219         lib_path if NATIVE is yes.
221 2005-02-16  Alan Modra  <amodra@bigpond.net.au>
223         * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
224         an error creating fake bfd fatal.
225         (ppc_before_allocation): Continue on after errors.
226         (gld${EMULATION_NAME}_finish): Likewise.
228 2005-02-15  Nick Clifton  <nickc@redhat.com>
230         * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
231         not declared.  It is not used and its presence causes a compile
232         time warning.
234 2005-02-11  Zack Weinberg  <zack@codesourcery.com>
236         * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
237         If st.st_ino is zero, do not treat the library as a duplicate.
239 2005-02-10  Jakub Jelinek  <jakub@redhat.com>
241         * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
242         Set BFD_LINKER_CREATED on the stubs bfd.
243         * emultempl/ppc64elf.em (ppc_create_output_section_statements):
244         Likewise.
246 2005-02-08  Mark Mitchell  <mark@codesourcery.com>
248         * scripttempl/armbpabi.sc (VERSION): Make special section symbols
249         local.
250         (Image$$ER_RO$$Base): Define whenever RELOCATING.
251         (Image$$ER_RO$$Limit): Likewise.
252         (SHT$$INIT_ARRAY$$Base): Likewise.
253         (SHT$$INIT_ARRAY$$Limit): Likeise.
255 2005-02-10  Ben Elliston  <bje@au.ibm.com>
257         * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
259 2005-02-08  Richard Sandiford  <rsandifo@redhat.com>
261         * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
262         to include o32 and n64 emulations.
263         (mips64*-*-linux-gnu*): Likewise.
265 2005-02-08  Hans-Peter Nilsson  <hp@axis.com>
267         * ldmain.c (warning_callback, warning_find_reloc): Prepend
268         "warning: " to warning messages.
270 2005-02-04  Alan Modra  <amodra@bigpond.net.au>
272         * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
273         look up symbol for etree_provide here.
275 2005-02-02  Daniel Jacobowitz  <dan@codesourcery.com>
277         * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
279 2005-02-01  Edward Welbourne  <eddy@opera.com>
280             Nick Clifton  <nickc@redhat.com>
282         * ld.texinfo (Source Code Reference): New node describing how to
283         access linker script defined variables from source code.
285 2005-02-01  Alan Modra  <amodra@bigpond.net.au>
287         * ld.texinfo: Clarify --as-needed operation.
289 2005-01-31  Andrew Cagney  <cagney@gnu.org>
291         * configure: Regenerate to track ../gettext.m4.
293 2005-01-31  Nick Clifton  <nickc@redhat.com>
295         * ldver.c (ldversion): Bump reported copyright date to 2005.
297 2005-01-31  Nick Clifton  <nickc@redhat.com>
299         * configure.tgt: Remove obsolete targets m68k-lynxos and
300         sparc-lynxos.
302 2005-01-28  Julian Brown  <julian@codesourcery.com>
304         * emultempl/armelf.em (fix_v4bx): New variable.
305         (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
306         value to bfd.
307         (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
308         (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
309         (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
310         (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
311         * NEWS: Mention --fix-v4bx.
312         * ld.texinfo: Document --fix-v4bx.
314 2005-01-25  Mark Mitchell  <mark@codesourcery.com>
316         * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
317         as to include .ARM.exidx$${Base,Limit}.
318         * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
319         Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
320         Put .init_array, .fini_array, etc. into the read-only data
321         segment.
323 2005-01-25  Alan Modra  <amodra@bigpond.net.au>
325         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
326         (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
327         only needed by an as-needed lib that didn't get linked.
329 2005-01-23  Alan Modra  <amodra@bigpond.net.au>
331         * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
332         __DTOR_LIST__ description.
334 2005-01-23  Alan Modra  <amodra@bigpond.net.au>
336         * ld.texinfo (Location Counter <dot outside sections>): Document
337         effects of orphan section placement, and ". = ." workaround.
338         * Makefile.in: Regenerate.
340 2005-01-22  Richard Sandiford  <rsandifo@redhat.com>
342         * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
343         * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
345 2005-01-21  Jakub Jelinek  <jakub@redhat.com>
347         * ldgram.y (AS_NEEDED): New token.
348         (input_list): Handle AS_NEEDED ( input_list ).
349         * ldlex.l (AS_NEEDED): Add.
350         * ld.texinfo: Document AS_NEEDED ().
351         * NEWS: Mention AS_NEEDED ().
353 2005-01-21  Ben Elliston  <bje@au.ibm.com>
355         * ldlang.c (lang_reasonable_defaults): Remove.
356         (lang_process): Don't call lang_reasonable_defaults.
358         * ldexp.c (exp_assop): Remove #if 0'd code.
359         (exp_print_tree): Likewise.
360         * ldlang.c (lang_memory_region_lookup): Likewise.
361         (open_output): Likewise.
362         (lang_do_assignments_1): Likewise.
363         (lang_place_orphans): Likewise.
364         (lang_enter_output_section_statement): Likewise.
365         (lang_reasonable_defaults): Likewise.
366         * ldlang.h (struct lang_input_statement_struct): Likewise.
367         * mri.c (mri_draw_tree): Likewise.
368         (mri_load): Likewise.
369         * pe-dll.c (generate_reloc): Likewise.
370         (make_import_fixup_entry): Likewise.
371         (pe_as16): Likewise.
372         * emultempl/beos.em (set_pe_subsystem): Likewise.
373         * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
374         * emultempl/pe.em: Likewise.
375         * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
377 2005-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
379         * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
380         (earmelfb_linux_eabi.c): New target.
381         * Makefile.in: Regenerated.
382         * configure.tgt (arm*b-*-linux-gnueabi): New target.
383         * emulparams/armelfb_linux_eabi.sh: New file.
385 2005-01-20  Nick Hudson  <skrll@netbsd.org>
387         PR ld/676
388         * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
389         Handle bfd_elf32_hppa_nbsd_vec.
391 2005-01-19  Richard Sandiford  <rsandifo@redhat.com>
393         * ldmain.h (ld_sysroot): Change type to a constant string.
394         * ldmain.c (ld_sysroot): Likewise.
395         (get_relative_sysroot, get_sysroot): New functions, adding command-line
396         support for changing the sysroot.
397         (main): Call the new functions.
398         * lexsup.c (OPTION_SYSROOT): New.
399         (ld_options): Add --sysroot.
400         (parse_args): Add a dummy handler for it.
401         * ld.texinfo (--sysroot): Document.
402         * NEWS: Mention the new --sysroot option.
404 2005-01-18  Alan Modra  <amodra@bigpond.net.au>
406         * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
407         (lang_place_orphans): Don't abort on just_syms_flag, instead call
408         bfd_link_just_syms.
410 2005-01-16  Danny Smith  <dannysmith@users.sourceforge.net>
412         * defilep.y (def_name, def_library): Combine into...
413         (def_image_name): New function.  Strip name to basename,
414         with warning.
416 2005-01-12  Mark Kettenis  <kettenis@gnu.org>
418         * configure.in: Be sure to invoke config.sub using the shell.
419         * configure: Regenerate.
421 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
423         * configure.host: Correct sed patterns for last change.
425 2005-01-10  Nick Clifton  <nickc@redhat.com>
427         PR binutils/609
428         * ldmisc.c (vfinfo): Add an extra argument: is_warning.  Use this
429         to determine whether config.make_executable should be set to FALSE in
430         conjunction with config.fatal_warnings.
431         (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
432         (einfo): Pass TRUE as the extra argument.
434 2005-01-10  Greg Schaffer  <gschafer@zip.com.au>
436         * configure.host (linux targets): Use "${CC} -dumpspecs" instead
437         of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
438         (ia64-*-aix): Delete - this target is obsolete, and would be
439         broken by this patch.
441 2005-01-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
443         * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
444         (sparc64-sun-solaris2*): New host.
446 2005-01-06  Paul Brook  <paul@codesourcery.com>
448         * Makefie.am: Add earmelf_vxworks.
449         * Makefile.in: Regenerate.
450         * configure.tgt: Make arm-*-vxworks a separate case.
451         * emulparams/armelf_vxworks.sh: New function.
453 2005-01-06  Alan Modra  <amodra@bigpond.net.au>
455         * emultempl/ppc64elf.em (no_multi_toc): New var.
456         (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
457         (OPTION_NO_MULTI_TOC): Define.
458         (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
459         (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
461 2005-01-05  Nick Clifton  <nickc@redhat.com>
463         PR binutils/614
464         * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
465         Standard's specification for parsable error messages.
467 2005-01-04  Paul Brook  <paul@codesourcery.com>
469         * Makefile.am: Correct dependency for earmsymbian.c.
470         * Makefile.in: Regenerate.
472 2004-12-28  Danny Smith  <dannysmith@users.sourceforge.net>
474         * emultempl/pe.em (set_pe_subsystem): Change second arg to
475         lang_add_entry to FALSE.
477 2004-12-23  Nick Clifton  <nickc@redhat.com>
479         PR 600
480         * emulparams/shelf.sh (.stack): Increase stack start address to
481         0x300000.
483 2004-12-20  Nick Clifton  <nickc@redhat.com>
485         * ldmain.c (main): Issue an error message if -static and -shared
486         are used together.
488 2004-12-17  Jakub Jelinek  <jakub@redhat.com>
490         * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
491         * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
492         * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
493         address space at DATA_SEGMENT_ALIGN.  Fix computation of expected
494         PT_GNU_RELRO segment end.
496 2004-12-14  P.J. Darcy  <darcypj@us.ibm.com>
498         * configure.tgt: Add s390x-ibm-tpf support.
500 2004-12-16  Martin Kögler  <mkoegler@auto.tuwien.ac.at>
502         * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
503         BFD.
505 2004-12-07  Ben Elliston  <bje@gnu.org>
507         * ldemul.h: Forward declare struct option.
509 2004-12-01  Danny Smith  <dannysmith@users.sourceforge.net>
511         * scripttempl/pe.sc (.data): Add .jcr subsection.
513 2004-11-30  Paul Brook  <paul@codesourcery.com>
515         * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
517 2004-11-30  Tero Niemela  <tero_niemela@yahoo.com>
519         * Makefile.am: Change LOCALEDIR to $(datadir)/share.
520         * Makefile.in: Regenerate.
522 2004-11-26  Melissa Mears  <asterisk@graces.dricas.com>
524         * emultempl/pe.em: Add --subsystem:xbox as well as
525         --subsystem:%d.
526         * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
527         and numeric subsystems.
529 2004-11-24  Alan Modra  <amodra@bigpond.net.au>
531         * ldexp.c (fold_name): Correct PR 338 fix.
533 2004-11-19  Mark Mitchell  <mark@codesourcery.com>
535         * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
536         (earmelf_linux_eabi.c): New target.
537         * configure.tgt (arm*-*-linux-gnueabi): Handle it.
538         * emulparams/armelf_linux_eabi.sh: New file.
539         * Makefile.in: Regenerated.
541 2004-11-19  Nick Clifton  <nickc@redhat.com>
543         PR 518
544         * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
545         LENGTH fields in the MEMORY command, to explicitly state that
546         symbols cannot be used in their expressions.
548 2004-11-19  Jon Beniston <jon@beniston.com>
550         * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
551         * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
552         * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
553         which return the length and origin of a memory.
554         * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
555         * NEWS: Mention support for ORIGIN and LENGTH operators.
557 2004-11-17  Daniel Jacobowitz  <dan@codesourcery.com>
559         * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
560         a dynamic object for stubs.
562 2004-11-04  Paul Brook  <paul@codesourcery.com>
564         * ld.texinfo: Document --default-imported-symver.
565         * ldmain.c (main): Set link_info.default_imported_symver.
566         * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
567         (ld_options): Add --default-imported-symver.
568         (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
570 2004-11-08  Inderpreet Singh   <inderpreetb@nioda.hcltech.com>
571             Vineet Sharma      <vineets@noida.hcltech.com>
573         * Makefile.am: Add entries for new maxq-coff target.
574         * Makefile.in: Regenerate.
575         * configure.tgt: Add support for maxq.
576         * emulparams/maxqcoff.sh: New File.
577         * scripttempl/maxqcoff.sc: New linker script for target maxq.
578         * NEWS: Mention the new target.
580 2004-11-08  Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
582         * testsuite/ld-scripts/weak.exp: Enable test on PE,
583         XFAIL non-i386 PE.
584         * testsuite/ld-undefined/weak-undef.exp: Enable test on PE,
585         XFAIL non-i386 PE.
586         * testsuite/lib/ld-lib.exp (is_pecoff_format): New.
588 2004-11-04  Daniel Jacobowitz  <dan@debian.org>
590         * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
591         (earmelf_oabi.c): Remove rule.
592         * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
593         * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
594         * Makefile.in: Regenerated.
596 2004-11-04  Hans-Peter Nilsson  <hp@axis.com>
598         * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
599         * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
600         (FINI_START): Ditto.
601         (INIT_END): Remove emitted "jump [sp+]".
602         (FINI_END): Ditto.
604 2004-11-04  Alan Modra  <amodra@bigpond.net.au>
606         * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
607         (no_opd_opt, no_toc_opt): New static vars.
608         (ppc_before_allocation): Don't edit opt if no_opd_opt.  Call
609         ppc64_elf_edit_toc.
610         (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
611         (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
612         (PARSE_AND_LIST_OPTIONS): Describe new options.
613         (PARSE_AND_LIST_ARGS_CASES): Handle them.
615 2004-10-27  Nick Clifton  <nickc@redhat.com>
617         * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
618         parameter to invocation of lang_section_start.
619         * emultempl/aix.em (_handle_option): Likewise.
621         * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
622         eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
623         * Makefile.in: Regenerate.
625 2004-10-26  Mark Mitchell  <mark@codesourcery.com>
627         * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
628         __exidx_{start,end} when not relocating.
630 2004-10-25  Mark Mitchell  <mark@codesourcery.com>
632         * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
633         * ldexp.h (segment_type): New type.
634         (segments): New variable.
635         * ldexp.c (segments): New variable.
636         (exp_print_token): Handle SEGMENT_START.
637         (fold_binary): Likewise.
638         * ldgram.y (SEGMENT_START): Declare it as a token.
639         (exp): Handle SEGMENT_START.
640         * ldlang.h (lang_address_statement_type): Add segment field.
641         (lang_section_start): Change prototype.
642         * ldlang.c (map_input_to_output_sections): Do not process section
643         assignments if a corresponding SEGMENT_START has already been
644         seen.
645         (lang_section_start): Add segment parameter.
646         * ldlex.l (SEGMENT_START): Add it.
647         * lexsup.c (seg_segment_start): New function.
648         (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
649         * ld.texinfo (SEGMENT_START): Document it.
650         * emulparams/armsymbian.sh (EMBEDDED): Set it.
651         * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
652         base addresses.  Do not map relocations.
653         * NEWS: Mention SEGMENT_START.
655 2004-10-26  Paul Brook  <paul@codesourcery.com>
657         * ld.texinfo: Document --default-symver.
658         * ldmain.c (main): Set link_info.create_default_symver.
659         * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
660         (ld_options): Add default-symver.
661         (parse_args): Handle OPTION_DEFAULT_SYMVER.
663 2004-10-24 Danny Smith  <dannysmith@users.sourceforge.net>
665         * pe-dll.c (process_def_file): Don't export all symbols by default if
666         building a position-independent executable.
668 2004-10-21  H.J. Lu  <hongjiu.lu@intel.com>
670         PR 463
671         * ldmain.c (reloc_overflow): Accept a pointer to struct
672         bfd_link_hash_entry. Report symbol location for relocation
673         overflow.
675 2004-10-21  H.J. Lu  <hongjiu.lu@intel.com>
677         * genscripts.sh (libpath.exp): Really generate for first
678         emulation only.
680 2004-10-19  Danny Smith  <dannysmith@users.sourceforge.net>
682         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
683         comparison and replacement of filenames.
685 2004-10-19  H.J. Lu  <hongjiu.lu@intel.com>
687         PR 459
688         * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
689         option on linker script as the one for linker script.
691 2004-10-16  Daniel Jacobowitz  <dan@debian.org>
693         * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
694         (check_excluded_libs): New.
695         (load_symbols): Call check_excluded_libs.
696         * ldlang.h (add_excluded_libs): New prototype.
697         * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
698         (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
699         (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
700         * ld.texinfo (Command Line Variables): Document --exclude-libs.
701         (Options Specific to i386 PE Targets): Remove --exclude-libs.
703 2004-10-15  Alan Modra  <amodra@bigpond.net.au>
705         * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
706         failing link script assert.
708         * ldctor.c (ldctor_add_set_entry): Fix comment typo.
710 2004-10-14  H.J. Lu  <hongjiu.lu@intel.com>
712         PR 445
713         * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
714         (SMALL_DATA_DTOR): Set.
715         * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
716         (SMALL_DATA_DTOR): Unset.
717         * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
718         after .data. If SMALL_DATA_DTOR is set, move .dtors after
719         .data.
721 2004-10-14  Alan Modra  <amodra@bigpond.net.au>
723         PR 63
724         * ldlang.h (lang_output_section_statement_type): Make "next" a
725         struct lang_output_section_statement_struct *.
726         (struct orphan_save): Move from elf32.em.  Add "name" and "flags".
727         (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
728         * ldlang.c (lang_output_section_find_1): Adjust for changed
729         output_section_statement "next".
730         (strip_excluded_output_sections): Likewise.
731         (lang_record_phdrs): Likewise.
732         (lang_output_section_find_by_flags): New function.
733         (output_prev_sec_find): Move from pe.em.  Adjust iterator.
734         (lang_insert_orphan): New function.  Tail end of elf32.em's
735         place_orphan merged with that from pe.em.  Allow bfd_section to
736         be placed first.  New heuristic for placing new output section
737         statement in existing script, and accompanying split of __start
738         symbol alignment into a separate assignment to dot.
739         (lang_add_section): Consistently use output->bfd_section rather than
740         an alias, section->output_section.
741         (map_input_to_output_sections): Rename overly long arg.  Move
742         initialization of data_statement output section to here..
743         (lang_check_section_addresses): ..from here.
744         (print_assignment): Correct printing of etree_assert.
745         (print_all_symbols): Don't bomb if userdata is NULL.
746         (IGNORE_SECTION): Rearrange.
747         * emultempl/elf32.em (output_rel_find): Adjust interator.
748         (output_prev_sec_find): Delete.
749         (struct orphan_save): Delete.
750         (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
751         flags without creating a duplicate output section statement.
752         Revise code holding history of various orphan section placements.
753         Allow orphan sections to place before script specified output
754         sections.  Call lang_output_section_find_by_flags when placement
755         by name fails.  Use lang_insert_orphan.
756         * emultempl/mmo.em (output_prev_sec_find): Delete.
757         (struct orphan_save): Delete.
758         (mmo_place_orphan): Revise code holding history of orphan placement.
759         Allow orphans to place before existing output sections.  Use
760         lang_insert_orphan.
761         * emultempl/pe.em (output_prev_sec_find): Delete.
762         (struct orphan_save): Delete.
763         (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
764         lang_insert_orphan.
766 2004-10-13  Mark Mitchell  <mark@codesourcery.com>
768         * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
769         loadable segment.
771 2004-10-13  Alan Modra  <amodra@bigpond.net.au>
773         PR 44
774         * ldcref.c (check_section_sym_xref): Delete.
775         (check_local_sym_xref): New function.
776         (check_nocrossrefs): Adjust call.
777         * emultempl/pe.em (struct orphan_save): Add os_tail.
778         (place_orphan): Backport assorted fixes from elf32.em.
780 2004-10-12  Bob Wilson  <bob.wilson@acm.org>
782         * emultempl/xtensaelf.em: Use ISO C90 formatting.
784 2004-10-11  Jakub Jelinek  <jakub@redhat.com>
786         * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
787         getline for portability.
789         * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
790         (gld${EMULATION_NAME}_parse_ld_so_conf,
791         gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
792         (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
794 2004-10-11  Alan Modra  <amodra@bigpond.net.au>
796         PR 423
797         * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
798         rejected when linking statically.
800 2004-10-08  Daniel Jacobowitz  <dan@debian.org>
802         * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
804 2004-10-07  Bob Wilson  <bob.wilson@acm.org>
806         * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
807         assembler-generated longcall sequences.  Describe new --size-opt
808         option.
809         * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
810         * emultempl/xtensaelf.em (remove_section,
811         replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
812         elf_xtensa_after_open): New.
813         (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
814         OPTION_NO_LITERAL_MOVEMENT): Define.
815         (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
816         (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
817         (PARSE_AND_LIST_OPTIONS): Add --size-opt.
818         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
819         OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
820         (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
821         * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
822         * Makefile.am (eelf32xtensa.c): Update dependencies.
823         * Makefile.in: Regenerate.
825 2004-10-07  Jeff Baker  <jbaker@qnx.com>
827         * lexsup.c: Handle --warn-shared-textrel option.
828         (ld_options): Restore alpha sorting of options.
829         * ldmain.c (main): Initialise warn_shared_info field to FALSE.
830         * ld.texinfo: Add documentation for --warn-shared-textrel.
831         * NEWS: Added mention of --warn-shared-textrel option.
833 2004-10-05  Tomer Levi  <Tomer.Levi@nsc.com>
835         * emultempl/crxelf.em (disable_relaxation): Add.
836         (crxelf_before_allocation): Enable --relax option by default.
837         (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
838         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
839         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
841 2004-10-04  H.J. Lu  <hongjiu.lu@intel.com>
843         * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
844         --sort-section name|alignment.
846         * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
847         --sort-section name|alignment.
849         * ld.h (sort_type): New enum.
850         (wildcard_spec): Change the type of `sorted' to sort_type.
852         * ldgram.y (SORT): Removed.
853         (SORT_BY_NAME): Added.
854         (SORT_BY_ALIGNMENT): Added.
855         (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
856         SORT_BY_ALIGNMENT.
857         (input_section_spec_no_keep): Updated `sorted'.
858         (statement): Replace SORT with SORT_BY_NAME.
860         * ldlang.c (compare_section): New function to compare 2
861         sections with different sorting schemes.
862         (wild_sort): Updated. Use compare_section.
863         (update_wild_statements): New function.
864         (lang_process): Call update_wild_statements before
865         map_input_to_output_sections.
867         * ldlex.l (SORT_BY_NAME): New.
868         (SORT_BY_ALIGNMENT): New.
869         (SORT): Return SORT_BY_NAME.
871         * ldmain.c (sort_section): New. Defined.
872         (main): Initialize it to none.
874         * lexsup.c (option_values): Add OPTION_SORT_SECTION.
875         (ld_options): Add an entry for OPTION_SORT_SECTION.
876         (parse_args): Handle OPTION_SORT_SECTION.
878         * mri.c (mri_draw_tree): Updated `sorted'.
880 2004-10-04  Jakub Jelinek  <jakub@redhat.com>
882         * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
883         * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
884         argument.
885         (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
886         and . as second argument.
887         (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
888         * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
889         (fold_binary): Add it here.  Insert padding to make relro_end
890         COMMONPAGESIZE bytes aligned.  For DATA_SEGMENT_ALIGN in
891         exp_dataseg_relro_adjust phase just use previously computed
892         exp_data_seg.base.
893         * ldlang.c (lang_size_sections): Set exp_data_seg.base for
894         relro_adjust here.  Call lang_size_sections_1 once more if there
895         was too big padding at DATA_SEGMENT_RELRO_END.
896         * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
898 2004-10-01  Paul Brook  <paul@codesourcery.com>
900         * emulparams/armelf.sh: Add unwinding table sections.
902 2004-09-30  Filip Navara  <navaraf@reactos.com>
904         * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
905         correct base address for position independant executables.
906         * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
907         executables as DLLs.
909 2004-09-30  Paul Brook  <paul@codesourcery.com>
911         * ld.texinfo: Document --target2=abs.
912         * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
914 2004-09-29  Nick Clifton  <nickc@redhat.com>
916         * scripttempl/xstormy16.sc: Only perform the assignments to the
917         ROM region when not performing a relocatable link.  The ROM region
918         does not start at address 0, but the sections will.
919         * Makefile.am: Fix linker script dependency for the generation of
920         eelf32xstormy16.c.
921         * Makefile.in: Regenerate.
923 2004-09-18  Filip Navara  <navaraf@reactos.com>
925         * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
926         emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
927         emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
928         TARGET_PAGE_SIZE.
929         * scripttempl/pe.sc: Make the virtual address and file offset synced if
930         the alignment is lower than the target page size.
932 2004-09-27  Filip Navara  <navaraf@reactos.com>
934         * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
935         def_file_parse to handle pe_def_file if NULL and prevent crash with
936         invalid .def files.
938 2004-09-27  Alan Modra  <amodra@bigpond.net.au>
940         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
941         --emit-stub-syms automatically when --emit-relocs.
943 2004-09-24  Paul Brook  <paul@codeosurcery.com>
945         * scripttempl/elf.sc: Keep .preinit_array, .init_array and
946         .fini_array sections.
948 2004-09-19  Andreas Schwab  <schwab@suse.de>
950         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
951         base so that relro end is suitably aligned.
953 2004-09-17  Paul Brook  <paul@codesourcery.com>
955         * ld.texinfo: Rename arm-specific section.  Document --target*
956         * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
957         * emulparams/armelf_linux.sh: Ditto.
958         * emulparams/armelf_nbsd.sh: Ditto.
959         * emultempl/armelf.em: Set default for TARGET2_TYPE.
960         (target2_type): New variable.
961         (arm_elf_before_allocation): Don't pass target1_type.
962         (arm_elf_create_output_section_statements): New function.
963         (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
964         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
965         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
966         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
967         * emultempl/armelf_oabi.em (_before_allocation): Remove extra
968         argument to bfd_elf32_arm_process_before_allocation.
970 2004-09-17  Alan Modra  <amodra@bigpond.net.au>
972         * ldexp.c (fold_name): Update u.undef.next refs.
973         * emultempl/pe.em: Likewise.
974         * emultempl/sunos.em: Likewise.
976 2004-09-17  Alan Modra  <amodra@bigpond.net.au>
978         * Makefile.am: Run "make dep-am".
979         * Makefile.in: Regenerate.
980         * config.in: Regenerate.
981         * configure: Regenerate.
982         * aclocal.m4: Regenerate.
983         * po/ld.pot: Regenerate.
985 2004-09-16  Tomer Levi  <Tomer.Levi@nsc.com>
987         * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
988         (.fini): Likewise.
989         (.jcr): Likewise.
991 2004-09-16  Alan Modra  <amodra@bigpond.net.au>
993         * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
994         to bfd_elf32_arm_process_before_allocation call.
996 2004-09-13  Paul Brook  <paul@codesourcery.com>
998         * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
999         * emultempl/armelf.em: Use TARGET1_IS_REL.  Add --target1-{rel,abs}.
1001 2004-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1003         * configure: Regenerated with autconfig 2.13.
1005 2004-09-07  Andreas Schwab  <schwab@suse.de>
1007         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
1008         alignment before adjusting DATA_SEGMENT_RELRO_END.
1010 2004-09-06  Mark Mitchell  <mark@codesourcery.com>
1012         * emulparams/armsymbian.sh: Use armbpabi script.
1013         * scripttempl/armbpabi.sc: New script.
1015 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
1017         * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
1018         (earmsymbian.c): New target.
1019         * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
1020         * Makefile.in: Regenerated.
1021         * aclocal.m4: Likewise.
1022         * configure: Likewise.
1023         * emulparams/armsymbian.sh: New file.
1025 2004-09-03  Tomer Levi  <Tomer.Levi@nsc.com>
1027         * scripttempl/elf32crx.sc: Edit file with comments.
1028         (.init): Add new section.
1029         (.fini): Likewise.
1030         (.ctor): Control the linkage order.
1031         (.dtor): Likewise.
1033 2004-08-27  Nick Clifton  <nickc@redhat.com>
1035         * emultempl/pe.em (after_open): Do not assume that either bfd is
1036         an archive.
1038 2004-08-26  Alan Modra  <amodra@bigpond.net.au>
1040         * ldlang.c (lang_init): Don't compare with TRUE.
1042 2004-08-25  Dmitry Diky  <diwil@spec.ru>
1044         * emulparams/msp430all.sh: Fix RAM sizes for all targets.
1045         * scripttempl/elf32msp430.sc: Add .profiler section definition.
1047 2004-08-24  H.J. Lu  <hongjiu.lu@intel.com>
1049         * ldlang.c (wildcardp): Defined as a macro with strpbrk.
1051 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
1053         * configure.tgt (arm*-*-symbianelf*): New target.
1054         (arm*-*-eabi*): Likewise.
1056 2004-08-19  Jakub Jelinek  <jakub@redhat.com>
1058         * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
1059         (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
1060         (OPTION_NON_OVERLAPPING_OPD): Define.
1061         (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
1062         --non-overlapping-opd option.
1064 2004-08-18  Alan Modra  <amodra@bigpond.net.au>
1066         PR 338
1067         * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
1068         was already on the undefs list.
1070 2004-08-17  Alan Modra  <amodra@bigpond.net.au>
1072         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
1073         prefix the symbol field too.
1075 2004-08-13  Alan Modra  <amodra@bigpond.net.au>
1077         * ldmain.c (link_callbacks): Remove "error_handler".
1078         * ldmisc.c: Include elf-bfd.h.
1079         (vfinfo): Sort comment.  Handle %A.  Use %A instead of
1080         bfd_get_section_indent.
1081         (error_handler): Delete.
1082         * ldmisc.h (error_handler): Delete declaration.
1084 2004-08-10  Alan Modra  <amodra@bigpond.net.au>
1086         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
1087         ppc64_elf_restore_symbols.
1089 2004-08-09  Alan Modra  <amodra@bigpond.net.au>
1091         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
1092         .toc is too large on relocatable linking.
1094 2004-08-09  Alan Modra  <amodra@bigpond.net.au>
1096         * emultempl/ppc64elf.em (ppc_after_open): Delete.
1097         (LDEMUL_AFTER_OPEN): Don't define.
1099 2004-08-02  Stephane Carrez  <stcarrez@nerim.fr>
1101         * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
1103 2004-08-01  Stephane Carrez  <stcarrez@nerim.fr>
1105         * scripttempl/elfm68hc12.sc: Align text, rodata and data section
1106         on power of 2.
1108 2004-07-27  Jason Thorpe  <thorpej@wasabisystems.com>
1110         * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
1112 2004-07-26  Dmitry Diky  <diwil@spec.ru>
1114         * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
1115         msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
1116         msp430xG439.
1117         * configure.tgt: Likewise.
1118         * emulparams/msp430all.sh: Likewise.
1119         * Makefile.in: Regenerate.
1121 2004-07-23  Nick Clifton  <nickc@redhat.com>
1123         * emultempl/elf32.em (_place_orphan): Use an already existing
1124         section name if that section does not have any flags set.
1126 2004-07-21  H.J. Lu  <hongjiu.lu@intel.com>
1128         * ldlang.c (already_linked_hash_entry): Removed.
1129         (already_linked): Likewise.
1130         (already_linked_table): Likewise.
1131         (section_already_linked): Call bfd_section_already_linked.
1132         (lang_process): Replace already_linked_table_init with
1133         bfd_section_already_linked_table_init and check return. Replace
1134         already_linked_table_free with bfd_section_already_linked_table_free.
1136 2004-07-21  Nick Clifton  <nickc@redhat.com>
1138         * ldlang.c (init_os): Make sure that the newly allocated userdata
1139         structure is zeroed out.
1141 2004-07-19  H.J. Lu  <hongjiu.lu@intel.com>
1143         * NEWS: Mention the new --add-needed/--no-add-needed and
1144         --as-needed/--no-as-needed options.
1146 2004-07-19  H.J. Lu  <hongjiu.lu@intel.com>
1148         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
1149         check the add_needed field.
1150         (dt_needed): New struct.
1151         (gld${EMULATION_NAME}_try_needed): Change the first argument
1152         to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
1153         bit in the file where the DT_NEEDED entry comes from.
1154         (gld${EMULATION_NAME}_search_needed): Change the second
1155         argument to a pointer to struct dt_needed.
1156         (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
1157         (gld${EMULATION_NAME}_after_open): Likewise.
1159         * ld.texinfo: Add --add-needed document.
1160         * ldlang.c (new_afile): Set p->add_needed.
1161         * ldlang.h (lang_input_statement_type): Add add_needed field.
1162         * ldmain.h (add_needed): Declare.
1163         * ldmain.c (add_needed): New global var.
1164         * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
1165         OPTION_NO_ADD_NEEDED.
1166         (ld_options): Likewise.
1167         (parse_args): Handle them.
1169 2004-07-13  Christof Petig  <christof@petig-baender.de>
1171         * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
1172         for endian-ness of extracted addend.
1174 2004-07-13  Danny Smith  <dannysmith@usesr.sourceforge.net>
1176         * pe-dll.c (auto_export):  Filter on just the import prefix,
1177         "_imp_", not "_imp__".
1179 2004-07-09  Nick Clifton  <nickc@redhat.com>
1181         * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
1183 2004-07-06  Tomer Levi  <Tomer.Levi@nsc.com>
1185         * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
1186         (eelf32crx.c): New target.
1187         * Makefile.in: Regenerate.
1188         * configure.tgt: Handle crx-*-elf*.
1189         * emulparams/elf32crx.sh: New file.
1190         * emultempl/crxelf.em: New file.
1191         * scripttempl/elf32crx.sc: New file.
1192         * NEWS: Mention new target.
1194 2004-07-06  Nick Clifton  <nickc@redhat.com>
1196         * Makefile.am: Add eshlsymbian.c.
1197         * Makefile.in: Regenerate.
1198         * configure.tgt: Add sh*-symbian-elf target.
1199         * emulparams/shlsymbian.sh: New file.  Configure the
1200         sh-symbian-elf linker scripts.
1201         * scripttemp/elf32sh-symbian.sc: New file.  Linker script
1202         template for the sh-symbian-elf target.
1204 2004-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1206         * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
1207         * emulparams/hppalinux.sh: Likewise.
1208         * scripttempl/elf.sc: Place .plt just before .got when .plt is in
1209         data segment and PLT_BEFORE_GOT is defined.
1211 2004-07-03  Aaron W. LaFramboise  <aaron98wiridge9@aaronwl.com>
1213         * ld.texinfo (WIN32): Document PE weak symbols.
1215 2004-07-02  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1217         * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
1219 2004-07-01  H.J. Lu  <hongjiu.lu@intel.com>
1221         * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
1222         the section.
1224 2004-06-29  Alan Modra  <amodra@bigpond.net.au>
1226         * ldlang.c (lang_reset_memory_regions): Save last relax pass section
1227         size in rawsize.
1229 2004-06-24  Alan Modra  <amodra@bigpond.net.au>
1231         * ldlang.c (print_output_section_statement): Don't print size before
1232         relaxation.
1233         (IGNORE_SECTION): Remove bfd arg.  Update all callers.
1235         * ldexp.c (fold_name): .. See below.
1236         * ldlang.c (section_already_linked, print_output_section_statement,
1237         print_input_section, insert_pad, size_input_section,
1238         lang_check_section_addresses, lang_size_sections_1,
1239         lang_size_sections, lang_do_assignments_1, lang_set_startof,
1240         lang_one_common, lang_reset_memory_regions, lang_process,
1241         lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
1242         * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
1243         * pe-dll.c (process_def_file, generate_reloc): ..
1244         * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
1245         gld${EMULATION_NAME}_before_allocation): ..
1246         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
1247         * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
1248         sh64_elf_${EMULATION_NAME}_after_allocation): ..
1249         * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
1250         * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
1251         ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
1252         "size" instead of "_raw_size" and "_cooked_size".  Expand
1253         bfd_section_size macro invocations.
1255 2004-06-22  Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1257         * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
1258         ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
1259         ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
1260         ___crt_xt_end__.
1261         (.tls): Define ___tls_start__ and ___tls_end__.
1263 2004-06-21  Alexandre Oliva  <aoliva@redhat.com>
1265         * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
1267 2004-06-18  Adam Nemet  <anemet@lnxw.com>
1269         * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
1270         * configure: Regenerate.
1272 2004-06-15  Jakub Jelinek  <jakub@redhat.com>
1274         * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
1275         .gcc_except_table output sections lost accidentally with
1276         -z relro patch.
1278 2004-06-15  Alan Modra  <amodra@bigpond.net.au>
1280         * ldwrite.c (build_link_order): Use bfd_get_section_size
1281         instead of bfd_get_section_size_before_reloc or _raw_size.
1282         * pe-dll.c (process_def_file): Likewise.
1284 2004-06-14  Alan Modra  <amodra@bigpond.net.au>
1286         From Richard Wirth <r.wirth@wirthware.de>
1287         * ldlang.c (lang_finish): Don't free lang_definedness_table.
1289 2004-05-29  Alan Modra  <amodra@bigpond.net.au>
1291         * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
1292         (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
1294 2004-05-28  Andrew Stubbs <andrew.stubbs@superh.com>
1296         * testsuite/ld-sh/arch/arch.exp: New test script.
1297         * testsuite/ld-sh/arch/arch_expected.txt: New file.
1298         * testsuite/ld-sh/arch/sh.s: New file.
1299         * testsuite/ld-sh/arch/sh2.s: New file.
1300         * testsuite/ld-sh/arch/sh-dsp.s: New file.
1301         * testsuite/ld-sh/arch/sh2e.s: New file.
1302         * testsuite/ld-sh/arch/sh3-nommu.s: New file.
1303         * testsuite/ld-sh/arch/sh3.s: New file.
1304         * testsuite/ld-sh/arch/sh3-dsp.s: New file.
1305         * testsuite/ld-sh/arch/sh3e.s: New file.
1306         * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
1307         * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
1308         * testsuite/ld-sh/arch/sh4.s: New file.
1309         * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
1310         * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
1311         * testsuite/ld-sh/arch/sh4a.s: New file.
1313 2004-05-28  Alan Modra  <amodra@bigpond.net.au>
1315         * ldlang.c: Formatting.  Wrap long lines, expand bfd_get_section_flags
1316         throughout file.
1317         * lexsup.c: Formatting.  Wrap long lines.
1318         * ldwrite.c: Update copyright date.
1320         * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
1321         (output_section_callback): Nor SEC_KEEP here.
1322         (gc_section_callback): Twiddle SEC_EXCLUDE here.
1323         (lang_gc_wild): Delete.  Fold into..
1324         (lang_gc_sections_1): ..here.  Only call bfd_gc_sections when garbage
1325         collecting.
1326         (lang_process): Always call lang_gc_sections.
1327         (lang_place_orphans): Handle SEC_EXCLUDE sections.
1328         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
1329         SEC_EXCLUDE code.
1331 2004-05-26  H.J. Lu  <hongjiu.lu@intel.com>
1333         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
1334         SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
1335         * ldlang.c (lang_add_section): Likewise.
1337 2004-05-26  Alan Modra  <amodra@bigpond.net.au>
1339         * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
1340         sections when doing a final link.  Clear SEC_EXCLUDE when doing
1341         a relocable link, except for SEC_DEBUGGING sections.
1342         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
1343         same condition here to drop SEC_EXCLUDE orphan sections.
1345 2004-05-25  Alan Modra  <amodra@bigpond.net.au>
1347         * ldlang.c (lang_process): Call bfd_merge_sections later, and
1348         only when not a relocatable link.
1349         (print_input_section): Handle SEC_EXCLUDE sections.
1350         (size_input_section): Don't update dot on SEC_EXCLUDE sections.
1351         (lang_do_assignments_1): Likewise.
1352         * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
1353         * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
1354         * emultempl/hppaelf.em (build_section_lists): Likewise.
1355         * emultempl/ppc64elf.em (build_toc_list): Likewise.
1356         (build_section_lists): Likewise.
1358 2004-05-23  Andreas Schwab  <schwab@suse.de>
1360         * ld.texinfo (Options): Fix typo in last change.
1362 2004-05-21  Andy Chittenden  <achittenden@bluearc.com>
1364         * ld.h (ld_config_type): Add new field: hash_table_size.
1365         * ldmain.c: Initialise the new field to zero.  If it is non-zero
1366         after parsing the linker's command line call
1367         bfd_hash_set_default_size.
1368         * lexsup.c (option_values): Add OPTION_HASH_SIZE.
1369         (ld_options): Add hash-size.
1370         (parse_args): Parse --hash-size option.  Allow
1371         --reduce-memory-overheads to set the default hash table size as
1372         well.
1373         * ld.texinfo: Document the new switch.  Also mention that
1374         --reduce-memory-overheads can affect the hash table size.
1375         * NEWS: Mention the new feature.
1377 2004-05-19  J"orn Rennecke <joern.rennecke@superh.com>
1379         * NEWS: Mention new linker map file generation and the
1380         --reduce-memory-overheads option.
1381         * ld.texinfo: Document --reduce-memory-overheads option.
1382         * ld.h (map_symbol_def): New struct.
1383         (struct user_section_struct, section_userdata_type): Rename to:
1384         (struct lean_user_section_struct, lean_section_userdata_type).
1385         (struct fat_user_section_struct, fat_section_userdata_type): New.
1386         (SECTION_USERDATA_SIZE): Define.
1387         (args_type): New member reduce_memory_overheads.
1388         * ldlang.c (map_obstack): New static variable.
1389         (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
1390         (lang_map): Unless command_line.reduce_memory_overheads is set,
1391         initialize lists of defined symbols for each section.
1392         (print_input_section): Unless command_line.reduce_memory_overheads
1393         is set, use print_all_symbols.
1394         (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
1395         * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
1396         * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
1397         (ld_options): Add entry for --reduce-memory-overheads.
1398         (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
1400 2004-05-19  Jakub Jelinek  <jakub@redhat.com>
1402         * ldgram.y (sect_constraint): New.
1403         (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1404         (section): Add sect_constraint.  Pass additional argument
1405         to lang_enter_output_section_statement.
1406         * mri.c (mri_draw_tree): Pass additional argument to
1407         lang_enter_output_section_statement.
1408         * emultempl/pe.em (place_orphan): Likewise.
1409         (output_prev_sec_find): Disregard output section statements with
1410         constraint == -1.
1411         * emultempl/mmo.em (output_prev_sec_find): Likewise.
1412         (mmo_place_orphan): Pass additional argument to
1413         lang_enter_output_section_statement.
1414         * emultempl/elf32.em (output_prev_sec_find): Disregard output section
1415         statements with constraint == -1.
1416         (place_orphan): Pass additional argument to
1417         lang_enter_output_section_statement.
1418         * ldlang.c (lang_enter_overlay_section): Likewise.
1419         (lang_output_section_find_1): New.
1420         (lang_output_section_find): Use it.
1421         (lang_output_section_statement_lookup_1): New.
1422         (lang_output_section_statement_lookup): Use it.
1423         (check_section_callback, check_input_sections): New.
1424         (map_input_to_output_sections): Check if all input sections
1425         are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
1426         (strip_excluded_output_sections): Disregard output section statements
1427         with constraint == -1.
1428         (lang_record_phdrs): Likewise.
1429         (lang_enter_output_section_statement): Add constraint argument.
1430         Use lang_output_section_statement_lookup_1.
1431         * ldlang.h (lang_output_section_statement_type): Add constraint
1432         and all_input_readonly fields.
1433         (lang_enter_output_section_statement): Adjust prototype.
1434         * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1435         * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
1436         segment if all input sections are readonly.
1438 2004-05-19  Adam Nemet  <anemet@lnxw.com>
1440         * scripttempl/i386lynx.sc: Remove file.
1442 2004-05-17  Bob Wilson  <bob.wilson@acm.org>
1444         * ld.texinfo (Output Section Address): Correct subsection name.
1446 2004-05-17  Adam Nemet  <anemet@lnxw.com>
1448         * configure.tgt (powerpc-*-lynxos* case): New case.
1449         * configure.host (i[3-7]86-*-lynxos* case): Remove case.
1450         * emulparams/ppclynx.sh: New file.
1451         * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
1452         * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
1453         (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
1454         (eppclynx.c): New rule.
1455         * Makefile.in: Regenerate.
1457 2004-05-13  Joel Sherrill <joel@oarcorp.com>
1459         * configure.tgt (or32-*-rtems*): Switch to elf and
1460         support versioned targets.
1462 2004-05-13  Nick Clifton  <nickc@redhat.com>
1464         * po/fr.po: Updated French translation.
1466 2004-05-11  Jakub Jelinek  <jakub@redhat.com>
1468         * genscripts.sh: Generate -z combreloc -z now -z relro scripts
1469         for binaries, -shared and -pie.
1470         * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
1471         * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
1472         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
1473         (OTHER_RELRO_SECTIONS): ... this.
1474         * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
1475         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1476         -z relro and -z norelro.
1477         (gld${EMULATION_NAME}_list_options): Add it to usage.
1478         (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
1479         -z relro scripts when appropriate.
1480         * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
1481         Create separate .got.plt section if SEPARATE_GOTPLT.
1482         Move sections which are only written during relocation handling
1483         to the beginning of RW segment.  If NO_SMALL_DATA, move .got
1484         before .data.  Add DATA_SEGMENT_RELRO_END directive.
1485         Include OTHER_RELRO_SECTIONS.
1486         * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
1487         * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
1488         (fold_unary): Likewise.
1489         (fold_binary): Handle -z relro.
1490         * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
1491         exp_dataseg_relro_adjust phases.  Add relro_end field.
1492         * ldmain.c (main): Initialize link_info.relro to FALSE.
1493         * ldlang.c (lang_size_sections): Handle -z relro.
1495 2004-05-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1497         * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1499 2004-05-07  J"orn Rennecke <joern.rennecke@superh.com>
1501         * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1502         before printing it with %W.
1504 2004-05-07  Brian Ford  <ford@vss.fsi.com>
1505             DJ Delorie  <dj@redhat.com>
1507         * emultempl/pe.em (real_flags): New static.
1508         (OPTION_LARGE_ADDRESS_AWARE): New define.
1509         (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1510         (gld_${EMULATION_NAME}_list_options): Likewise.
1511         (gld${EMULATION_NAME}_handle_option): Likewise.
1512         (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1513         * ld.texinfo: Document it.
1514         * NEWS: Mention it.
1516 2004-05-07  Brian Ford  <ford@vss.fsi.com>
1518         * NEWS: Mention DWARF 2 support for i386pe.
1520 2004-05-05  Alexandre Oliva  <aoliva@redhat.com>
1522         * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1523         elf32-frvfdpic.
1525 2004-04-30  Alan Modra  <amodra@bigpond.net.au>
1527         * ldlang.c (unique_section_p): Pass section parm, return true on
1528         group sections.
1529         (output_section_callback): Adjust.
1530         * ldlang.h (unique_section_p): Update prototype.
1531         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1533 2004-04-30  Eric Botcazou  <ebotcazou@act-europe.fr>
1535         * ld.texinfo (--gc-sections): Remove restriction for
1536         dynamic linking.
1538 2004-04-29  Brian Ford  <ford@vss.fsi.com>
1540         * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1541         for DWARF 2/3.  Update stab section's syntax.
1543 2004-04-29  Alan Modra  <amodra@bigpond.net.au>
1545         * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1546         (fill_edata): Correct pointer arithmetic.
1548 2004-04-21  Chris Demetriou  <cgd@broadcom.com>
1550         * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1551         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1552         * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1553         (EXTRA_EM_FILE): Use mipsecoff.em
1554         * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1555         (EXTRA_EM_FILE): Use mipsecoff.em
1556         * emultempl/mipsecoff.em: Restructure to be included as an
1557         extra emulation file.
1558         (check_sections, gld${EMULATION_NAME}_after_open)
1559         (gld${EMULATION_NAME}_after_allocation)
1560         (gld${EMULATION_NAME}_get_script)
1561         (ld_${EMULATION_NAME}_emulation): Remove
1562         (gld${EMULATION_NAME}_before_parse): Rename to...
1563         (mipsecoff_before_parse): This.
1564         (LDEMUL_BEFORE_PARSE): Define.
1565         * emultempl/mipself.em: Remove file.
1566         * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1567         (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1568         these symbols.
1569         * Makefile.am: Remove dependencies on emultempl/mipself.em.
1570         * Makefile.in: Regenerate.
1572 2004-04-21      Anil Paranjpe   <anilp1@kpitcummins.com>
1574         * ld.texinfo (synthesizing on H8/300): Information about linker
1575         relaxation support for bit manipulation instructions and system
1576         control instructions is added.
1578 2004-04-21  Hans-Peter Nilsson  <hp@axis.com>
1580         * NEWS: Mention change in DEFINED semantics.
1582 2004-04-21  Eric Botcazou  <ebotcazou@act-europe.fr>
1584         * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1585         (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1586         (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1588 2004-04-21  Ben Elliston  <bje@au.ibm.com>
1590         * ld.texinfo (Simple Example): Add missing punctuation.
1592 2004-04-20  Chris Demetriou  <cgd@broadcom.com>
1594         * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1596 2004-04-19  Jakub Jelinek  <jakub@redhat.com>
1598         * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1599         specially.
1601 2004-04-18  Danny Smith  <dannysmith@users.sourceforge.net>
1603         * scriptempl/pe.sc:  Put numbered .ctors.* after .ctors
1604         with default priority. Likewise for dtors.
1606 2004-04-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
1608         * configure.host: Remove mips*-dec-bsd* target.
1609         * configure.tgt: Likewise.
1611 2004-04-08  Richard Sandiford  <rsandifo@redhat.com>
1613         * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1614         * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1615         * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1616         * emultempl/irix.em: New file.
1617         * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1618         dependencies.
1619         * Makefile.in: Regenerate.
1621 2004-04-01  Paul Brook  <paul@codesourcery.com>
1623         * emultempl/armelf.em (byteswap_code): Add.
1624         (arm_elf_before_allocation): Pass extra parameter.
1625         (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1626         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1627         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1628         * emultempl/armelf_oabi.em: Pass extra parameter.
1629         * ld.texinfo: Document --be8.
1631 2004-03-30  Stan Shebs  <shebs@apple.com>
1633         Remove long-obsolete MPW support.
1634         * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1635         * Makefile.am (mpw): Remove file-presynthesizing actions.
1636         * Makefile.in: Likewise.
1637         * ldfile.c (slash): Remove MPW case.
1638         * ldlex.l [MPW]: Remove unused definition.
1640 2004-03-30  Galit Heller  <Galit.Heller@nsc.com>
1642         * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1643         (eelf32cr16c.c): New target.
1644         * Makefile.in: Regenerate.
1645         * configure.tgt: Handle cr16c-*-elf*.
1646         * emulparams/elf32cr16c.sh: New file.
1647         * scripttempl/elfcr16c.sc: Likewise
1648         * NEWS: Mention support for new target.
1650 2004-03-30  Nick Clifton  <nickc@redhat.com>
1652         * po/sv.po: Updated Swedish translation.
1654 2004-03-27  Alan Modra  <amodra@bigpond.net.au>
1656         * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1657         * emultempl/hppaelf.em: Likewise.
1658         * emultempl/ppc64elf.em: Likewise.
1659         * emultempl/sh64elf.em: Likewise.
1661 2004-03-25  Alan Modra  <amodra@bigpond.net.au>
1663         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1664         size_dynamic_sections call.
1666 2004-03-23  Alan Modra  <amodra@bigpond.net.au>
1668         PR 51.
1669         * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1670         link_info.wrap_char.
1672 2004-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1674         * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1675         or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1677 2004-03-20  Alexandre Oliva  <aoliva@redhat.com>
1679         * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1681 2004-03-19  Alan Modra  <amodra@bigpond.net.au>
1683         * config.in: Regenerate.
1684         * po/ld.pot: Regenerate.
1686 2004-03-18  Alan Modra  <amodra@bigpond.net.au>
1688         * ld.texinfo: Add --as-needed doco.
1689         * ldmain.c (as_needed): New global var.
1690         * ldmain.h (as_needed): Declare.
1691         * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1692         OPTION_NO_AS_NEEDED.
1693         (ld_options): Likewise.
1694         (parse_args): Handle them.
1695         * ldlang.h (lang_input_statement_type): Add as_needed field.
1696         * ldlang.c (new_afile): Set p->as_needed.
1697         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1698         (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1699         (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1701         * ldlang.c (open_input_bfds): Remove useless cast.
1702         (lang_do_assignments_1): Likewise.
1703         (lang_for_each_input_section): Delete.
1705 2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1707         * configure.tgt: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff*.
1709 2004-03-08  Danny Smith  <dannysmith@users.sourceforge.net>
1711         * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1712         private when building implib.
1714 2004-03-05  Nathan Sidwell  <nathan@codesourcery.com>
1716         * ldlang.c (lang_add_section): Don't force SEC_LOAD on
1717         SEC_THREAD_LOCAL.
1718         (IGNORE_SECTION): Ignore .tbss sections too.
1719         (lang_size_sections_1): .tbss sections do not advance dot.
1721 2004-03-01  Andreas Schwab  <schwab@suse.de>
1723         * ld.texinfo (Options): Fix example for --wrap.
1725 2004-02-25  Danny Smith  <dannysmith@users.sourceforge.net>
1727         * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1728         not NULL.
1730 2004-02-23  Ian Lance Taylor  <ian@wasabisystems.com>
1732         * ldlang.c (lang_check): Use %P, not %E, in error message.
1734 2004-02-23  Nathan Sidwell  <nathan@codesourcery.com>
1736         * ldlang.h (struct lang_output_section_state): Change processed
1737         field's type.
1738         * ldexp.c (check, invalid): Remove.
1739         (fold_name): Move valid_p assignments. Create undefined symbol
1740         when needed. Directly exampine section's processd flag.
1741         * ldlang.c (lang_output_section_statement_lookup): Adjust
1742         processed field init.
1743         (lang_size_sections_1): Allow LOADADDR when determining section's
1744         VMA. Adjust error message. Fold data statement's expr.
1745         (lang_size_sections): Correctly increment lang_statement_iteration.
1747 2004-02-23  Alan Modra <amodra@bigpond.net.au>
1749         * ldexp.c (fold_tree): Follow indirect symbols.
1751 2004-02-20  Nathan Sidwell  <nathan@codesourcery.com>
1753         * ldgram.y (exp): Add two operand ALIGN.
1754         * ldexp.c (fold_binary): Add ALIGN_K case.
1755         * ld.texinfo (ALIGN): Document two operand version.
1757 2004-02-19  Nathan Sidwell  <nathan@codesourcery.com>
1759         * ldlang.c (map_input_to_output_sections): Initialize sections
1760         mentioned in a data statement expression.
1761         (lang_do_assignments_1): Add data statement's expression's
1762         section's vma.
1764 2004-02-18  Nathan Sidwell  <nathan@codesourcery.com>
1766         * ldgram.y (statement_anywhere): Add assert rule.
1767         * ldlang.c (exp_init_os): Add assert case.
1769 2004-02-14  Andrew Cagney  <cagney@redhat.com>
1771         * ldmain.c (remove_output): Call bfd_cache_close.
1773 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
1775         * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
1776         .MIPS.content* and .MIPS.events* sections.
1778 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
1780         * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
1781         .note.gnu.arm.ident to after allocated sections.  Mark its
1782         address as 0.
1784 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
1786         * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
1787         * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
1788         * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
1789         * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
1790         * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
1792 2004-02-05  Nick Clifton  <nickc@redhat.com>
1794         * emultempl/pe.em (_after_open): Fix typo in previous delta.
1796 2004-02-04  Danny Smith  <dannysmith@users.sourceforge.net>
1798         * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
1800 2004-01-28  Alan Modra  <amodra@bigpond.net.au>
1802         * genscripts.sh: Fix typo.
1804         * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1806 2004-01-24  Jakub Jelinek  <jakub@redhat.com>
1808         * emulparams/elf64_ia64.sh: Put .rela.opd into
1809         OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1811 2004-01-20  Danny Smith  <dannysmith@users.sourceforge.net>
1813         * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1814         * ld.texinfo (--omagic): Note that writable text section
1815         does not conform to published PE-COFF specs.
1816         (--enable-auto-import): Likewise.
1818 2004-01-15  Alan Modra  <amodra@bigpond.net.au>
1820         * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
1822 2004-01-13  Nick Clifton  <nickc@redhat.com>
1824         * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
1825         which if true will prevent the LMA region being used as a
1826         replacement for a default VMA region.
1827         (lang_leave_output_section_statement): Pass extra parameter.
1828         (lang_leave_overlay): Likewise.
1829         * ld.texinfo (Output Section LMA): Document that the LMA
1830         region can be set to the VMA region if no VMA has been set.
1831         * ldlang.h (struct lang_output_section_phdr_list): Create a
1832         typedef for this type.  Minor formatting fixes.
1834 2004-01-13  Nick Clifton  <nickc@redhat.com>
1836         * ldlang.c (lang_size_sections_1): If dot is advanced, then
1837         assume that the section should be allocated.
1839 2004-01-13  Alan Modra  <amodra@bigpond.net.au>
1841         * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1842         sections.  Do ignore SEC_NEVER_LOAD sections.
1843         (lang_size_sections_1): Remove test made redundant with the above.
1845 2004-01-09  Alan Modra  <amodra@bigpond.net.au>
1847         * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1848         program_header_size.
1850 2004-01-06  Alexandre Oliva  <aoliva@redhat.com>
1852         2003-11-28  Alexandre Oliva  <aoliva@redhat.com>
1853         * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1854         2003-11-05  Alexandre Oliva  <aoliva@redhat.com>
1855         * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1856         (MAXPAGESIZE): Set to 64Kb.
1857         (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1858         __ROFIXUP_END__.  Don't map .rofixup.got any more.
1859         * emulparams/elf32frv.sh (NOP): Set.
1860         2003-10-31  Alexandre Oliva  <aoliva@redhat.com>
1861         * configure.tgt: Add frv-*-*linux*.
1862         2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
1863         * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1864         (eelf32frvfd.c): New.
1865         * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1866         * emulparams/elf32frv.sh: Reverted previous two patches.
1867         * emulparams/elf32frvfd.sh: New.
1868         * Makefile.in: Rebuilt.
1869         2003-09-18  Alexandre Oliva  <aoliva@redhat.com>
1870         * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1871         .rofixup.got to .rofixup.
1872         2003-09-15  Alexandre Oliva  <aoliva@redhat.com>
1873         * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
1874         (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
1876 2004-01-05  Jakub Jelinek  <jakub@redhat.com>
1878         * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
1879         * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
1881 2004-01-03  Alan Modra  <amodra@bigpond.net.au>
1883         * ldexp.c (align_n): Make static.
1884         * ldexp.h (align_n): Delete declaration.
1885         * ldlang.h (lang_enter_output_section_statement): Remove
1886         block_value param.
1887         * ldlang.c (lang_enter_output_section_statement): Likewise.
1888         (TO_ADDR, TO_SIZE): Define.
1889         (opb_shift): New var.
1890         (init_opb): New function.
1891         (print_input_section): Call init_opb and use TO_ADDR.
1892         (print_data_statement, print_reloc_statement): Likewise.
1893         (print_padding_statement): Likewise.
1894         (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
1895         (lang_check_section_addresses): Likewise.
1896         (lang_size_sections_1): Likewise.
1897         (lang_do_assignments_1): Likewise.
1898         (lang_set_startof): Likewise.
1899         (lang_one_common): Likewise.  Combine power_of_two and opb_shift align.
1900         (lang_process): Call init_opb.
1901         (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
1902         (lang_enter_overlay_section): Adjust
1903         lang_enter_output_section_statement call.
1904         * ldgram.y: Likewise.
1905         * mri.c (mri_draw_tree): Likewise.
1906         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1907         * emultempl/mmo.em (mmo_place_orphan): Likewise.
1908         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1910         * ldfile.c (ldfile_set_output_arch): Add defarch param.
1911         * ldfile.h (ldfile_set_output_arch): Ditto.
1912         * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
1913         ldfile_set_output_arch.
1914         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1915         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
1916         * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
1917         * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1918         * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
1919         * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1920         * ldgram.y: Adjust ldfile_set_output_arch call.
1921         * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1922         * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
1923         * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
1924         * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
1925         * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
1926         * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1927         * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1929 2004-01-02  Bernardo Innocenti  <bernie@develer.com>
1931         * configure.tgt: Add m68k-uClinux target.
1933 For older changes see ChangeLog-0203
1935 Local Variables:
1936 mode: change-log
1937 left-margin: 8
1938 fill-column: 74
1939 version-control: never
1940 End: