Step through the sorted array of basic blocks.
[binutils.git] / ld / ChangeLog
blobc093dab2f1415a18c2e7ba37694640fc36f4beac
1 2005-03-15  Mikkel Krautz  <krautz@gmail.com>
3         * configure.tgt (x86_64-elf): Add target.
5 2005-03-15  Alan Modra  <amodra@bigpond.net.au>
7         * po/es.po: Commit new Spanish translation.
9 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
11         * ldexp.c (exp_fold_tree): Ensure return value is initialized.
12         Tidy etree_assert case.
14 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
16         * po/tr.po: Commit new Turkish translation.
18 2005-03-11  Daniel Jacobowitz  <dan@codesourcery.com>
20         * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
21         * Makefile.in: Regenerated.
22         * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
24 2005-03-07  Nick Clifton  <nickc@redhat.com>
26         * po/fr.po: Updated translation.
28 2005-03-05  Alan Modra  <amodra@bigpond.net.au>
30         * po/ld.pot: Regenerate.
32 2005-03-02  Jan Beulich  <jbeulich@novell.com>
34         * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
35         * pe-dll.c (pe_dll_generate_implib): Likewise.
37 2005-02-24  Ben Elliston  <bje@au.ibm.com>
39         * ldfile.c: Remove GNU960 conditional code.
40         * emultempl/gld960.em: Likewise.
41         * emultempl/gld960c.em: Likewise.
42         * emultempl/lnk960.em: Likewise.
44 2005-02-24  Nick Clifton  <nickc@redhat.com>
46         * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
47         empty string from calls to concat.
49 2005-02-23  Nick Clifton  <nickc@redhat.com>
51         * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
52         arguments passed to concat() with a NULL.
54         * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
55         define types needed by ldfile.h
57 2005-02-23  Alan Modra  <amodra@bigpond.net.au>
59         * pe-dll.c: Warning fixes.
60         * emultempl/sunos.em: Likewise.
62 2005-02-22  Daniel Jacobowitz  <dan@codesourcery.com>
64         * ldlang.c (section_already_linked): Don't call
65         bfd_section_already_linked for dynamic objects.
67 2005-02-22  Alan Modra  <amodra@bigpond.net.au>
69         * ldexp.c: Warning fixes.
70         * ldwrite.c: Likewise.
71         * emultempl/elf32.em: Likewise.
73 2005-02-21  H.J. Lu  <hongjiu.lu@intel.com>
75         * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
76         tic54x input only.
77         (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
78         and ECOFF output only.
80 2005-02-21  Alan Modra  <amodra@bigpond.net.au>
82         * config.in: Regenerate.
83         * configure: Regenerate.
85 2005-02-17  Zack Weinberg  <zack@codesourcery.com>
87         * ldexp.c (assigning_to_dot): New global flag.
88         (fold_name): If assigning_to_dot is true, object immediately to
89         an undefined symbol.
90         (exp_fold_tree): Set and clear assigning_to_dot around the
91         recursive call to exp_fold_tree to process the right-hand side
92         of an assignment to the location counter.
94 2005-02-17  Paul Brook  <paul@codesourcery.com>
96         * scripttempl/armbpabi.sc: Add dummy name to version block.
98 2005-02-17  Alan Modra  <amodra@bigpond.net.au>
100         * ldexp.c (new_abs): Init new.str.
102 2005-02-15  Mark Mitchell  <mark@codesourcery.com>
104         * configure.in (AC_CHECK_FUNCS): Add glob.
105         * configure: Regenerated.
106         * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
107         not defined.
108         (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
109         if HAVE_GLOB is not defined.
111 2005-02-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
113         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
114         lib_path if NATIVE is yes.
116 2005-02-16  Alan Modra  <amodra@bigpond.net.au>
118         * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
119         an error creating fake bfd fatal.
120         (ppc_before_allocation): Continue on after errors.
121         (gld${EMULATION_NAME}_finish): Likewise.
123 2005-02-15  Nick Clifton  <nickc@redhat.com>
125         * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
126         not declared.  It is not used and its presence causes a compile
127         time warning.
129 2005-02-11  Zack Weinberg  <zack@codesourcery.com>
131         * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
132         If st.st_ino is zero, do not treat the library as a duplicate.
134 2005-02-10  Jakub Jelinek  <jakub@redhat.com>
136         * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
137         Set BFD_LINKER_CREATED on the stubs bfd.
138         * emultempl/ppc64elf.em (ppc_create_output_section_statements):
139         Likewise.
141 2005-02-08  Mark Mitchell  <mark@codesourcery.com>
143         * scripttempl/armbpabi.sc (VERSION): Make special section symbols
144         local.
145         (Image$$ER_RO$$Base): Define whenever RELOCATING.
146         (Image$$ER_RO$$Limit): Likewise.
147         (SHT$$INIT_ARRAY$$Base): Likewise.
148         (SHT$$INIT_ARRAY$$Limit): Likeise.
150 2005-02-10  Ben Elliston  <bje@au.ibm.com>
152         * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
154 2005-02-08  Richard Sandiford  <rsandifo@redhat.com>
156         * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
157         to include o32 and n64 emulations.
158         (mips64*-*-linux-gnu*): Likewise.
160 2005-02-08  Hans-Peter Nilsson  <hp@axis.com>
162         * ldmain.c (warning_callback, warning_find_reloc): Prepend
163         "warning: " to warning messages.
165 2005-02-04  Alan Modra  <amodra@bigpond.net.au>
167         * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
168         look up symbol for etree_provide here.
170 2005-02-02  Daniel Jacobowitz  <dan@codesourcery.com>
172         * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
174 2005-02-01  Edward Welbourne  <eddy@opera.com>
175             Nick Clifton  <nickc@redhat.com>
177         * ld.texinfo (Source Code Reference): New node describing how to
178         access linker script defined variables from source code.
180 2005-02-01  Alan Modra  <amodra@bigpond.net.au>
182         * ld.texinfo: Clarify --as-needed operation.
184 2005-01-31  Andrew Cagney  <cagney@gnu.org>
186         * configure: Regenerate to track ../gettext.m4.
188 2005-01-31  Nick Clifton  <nickc@redhat.com>
190         * ldver.c (ldversion): Bump reported copyright date to 2005.
192 2005-01-31  Nick Clifton  <nickc@redhat.com>
194         * configure.tgt: Remove obsolete targets m68k-lynxos and
195         sparc-lynxos.
197 2005-01-28  Julian Brown  <julian@codesourcery.com>
199         * emultempl/armelf.em (fix_v4bx): New variable.
200         (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
201         value to bfd.
202         (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
203         (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
204         (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
205         (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
206         * NEWS: Mention --fix-v4bx.
207         * ld.texinfo: Document --fix-v4bx.
209 2005-01-25  Mark Mitchell  <mark@codesourcery.com>
211         * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
212         as to include .ARM.exidx$${Base,Limit}.
213         * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
214         Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
215         Put .init_array, .fini_array, etc. into the read-only data
216         segment.
218 2005-01-25  Alan Modra  <amodra@bigpond.net.au>
220         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
221         (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
222         only needed by an as-needed lib that didn't get linked.
224 2005-01-23  Alan Modra  <amodra@bigpond.net.au>
226         * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
227         __DTOR_LIST__ description.
229 2005-01-23  Alan Modra  <amodra@bigpond.net.au>
231         * ld.texinfo (Location Counter <dot outside sections>): Document
232         effects of orphan section placement, and ". = ." workaround.
233         * Makefile.in: Regenerate.
235 2005-01-22  Richard Sandiford  <rsandifo@redhat.com>
237         * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
238         * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
240 2005-01-21  Jakub Jelinek  <jakub@redhat.com>
242         * ldgram.y (AS_NEEDED): New token.
243         (input_list): Handle AS_NEEDED ( input_list ).
244         * ldlex.l (AS_NEEDED): Add.
245         * ld.texinfo: Document AS_NEEDED ().
246         * NEWS: Mention AS_NEEDED ().
248 2005-01-21  Ben Elliston  <bje@au.ibm.com>
250         * ldlang.c (lang_reasonable_defaults): Remove.
251         (lang_process): Don't call lang_reasonable_defaults.
253         * ldexp.c (exp_assop): Remove #if 0'd code.
254         (exp_print_tree): Likewise.
255         * ldlang.c (lang_memory_region_lookup): Likewise.
256         (open_output): Likewise.
257         (lang_do_assignments_1): Likewise.
258         (lang_place_orphans): Likewise.
259         (lang_enter_output_section_statement): Likewise.
260         (lang_reasonable_defaults): Likewise.
261         * ldlang.h (struct lang_input_statement_struct): Likewise.
262         * mri.c (mri_draw_tree): Likewise.
263         (mri_load): Likewise.
264         * pe-dll.c (generate_reloc): Likewise.
265         (make_import_fixup_entry): Likewise.
266         (pe_as16): Likewise.
267         * emultempl/beos.em (set_pe_subsystem): Likewise.
268         * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
269         * emultempl/pe.em: Likewise.
270         * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
272 2005-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
274         * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
275         (earmelfb_linux_eabi.c): New target.
276         * Makefile.in: Regenerated.
277         * configure.tgt (arm*b-*-linux-gnueabi): New target.
278         * emulparams/armelfb_linux_eabi.sh: New file.
280 2005-01-20  Nick Hudson  <skrll@netbsd.org>
282         PR ld/676
283         * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
284         Handle bfd_elf32_hppa_nbsd_vec.
286 2005-01-19  Richard Sandiford  <rsandifo@redhat.com>
288         * ldmain.h (ld_sysroot): Change type to a constant string.
289         * ldmain.c (ld_sysroot): Likewise.
290         (get_relative_sysroot, get_sysroot): New functions, adding command-line
291         support for changing the sysroot.
292         (main): Call the new functions.
293         * lexsup.c (OPTION_SYSROOT): New.
294         (ld_options): Add --sysroot.
295         (parse_args): Add a dummy handler for it.
296         * ld.texinfo (--sysroot): Document.
297         * NEWS: Mention the new --sysroot option.
299 2005-01-18  Alan Modra  <amodra@bigpond.net.au>
301         * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
302         (lang_place_orphans): Don't abort on just_syms_flag, instead call
303         bfd_link_just_syms.
305 2005-01-16  Danny Smith  <dannysmith@users.sourceforge.net>
307         * defilep.y (def_name, def_library): Combine into...
308         (def_image_name): New function.  Strip name to basename,
309         with warning.
311 2005-01-12  Mark Kettenis  <kettenis@gnu.org>
313         * configure.in: Be sure to invoke config.sub using the shell.
314         * configure: Regenerate.
316 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
318         * configure.host: Correct sed patterns for last change.
320 2005-01-10  Nick Clifton  <nickc@redhat.com>
322         PR binutils/609
323         * ldmisc.c (vfinfo): Add an extra argument: is_warning.  Use this
324         to determine whether config.make_executable should be set to FALSE in
325         conjunction with config.fatal_warnings.
326         (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
327         (einfo): Pass TRUE as the extra argument.
329 2005-01-10  Greg Schaffer  <gschafer@zip.com.au>
331         * configure.host (linux targets): Use "${CC} -dumpspecs" instead
332         of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
333         (ia64-*-aix): Delete - this target is obsolete, and would be
334         broken by this patch.
336 2005-01-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
338         * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
339         (sparc64-sun-solaris2*): New host.
341 2005-01-06  Paul Brook  <paul@codesourcery.com>
343         * Makefie.am: Add earmelf_vxworks.
344         * Makefile.in: Regenerate.
345         * configure.tgt: Make arm-*-vxworks a separate case.
346         * emulparams/armelf_vxworks.sh: New function.
348 2005-01-06  Alan Modra  <amodra@bigpond.net.au>
350         * emultempl/ppc64elf.em (no_multi_toc): New var.
351         (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
352         (OPTION_NO_MULTI_TOC): Define.
353         (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
354         (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
356 2005-01-05  Nick Clifton  <nickc@redhat.com>
358         PR binutils/614
359         * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
360         Standard's specification for parsable error messages.
362 2005-01-04  Paul Brook  <paul@codesourcery.com>
364         * Makefile.am: Correct dependency for earmsymbian.c.
365         * Makefile.in: Regenerate.
367 2004-12-28  Danny Smith  <dannysmith@users.sourceforge.net>
369         * emultempl/pe.em (set_pe_subsystem): Change second arg to
370         lang_add_entry to FALSE.
372 2004-12-23  Nick Clifton  <nickc@redhat.com>
374         PR 600
375         * emulparams/shelf.sh (.stack): Increase stack start address to
376         0x300000.
378 2004-12-20  Nick Clifton  <nickc@redhat.com>
380         * ldmain.c (main): Issue an error message if -static and -shared
381         are used together.
383 2004-12-17  Jakub Jelinek  <jakub@redhat.com>
385         * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
386         * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
387         * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
388         address space at DATA_SEGMENT_ALIGN.  Fix computation of expected
389         PT_GNU_RELRO segment end.
391 2004-12-14  P.J. Darcy  <darcypj@us.ibm.com>
393         * configure.tgt: Add s390x-ibm-tpf support.
395 2004-12-16  Martin Kögler  <mkoegler@auto.tuwien.ac.at>
397         * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
398         BFD.
400 2004-12-07  Ben Elliston  <bje@gnu.org>
402         * ldemul.h: Forward declare struct option.
404 2004-12-01  Danny Smith  <dannysmith@users.sourceforge.net>
406         * scripttempl/pe.sc (.data): Add .jcr subsection.
408 2004-11-30  Paul Brook  <paul@codesourcery.com>
410         * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
412 2004-11-30  Tero Niemela  <tero_niemela@yahoo.com>
414         * Makefile.am: Change LOCALEDIR to $(datadir)/share.
415         * Makefile.in: Regenerate.
417 2004-11-26  Melissa Mears  <asterisk@graces.dricas.com>
419         * emultempl/pe.em: Add --subsystem:xbox as well as
420         --subsystem:%d.
421         * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
422         and numeric subsystems.
424 2004-11-24  Alan Modra  <amodra@bigpond.net.au>
426         * ldexp.c (fold_name): Correct PR 338 fix.
428 2004-11-19  Mark Mitchell  <mark@codesourcery.com>
430         * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
431         (earmelf_linux_eabi.c): New target.
432         * configure.tgt (arm*-*-linux-gnueabi): Handle it.
433         * emulparams/armelf_linux_eabi.sh: New file.
434         * Makefile.in: Regenerated.
436 2004-11-19  Nick Clifton  <nickc@redhat.com>
438         PR 518
439         * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
440         LENGTH fields in the MEMORY command, to explicitly state that
441         symbols cannot be used in their expressions.
443 2004-11-19  Jon Beniston <jon@beniston.com>
445         * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
446         * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
447         * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
448         which return the length and origin of a memory.
449         * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
450         * NEWS: Mention support for ORIGIN and LENGTH operators.
452 2004-11-17  Daniel Jacobowitz  <dan@codesourcery.com>
454         * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
455         a dynamic object for stubs.
457 2004-11-04  Paul Brook  <paul@codesourcery.com>
459         * ld.texinfo: Document --default-imported-symver.
460         * ldmain.c (main): Set link_info.default_imported_symver.
461         * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
462         (ld_options): Add --default-imported-symver.
463         (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
465 2004-11-08  Inderpreet Singh   <inderpreetb@nioda.hcltech.com>
466             Vineet Sharma      <vineets@noida.hcltech.com>
468         * Makefile.am: Add entries for new maxq-coff target.
469         * Makefile.in: Regenerate.
470         * configure.tgt: Add support for maxq.
471         * emulparams/maxqcoff.sh: New File.
472         * scripttempl/maxqcoff.sc: New linker script for target maxq.
473         * NEWS: Mention the new target.
475 2004-11-08  Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
477         * testsuite/ld-scripts/weak.exp: Enable test on PE,
478         XFAIL non-i386 PE.
479         * testsuite/ld-undefined/weak-undef.exp: Enable test on PE,
480         XFAIL non-i386 PE.
481         * testsuite/lib/ld-lib.exp (is_pecoff_format): New.
483 2004-11-04  Daniel Jacobowitz  <dan@debian.org>
485         * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
486         (earmelf_oabi.c): Remove rule.
487         * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
488         * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
489         * Makefile.in: Regenerated.
491 2004-11-04  Hans-Peter Nilsson  <hp@axis.com>
493         * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
494         * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
495         (FINI_START): Ditto.
496         (INIT_END): Remove emitted "jump [sp+]".
497         (FINI_END): Ditto.
499 2004-11-04  Alan Modra  <amodra@bigpond.net.au>
501         * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
502         (no_opd_opt, no_toc_opt): New static vars.
503         (ppc_before_allocation): Don't edit opt if no_opd_opt.  Call
504         ppc64_elf_edit_toc.
505         (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
506         (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
507         (PARSE_AND_LIST_OPTIONS): Describe new options.
508         (PARSE_AND_LIST_ARGS_CASES): Handle them.
510 2004-10-27  Nick Clifton  <nickc@redhat.com>
512         * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
513         parameter to invocation of lang_section_start.
514         * emultempl/aix.em (_handle_option): Likewise.
516         * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
517         eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
518         * Makefile.in: Regenerate.
520 2004-10-26  Mark Mitchell  <mark@codesourcery.com>
522         * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
523         __exidx_{start,end} when not relocating.
525 2004-10-25  Mark Mitchell  <mark@codesourcery.com>
527         * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
528         * ldexp.h (segment_type): New type.
529         (segments): New variable.
530         * ldexp.c (segments): New variable.
531         (exp_print_token): Handle SEGMENT_START.
532         (fold_binary): Likewise.
533         * ldgram.y (SEGMENT_START): Declare it as a token.
534         (exp): Handle SEGMENT_START.
535         * ldlang.h (lang_address_statement_type): Add segment field.
536         (lang_section_start): Change prototype.
537         * ldlang.c (map_input_to_output_sections): Do not process section
538         assignments if a corresponding SEGMENT_START has already been
539         seen.
540         (lang_section_start): Add segment parameter.
541         * ldlex.l (SEGMENT_START): Add it.
542         * lexsup.c (seg_segment_start): New function.
543         (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
544         * ld.texinfo (SEGMENT_START): Document it.
545         * emulparams/armsymbian.sh (EMBEDDED): Set it.
546         * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
547         base addresses.  Do not map relocations.
548         * NEWS: Mention SEGMENT_START.
550 2004-10-26  Paul Brook  <paul@codesourcery.com>
552         * ld.texinfo: Document --default-symver.
553         * ldmain.c (main): Set link_info.create_default_symver.
554         * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
555         (ld_options): Add default-symver.
556         (parse_args): Handle OPTION_DEFAULT_SYMVER.
558 2004-10-24 Danny Smith  <dannysmith@users.sourceforge.net>
560         * pe-dll.c (process_def_file): Don't export all symbols by default if
561         building a position-independent executable.
563 2004-10-21  H.J. Lu  <hongjiu.lu@intel.com>
565         PR 463
566         * ldmain.c (reloc_overflow): Accept a pointer to struct
567         bfd_link_hash_entry. Report symbol location for relocation
568         overflow.
570 2004-10-21  H.J. Lu  <hongjiu.lu@intel.com>
572         * genscripts.sh (libpath.exp): Really generate for first
573         emulation only.
575 2004-10-19  Danny Smith  <dannysmith@users.sourceforge.net>
577         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
578         comparison and replacement of filenames.
580 2004-10-19  H.J. Lu  <hongjiu.lu@intel.com>
582         PR 459
583         * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
584         option on linker script as the one for linker script.
586 2004-10-16  Daniel Jacobowitz  <dan@debian.org>
588         * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
589         (check_excluded_libs): New.
590         (load_symbols): Call check_excluded_libs.
591         * ldlang.h (add_excluded_libs): New prototype.
592         * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
593         (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
594         (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
595         * ld.texinfo (Command Line Variables): Document --exclude-libs.
596         (Options Specific to i386 PE Targets): Remove --exclude-libs.
598 2004-10-15  Alan Modra  <amodra@bigpond.net.au>
600         * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
601         failing link script assert.
603         * ldctor.c (ldctor_add_set_entry): Fix comment typo.
605 2004-10-14  H.J. Lu  <hongjiu.lu@intel.com>
607         PR 445
608         * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
609         (SMALL_DATA_DTOR): Set.
610         * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
611         (SMALL_DATA_DTOR): Unset.
612         * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
613         after .data. If SMALL_DATA_DTOR is set, move .dtors after
614         .data.
616 2004-10-14  Alan Modra  <amodra@bigpond.net.au>
618         PR 63
619         * ldlang.h (lang_output_section_statement_type): Make "next" a
620         struct lang_output_section_statement_struct *.
621         (struct orphan_save): Move from elf32.em.  Add "name" and "flags".
622         (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
623         * ldlang.c (lang_output_section_find_1): Adjust for changed
624         output_section_statement "next".
625         (strip_excluded_output_sections): Likewise.
626         (lang_record_phdrs): Likewise.
627         (lang_output_section_find_by_flags): New function.
628         (output_prev_sec_find): Move from pe.em.  Adjust iterator.
629         (lang_insert_orphan): New function.  Tail end of elf32.em's
630         place_orphan merged with that from pe.em.  Allow bfd_section to
631         be placed first.  New heuristic for placing new output section
632         statement in existing script, and accompanying split of __start
633         symbol alignment into a separate assignment to dot.
634         (lang_add_section): Consistently use output->bfd_section rather than
635         an alias, section->output_section.
636         (map_input_to_output_sections): Rename overly long arg.  Move
637         initialization of data_statement output section to here..
638         (lang_check_section_addresses): ..from here.
639         (print_assignment): Correct printing of etree_assert.
640         (print_all_symbols): Don't bomb if userdata is NULL.
641         (IGNORE_SECTION): Rearrange.
642         * emultempl/elf32.em (output_rel_find): Adjust interator.
643         (output_prev_sec_find): Delete.
644         (struct orphan_save): Delete.
645         (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
646         flags without creating a duplicate output section statement.
647         Revise code holding history of various orphan section placements.
648         Allow orphan sections to place before script specified output
649         sections.  Call lang_output_section_find_by_flags when placement
650         by name fails.  Use lang_insert_orphan.
651         * emultempl/mmo.em (output_prev_sec_find): Delete.
652         (struct orphan_save): Delete.
653         (mmo_place_orphan): Revise code holding history of orphan placement.
654         Allow orphans to place before existing output sections.  Use
655         lang_insert_orphan.
656         * emultempl/pe.em (output_prev_sec_find): Delete.
657         (struct orphan_save): Delete.
658         (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
659         lang_insert_orphan.
661 2004-10-13  Mark Mitchell  <mark@codesourcery.com>
663         * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
664         loadable segment.
666 2004-10-13  Alan Modra  <amodra@bigpond.net.au>
668         PR 44
669         * ldcref.c (check_section_sym_xref): Delete.
670         (check_local_sym_xref): New function.
671         (check_nocrossrefs): Adjust call.
672         * emultempl/pe.em (struct orphan_save): Add os_tail.
673         (place_orphan): Backport assorted fixes from elf32.em.
675 2004-10-12  Bob Wilson  <bob.wilson@acm.org>
677         * emultempl/xtensaelf.em: Use ISO C90 formatting.
679 2004-10-11  Jakub Jelinek  <jakub@redhat.com>
681         * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
682         getline for portability.
684         * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
685         (gld${EMULATION_NAME}_parse_ld_so_conf,
686         gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
687         (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
689 2004-10-11  Alan Modra  <amodra@bigpond.net.au>
691         PR 423
692         * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
693         rejected when linking statically.
695 2004-10-08  Daniel Jacobowitz  <dan@debian.org>
697         * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
699 2004-10-07  Bob Wilson  <bob.wilson@acm.org>
701         * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
702         assembler-generated longcall sequences.  Describe new --size-opt
703         option.
704         * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
705         * emultempl/xtensaelf.em (remove_section,
706         replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
707         elf_xtensa_after_open): New.
708         (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
709         OPTION_NO_LITERAL_MOVEMENT): Define.
710         (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
711         (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
712         (PARSE_AND_LIST_OPTIONS): Add --size-opt.
713         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
714         OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
715         (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
716         * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
717         * Makefile.am (eelf32xtensa.c): Update dependencies.
718         * Makefile.in: Regenerate.
720 2004-10-07  Jeff Baker  <jbaker@qnx.com>
722         * lexsup.c: Handle --warn-shared-textrel option.
723         (ld_options): Restore alpha sorting of options.
724         * ldmain.c (main): Initialise warn_shared_info field to FALSE.
725         * ld.texinfo: Add documentation for --warn-shared-textrel.
726         * NEWS: Added mention of --warn-shared-textrel option.
728 2004-10-05  Tomer Levi  <Tomer.Levi@nsc.com>
730         * emultempl/crxelf.em (disable_relaxation): Add.
731         (crxelf_before_allocation): Enable --relax option by default.
732         (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
733         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
734         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
736 2004-10-04  H.J. Lu  <hongjiu.lu@intel.com>
738         * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
739         --sort-section name|alignment.
741         * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
742         --sort-section name|alignment.
744         * ld.h (sort_type): New enum.
745         (wildcard_spec): Change the type of `sorted' to sort_type.
747         * ldgram.y (SORT): Removed.
748         (SORT_BY_NAME): Added.
749         (SORT_BY_ALIGNMENT): Added.
750         (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
751         SORT_BY_ALIGNMENT.
752         (input_section_spec_no_keep): Updated `sorted'.
753         (statement): Replace SORT with SORT_BY_NAME.
755         * ldlang.c (compare_section): New function to compare 2
756         sections with different sorting schemes.
757         (wild_sort): Updated. Use compare_section.
758         (update_wild_statements): New function.
759         (lang_process): Call update_wild_statements before
760         map_input_to_output_sections.
762         * ldlex.l (SORT_BY_NAME): New.
763         (SORT_BY_ALIGNMENT): New.
764         (SORT): Return SORT_BY_NAME.
766         * ldmain.c (sort_section): New. Defined.
767         (main): Initialize it to none.
769         * lexsup.c (option_values): Add OPTION_SORT_SECTION.
770         (ld_options): Add an entry for OPTION_SORT_SECTION.
771         (parse_args): Handle OPTION_SORT_SECTION.
773         * mri.c (mri_draw_tree): Updated `sorted'.
775 2004-10-04  Jakub Jelinek  <jakub@redhat.com>
777         * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
778         * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
779         argument.
780         (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
781         and . as second argument.
782         (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
783         * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
784         (fold_binary): Add it here.  Insert padding to make relro_end
785         COMMONPAGESIZE bytes aligned.  For DATA_SEGMENT_ALIGN in
786         exp_dataseg_relro_adjust phase just use previously computed
787         exp_data_seg.base.
788         * ldlang.c (lang_size_sections): Set exp_data_seg.base for
789         relro_adjust here.  Call lang_size_sections_1 once more if there
790         was too big padding at DATA_SEGMENT_RELRO_END.
791         * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
793 2004-10-01  Paul Brook  <paul@codesourcery.com>
795         * emulparams/armelf.sh: Add unwinding table sections.
797 2004-09-30  Filip Navara  <navaraf@reactos.com>
799         * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
800         correct base address for position independant executables.
801         * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
802         executables as DLLs.
804 2004-09-30  Paul Brook  <paul@codesourcery.com>
806         * ld.texinfo: Document --target2=abs.
807         * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
809 2004-09-29  Nick Clifton  <nickc@redhat.com>
811         * scripttempl/xstormy16.sc: Only perform the assignments to the
812         ROM region when not performing a relocatable link.  The ROM region
813         does not start at address 0, but the sections will.
814         * Makefile.am: Fix linker script dependency for the generation of
815         eelf32xstormy16.c.
816         * Makefile.in: Regenerate.
818 2004-09-18  Filip Navara  <navaraf@reactos.com>
820         * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
821         emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
822         emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
823         TARGET_PAGE_SIZE.
824         * scripttempl/pe.sc: Make the virtual address and file offset synced if
825         the alignment is lower than the target page size.
827 2004-09-27  Filip Navara  <navaraf@reactos.com>
829         * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
830         def_file_parse to handle pe_def_file if NULL and prevent crash with
831         invalid .def files.
833 2004-09-27  Alan Modra  <amodra@bigpond.net.au>
835         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
836         --emit-stub-syms automatically when --emit-relocs.
838 2004-09-24  Paul Brook  <paul@codeosurcery.com>
840         * scripttempl/elf.sc: Keep .preinit_array, .init_array and
841         .fini_array sections.
843 2004-09-19  Andreas Schwab  <schwab@suse.de>
845         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
846         base so that relro end is suitably aligned.
848 2004-09-17  Paul Brook  <paul@codesourcery.com>
850         * ld.texinfo: Rename arm-specific section.  Document --target*
851         * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
852         * emulparams/armelf_linux.sh: Ditto.
853         * emulparams/armelf_nbsd.sh: Ditto.
854         * emultempl/armelf.em: Set default for TARGET2_TYPE.
855         (target2_type): New variable.
856         (arm_elf_before_allocation): Don't pass target1_type.
857         (arm_elf_create_output_section_statements): New function.
858         (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
859         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
860         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
861         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
862         * emultempl/armelf_oabi.em (_before_allocation): Remove extra
863         argument to bfd_elf32_arm_process_before_allocation.
865 2004-09-17  Alan Modra  <amodra@bigpond.net.au>
867         * ldexp.c (fold_name): Update u.undef.next refs.
868         * emultempl/pe.em: Likewise.
869         * emultempl/sunos.em: Likewise.
871 2004-09-17  Alan Modra  <amodra@bigpond.net.au>
873         * Makefile.am: Run "make dep-am".
874         * Makefile.in: Regenerate.
875         * config.in: Regenerate.
876         * configure: Regenerate.
877         * aclocal.m4: Regenerate.
878         * po/ld.pot: Regenerate.
880 2004-09-16  Tomer Levi  <Tomer.Levi@nsc.com>
882         * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
883         (.fini): Likewise.
884         (.jcr): Likewise.
886 2004-09-16  Alan Modra  <amodra@bigpond.net.au>
888         * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
889         to bfd_elf32_arm_process_before_allocation call.
891 2004-09-13  Paul Brook  <paul@codesourcery.com>
893         * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
894         * emultempl/armelf.em: Use TARGET1_IS_REL.  Add --target1-{rel,abs}.
896 2004-09-07  H.J. Lu  <hongjiu.lu@intel.com>
898         * configure: Regenerated with autconfig 2.13.
900 2004-09-07  Andreas Schwab  <schwab@suse.de>
902         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
903         alignment before adjusting DATA_SEGMENT_RELRO_END.
905 2004-09-06  Mark Mitchell  <mark@codesourcery.com>
907         * emulparams/armsymbian.sh: Use armbpabi script.
908         * scripttempl/armbpabi.sc: New script.
910 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
912         * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
913         (earmsymbian.c): New target.
914         * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
915         * Makefile.in: Regenerated.
916         * aclocal.m4: Likewise.
917         * configure: Likewise.
918         * emulparams/armsymbian.sh: New file.
920 2004-09-03  Tomer Levi  <Tomer.Levi@nsc.com>
922         * scripttempl/elf32crx.sc: Edit file with comments.
923         (.init): Add new section.
924         (.fini): Likewise.
925         (.ctor): Control the linkage order.
926         (.dtor): Likewise.
928 2004-08-27  Nick Clifton  <nickc@redhat.com>
930         * emultempl/pe.em (after_open): Do not assume that either bfd is
931         an archive.
933 2004-08-26  Alan Modra  <amodra@bigpond.net.au>
935         * ldlang.c (lang_init): Don't compare with TRUE.
937 2004-08-25  Dmitry Diky  <diwil@spec.ru>
939         * emulparams/msp430all.sh: Fix RAM sizes for all targets.
940         * scripttempl/elf32msp430.sc: Add .profiler section definition.
942 2004-08-24  H.J. Lu  <hongjiu.lu@intel.com>
944         * ldlang.c (wildcardp): Defined as a macro with strpbrk.
946 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
948         * configure.tgt (arm*-*-symbianelf*): New target.
949         (arm*-*-eabi*): Likewise.
951 2004-08-19  Jakub Jelinek  <jakub@redhat.com>
953         * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
954         (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
955         (OPTION_NON_OVERLAPPING_OPD): Define.
956         (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
957         --non-overlapping-opd option.
959 2004-08-18  Alan Modra  <amodra@bigpond.net.au>
961         PR 338
962         * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
963         was already on the undefs list.
965 2004-08-17  Alan Modra  <amodra@bigpond.net.au>
967         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
968         prefix the symbol field too.
970 2004-08-13  Alan Modra  <amodra@bigpond.net.au>
972         * ldmain.c (link_callbacks): Remove "error_handler".
973         * ldmisc.c: Include elf-bfd.h.
974         (vfinfo): Sort comment.  Handle %A.  Use %A instead of
975         bfd_get_section_indent.
976         (error_handler): Delete.
977         * ldmisc.h (error_handler): Delete declaration.
979 2004-08-10  Alan Modra  <amodra@bigpond.net.au>
981         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
982         ppc64_elf_restore_symbols.
984 2004-08-09  Alan Modra  <amodra@bigpond.net.au>
986         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
987         .toc is too large on relocatable linking.
989 2004-08-09  Alan Modra  <amodra@bigpond.net.au>
991         * emultempl/ppc64elf.em (ppc_after_open): Delete.
992         (LDEMUL_AFTER_OPEN): Don't define.
994 2004-08-02  Stephane Carrez  <stcarrez@nerim.fr>
996         * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
998 2004-08-01  Stephane Carrez  <stcarrez@nerim.fr>
1000         * scripttempl/elfm68hc12.sc: Align text, rodata and data section
1001         on power of 2.
1003 2004-07-27  Jason Thorpe  <thorpej@wasabisystems.com>
1005         * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
1007 2004-07-26  Dmitry Diky  <diwil@spec.ru>
1009         * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
1010         msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
1011         msp430xG439.
1012         * configure.tgt: Likewise.
1013         * emulparams/msp430all.sh: Likewise.
1014         * Makefile.in: Regenerate.
1016 2004-07-23  Nick Clifton  <nickc@redhat.com>
1018         * emultempl/elf32.em (_place_orphan): Use an already existing
1019         section name if that section does not have any flags set.
1021 2004-07-21  H.J. Lu  <hongjiu.lu@intel.com>
1023         * ldlang.c (already_linked_hash_entry): Removed.
1024         (already_linked): Likewise.
1025         (already_linked_table): Likewise.
1026         (section_already_linked): Call bfd_section_already_linked.
1027         (lang_process): Replace already_linked_table_init with
1028         bfd_section_already_linked_table_init and check return. Replace
1029         already_linked_table_free with bfd_section_already_linked_table_free.
1031 2004-07-21  Nick Clifton  <nickc@redhat.com>
1033         * ldlang.c (init_os): Make sure that the newly allocated userdata
1034         structure is zeroed out.
1036 2004-07-19  H.J. Lu  <hongjiu.lu@intel.com>
1038         * NEWS: Mention the new --add-needed/--no-add-needed and
1039         --as-needed/--no-as-needed options.
1041 2004-07-19  H.J. Lu  <hongjiu.lu@intel.com>
1043         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
1044         check the add_needed field.
1045         (dt_needed): New struct.
1046         (gld${EMULATION_NAME}_try_needed): Change the first argument
1047         to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
1048         bit in the file where the DT_NEEDED entry comes from.
1049         (gld${EMULATION_NAME}_search_needed): Change the second
1050         argument to a pointer to struct dt_needed.
1051         (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
1052         (gld${EMULATION_NAME}_after_open): Likewise.
1054         * ld.texinfo: Add --add-needed document.
1055         * ldlang.c (new_afile): Set p->add_needed.
1056         * ldlang.h (lang_input_statement_type): Add add_needed field.
1057         * ldmain.h (add_needed): Declare.
1058         * ldmain.c (add_needed): New global var.
1059         * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
1060         OPTION_NO_ADD_NEEDED.
1061         (ld_options): Likewise.
1062         (parse_args): Handle them.
1064 2004-07-13  Christof Petig  <christof@petig-baender.de>
1066         * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
1067         for endian-ness of extracted addend.
1069 2004-07-13  Danny Smith  <dannysmith@usesr.sourceforge.net>
1071         * pe-dll.c (auto_export):  Filter on just the import prefix,
1072         "_imp_", not "_imp__".
1074 2004-07-09  Nick Clifton  <nickc@redhat.com>
1076         * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
1078 2004-07-06  Tomer Levi  <Tomer.Levi@nsc.com>
1080         * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
1081         (eelf32crx.c): New target.
1082         * Makefile.in: Regenerate.
1083         * configure.tgt: Handle crx-*-elf*.
1084         * emulparams/elf32crx.sh: New file.
1085         * emultempl/crxelf.em: New file.
1086         * scripttempl/elf32crx.sc: New file.
1087         * NEWS: Mention new target.
1089 2004-07-06  Nick Clifton  <nickc@redhat.com>
1091         * Makefile.am: Add eshlsymbian.c.
1092         * Makefile.in: Regenerate.
1093         * configure.tgt: Add sh*-symbian-elf target.
1094         * emulparams/shlsymbian.sh: New file.  Configure the
1095         sh-symbian-elf linker scripts.
1096         * scripttemp/elf32sh-symbian.sc: New file.  Linker script
1097         template for the sh-symbian-elf target.
1099 2004-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1101         * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
1102         * emulparams/hppalinux.sh: Likewise.
1103         * scripttempl/elf.sc: Place .plt just before .got when .plt is in
1104         data segment and PLT_BEFORE_GOT is defined.
1106 2004-07-03  Aaron W. LaFramboise  <aaron98wiridge9@aaronwl.com>
1108         * ld.texinfo (WIN32): Document PE weak symbols.
1110 2004-07-02  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1112         * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
1114 2004-07-01  H.J. Lu  <hongjiu.lu@intel.com>
1116         * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
1117         the section.
1119 2004-06-29  Alan Modra  <amodra@bigpond.net.au>
1121         * ldlang.c (lang_reset_memory_regions): Save last relax pass section
1122         size in rawsize.
1124 2004-06-24  Alan Modra  <amodra@bigpond.net.au>
1126         * ldlang.c (print_output_section_statement): Don't print size before
1127         relaxation.
1128         (IGNORE_SECTION): Remove bfd arg.  Update all callers.
1130         * ldexp.c (fold_name): .. See below.
1131         * ldlang.c (section_already_linked, print_output_section_statement,
1132         print_input_section, insert_pad, size_input_section,
1133         lang_check_section_addresses, lang_size_sections_1,
1134         lang_size_sections, lang_do_assignments_1, lang_set_startof,
1135         lang_one_common, lang_reset_memory_regions, lang_process,
1136         lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
1137         * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
1138         * pe-dll.c (process_def_file, generate_reloc): ..
1139         * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
1140         gld${EMULATION_NAME}_before_allocation): ..
1141         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
1142         * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
1143         sh64_elf_${EMULATION_NAME}_after_allocation): ..
1144         * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
1145         * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
1146         ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
1147         "size" instead of "_raw_size" and "_cooked_size".  Expand
1148         bfd_section_size macro invocations.
1150 2004-06-22  Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1152         * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
1153         ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
1154         ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
1155         ___crt_xt_end__.
1156         (.tls): Define ___tls_start__ and ___tls_end__.
1158 2004-06-21  Alexandre Oliva  <aoliva@redhat.com>
1160         * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
1162 2004-06-18  Adam Nemet  <anemet@lnxw.com>
1164         * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
1165         * configure: Regenerate.
1167 2004-06-15  Jakub Jelinek  <jakub@redhat.com>
1169         * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
1170         .gcc_except_table output sections lost accidentally with
1171         -z relro patch.
1173 2004-06-15  Alan Modra  <amodra@bigpond.net.au>
1175         * ldwrite.c (build_link_order): Use bfd_get_section_size
1176         instead of bfd_get_section_size_before_reloc or _raw_size.
1177         * pe-dll.c (process_def_file): Likewise.
1179 2004-06-14  Alan Modra  <amodra@bigpond.net.au>
1181         From Richard Wirth <r.wirth@wirthware.de>
1182         * ldlang.c (lang_finish): Don't free lang_definedness_table.
1184 2004-05-29  Alan Modra  <amodra@bigpond.net.au>
1186         * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
1187         (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
1189 2004-05-28  Andrew Stubbs <andrew.stubbs@superh.com>
1191         * testsuite/ld-sh/arch/arch.exp: New test script.
1192         * testsuite/ld-sh/arch/arch_expected.txt: New file.
1193         * testsuite/ld-sh/arch/sh.s: New file.
1194         * testsuite/ld-sh/arch/sh2.s: New file.
1195         * testsuite/ld-sh/arch/sh-dsp.s: New file.
1196         * testsuite/ld-sh/arch/sh2e.s: New file.
1197         * testsuite/ld-sh/arch/sh3-nommu.s: New file.
1198         * testsuite/ld-sh/arch/sh3.s: New file.
1199         * testsuite/ld-sh/arch/sh3-dsp.s: New file.
1200         * testsuite/ld-sh/arch/sh3e.s: New file.
1201         * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
1202         * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
1203         * testsuite/ld-sh/arch/sh4.s: New file.
1204         * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
1205         * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
1206         * testsuite/ld-sh/arch/sh4a.s: New file.
1208 2004-05-28  Alan Modra  <amodra@bigpond.net.au>
1210         * ldlang.c: Formatting.  Wrap long lines, expand bfd_get_section_flags
1211         throughout file.
1212         * lexsup.c: Formatting.  Wrap long lines.
1213         * ldwrite.c: Update copyright date.
1215         * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
1216         (output_section_callback): Nor SEC_KEEP here.
1217         (gc_section_callback): Twiddle SEC_EXCLUDE here.
1218         (lang_gc_wild): Delete.  Fold into..
1219         (lang_gc_sections_1): ..here.  Only call bfd_gc_sections when garbage
1220         collecting.
1221         (lang_process): Always call lang_gc_sections.
1222         (lang_place_orphans): Handle SEC_EXCLUDE sections.
1223         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
1224         SEC_EXCLUDE code.
1226 2004-05-26  H.J. Lu  <hongjiu.lu@intel.com>
1228         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
1229         SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
1230         * ldlang.c (lang_add_section): Likewise.
1232 2004-05-26  Alan Modra  <amodra@bigpond.net.au>
1234         * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
1235         sections when doing a final link.  Clear SEC_EXCLUDE when doing
1236         a relocable link, except for SEC_DEBUGGING sections.
1237         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
1238         same condition here to drop SEC_EXCLUDE orphan sections.
1240 2004-05-25  Alan Modra  <amodra@bigpond.net.au>
1242         * ldlang.c (lang_process): Call bfd_merge_sections later, and
1243         only when not a relocatable link.
1244         (print_input_section): Handle SEC_EXCLUDE sections.
1245         (size_input_section): Don't update dot on SEC_EXCLUDE sections.
1246         (lang_do_assignments_1): Likewise.
1247         * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
1248         * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
1249         * emultempl/hppaelf.em (build_section_lists): Likewise.
1250         * emultempl/ppc64elf.em (build_toc_list): Likewise.
1251         (build_section_lists): Likewise.
1253 2004-05-23  Andreas Schwab  <schwab@suse.de>
1255         * ld.texinfo (Options): Fix typo in last change.
1257 2004-05-21  Andy Chittenden  <achittenden@bluearc.com>
1259         * ld.h (ld_config_type): Add new field: hash_table_size.
1260         * ldmain.c: Initialise the new field to zero.  If it is non-zero
1261         after parsing the linker's command line call
1262         bfd_hash_set_default_size.
1263         * lexsup.c (option_values): Add OPTION_HASH_SIZE.
1264         (ld_options): Add hash-size.
1265         (parse_args): Parse --hash-size option.  Allow
1266         --reduce-memory-overheads to set the default hash table size as
1267         well.
1268         * ld.texinfo: Document the new switch.  Also mention that
1269         --reduce-memory-overheads can affect the hash table size.
1270         * NEWS: Mention the new feature.
1272 2004-05-19  J"orn Rennecke <joern.rennecke@superh.com>
1274         * NEWS: Mention new linker map file generation and the
1275         --reduce-memory-overheads option.
1276         * ld.texinfo: Document --reduce-memory-overheads option.
1277         * ld.h (map_symbol_def): New struct.
1278         (struct user_section_struct, section_userdata_type): Rename to:
1279         (struct lean_user_section_struct, lean_section_userdata_type).
1280         (struct fat_user_section_struct, fat_section_userdata_type): New.
1281         (SECTION_USERDATA_SIZE): Define.
1282         (args_type): New member reduce_memory_overheads.
1283         * ldlang.c (map_obstack): New static variable.
1284         (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
1285         (lang_map): Unless command_line.reduce_memory_overheads is set,
1286         initialize lists of defined symbols for each section.
1287         (print_input_section): Unless command_line.reduce_memory_overheads
1288         is set, use print_all_symbols.
1289         (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
1290         * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
1291         * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
1292         (ld_options): Add entry for --reduce-memory-overheads.
1293         (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
1295 2004-05-19  Jakub Jelinek  <jakub@redhat.com>
1297         * ldgram.y (sect_constraint): New.
1298         (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1299         (section): Add sect_constraint.  Pass additional argument
1300         to lang_enter_output_section_statement.
1301         * mri.c (mri_draw_tree): Pass additional argument to
1302         lang_enter_output_section_statement.
1303         * emultempl/pe.em (place_orphan): Likewise.
1304         (output_prev_sec_find): Disregard output section statements with
1305         constraint == -1.
1306         * emultempl/mmo.em (output_prev_sec_find): Likewise.
1307         (mmo_place_orphan): Pass additional argument to
1308         lang_enter_output_section_statement.
1309         * emultempl/elf32.em (output_prev_sec_find): Disregard output section
1310         statements with constraint == -1.
1311         (place_orphan): Pass additional argument to
1312         lang_enter_output_section_statement.
1313         * ldlang.c (lang_enter_overlay_section): Likewise.
1314         (lang_output_section_find_1): New.
1315         (lang_output_section_find): Use it.
1316         (lang_output_section_statement_lookup_1): New.
1317         (lang_output_section_statement_lookup): Use it.
1318         (check_section_callback, check_input_sections): New.
1319         (map_input_to_output_sections): Check if all input sections
1320         are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
1321         (strip_excluded_output_sections): Disregard output section statements
1322         with constraint == -1.
1323         (lang_record_phdrs): Likewise.
1324         (lang_enter_output_section_statement): Add constraint argument.
1325         Use lang_output_section_statement_lookup_1.
1326         * ldlang.h (lang_output_section_statement_type): Add constraint
1327         and all_input_readonly fields.
1328         (lang_enter_output_section_statement): Adjust prototype.
1329         * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1330         * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
1331         segment if all input sections are readonly.
1333 2004-05-19  Adam Nemet  <anemet@lnxw.com>
1335         * scripttempl/i386lynx.sc: Remove file.
1337 2004-05-17  Bob Wilson  <bob.wilson@acm.org>
1339         * ld.texinfo (Output Section Address): Correct subsection name.
1341 2004-05-17  Adam Nemet  <anemet@lnxw.com>
1343         * configure.tgt (powerpc-*-lynxos* case): New case.
1344         * configure.host (i[3-7]86-*-lynxos* case): Remove case.
1345         * emulparams/ppclynx.sh: New file.
1346         * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
1347         * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
1348         (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
1349         (eppclynx.c): New rule.
1350         * Makefile.in: Regenerate.
1352 2004-05-13  Joel Sherrill <joel@oarcorp.com>
1354         * configure.tgt (or32-*-rtems*): Switch to elf and
1355         support versioned targets.
1357 2004-05-13  Nick Clifton  <nickc@redhat.com>
1359         * po/fr.po: Updated French translation.
1361 2004-05-11  Jakub Jelinek  <jakub@redhat.com>
1363         * genscripts.sh: Generate -z combreloc -z now -z relro scripts
1364         for binaries, -shared and -pie.
1365         * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
1366         * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
1367         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
1368         (OTHER_RELRO_SECTIONS): ... this.
1369         * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
1370         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1371         -z relro and -z norelro.
1372         (gld${EMULATION_NAME}_list_options): Add it to usage.
1373         (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
1374         -z relro scripts when appropriate.
1375         * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
1376         Create separate .got.plt section if SEPARATE_GOTPLT.
1377         Move sections which are only written during relocation handling
1378         to the beginning of RW segment.  If NO_SMALL_DATA, move .got
1379         before .data.  Add DATA_SEGMENT_RELRO_END directive.
1380         Include OTHER_RELRO_SECTIONS.
1381         * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
1382         * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
1383         (fold_unary): Likewise.
1384         (fold_binary): Handle -z relro.
1385         * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
1386         exp_dataseg_relro_adjust phases.  Add relro_end field.
1387         * ldmain.c (main): Initialize link_info.relro to FALSE.
1388         * ldlang.c (lang_size_sections): Handle -z relro.
1390 2004-05-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1392         * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1394 2004-05-07  J"orn Rennecke <joern.rennecke@superh.com>
1396         * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1397         before printing it with %W.
1399 2004-05-07  Brian Ford  <ford@vss.fsi.com>
1400             DJ Delorie  <dj@redhat.com>
1402         * emultempl/pe.em (real_flags): New static.
1403         (OPTION_LARGE_ADDRESS_AWARE): New define.
1404         (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1405         (gld_${EMULATION_NAME}_list_options): Likewise.
1406         (gld${EMULATION_NAME}_handle_option): Likewise.
1407         (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1408         * ld.texinfo: Document it.
1409         * NEWS: Mention it.
1411 2004-05-07  Brian Ford  <ford@vss.fsi.com>
1413         * NEWS: Mention DWARF 2 support for i386pe.
1415 2004-05-05  Alexandre Oliva  <aoliva@redhat.com>
1417         * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1418         elf32-frvfdpic.
1420 2004-04-30  Alan Modra  <amodra@bigpond.net.au>
1422         * ldlang.c (unique_section_p): Pass section parm, return true on
1423         group sections.
1424         (output_section_callback): Adjust.
1425         * ldlang.h (unique_section_p): Update prototype.
1426         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1428 2004-04-30  Eric Botcazou  <ebotcazou@act-europe.fr>
1430         * ld.texinfo (--gc-sections): Remove restriction for
1431         dynamic linking.
1433 2004-04-29  Brian Ford  <ford@vss.fsi.com>
1435         * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1436         for DWARF 2/3.  Update stab section's syntax.
1438 2004-04-29  Alan Modra  <amodra@bigpond.net.au>
1440         * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1441         (fill_edata): Correct pointer arithmetic.
1443 2004-04-21  Chris Demetriou  <cgd@broadcom.com>
1445         * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1446         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1447         * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1448         (EXTRA_EM_FILE): Use mipsecoff.em
1449         * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1450         (EXTRA_EM_FILE): Use mipsecoff.em
1451         * emultempl/mipsecoff.em: Restructure to be included as an
1452         extra emulation file.
1453         (check_sections, gld${EMULATION_NAME}_after_open)
1454         (gld${EMULATION_NAME}_after_allocation)
1455         (gld${EMULATION_NAME}_get_script)
1456         (ld_${EMULATION_NAME}_emulation): Remove
1457         (gld${EMULATION_NAME}_before_parse): Rename to...
1458         (mipsecoff_before_parse): This.
1459         (LDEMUL_BEFORE_PARSE): Define.
1460         * emultempl/mipself.em: Remove file.
1461         * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1462         (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1463         these symbols.
1464         * Makefile.am: Remove dependencies on emultempl/mipself.em.
1465         * Makefile.in: Regenerate.
1467 2004-04-21      Anil Paranjpe   <anilp1@kpitcummins.com>
1469         * ld.texinfo (synthesizing on H8/300): Information about linker
1470         relaxation support for bit manipulation instructions and system
1471         control instructions is added.
1473 2004-04-21  Hans-Peter Nilsson  <hp@axis.com>
1475         * NEWS: Mention change in DEFINED semantics.
1477 2004-04-21  Eric Botcazou  <ebotcazou@act-europe.fr>
1479         * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1480         (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1481         (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1483 2004-04-21  Ben Elliston  <bje@au.ibm.com>
1485         * ld.texinfo (Simple Example): Add missing punctuation.
1487 2004-04-20  Chris Demetriou  <cgd@broadcom.com>
1489         * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1491 2004-04-19  Jakub Jelinek  <jakub@redhat.com>
1493         * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1494         specially.
1496 2004-04-18  Danny Smith  <dannysmith@users.sourceforge.net>
1498         * scriptempl/pe.sc:  Put numbered .ctors.* after .ctors
1499         with default priority. Likewise for dtors.
1501 2004-04-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
1503         * configure.host: Remove mips*-dec-bsd* target.
1504         * configure.tgt: Likewise.
1506 2004-04-08  Richard Sandiford  <rsandifo@redhat.com>
1508         * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1509         * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1510         * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1511         * emultempl/irix.em: New file.
1512         * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1513         dependencies.
1514         * Makefile.in: Regenerate.
1516 2004-04-01  Paul Brook  <paul@codesourcery.com>
1518         * emultempl/armelf.em (byteswap_code): Add.
1519         (arm_elf_before_allocation): Pass extra parameter.
1520         (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1521         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1522         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1523         * emultempl/armelf_oabi.em: Pass extra parameter.
1524         * ld.texinfo: Document --be8.
1526 2004-03-30  Stan Shebs  <shebs@apple.com>
1528         Remove long-obsolete MPW support.
1529         * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1530         * Makefile.am (mpw): Remove file-presynthesizing actions.
1531         * Makefile.in: Likewise.
1532         * ldfile.c (slash): Remove MPW case.
1533         * ldlex.l [MPW]: Remove unused definition.
1535 2004-03-30  Galit Heller  <Galit.Heller@nsc.com>
1537         * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1538         (eelf32cr16c.c): New target.
1539         * Makefile.in: Regenerate.
1540         * configure.tgt: Handle cr16c-*-elf*.
1541         * emulparams/elf32cr16c.sh: New file.
1542         * scripttempl/elfcr16c.sc: Likewise
1543         * NEWS: Mention support for new target.
1545 2004-03-30  Nick Clifton  <nickc@redhat.com>
1547         * po/sv.po: Updated Swedish translation.
1549 2004-03-27  Alan Modra  <amodra@bigpond.net.au>
1551         * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1552         * emultempl/hppaelf.em: Likewise.
1553         * emultempl/ppc64elf.em: Likewise.
1554         * emultempl/sh64elf.em: Likewise.
1556 2004-03-25  Alan Modra  <amodra@bigpond.net.au>
1558         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1559         size_dynamic_sections call.
1561 2004-03-23  Alan Modra  <amodra@bigpond.net.au>
1563         PR 51.
1564         * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1565         link_info.wrap_char.
1567 2004-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1569         * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1570         or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1572 2004-03-20  Alexandre Oliva  <aoliva@redhat.com>
1574         * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1576 2004-03-19  Alan Modra  <amodra@bigpond.net.au>
1578         * config.in: Regenerate.
1579         * po/ld.pot: Regenerate.
1581 2004-03-18  Alan Modra  <amodra@bigpond.net.au>
1583         * ld.texinfo: Add --as-needed doco.
1584         * ldmain.c (as_needed): New global var.
1585         * ldmain.h (as_needed): Declare.
1586         * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1587         OPTION_NO_AS_NEEDED.
1588         (ld_options): Likewise.
1589         (parse_args): Handle them.
1590         * ldlang.h (lang_input_statement_type): Add as_needed field.
1591         * ldlang.c (new_afile): Set p->as_needed.
1592         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1593         (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1594         (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1596         * ldlang.c (open_input_bfds): Remove useless cast.
1597         (lang_do_assignments_1): Likewise.
1598         (lang_for_each_input_section): Delete.
1600 2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1602         * configure.tgt: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff*.
1604 2004-03-08  Danny Smith  <dannysmith@users.sourceforge.net>
1606         * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1607         private when building implib.
1609 2004-03-05  Nathan Sidwell  <nathan@codesourcery.com>
1611         * ldlang.c (lang_add_section): Don't force SEC_LOAD on
1612         SEC_THREAD_LOCAL.
1613         (IGNORE_SECTION): Ignore .tbss sections too.
1614         (lang_size_sections_1): .tbss sections do not advance dot.
1616 2004-03-01  Andreas Schwab  <schwab@suse.de>
1618         * ld.texinfo (Options): Fix example for --wrap.
1620 2004-02-25  Danny Smith  <dannysmith@users.sourceforge.net>
1622         * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1623         not NULL.
1625 2004-02-23  Ian Lance Taylor  <ian@wasabisystems.com>
1627         * ldlang.c (lang_check): Use %P, not %E, in error message.
1629 2004-02-23  Nathan Sidwell  <nathan@codesourcery.com>
1631         * ldlang.h (struct lang_output_section_state): Change processed
1632         field's type.
1633         * ldexp.c (check, invalid): Remove.
1634         (fold_name): Move valid_p assignments. Create undefined symbol
1635         when needed. Directly exampine section's processd flag.
1636         * ldlang.c (lang_output_section_statement_lookup): Adjust
1637         processed field init.
1638         (lang_size_sections_1): Allow LOADADDR when determining section's
1639         VMA. Adjust error message. Fold data statement's expr.
1640         (lang_size_sections): Correctly increment lang_statement_iteration.
1642 2004-02-23  Alan Modra <amodra@bigpond.net.au>
1644         * ldexp.c (fold_tree): Follow indirect symbols.
1646 2004-02-20  Nathan Sidwell  <nathan@codesourcery.com>
1648         * ldgram.y (exp): Add two operand ALIGN.
1649         * ldexp.c (fold_binary): Add ALIGN_K case.
1650         * ld.texinfo (ALIGN): Document two operand version.
1652 2004-02-19  Nathan Sidwell  <nathan@codesourcery.com>
1654         * ldlang.c (map_input_to_output_sections): Initialize sections
1655         mentioned in a data statement expression.
1656         (lang_do_assignments_1): Add data statement's expression's
1657         section's vma.
1659 2004-02-18  Nathan Sidwell  <nathan@codesourcery.com>
1661         * ldgram.y (statement_anywhere): Add assert rule.
1662         * ldlang.c (exp_init_os): Add assert case.
1664 2004-02-14  Andrew Cagney  <cagney@redhat.com>
1666         * ldmain.c (remove_output): Call bfd_cache_close.
1668 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
1670         * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
1671         .MIPS.content* and .MIPS.events* sections.
1673 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
1675         * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
1676         .note.gnu.arm.ident to after allocated sections.  Mark its
1677         address as 0.
1679 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
1681         * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
1682         * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
1683         * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
1684         * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
1685         * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
1687 2004-02-05  Nick Clifton  <nickc@redhat.com>
1689         * emultempl/pe.em (_after_open): Fix typo in previous delta.
1691 2004-02-04  Danny Smith  <dannysmith@users.sourceforge.net>
1693         * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
1695 2004-01-28  Alan Modra  <amodra@bigpond.net.au>
1697         * genscripts.sh: Fix typo.
1699         * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1701 2004-01-24  Jakub Jelinek  <jakub@redhat.com>
1703         * emulparams/elf64_ia64.sh: Put .rela.opd into
1704         OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1706 2004-01-20  Danny Smith  <dannysmith@users.sourceforge.net>
1708         * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1709         * ld.texinfo (--omagic): Note that writable text section
1710         does not conform to published PE-COFF specs.
1711         (--enable-auto-import): Likewise.
1713 2004-01-15  Alan Modra  <amodra@bigpond.net.au>
1715         * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
1717 2004-01-13  Nick Clifton  <nickc@redhat.com>
1719         * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
1720         which if true will prevent the LMA region being used as a
1721         replacement for a default VMA region.
1722         (lang_leave_output_section_statement): Pass extra parameter.
1723         (lang_leave_overlay): Likewise.
1724         * ld.texinfo (Output Section LMA): Document that the LMA
1725         region can be set to the VMA region if no VMA has been set.
1726         * ldlang.h (struct lang_output_section_phdr_list): Create a
1727         typedef for this type.  Minor formatting fixes.
1729 2004-01-13  Nick Clifton  <nickc@redhat.com>
1731         * ldlang.c (lang_size_sections_1): If dot is advanced, then
1732         assume that the section should be allocated.
1734 2004-01-13  Alan Modra  <amodra@bigpond.net.au>
1736         * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1737         sections.  Do ignore SEC_NEVER_LOAD sections.
1738         (lang_size_sections_1): Remove test made redundant with the above.
1740 2004-01-09  Alan Modra  <amodra@bigpond.net.au>
1742         * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1743         program_header_size.
1745 2004-01-06  Alexandre Oliva  <aoliva@redhat.com>
1747         2003-11-28  Alexandre Oliva  <aoliva@redhat.com>
1748         * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1749         2003-11-05  Alexandre Oliva  <aoliva@redhat.com>
1750         * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1751         (MAXPAGESIZE): Set to 64Kb.
1752         (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1753         __ROFIXUP_END__.  Don't map .rofixup.got any more.
1754         * emulparams/elf32frv.sh (NOP): Set.
1755         2003-10-31  Alexandre Oliva  <aoliva@redhat.com>
1756         * configure.tgt: Add frv-*-*linux*.
1757         2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
1758         * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1759         (eelf32frvfd.c): New.
1760         * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1761         * emulparams/elf32frv.sh: Reverted previous two patches.
1762         * emulparams/elf32frvfd.sh: New.
1763         * Makefile.in: Rebuilt.
1764         2003-09-18  Alexandre Oliva  <aoliva@redhat.com>
1765         * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1766         .rofixup.got to .rofixup.
1767         2003-09-15  Alexandre Oliva  <aoliva@redhat.com>
1768         * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
1769         (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
1771 2004-01-05  Jakub Jelinek  <jakub@redhat.com>
1773         * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
1774         * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
1776 2004-01-03  Alan Modra  <amodra@bigpond.net.au>
1778         * ldexp.c (align_n): Make static.
1779         * ldexp.h (align_n): Delete declaration.
1780         * ldlang.h (lang_enter_output_section_statement): Remove
1781         block_value param.
1782         * ldlang.c (lang_enter_output_section_statement): Likewise.
1783         (TO_ADDR, TO_SIZE): Define.
1784         (opb_shift): New var.
1785         (init_opb): New function.
1786         (print_input_section): Call init_opb and use TO_ADDR.
1787         (print_data_statement, print_reloc_statement): Likewise.
1788         (print_padding_statement): Likewise.
1789         (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
1790         (lang_check_section_addresses): Likewise.
1791         (lang_size_sections_1): Likewise.
1792         (lang_do_assignments_1): Likewise.
1793         (lang_set_startof): Likewise.
1794         (lang_one_common): Likewise.  Combine power_of_two and opb_shift align.
1795         (lang_process): Call init_opb.
1796         (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
1797         (lang_enter_overlay_section): Adjust
1798         lang_enter_output_section_statement call.
1799         * ldgram.y: Likewise.
1800         * mri.c (mri_draw_tree): Likewise.
1801         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1802         * emultempl/mmo.em (mmo_place_orphan): Likewise.
1803         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1805         * ldfile.c (ldfile_set_output_arch): Add defarch param.
1806         * ldfile.h (ldfile_set_output_arch): Ditto.
1807         * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
1808         ldfile_set_output_arch.
1809         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1810         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
1811         * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
1812         * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1813         * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
1814         * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1815         * ldgram.y: Adjust ldfile_set_output_arch call.
1816         * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1817         * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
1818         * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
1819         * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
1820         * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
1821         * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1822         * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1824 2004-01-02  Bernardo Innocenti  <bernie@develer.com>
1826         * configure.tgt: Add m68k-uClinux target.
1828 For older changes see ChangeLog-0203
1830 Local Variables:
1831 mode: change-log
1832 left-margin: 8
1833 fill-column: 74
1834 version-control: never
1835 End: