2005-02-17 Paul Brook <paul@codesourcery.com>
[binutils.git] / ld / ChangeLog
blob10f2c952f8fe6abab4f53d94cacbf8f5fa72fad1
1 2005-02-17  Paul Brook  <paul@codesourcery.com>
3         * scripttempl/armbpabi.sc: Add dummy name to version block.
5 2005-02-17  Alan Modra  <amodra@bigpond.net.au>
7         * ldexp.c (new_abs): Init new.str.
9 2005-02-15  Mark Mitchell  <mark@codesourcery.com>
11         * configure.in (AC_CHECK_FUNCS): Add glob.
12         * configure: Regenerated.
13         * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
14         not defined.
15         (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
16         if HAVE_GLOB is not defined.
17         
18 2005-02-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
20         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
21         lib_path if NATIVE is yes.
23 2005-02-16  Alan Modra  <amodra@bigpond.net.au>
25         * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
26         an error creating fake bfd fatal.
27         (ppc_before_allocation): Continue on after errors.
28         (gld${EMULATION_NAME}_finish): Likewise.
30 2005-02-15  Nick Clifton  <nickc@redhat.com>
32         * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
33         not declared.  It is not used and its presence causes a compile
34         time warning.
35         
36 2005-02-11  Zack Weinberg  <zack@codesourcery.com>
38         * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
39         If st.st_ino is zero, do not treat the library as a duplicate.
41 2005-02-10  Jakub Jelinek  <jakub@redhat.com>
43         * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
44         Set BFD_LINKER_CREATED on the stubs bfd.
45         * emultempl/ppc64elf.em (ppc_create_output_section_statements):
46         Likewise.
48 2005-02-08  Mark Mitchell  <mark@codesourcery.com>
50         * scripttempl/armbpabi.sc (VERSION): Make special section symbols
51         local.
52         (Image$$ER_RO$$Base): Define whenever RELOCATING.
53         (Image$$ER_RO$$Limit): Likewise.
54         (SHT$$INIT_ARRAY$$Base): Likewise.
55         (SHT$$INIT_ARRAY$$Limit): Likeise.
57 2005-02-10  Ben Elliston  <bje@au.ibm.com>
59         * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
61 2005-02-08  Richard Sandiford  <rsandifo@redhat.com>
63         * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
64         to include o32 and n64 emulations.
65         (mips64*-*-linux-gnu*): Likewise.
67 2005-02-08  Hans-Peter Nilsson  <hp@axis.com>
69         * ldmain.c (warning_callback, warning_find_reloc): Prepend
70         "warning: " to warning messages.
72 2005-02-04  Alan Modra  <amodra@bigpond.net.au>
74         * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
75         look up symbol for etree_provide here.
77 2005-02-02  Daniel Jacobowitz  <dan@codesourcery.com>
79         * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
81 2005-02-01  Edward Welbourne  <eddy@opera.com>
82             Nick Clifton  <nickc@redhat.com>
84         * ld.texinfo (Source Code Reference): New node describing how to
85         access linker script defined variables from source code.
87 2005-02-01  Alan Modra  <amodra@bigpond.net.au>
89         * ld.texinfo: Clarify --as-needed operation.
91 2005-01-31  Andrew Cagney  <cagney@gnu.org>
93         * configure: Regenerate to track ../gettext.m4.
95 2005-01-31  Nick Clifton  <nickc@redhat.com>
97         * ldver.c (ldversion): Bump reported copyright date to 2005.
99 2005-01-31  Nick Clifton  <nickc@redhat.com>
101         * configure.tgt: Remove obsolete targets m68k-lynxos and
102         sparc-lynxos.
104 2005-01-28  Julian Brown  <julian@codesourcery.com>
106         * emultempl/armelf.em (fix_v4bx): New variable.
107         (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
108         value to bfd.
109         (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
110         (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
111         (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
112         (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
113         * NEWS: Mention --fix-v4bx.
114         * ld.texinfo: Document --fix-v4bx.
116 2005-01-25  Mark Mitchell  <mark@codesourcery.com>
118         * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
119         as to include .ARM.exidx$${Base,Limit}.
120         * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
121         Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
122         Put .init_array, .fini_array, etc. into the read-only data
123         segment.
125 2005-01-25  Alan Modra  <amodra@bigpond.net.au>
127         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
128         (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
129         only needed by an as-needed lib that didn't get linked.
131 2005-01-23  Alan Modra  <amodra@bigpond.net.au>
133         * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
134         __DTOR_LIST__ description.
136 2005-01-23  Alan Modra  <amodra@bigpond.net.au>
138         * ld.texinfo (Location Counter <dot outside sections>): Document
139         effects of orphan section placement, and ". = ." workaround.
140         * Makefile.in: Regenerate.
142 2005-01-22  Richard Sandiford  <rsandifo@redhat.com>
144         * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
145         * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
147 2005-01-21  Jakub Jelinek  <jakub@redhat.com>
149         * ldgram.y (AS_NEEDED): New token.
150         (input_list): Handle AS_NEEDED ( input_list ).
151         * ldlex.l (AS_NEEDED): Add.
152         * ld.texinfo: Document AS_NEEDED ().
153         * NEWS: Mention AS_NEEDED ().
155 2005-01-21  Ben Elliston  <bje@au.ibm.com>
157         * ldlang.c (lang_reasonable_defaults): Remove.
158         (lang_process): Don't call lang_reasonable_defaults.
160         * ldexp.c (exp_assop): Remove #if 0'd code.
161         (exp_print_tree): Likewise.
162         * ldlang.c (lang_memory_region_lookup): Likewise.
163         (open_output): Likewise.
164         (lang_do_assignments_1): Likewise.
165         (lang_place_orphans): Likewise.
166         (lang_enter_output_section_statement): Likewise.
167         (lang_reasonable_defaults): Likewise.
168         * ldlang.h (struct lang_input_statement_struct): Likewise.
169         * mri.c (mri_draw_tree): Likewise.
170         (mri_load): Likewise.
171         * pe-dll.c (generate_reloc): Likewise.
172         (make_import_fixup_entry): Likewise.
173         (pe_as16): Likewise.
174         * emultempl/beos.em (set_pe_subsystem): Likewise.
175         * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
176         * emultempl/pe.em: Likewise.
177         * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
179 2005-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
181         * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
182         (earmelfb_linux_eabi.c): New target.
183         * Makefile.in: Regenerated.
184         * configure.tgt (arm*b-*-linux-gnueabi): New target.
185         * emulparams/armelfb_linux_eabi.sh: New file.
187 2005-01-20  Nick Hudson  <skrll@netbsd.org>
189         PR ld/676
190         * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
191         Handle bfd_elf32_hppa_nbsd_vec.
193 2005-01-19  Richard Sandiford  <rsandifo@redhat.com>
195         * ldmain.h (ld_sysroot): Change type to a constant string.
196         * ldmain.c (ld_sysroot): Likewise.
197         (get_relative_sysroot, get_sysroot): New functions, adding command-line
198         support for changing the sysroot.
199         (main): Call the new functions.
200         * lexsup.c (OPTION_SYSROOT): New.
201         (ld_options): Add --sysroot.
202         (parse_args): Add a dummy handler for it.
203         * ld.texinfo (--sysroot): Document.
204         * NEWS: Mention the new --sysroot option.
206 2005-01-18  Alan Modra  <amodra@bigpond.net.au>
208         * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
209         (lang_place_orphans): Don't abort on just_syms_flag, instead call
210         bfd_link_just_syms.
212 2005-01-16  Danny Smith  <dannysmith@users.sourceforge.net>
214         * defilep.y (def_name, def_library): Combine into...
215         (def_image_name): New function.  Strip name to basename,
216         with warning.
218 2005-01-12  Mark Kettenis  <kettenis@gnu.org>
220         * configure.in: Be sure to invoke config.sub using the shell.
221         * configure: Regenerate.
223 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
225         * configure.host: Correct sed patterns for last change.
227 2005-01-10  Nick Clifton  <nickc@redhat.com>
229         PR binutils/609
230         * ldmisc.c (vfinfo): Add an extra argument: is_warning.  Use this
231         to determine whether config.make_executable should be set to FALSE in
232         conjunction with config.fatal_warnings.
233         (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
234         (einfo): Pass TRUE as the extra argument.
236 2005-01-10  Greg Schaffer  <gschafer@zip.com.au>
238         * configure.host (linux targets): Use "${CC} -dumpspecs" instead
239         of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
240         (ia64-*-aix): Delete - this target is obsolete, and would be
241         broken by this patch.
243 2005-01-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
245         * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
246         (sparc64-sun-solaris2*): New host.
248 2005-01-06  Paul Brook  <paul@codesourcery.com>
250         * Makefie.am: Add earmelf_vxworks.
251         * Makefile.in: Regenerate.
252         * configure.tgt: Make arm-*-vxworks a separate case.
253         * emulparams/armelf_vxworks.sh: New function.
255 2005-01-06  Alan Modra  <amodra@bigpond.net.au>
257         * emultempl/ppc64elf.em (no_multi_toc): New var.
258         (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
259         (OPTION_NO_MULTI_TOC): Define.
260         (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
261         (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
263 2005-01-05  Nick Clifton  <nickc@redhat.com>
265         PR binutils/614
266         * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
267         Standard's specification for parsable error messages.
269 2005-01-04  Paul Brook  <paul@codesourcery.com>
271         * Makefile.am: Correct dependency for earmsymbian.c.
272         * Makefile.in: Regenerate.
274 2004-12-28  Danny Smith  <dannysmith@users.sourceforge.net>
276         * emultempl/pe.em (set_pe_subsystem): Change second arg to
277         lang_add_entry to FALSE.
279 2004-12-23  Nick Clifton  <nickc@redhat.com>
281         PR 600
282         * emulparams/shelf.sh (.stack): Increase stack start address to
283         0x300000.
285 2004-12-20  Nick Clifton  <nickc@redhat.com>
287         * ldmain.c (main): Issue an error message if -static and -shared
288         are used together.
290 2004-12-17  Jakub Jelinek  <jakub@redhat.com>
292         * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
293         * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
294         * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
295         address space at DATA_SEGMENT_ALIGN.  Fix computation of expected
296         PT_GNU_RELRO segment end.
298 2004-12-14  P.J. Darcy  <darcypj@us.ibm.com>
300         * configure.tgt: Add s390x-ibm-tpf support.
302 2004-12-16  Martin Kögler  <mkoegler@auto.tuwien.ac.at>
304         * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
305         BFD.
307 2004-12-07  Ben Elliston  <bje@gnu.org>
309         * ldemul.h: Forward declare struct option.
311 2004-12-01  Danny Smith  <dannysmith@users.sourceforge.net>
313         * scripttempl/pe.sc (.data): Add .jcr subsection.
315 2004-11-30  Paul Brook  <paul@codesourcery.com>
317         * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
319 2004-11-30  Tero Niemela  <tero_niemela@yahoo.com>
321         * Makefile.am: Change LOCALEDIR to $(datadir)/share.
322         * Makefile.in: Regenerate.
324 2004-11-26  Melissa Mears  <asterisk@graces.dricas.com>
326         * emultempl/pe.em: Add --subsystem:xbox as well as
327         --subsystem:%d.
328         * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
329         and numeric subsystems.
331 2004-11-24  Alan Modra  <amodra@bigpond.net.au>
333         * ldexp.c (fold_name): Correct PR 338 fix.
335 2004-11-19  Mark Mitchell  <mark@codesourcery.com>
337         * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
338         (earmelf_linux_eabi.c): New target.
339         * configure.tgt (arm*-*-linux-gnueabi): Handle it.
340         * emulparams/armelf_linux_eabi.sh: New file.
341         * Makefile.in: Regenerated.
343 2004-11-19  Nick Clifton  <nickc@redhat.com>
345         PR 518
346         * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
347         LENGTH fields in the MEMORY command, to explicitly state that
348         symbols cannot be used in their expressions.
350 2004-11-19  Jon Beniston <jon@beniston.com>
352         * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
353         * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
354         * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
355         which return the length and origin of a memory.
356         * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
357         * NEWS: Mention support for ORIGIN and LENGTH operators.
359 2004-11-17  Daniel Jacobowitz  <dan@codesourcery.com>
361         * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
362         a dynamic object for stubs.
364 2004-11-04  Paul Brook  <paul@codesourcery.com>
366         * ld.texinfo: Document --default-imported-symver.
367         * ldmain.c (main): Set link_info.default_imported_symver.
368         * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
369         (ld_options): Add --default-imported-symver.
370         (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
372 2004-11-08  Inderpreet Singh   <inderpreetb@nioda.hcltech.com>
373             Vineet Sharma      <vineets@noida.hcltech.com>
375         * Makefile.am: Add entries for new maxq-coff target.
376         * Makefile.in: Regenerate.
377         * configure.tgt: Add support for maxq.
378         * emulparams/maxqcoff.sh: New File.
379         * scripttempl/maxqcoff.sc: New linker script for target maxq.
380         * NEWS: Mention the new target.
382 2004-11-08  Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
384         * testsuite/ld-scripts/weak.exp: Enable test on PE,
385         XFAIL non-i386 PE.
386         * testsuite/ld-undefined/weak-undef.exp: Enable test on PE,
387         XFAIL non-i386 PE.
388         * testsuite/lib/ld-lib.exp (is_pecoff_format): New.
390 2004-11-04  Daniel Jacobowitz  <dan@debian.org>
392         * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
393         (earmelf_oabi.c): Remove rule.
394         * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
395         * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
396         * Makefile.in: Regenerated.
398 2004-11-04  Hans-Peter Nilsson  <hp@axis.com>
400         * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
401         * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
402         (FINI_START): Ditto.
403         (INIT_END): Remove emitted "jump [sp+]".
404         (FINI_END): Ditto.
406 2004-11-04  Alan Modra  <amodra@bigpond.net.au>
408         * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
409         (no_opd_opt, no_toc_opt): New static vars.
410         (ppc_before_allocation): Don't edit opt if no_opd_opt.  Call
411         ppc64_elf_edit_toc.
412         (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
413         (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
414         (PARSE_AND_LIST_OPTIONS): Describe new options.
415         (PARSE_AND_LIST_ARGS_CASES): Handle them.
417 2004-10-27  Nick Clifton  <nickc@redhat.com>
419         * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
420         parameter to invocation of lang_section_start.
421         * emultempl/aix.em (_handle_option): Likewise.
423         * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
424         eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
425         * Makefile.in: Regenerate.
427 2004-10-26  Mark Mitchell  <mark@codesourcery.com>
429         * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
430         __exidx_{start,end} when not relocating.
432 2004-10-25  Mark Mitchell  <mark@codesourcery.com>
434         * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
435         * ldexp.h (segment_type): New type.
436         (segments): New variable.
437         * ldexp.c (segments): New variable.
438         (exp_print_token): Handle SEGMENT_START.
439         (fold_binary): Likewise.
440         * ldgram.y (SEGMENT_START): Declare it as a token.
441         (exp): Handle SEGMENT_START.
442         * ldlang.h (lang_address_statement_type): Add segment field.
443         (lang_section_start): Change prototype.
444         * ldlang.c (map_input_to_output_sections): Do not process section
445         assignments if a corresponding SEGMENT_START has already been
446         seen.
447         (lang_section_start): Add segment parameter.
448         * ldlex.l (SEGMENT_START): Add it.
449         * lexsup.c (seg_segment_start): New function.
450         (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
451         * ld.texinfo (SEGMENT_START): Document it.
452         * emulparams/armsymbian.sh (EMBEDDED): Set it.
453         * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
454         base addresses.  Do not map relocations.
455         * NEWS: Mention SEGMENT_START.
457 2004-10-26  Paul Brook  <paul@codesourcery.com>
459         * ld.texinfo: Document --default-symver.
460         * ldmain.c (main): Set link_info.create_default_symver.
461         * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
462         (ld_options): Add default-symver.
463         (parse_args): Handle OPTION_DEFAULT_SYMVER.
465 2004-10-24 Danny Smith  <dannysmith@users.sourceforge.net>
467         * pe-dll.c (process_def_file): Don't export all symbols by default if
468         building a position-independent executable.
470 2004-10-21  H.J. Lu  <hongjiu.lu@intel.com>
472         PR 463
473         * ldmain.c (reloc_overflow): Accept a pointer to struct
474         bfd_link_hash_entry. Report symbol location for relocation
475         overflow.
477 2004-10-21  H.J. Lu  <hongjiu.lu@intel.com>
479         * genscripts.sh (libpath.exp): Really generate for first
480         emulation only.
482 2004-10-19  Danny Smith  <dannysmith@users.sourceforge.net>
484         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
485         comparison and replacement of filenames.
487 2004-10-19  H.J. Lu  <hongjiu.lu@intel.com>
489         PR 459
490         * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
491         option on linker script as the one for linker script.
493 2004-10-16  Daniel Jacobowitz  <dan@debian.org>
495         * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
496         (check_excluded_libs): New.
497         (load_symbols): Call check_excluded_libs.
498         * ldlang.h (add_excluded_libs): New prototype.
499         * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
500         (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
501         (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
502         * ld.texinfo (Command Line Variables): Document --exclude-libs.
503         (Options Specific to i386 PE Targets): Remove --exclude-libs.
505 2004-10-15  Alan Modra  <amodra@bigpond.net.au>
507         * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
508         failing link script assert.
510         * ldctor.c (ldctor_add_set_entry): Fix comment typo.
512 2004-10-14  H.J. Lu  <hongjiu.lu@intel.com>
514         PR 445
515         * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
516         (SMALL_DATA_DTOR): Set.
517         * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
518         (SMALL_DATA_DTOR): Unset.
519         * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
520         after .data. If SMALL_DATA_DTOR is set, move .dtors after
521         .data.
523 2004-10-14  Alan Modra  <amodra@bigpond.net.au>
525         PR 63
526         * ldlang.h (lang_output_section_statement_type): Make "next" a
527         struct lang_output_section_statement_struct *.
528         (struct orphan_save): Move from elf32.em.  Add "name" and "flags".
529         (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
530         * ldlang.c (lang_output_section_find_1): Adjust for changed
531         output_section_statement "next".
532         (strip_excluded_output_sections): Likewise.
533         (lang_record_phdrs): Likewise.
534         (lang_output_section_find_by_flags): New function.
535         (output_prev_sec_find): Move from pe.em.  Adjust iterator.
536         (lang_insert_orphan): New function.  Tail end of elf32.em's
537         place_orphan merged with that from pe.em.  Allow bfd_section to
538         be placed first.  New heuristic for placing new output section
539         statement in existing script, and accompanying split of __start
540         symbol alignment into a separate assignment to dot.
541         (lang_add_section): Consistently use output->bfd_section rather than
542         an alias, section->output_section.
543         (map_input_to_output_sections): Rename overly long arg.  Move
544         initialization of data_statement output section to here..
545         (lang_check_section_addresses): ..from here.
546         (print_assignment): Correct printing of etree_assert.
547         (print_all_symbols): Don't bomb if userdata is NULL.
548         (IGNORE_SECTION): Rearrange.
549         * emultempl/elf32.em (output_rel_find): Adjust interator.
550         (output_prev_sec_find): Delete.
551         (struct orphan_save): Delete.
552         (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
553         flags without creating a duplicate output section statement.
554         Revise code holding history of various orphan section placements.
555         Allow orphan sections to place before script specified output
556         sections.  Call lang_output_section_find_by_flags when placement
557         by name fails.  Use lang_insert_orphan.
558         * emultempl/mmo.em (output_prev_sec_find): Delete.
559         (struct orphan_save): Delete.
560         (mmo_place_orphan): Revise code holding history of orphan placement.
561         Allow orphans to place before existing output sections.  Use
562         lang_insert_orphan.
563         * emultempl/pe.em (output_prev_sec_find): Delete.
564         (struct orphan_save): Delete.
565         (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
566         lang_insert_orphan.
568 2004-10-13  Mark Mitchell  <mark@codesourcery.com>
570         * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
571         loadable segment.
573 2004-10-13  Alan Modra  <amodra@bigpond.net.au>
575         PR 44
576         * ldcref.c (check_section_sym_xref): Delete.
577         (check_local_sym_xref): New function.
578         (check_nocrossrefs): Adjust call.
579         * emultempl/pe.em (struct orphan_save): Add os_tail.
580         (place_orphan): Backport assorted fixes from elf32.em.
582 2004-10-12  Bob Wilson  <bob.wilson@acm.org>
584         * emultempl/xtensaelf.em: Use ISO C90 formatting.
586 2004-10-11  Jakub Jelinek  <jakub@redhat.com>
588         * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
589         getline for portability.
591         * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
592         (gld${EMULATION_NAME}_parse_ld_so_conf,
593         gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
594         (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
596 2004-10-11  Alan Modra  <amodra@bigpond.net.au>
598         PR 423
599         * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
600         rejected when linking statically.
602 2004-10-08  Daniel Jacobowitz  <dan@debian.org>
604         * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
606 2004-10-07  Bob Wilson  <bob.wilson@acm.org>
608         * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
609         assembler-generated longcall sequences.  Describe new --size-opt
610         option.
611         * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
612         * emultempl/xtensaelf.em (remove_section,
613         replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
614         elf_xtensa_after_open): New.
615         (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
616         OPTION_NO_LITERAL_MOVEMENT): Define.
617         (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
618         (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
619         (PARSE_AND_LIST_OPTIONS): Add --size-opt.
620         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
621         OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
622         (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
623         * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
624         * Makefile.am (eelf32xtensa.c): Update dependencies.
625         * Makefile.in: Regenerate.
627 2004-10-07  Jeff Baker  <jbaker@qnx.com>
629         * lexsup.c: Handle --warn-shared-textrel option.
630         (ld_options): Restore alpha sorting of options.
631         * ldmain.c (main): Initialise warn_shared_info field to FALSE.
632         * ld.texinfo: Add documentation for --warn-shared-textrel.
633         * NEWS: Added mention of --warn-shared-textrel option.
635 2004-10-05  Tomer Levi  <Tomer.Levi@nsc.com>
637         * emultempl/crxelf.em (disable_relaxation): Add.
638         (crxelf_before_allocation): Enable --relax option by default.
639         (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
640         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
641         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
643 2004-10-04  H.J. Lu  <hongjiu.lu@intel.com>
645         * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
646         --sort-section name|alignment.
648         * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
649         --sort-section name|alignment.
651         * ld.h (sort_type): New enum.
652         (wildcard_spec): Change the type of `sorted' to sort_type.
654         * ldgram.y (SORT): Removed.
655         (SORT_BY_NAME): Added.
656         (SORT_BY_ALIGNMENT): Added.
657         (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
658         SORT_BY_ALIGNMENT.
659         (input_section_spec_no_keep): Updated `sorted'.
660         (statement): Replace SORT with SORT_BY_NAME.
662         * ldlang.c (compare_section): New function to compare 2
663         sections with different sorting schemes.
664         (wild_sort): Updated. Use compare_section.
665         (update_wild_statements): New function.
666         (lang_process): Call update_wild_statements before
667         map_input_to_output_sections.
669         * ldlex.l (SORT_BY_NAME): New.
670         (SORT_BY_ALIGNMENT): New.
671         (SORT): Return SORT_BY_NAME.
673         * ldmain.c (sort_section): New. Defined.
674         (main): Initialize it to none.
676         * lexsup.c (option_values): Add OPTION_SORT_SECTION.
677         (ld_options): Add an entry for OPTION_SORT_SECTION.
678         (parse_args): Handle OPTION_SORT_SECTION.
680         * mri.c (mri_draw_tree): Updated `sorted'.
682 2004-10-04  Jakub Jelinek  <jakub@redhat.com>
684         * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
685         * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
686         argument.
687         (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
688         and . as second argument.
689         (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
690         * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
691         (fold_binary): Add it here.  Insert padding to make relro_end
692         COMMONPAGESIZE bytes aligned.  For DATA_SEGMENT_ALIGN in
693         exp_dataseg_relro_adjust phase just use previously computed
694         exp_data_seg.base.
695         * ldlang.c (lang_size_sections): Set exp_data_seg.base for
696         relro_adjust here.  Call lang_size_sections_1 once more if there
697         was too big padding at DATA_SEGMENT_RELRO_END.
698         * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
700 2004-10-01  Paul Brook  <paul@codesourcery.com>
702         * emulparams/armelf.sh: Add unwinding table sections.
704 2004-09-30  Filip Navara  <navaraf@reactos.com>
706         * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
707         correct base address for position independant executables.
708         * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
709         executables as DLLs.
711 2004-09-30  Paul Brook  <paul@codesourcery.com>
713         * ld.texinfo: Document --target2=abs.
714         * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
716 2004-09-29  Nick Clifton  <nickc@redhat.com>
718         * scripttempl/xstormy16.sc: Only perform the assignments to the
719         ROM region when not performing a relocatable link.  The ROM region
720         does not start at address 0, but the sections will.
721         * Makefile.am: Fix linker script dependency for the generation of
722         eelf32xstormy16.c.
723         * Makefile.in: Regenerate.
725 2004-09-18  Filip Navara  <navaraf@reactos.com>
727         * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
728         emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
729         emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
730         TARGET_PAGE_SIZE.
731         * scripttempl/pe.sc: Make the virtual address and file offset synced if
732         the alignment is lower than the target page size.
734 2004-09-27  Filip Navara  <navaraf@reactos.com>
736         * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
737         def_file_parse to handle pe_def_file if NULL and prevent crash with
738         invalid .def files.
740 2004-09-27  Alan Modra  <amodra@bigpond.net.au>
742         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
743         --emit-stub-syms automatically when --emit-relocs.
745 2004-09-24  Paul Brook  <paul@codeosurcery.com>
747         * scripttempl/elf.sc: Keep .preinit_array, .init_array and
748         .fini_array sections.
750 2004-09-19  Andreas Schwab  <schwab@suse.de>
752         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
753         base so that relro end is suitably aligned.
755 2004-09-17  Paul Brook  <paul@codesourcery.com>
757         * ld.texinfo: Rename arm-specific section.  Document --target*
758         * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
759         * emulparams/armelf_linux.sh: Ditto.
760         * emulparams/armelf_nbsd.sh: Ditto.
761         * emultempl/armelf.em: Set default for TARGET2_TYPE.
762         (target2_type): New variable.
763         (arm_elf_before_allocation): Don't pass target1_type.
764         (arm_elf_create_output_section_statements): New function.
765         (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
766         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
767         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
768         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
769         * emultempl/armelf_oabi.em (_before_allocation): Remove extra
770         argument to bfd_elf32_arm_process_before_allocation.
772 2004-09-17  Alan Modra  <amodra@bigpond.net.au>
774         * ldexp.c (fold_name): Update u.undef.next refs.
775         * emultempl/pe.em: Likewise.
776         * emultempl/sunos.em: Likewise.
778 2004-09-17  Alan Modra  <amodra@bigpond.net.au>
780         * Makefile.am: Run "make dep-am".
781         * Makefile.in: Regenerate.
782         * config.in: Regenerate.
783         * configure: Regenerate.
784         * aclocal.m4: Regenerate.
785         * po/ld.pot: Regenerate.
787 2004-09-16  Tomer Levi  <Tomer.Levi@nsc.com>
789         * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
790         (.fini): Likewise.
791         (.jcr): Likewise.
793 2004-09-16  Alan Modra  <amodra@bigpond.net.au>
795         * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
796         to bfd_elf32_arm_process_before_allocation call.
798 2004-09-13  Paul Brook  <paul@codesourcery.com>
800         * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
801         * emultempl/armelf.em: Use TARGET1_IS_REL.  Add --target1-{rel,abs}.
803 2004-09-07  H.J. Lu  <hongjiu.lu@intel.com>
805         * configure: Regenerated with autconfig 2.13.
807 2004-09-07  Andreas Schwab  <schwab@suse.de>
809         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
810         alignment before adjusting DATA_SEGMENT_RELRO_END.
812 2004-09-06  Mark Mitchell  <mark@codesourcery.com>
814         * emulparams/armsymbian.sh: Use armbpabi script.
815         * scripttempl/armbpabi.sc: New script.
817 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
819         * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
820         (earmsymbian.c): New target.
821         * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
822         * Makefile.in: Regenerated.
823         * aclocal.m4: Likewise.
824         * configure: Likewise.
825         * emulparams/armsymbian.sh: New file.
827 2004-09-03  Tomer Levi  <Tomer.Levi@nsc.com>
829         * scripttempl/elf32crx.sc: Edit file with comments.
830         (.init): Add new section.
831         (.fini): Likewise.
832         (.ctor): Control the linkage order.
833         (.dtor): Likewise.
835 2004-08-27  Nick Clifton  <nickc@redhat.com>
837         * emultempl/pe.em (after_open): Do not assume that either bfd is
838         an archive.
840 2004-08-26  Alan Modra  <amodra@bigpond.net.au>
842         * ldlang.c (lang_init): Don't compare with TRUE.
844 2004-08-25  Dmitry Diky  <diwil@spec.ru>
846         * emulparams/msp430all.sh: Fix RAM sizes for all targets.
847         * scripttempl/elf32msp430.sc: Add .profiler section definition.
849 2004-08-24  H.J. Lu  <hongjiu.lu@intel.com>
851         * ldlang.c (wildcardp): Defined as a macro with strpbrk.
853 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
855         * configure.tgt (arm*-*-symbianelf*): New target.
856         (arm*-*-eabi*): Likewise.
858 2004-08-19  Jakub Jelinek  <jakub@redhat.com>
860         * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
861         (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
862         (OPTION_NON_OVERLAPPING_OPD): Define.
863         (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
864         --non-overlapping-opd option.
866 2004-08-18  Alan Modra  <amodra@bigpond.net.au>
868         PR 338
869         * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
870         was already on the undefs list.
872 2004-08-17  Alan Modra  <amodra@bigpond.net.au>
874         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
875         prefix the symbol field too.
877 2004-08-13  Alan Modra  <amodra@bigpond.net.au>
879         * ldmain.c (link_callbacks): Remove "error_handler".
880         * ldmisc.c: Include elf-bfd.h.
881         (vfinfo): Sort comment.  Handle %A.  Use %A instead of
882         bfd_get_section_indent.
883         (error_handler): Delete.
884         * ldmisc.h (error_handler): Delete declaration.
886 2004-08-10  Alan Modra  <amodra@bigpond.net.au>
888         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
889         ppc64_elf_restore_symbols.
891 2004-08-09  Alan Modra  <amodra@bigpond.net.au>
893         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
894         .toc is too large on relocatable linking.
896 2004-08-09  Alan Modra  <amodra@bigpond.net.au>
898         * emultempl/ppc64elf.em (ppc_after_open): Delete.
899         (LDEMUL_AFTER_OPEN): Don't define.
901 2004-08-02  Stephane Carrez  <stcarrez@nerim.fr>
903         * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
905 2004-08-01  Stephane Carrez  <stcarrez@nerim.fr>
907         * scripttempl/elfm68hc12.sc: Align text, rodata and data section
908         on power of 2.
910 2004-07-27  Jason Thorpe  <thorpej@wasabisystems.com>
912         * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
914 2004-07-26  Dmitry Diky  <diwil@spec.ru>
916         * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
917         msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
918         msp430xG439.
919         * configure.tgt: Likewise.
920         * emulparams/msp430all.sh: Likewise.
921         * Makefile.in: Regenerate.
923 2004-07-23  Nick Clifton  <nickc@redhat.com>
925         * emultempl/elf32.em (_place_orphan): Use an already existing
926         section name if that section does not have any flags set.
928 2004-07-21  H.J. Lu  <hongjiu.lu@intel.com>
930         * ldlang.c (already_linked_hash_entry): Removed.
931         (already_linked): Likewise.
932         (already_linked_table): Likewise.
933         (section_already_linked): Call bfd_section_already_linked.
934         (lang_process): Replace already_linked_table_init with
935         bfd_section_already_linked_table_init and check return. Replace
936         already_linked_table_free with bfd_section_already_linked_table_free.
938 2004-07-21  Nick Clifton  <nickc@redhat.com>
940         * ldlang.c (init_os): Make sure that the newly allocated userdata
941         structure is zeroed out.
943 2004-07-19  H.J. Lu  <hongjiu.lu@intel.com>
945         * NEWS: Mention the new --add-needed/--no-add-needed and
946         --as-needed/--no-as-needed options.
948 2004-07-19  H.J. Lu  <hongjiu.lu@intel.com>
950         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
951         check the add_needed field.
952         (dt_needed): New struct.
953         (gld${EMULATION_NAME}_try_needed): Change the first argument
954         to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
955         bit in the file where the DT_NEEDED entry comes from.
956         (gld${EMULATION_NAME}_search_needed): Change the second
957         argument to a pointer to struct dt_needed.
958         (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
959         (gld${EMULATION_NAME}_after_open): Likewise.
961         * ld.texinfo: Add --add-needed document.
962         * ldlang.c (new_afile): Set p->add_needed.
963         * ldlang.h (lang_input_statement_type): Add add_needed field.
964         * ldmain.h (add_needed): Declare.
965         * ldmain.c (add_needed): New global var.
966         * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
967         OPTION_NO_ADD_NEEDED.
968         (ld_options): Likewise.
969         (parse_args): Handle them.
971 2004-07-13  Christof Petig  <christof@petig-baender.de>
973         * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
974         for endian-ness of extracted addend.
976 2004-07-13  Danny Smith  <dannysmith@usesr.sourceforge.net>
978         * pe-dll.c (auto_export):  Filter on just the import prefix,
979         "_imp_", not "_imp__".
981 2004-07-09  Nick Clifton  <nickc@redhat.com>
983         * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
985 2004-07-06  Tomer Levi  <Tomer.Levi@nsc.com>
987         * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
988         (eelf32crx.c): New target.
989         * Makefile.in: Regenerate.
990         * configure.tgt: Handle crx-*-elf*.
991         * emulparams/elf32crx.sh: New file.
992         * emultempl/crxelf.em: New file.
993         * scripttempl/elf32crx.sc: New file.
994         * NEWS: Mention new target.
996 2004-07-06  Nick Clifton  <nickc@redhat.com>
998         * Makefile.am: Add eshlsymbian.c.
999         * Makefile.in: Regenerate.
1000         * configure.tgt: Add sh*-symbian-elf target.
1001         * emulparams/shlsymbian.sh: New file.  Configure the
1002         sh-symbian-elf linker scripts.
1003         * scripttemp/elf32sh-symbian.sc: New file.  Linker script
1004         template for the sh-symbian-elf target.
1006 2004-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1008         * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
1009         * emulparams/hppalinux.sh: Likewise.
1010         * scripttempl/elf.sc: Place .plt just before .got when .plt is in
1011         data segment and PLT_BEFORE_GOT is defined.
1013 2004-07-03  Aaron W. LaFramboise  <aaron98wiridge9@aaronwl.com>
1015         * ld.texinfo (WIN32): Document PE weak symbols.
1017 2004-07-02  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1019         * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
1021 2004-07-01  H.J. Lu  <hongjiu.lu@intel.com>
1023         * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
1024         the section.
1026 2004-06-29  Alan Modra  <amodra@bigpond.net.au>
1028         * ldlang.c (lang_reset_memory_regions): Save last relax pass section
1029         size in rawsize.
1031 2004-06-24  Alan Modra  <amodra@bigpond.net.au>
1033         * ldlang.c (print_output_section_statement): Don't print size before
1034         relaxation.
1035         (IGNORE_SECTION): Remove bfd arg.  Update all callers.
1037         * ldexp.c (fold_name): .. See below.
1038         * ldlang.c (section_already_linked, print_output_section_statement,
1039         print_input_section, insert_pad, size_input_section,
1040         lang_check_section_addresses, lang_size_sections_1,
1041         lang_size_sections, lang_do_assignments_1, lang_set_startof,
1042         lang_one_common, lang_reset_memory_regions, lang_process,
1043         lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
1044         * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
1045         * pe-dll.c (process_def_file, generate_reloc): ..
1046         * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
1047         gld${EMULATION_NAME}_before_allocation): ..
1048         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
1049         * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
1050         sh64_elf_${EMULATION_NAME}_after_allocation): ..
1051         * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
1052         * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
1053         ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
1054         "size" instead of "_raw_size" and "_cooked_size".  Expand
1055         bfd_section_size macro invocations.
1057 2004-06-22  Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1059         * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
1060         ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
1061         ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
1062         ___crt_xt_end__.
1063         (.tls): Define ___tls_start__ and ___tls_end__.
1065 2004-06-21  Alexandre Oliva  <aoliva@redhat.com>
1067         * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
1069 2004-06-18  Adam Nemet  <anemet@lnxw.com>
1071         * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
1072         * configure: Regenerate.
1074 2004-06-15  Jakub Jelinek  <jakub@redhat.com>
1076         * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
1077         .gcc_except_table output sections lost accidentally with
1078         -z relro patch.
1080 2004-06-15  Alan Modra  <amodra@bigpond.net.au>
1082         * ldwrite.c (build_link_order): Use bfd_get_section_size
1083         instead of bfd_get_section_size_before_reloc or _raw_size.
1084         * pe-dll.c (process_def_file): Likewise.
1086 2004-06-14  Alan Modra  <amodra@bigpond.net.au>
1088         From Richard Wirth <r.wirth@wirthware.de>
1089         * ldlang.c (lang_finish): Don't free lang_definedness_table.
1091 2004-05-29  Alan Modra  <amodra@bigpond.net.au>
1093         * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
1094         (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
1096 2004-05-28  Andrew Stubbs <andrew.stubbs@superh.com>
1098         * testsuite/ld-sh/arch/arch.exp: New test script.
1099         * testsuite/ld-sh/arch/arch_expected.txt: New file.
1100         * testsuite/ld-sh/arch/sh.s: New file.
1101         * testsuite/ld-sh/arch/sh2.s: New file.
1102         * testsuite/ld-sh/arch/sh-dsp.s: New file.
1103         * testsuite/ld-sh/arch/sh2e.s: New file.
1104         * testsuite/ld-sh/arch/sh3-nommu.s: New file.
1105         * testsuite/ld-sh/arch/sh3.s: New file.
1106         * testsuite/ld-sh/arch/sh3-dsp.s: New file.
1107         * testsuite/ld-sh/arch/sh3e.s: New file.
1108         * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
1109         * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
1110         * testsuite/ld-sh/arch/sh4.s: New file.
1111         * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
1112         * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
1113         * testsuite/ld-sh/arch/sh4a.s: New file.
1115 2004-05-28  Alan Modra  <amodra@bigpond.net.au>
1117         * ldlang.c: Formatting.  Wrap long lines, expand bfd_get_section_flags
1118         throughout file.
1119         * lexsup.c: Formatting.  Wrap long lines.
1120         * ldwrite.c: Update copyright date.
1122         * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
1123         (output_section_callback): Nor SEC_KEEP here.
1124         (gc_section_callback): Twiddle SEC_EXCLUDE here.
1125         (lang_gc_wild): Delete.  Fold into..
1126         (lang_gc_sections_1): ..here.  Only call bfd_gc_sections when garbage
1127         collecting.
1128         (lang_process): Always call lang_gc_sections.
1129         (lang_place_orphans): Handle SEC_EXCLUDE sections.
1130         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
1131         SEC_EXCLUDE code.
1133 2004-05-26  H.J. Lu  <hongjiu.lu@intel.com>
1135         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
1136         SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
1137         * ldlang.c (lang_add_section): Likewise.
1139 2004-05-26  Alan Modra  <amodra@bigpond.net.au>
1141         * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
1142         sections when doing a final link.  Clear SEC_EXCLUDE when doing
1143         a relocable link, except for SEC_DEBUGGING sections.
1144         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
1145         same condition here to drop SEC_EXCLUDE orphan sections.
1147 2004-05-25  Alan Modra  <amodra@bigpond.net.au>
1149         * ldlang.c (lang_process): Call bfd_merge_sections later, and
1150         only when not a relocatable link.
1151         (print_input_section): Handle SEC_EXCLUDE sections.
1152         (size_input_section): Don't update dot on SEC_EXCLUDE sections.
1153         (lang_do_assignments_1): Likewise.
1154         * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
1155         * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
1156         * emultempl/hppaelf.em (build_section_lists): Likewise.
1157         * emultempl/ppc64elf.em (build_toc_list): Likewise.
1158         (build_section_lists): Likewise.
1160 2004-05-23  Andreas Schwab  <schwab@suse.de>
1162         * ld.texinfo (Options): Fix typo in last change.
1164 2004-05-21  Andy Chittenden  <achittenden@bluearc.com>
1166         * ld.h (ld_config_type): Add new field: hash_table_size.
1167         * ldmain.c: Initialise the new field to zero.  If it is non-zero
1168         after parsing the linker's command line call
1169         bfd_hash_set_default_size.
1170         * lexsup.c (option_values): Add OPTION_HASH_SIZE.
1171         (ld_options): Add hash-size.
1172         (parse_args): Parse --hash-size option.  Allow
1173         --reduce-memory-overheads to set the default hash table size as
1174         well.
1175         * ld.texinfo: Document the new switch.  Also mention that
1176         --reduce-memory-overheads can affect the hash table size.
1177         * NEWS: Mention the new feature.
1179 2004-05-19  J"orn Rennecke <joern.rennecke@superh.com>
1181         * NEWS: Mention new linker map file generation and the
1182         --reduce-memory-overheads option.
1183         * ld.texinfo: Document --reduce-memory-overheads option.
1184         * ld.h (map_symbol_def): New struct.
1185         (struct user_section_struct, section_userdata_type): Rename to:
1186         (struct lean_user_section_struct, lean_section_userdata_type).
1187         (struct fat_user_section_struct, fat_section_userdata_type): New.
1188         (SECTION_USERDATA_SIZE): Define.
1189         (args_type): New member reduce_memory_overheads.
1190         * ldlang.c (map_obstack): New static variable.
1191         (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
1192         (lang_map): Unless command_line.reduce_memory_overheads is set,
1193         initialize lists of defined symbols for each section.
1194         (print_input_section): Unless command_line.reduce_memory_overheads
1195         is set, use print_all_symbols.
1196         (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
1197         * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
1198         * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
1199         (ld_options): Add entry for --reduce-memory-overheads.
1200         (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
1202 2004-05-19  Jakub Jelinek  <jakub@redhat.com>
1204         * ldgram.y (sect_constraint): New.
1205         (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1206         (section): Add sect_constraint.  Pass additional argument
1207         to lang_enter_output_section_statement.
1208         * mri.c (mri_draw_tree): Pass additional argument to
1209         lang_enter_output_section_statement.
1210         * emultempl/pe.em (place_orphan): Likewise.
1211         (output_prev_sec_find): Disregard output section statements with
1212         constraint == -1.
1213         * emultempl/mmo.em (output_prev_sec_find): Likewise.
1214         (mmo_place_orphan): Pass additional argument to
1215         lang_enter_output_section_statement.
1216         * emultempl/elf32.em (output_prev_sec_find): Disregard output section
1217         statements with constraint == -1.
1218         (place_orphan): Pass additional argument to
1219         lang_enter_output_section_statement.
1220         * ldlang.c (lang_enter_overlay_section): Likewise.
1221         (lang_output_section_find_1): New.
1222         (lang_output_section_find): Use it.
1223         (lang_output_section_statement_lookup_1): New.
1224         (lang_output_section_statement_lookup): Use it.
1225         (check_section_callback, check_input_sections): New.
1226         (map_input_to_output_sections): Check if all input sections
1227         are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
1228         (strip_excluded_output_sections): Disregard output section statements
1229         with constraint == -1.
1230         (lang_record_phdrs): Likewise.
1231         (lang_enter_output_section_statement): Add constraint argument.
1232         Use lang_output_section_statement_lookup_1.
1233         * ldlang.h (lang_output_section_statement_type): Add constraint
1234         and all_input_readonly fields.
1235         (lang_enter_output_section_statement): Adjust prototype.
1236         * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1237         * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
1238         segment if all input sections are readonly.
1240 2004-05-19  Adam Nemet  <anemet@lnxw.com>
1242         * scripttempl/i386lynx.sc: Remove file.
1244 2004-05-17  Bob Wilson  <bob.wilson@acm.org>
1246         * ld.texinfo (Output Section Address): Correct subsection name.
1248 2004-05-17  Adam Nemet  <anemet@lnxw.com>
1250         * configure.tgt (powerpc-*-lynxos* case): New case.
1251         * configure.host (i[3-7]86-*-lynxos* case): Remove case.
1252         * emulparams/ppclynx.sh: New file.
1253         * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
1254         * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
1255         (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
1256         (eppclynx.c): New rule.
1257         * Makefile.in: Regenerate.
1259 2004-05-13  Joel Sherrill <joel@oarcorp.com>
1261         * configure.tgt (or32-*-rtems*): Switch to elf and
1262         support versioned targets.
1264 2004-05-13  Nick Clifton  <nickc@redhat.com>
1266         * po/fr.po: Updated French translation.
1268 2004-05-11  Jakub Jelinek  <jakub@redhat.com>
1270         * genscripts.sh: Generate -z combreloc -z now -z relro scripts
1271         for binaries, -shared and -pie.
1272         * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
1273         * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
1274         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
1275         (OTHER_RELRO_SECTIONS): ... this.
1276         * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
1277         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1278         -z relro and -z norelro.
1279         (gld${EMULATION_NAME}_list_options): Add it to usage.
1280         (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
1281         -z relro scripts when appropriate.
1282         * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
1283         Create separate .got.plt section if SEPARATE_GOTPLT.
1284         Move sections which are only written during relocation handling
1285         to the beginning of RW segment.  If NO_SMALL_DATA, move .got
1286         before .data.  Add DATA_SEGMENT_RELRO_END directive.
1287         Include OTHER_RELRO_SECTIONS.
1288         * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
1289         * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
1290         (fold_unary): Likewise.
1291         (fold_binary): Handle -z relro.
1292         * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
1293         exp_dataseg_relro_adjust phases.  Add relro_end field.
1294         * ldmain.c (main): Initialize link_info.relro to FALSE.
1295         * ldlang.c (lang_size_sections): Handle -z relro.
1297 2004-05-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1299         * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1301 2004-05-07  J"orn Rennecke <joern.rennecke@superh.com>
1303         * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1304         before printing it with %W.
1306 2004-05-07  Brian Ford  <ford@vss.fsi.com>
1307             DJ Delorie  <dj@redhat.com>
1309         * emultempl/pe.em (real_flags): New static.
1310         (OPTION_LARGE_ADDRESS_AWARE): New define.
1311         (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1312         (gld_${EMULATION_NAME}_list_options): Likewise.
1313         (gld${EMULATION_NAME}_handle_option): Likewise.
1314         (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1315         * ld.texinfo: Document it.
1316         * NEWS: Mention it.
1318 2004-05-07  Brian Ford  <ford@vss.fsi.com>
1320         * NEWS: Mention DWARF 2 support for i386pe.
1322 2004-05-05  Alexandre Oliva  <aoliva@redhat.com>
1324         * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1325         elf32-frvfdpic.
1327 2004-04-30  Alan Modra  <amodra@bigpond.net.au>
1329         * ldlang.c (unique_section_p): Pass section parm, return true on
1330         group sections.
1331         (output_section_callback): Adjust.
1332         * ldlang.h (unique_section_p): Update prototype.
1333         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1335 2004-04-30  Eric Botcazou  <ebotcazou@act-europe.fr>
1337         * ld.texinfo (--gc-sections): Remove restriction for
1338         dynamic linking.
1340 2004-04-29  Brian Ford  <ford@vss.fsi.com>
1342         * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1343         for DWARF 2/3.  Update stab section's syntax.
1345 2004-04-29  Alan Modra  <amodra@bigpond.net.au>
1347         * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1348         (fill_edata): Correct pointer arithmetic.
1350 2004-04-21  Chris Demetriou  <cgd@broadcom.com>
1352         * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1353         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1354         * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1355         (EXTRA_EM_FILE): Use mipsecoff.em
1356         * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1357         (EXTRA_EM_FILE): Use mipsecoff.em
1358         * emultempl/mipsecoff.em: Restructure to be included as an
1359         extra emulation file.
1360         (check_sections, gld${EMULATION_NAME}_after_open)
1361         (gld${EMULATION_NAME}_after_allocation)
1362         (gld${EMULATION_NAME}_get_script)
1363         (ld_${EMULATION_NAME}_emulation): Remove
1364         (gld${EMULATION_NAME}_before_parse): Rename to...
1365         (mipsecoff_before_parse): This.
1366         (LDEMUL_BEFORE_PARSE): Define.
1367         * emultempl/mipself.em: Remove file.
1368         * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1369         (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1370         these symbols.
1371         * Makefile.am: Remove dependencies on emultempl/mipself.em.
1372         * Makefile.in: Regenerate.
1374 2004-04-21      Anil Paranjpe   <anilp1@kpitcummins.com>
1376         * ld.texinfo (synthesizing on H8/300): Information about linker
1377         relaxation support for bit manipulation instructions and system
1378         control instructions is added.
1380 2004-04-21  Hans-Peter Nilsson  <hp@axis.com>
1382         * NEWS: Mention change in DEFINED semantics.
1384 2004-04-21  Eric Botcazou  <ebotcazou@act-europe.fr>
1386         * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1387         (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1388         (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1390 2004-04-21  Ben Elliston  <bje@au.ibm.com>
1392         * ld.texinfo (Simple Example): Add missing punctuation.
1394 2004-04-20  Chris Demetriou  <cgd@broadcom.com>
1396         * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1398 2004-04-19  Jakub Jelinek  <jakub@redhat.com>
1400         * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1401         specially.
1403 2004-04-18  Danny Smith  <dannysmith@users.sourceforge.net>
1405         * scriptempl/pe.sc:  Put numbered .ctors.* after .ctors
1406         with default priority. Likewise for dtors.
1408 2004-04-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
1410         * configure.host: Remove mips*-dec-bsd* target.
1411         * configure.tgt: Likewise.
1413 2004-04-08  Richard Sandiford  <rsandifo@redhat.com>
1415         * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1416         * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1417         * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1418         * emultempl/irix.em: New file.
1419         * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1420         dependencies.
1421         * Makefile.in: Regenerate.
1423 2004-04-01  Paul Brook  <paul@codesourcery.com>
1425         * emultempl/armelf.em (byteswap_code): Add.
1426         (arm_elf_before_allocation): Pass extra parameter.
1427         (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1428         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1429         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1430         * emultempl/armelf_oabi.em: Pass extra parameter.
1431         * ld.texinfo: Document --be8.
1433 2004-03-30  Stan Shebs  <shebs@apple.com>
1435         Remove long-obsolete MPW support.
1436         * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1437         * Makefile.am (mpw): Remove file-presynthesizing actions.
1438         * Makefile.in: Likewise.
1439         * ldfile.c (slash): Remove MPW case.
1440         * ldlex.l [MPW]: Remove unused definition.
1442 2004-03-30  Galit Heller  <Galit.Heller@nsc.com>
1444         * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1445         (eelf32cr16c.c): New target.
1446         * Makefile.in: Regenerate.
1447         * configure.tgt: Handle cr16c-*-elf*.
1448         * emulparams/elf32cr16c.sh: New file.
1449         * scripttempl/elfcr16c.sc: Likewise
1450         * NEWS: Mention support for new target.
1452 2004-03-30  Nick Clifton  <nickc@redhat.com>
1454         * po/sv.po: Updated Swedish translation.
1456 2004-03-27  Alan Modra  <amodra@bigpond.net.au>
1458         * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1459         * emultempl/hppaelf.em: Likewise.
1460         * emultempl/ppc64elf.em: Likewise.
1461         * emultempl/sh64elf.em: Likewise.
1463 2004-03-25  Alan Modra  <amodra@bigpond.net.au>
1465         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1466         size_dynamic_sections call.
1468 2004-03-23  Alan Modra  <amodra@bigpond.net.au>
1470         PR 51.
1471         * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1472         link_info.wrap_char.
1474 2004-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1476         * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1477         or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1479 2004-03-20  Alexandre Oliva  <aoliva@redhat.com>
1481         * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1483 2004-03-19  Alan Modra  <amodra@bigpond.net.au>
1485         * config.in: Regenerate.
1486         * po/ld.pot: Regenerate.
1488 2004-03-18  Alan Modra  <amodra@bigpond.net.au>
1490         * ld.texinfo: Add --as-needed doco.
1491         * ldmain.c (as_needed): New global var.
1492         * ldmain.h (as_needed): Declare.
1493         * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1494         OPTION_NO_AS_NEEDED.
1495         (ld_options): Likewise.
1496         (parse_args): Handle them.
1497         * ldlang.h (lang_input_statement_type): Add as_needed field.
1498         * ldlang.c (new_afile): Set p->as_needed.
1499         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1500         (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1501         (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1503         * ldlang.c (open_input_bfds): Remove useless cast.
1504         (lang_do_assignments_1): Likewise.
1505         (lang_for_each_input_section): Delete.
1507 2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1509         * configure.tgt: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff*.
1511 2004-03-08  Danny Smith  <dannysmith@users.sourceforge.net>
1513         * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1514         private when building implib.
1516 2004-03-05  Nathan Sidwell  <nathan@codesourcery.com>
1518         * ldlang.c (lang_add_section): Don't force SEC_LOAD on
1519         SEC_THREAD_LOCAL.
1520         (IGNORE_SECTION): Ignore .tbss sections too.
1521         (lang_size_sections_1): .tbss sections do not advance dot.
1523 2004-03-01  Andreas Schwab  <schwab@suse.de>
1525         * ld.texinfo (Options): Fix example for --wrap.
1527 2004-02-25  Danny Smith  <dannysmith@users.sourceforge.net>
1529         * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1530         not NULL.
1532 2004-02-23  Ian Lance Taylor  <ian@wasabisystems.com>
1534         * ldlang.c (lang_check): Use %P, not %E, in error message.
1536 2004-02-23  Nathan Sidwell  <nathan@codesourcery.com>
1538         * ldlang.h (struct lang_output_section_state): Change processed
1539         field's type.
1540         * ldexp.c (check, invalid): Remove.
1541         (fold_name): Move valid_p assignments. Create undefined symbol
1542         when needed. Directly exampine section's processd flag.
1543         * ldlang.c (lang_output_section_statement_lookup): Adjust
1544         processed field init.
1545         (lang_size_sections_1): Allow LOADADDR when determining section's
1546         VMA. Adjust error message. Fold data statement's expr.
1547         (lang_size_sections): Correctly increment lang_statement_iteration.
1549 2004-02-23  Alan Modra <amodra@bigpond.net.au>
1551         * ldexp.c (fold_tree): Follow indirect symbols.
1553 2004-02-20  Nathan Sidwell  <nathan@codesourcery.com>
1555         * ldgram.y (exp): Add two operand ALIGN.
1556         * ldexp.c (fold_binary): Add ALIGN_K case.
1557         * ld.texinfo (ALIGN): Document two operand version.
1559 2004-02-19  Nathan Sidwell  <nathan@codesourcery.com>
1561         * ldlang.c (map_input_to_output_sections): Initialize sections
1562         mentioned in a data statement expression.
1563         (lang_do_assignments_1): Add data statement's expression's
1564         section's vma.
1566 2004-02-18  Nathan Sidwell  <nathan@codesourcery.com>
1568         * ldgram.y (statement_anywhere): Add assert rule.
1569         * ldlang.c (exp_init_os): Add assert case.
1571 2004-02-14  Andrew Cagney  <cagney@redhat.com>
1573         * ldmain.c (remove_output): Call bfd_cache_close.
1575 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
1577         * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
1578         .MIPS.content* and .MIPS.events* sections.
1580 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
1582         * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
1583         .note.gnu.arm.ident to after allocated sections.  Mark its
1584         address as 0.
1586 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
1588         * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
1589         * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
1590         * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
1591         * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
1592         * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
1594 2004-02-05  Nick Clifton  <nickc@redhat.com>
1596         * emultempl/pe.em (_after_open): Fix typo in previous delta.
1598 2004-02-04  Danny Smith  <dannysmith@users.sourceforge.net>
1600         * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
1602 2004-01-28  Alan Modra  <amodra@bigpond.net.au>
1604         * genscripts.sh: Fix typo.
1606         * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1608 2004-01-24  Jakub Jelinek  <jakub@redhat.com>
1610         * emulparams/elf64_ia64.sh: Put .rela.opd into
1611         OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1613 2004-01-20  Danny Smith  <dannysmith@users.sourceforge.net>
1615         * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1616         * ld.texinfo (--omagic): Note that writable text section
1617         does not conform to published PE-COFF specs.
1618         (--enable-auto-import): Likewise.
1620 2004-01-15  Alan Modra  <amodra@bigpond.net.au>
1622         * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
1624 2004-01-13  Nick Clifton  <nickc@redhat.com>
1626         * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
1627         which if true will prevent the LMA region being used as a
1628         replacement for a default VMA region.
1629         (lang_leave_output_section_statement): Pass extra parameter.
1630         (lang_leave_overlay): Likewise.
1631         * ld.texinfo (Output Section LMA): Document that the LMA
1632         region can be set to the VMA region if no VMA has been set.
1633         * ldlang.h (struct lang_output_section_phdr_list): Create a
1634         typedef for this type.  Minor formatting fixes.
1636 2004-01-13  Nick Clifton  <nickc@redhat.com>
1638         * ldlang.c (lang_size_sections_1): If dot is advanced, then
1639         assume that the section should be allocated.
1641 2004-01-13  Alan Modra  <amodra@bigpond.net.au>
1643         * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1644         sections.  Do ignore SEC_NEVER_LOAD sections.
1645         (lang_size_sections_1): Remove test made redundant with the above.
1647 2004-01-09  Alan Modra  <amodra@bigpond.net.au>
1649         * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1650         program_header_size.
1652 2004-01-06  Alexandre Oliva  <aoliva@redhat.com>
1654         2003-11-28  Alexandre Oliva  <aoliva@redhat.com>
1655         * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1656         2003-11-05  Alexandre Oliva  <aoliva@redhat.com>
1657         * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1658         (MAXPAGESIZE): Set to 64Kb.
1659         (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1660         __ROFIXUP_END__.  Don't map .rofixup.got any more.
1661         * emulparams/elf32frv.sh (NOP): Set.
1662         2003-10-31  Alexandre Oliva  <aoliva@redhat.com>
1663         * configure.tgt: Add frv-*-*linux*.
1664         2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
1665         * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1666         (eelf32frvfd.c): New.
1667         * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1668         * emulparams/elf32frv.sh: Reverted previous two patches.
1669         * emulparams/elf32frvfd.sh: New.
1670         * Makefile.in: Rebuilt.
1671         2003-09-18  Alexandre Oliva  <aoliva@redhat.com>
1672         * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1673         .rofixup.got to .rofixup.
1674         2003-09-15  Alexandre Oliva  <aoliva@redhat.com>
1675         * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
1676         (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
1678 2004-01-05  Jakub Jelinek  <jakub@redhat.com>
1680         * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
1681         * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
1683 2004-01-03  Alan Modra  <amodra@bigpond.net.au>
1685         * ldexp.c (align_n): Make static.
1686         * ldexp.h (align_n): Delete declaration.
1687         * ldlang.h (lang_enter_output_section_statement): Remove
1688         block_value param.
1689         * ldlang.c (lang_enter_output_section_statement): Likewise.
1690         (TO_ADDR, TO_SIZE): Define.
1691         (opb_shift): New var.
1692         (init_opb): New function.
1693         (print_input_section): Call init_opb and use TO_ADDR.
1694         (print_data_statement, print_reloc_statement): Likewise.
1695         (print_padding_statement): Likewise.
1696         (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
1697         (lang_check_section_addresses): Likewise.
1698         (lang_size_sections_1): Likewise.
1699         (lang_do_assignments_1): Likewise.
1700         (lang_set_startof): Likewise.
1701         (lang_one_common): Likewise.  Combine power_of_two and opb_shift align.
1702         (lang_process): Call init_opb.
1703         (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
1704         (lang_enter_overlay_section): Adjust
1705         lang_enter_output_section_statement call.
1706         * ldgram.y: Likewise.
1707         * mri.c (mri_draw_tree): Likewise.
1708         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1709         * emultempl/mmo.em (mmo_place_orphan): Likewise.
1710         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1712         * ldfile.c (ldfile_set_output_arch): Add defarch param.
1713         * ldfile.h (ldfile_set_output_arch): Ditto.
1714         * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
1715         ldfile_set_output_arch.
1716         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1717         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
1718         * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
1719         * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1720         * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
1721         * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1722         * ldgram.y: Adjust ldfile_set_output_arch call.
1723         * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1724         * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
1725         * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
1726         * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
1727         * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
1728         * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1729         * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1731 2004-01-02  Bernardo Innocenti  <bernie@develer.com>
1733         * configure.tgt: Add m68k-uClinux target.
1735 For older changes see ChangeLog-0203
1737 Local Variables:
1738 mode: change-log
1739 left-margin: 8
1740 fill-column: 74
1741 version-control: never
1742 End: