* configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
[binutils.git] / ld / ChangeLog
blobe593d01dff81f7fa0e8f497979e432a6f48b9464
1 2005-02-08  Richard Sandiford  <rsandifo@redhat.com>
3         * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
4         to include o32 and n64 emulations.
5         (mips64*-*-linux-gnu*): Likewise.
7 2005-02-08  Hans-Peter Nilsson  <hp@axis.com>
9         * ldmain.c (warning_callback, warning_find_reloc): Prepend
10         "warning: " to warning messages.
12 2005-02-04  Alan Modra  <amodra@bigpond.net.au>
14         * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
15         look up symbol for etree_provide here.
17 2005-02-02  Daniel Jacobowitz  <dan@codesourcery.com>
19         * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
21 2005-02-01  Edward Welbourne  <eddy@opera.com>
22             Nick Clifton  <nickc@redhat.com>
24         * ld.texinfo (Source Code Reference): New node describing how to
25         access linker script defined variables from source code.
27 2005-02-01  Alan Modra  <amodra@bigpond.net.au>
29         * ld.texinfo: Clarify --as-needed operation.
31 2005-01-31  Andrew Cagney  <cagney@gnu.org>
33         * configure: Regenerate to track ../gettext.m4.
35 2005-01-31  Nick Clifton  <nickc@redhat.com>
37         * ldver.c (ldversion): Bump reported copyright date to 2005.
39 2005-01-31  Nick Clifton  <nickc@redhat.com>
41         * configure.tgt: Remove obsolete targets m68k-lynxos and
42         sparc-lynxos.
44 2005-01-28  Julian Brown  <julian@codesourcery.com>
46         * emultempl/armelf.em (fix_v4bx): New variable.
47         (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
48         value to bfd.
49         (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
50         (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
51         (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
52         (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX. 
53         * NEWS: Mention --fix-v4bx.
54         * ld.texinfo: Document --fix-v4bx.
56 2005-01-25  Mark Mitchell  <mark@codesourcery.com>
58         * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
59         as to include .ARM.exidx$${Base,Limit}.
60         * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
61         Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
62         Put .init_array, .fini_array, etc. into the read-only data
63         segment. 
64         
65 2005-01-25  Alan Modra  <amodra@bigpond.net.au>
67         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
68         (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
69         only needed by an as-needed lib that didn't get linked.
71 2005-01-23  Alan Modra  <amodra@bigpond.net.au>
73         * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
74         __DTOR_LIST__ description.
76 2005-01-23  Alan Modra  <amodra@bigpond.net.au>
78         * ld.texinfo (Location Counter <dot outside sections>): Document
79         effects of orphan section placement, and ". = ." workaround.
80         * Makefile.in: Regenerate.
82 2005-01-22  Richard Sandiford  <rsandifo@redhat.com>
84         * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
85         * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
87 2005-01-21  Jakub Jelinek  <jakub@redhat.com>
89         * ldgram.y (AS_NEEDED): New token.
90         (input_list): Handle AS_NEEDED ( input_list ).
91         * ldlex.l (AS_NEEDED): Add.
92         * ld.texinfo: Document AS_NEEDED ().
93         * NEWS: Mention AS_NEEDED ().
95 2005-01-21  Ben Elliston  <bje@au.ibm.com>
97         * ldlang.c (lang_reasonable_defaults): Remove.
98         (lang_process): Don't call lang_reasonable_defaults.
100         * ldexp.c (exp_assop): Remove #if 0'd code.
101         (exp_print_tree): Likewise.
102         * ldlang.c (lang_memory_region_lookup): Likewise.
103         (open_output): Likewise.
104         (lang_do_assignments_1): Likewise.
105         (lang_place_orphans): Likewise.
106         (lang_enter_output_section_statement): Likewise.
107         (lang_reasonable_defaults): Likewise.
108         * ldlang.h (struct lang_input_statement_struct): Likewise.
109         * mri.c (mri_draw_tree): Likewise.
110         (mri_load): Likewise.
111         * pe-dll.c (generate_reloc): Likewise.
112         (make_import_fixup_entry): Likewise.
113         (pe_as16): Likewise.
114         * emultempl/beos.em (set_pe_subsystem): Likewise.
115         * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
116         * emultempl/pe.em: Likewise.
117         * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
119 2005-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
121         * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
122         (earmelfb_linux_eabi.c): New target.
123         * Makefile.in: Regenerated.
124         * configure.tgt (arm*b-*-linux-gnueabi): New target.
125         * emulparams/armelfb_linux_eabi.sh: New file.
127 2005-01-20  Nick Hudson  <skrll@netbsd.org>
129         PR ld/676
130         * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
131         Handle bfd_elf32_hppa_nbsd_vec.
133 2005-01-19  Richard Sandiford  <rsandifo@redhat.com>
135         * ldmain.h (ld_sysroot): Change type to a constant string.
136         * ldmain.c (ld_sysroot): Likewise.
137         (get_relative_sysroot, get_sysroot): New functions, adding command-line
138         support for changing the sysroot.
139         (main): Call the new functions.
140         * lexsup.c (OPTION_SYSROOT): New.
141         (ld_options): Add --sysroot.
142         (parse_args): Add a dummy handler for it.
143         * ld.texinfo (--sysroot): Document.
144         * NEWS: Mention the new --sysroot option.
146 2005-01-18  Alan Modra  <amodra@bigpond.net.au>
148         * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
149         (lang_place_orphans): Don't abort on just_syms_flag, instead call
150         bfd_link_just_syms.
152 2005-01-16  Danny Smith  <dannysmith@users.sourceforge.net>
154         * defilep.y (def_name, def_library): Combine into...
155         (def_image_name): New function.  Strip name to basename,
156         with warning.
158 2005-01-12  Mark Kettenis  <kettenis@gnu.org>
160         * configure.in: Be sure to invoke config.sub using the shell.
161         * configure: Regenerate.
163 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
165         * configure.host: Correct sed patterns for last change.
167 2005-01-10  Nick Clifton  <nickc@redhat.com>
169         PR binutils/609
170         * ldmisc.c (vfinfo): Add an extra argument: is_warning.  Use this
171         to determine whether config.make_executable should be set to FALSE in
172         conjunction with config.fatal_warnings.
173         (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
174         (einfo): Pass TRUE as the extra argument.
176 2005-01-10  Greg Schaffer  <gschafer@zip.com.au>
178         * configure.host (linux targets): Use "${CC} -dumpspecs" instead
179         of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
180         (ia64-*-aix): Delete - this target is obsolete, and would be
181         broken by this patch.
183 2005-01-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
185         * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
186         (sparc64-sun-solaris2*): New host.
188 2005-01-06  Paul Brook  <paul@codesourcery.com>
190         * Makefie.am: Add earmelf_vxworks.
191         * Makefile.in: Regenerate.
192         * configure.tgt: Make arm-*-vxworks a separate case.
193         * emulparams/armelf_vxworks.sh: New function.
195 2005-01-06  Alan Modra  <amodra@bigpond.net.au>
197         * emultempl/ppc64elf.em (no_multi_toc): New var.
198         (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
199         (OPTION_NO_MULTI_TOC): Define.
200         (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
201         (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
203 2005-01-05  Nick Clifton  <nickc@redhat.com>
205         PR binutils/614
206         * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
207         Standard's specification for parsable error messages.
209 2005-01-04  Paul Brook  <paul@codesourcery.com>
211         * Makefile.am: Correct dependency for earmsymbian.c.
212         * Makefile.in: Regenerate.
214 2004-12-28  Danny Smith  <dannysmith@users.sourceforge.net>
216         * emultempl/pe.em (set_pe_subsystem): Change second arg to
217         lang_add_entry to FALSE.
219 2004-12-23  Nick Clifton  <nickc@redhat.com>
221         PR 600
222         * emulparams/shelf.sh (.stack): Increase stack start address to
223         0x300000.
225 2004-12-20  Nick Clifton  <nickc@redhat.com>
227         * ldmain.c (main): Issue an error message if -static and -shared
228         are used together.
230 2004-12-17  Jakub Jelinek  <jakub@redhat.com>
232         * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
233         * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
234         * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
235         address space at DATA_SEGMENT_ALIGN.  Fix computation of expected
236         PT_GNU_RELRO segment end.
238 2004-12-14  P.J. Darcy  <darcypj@us.ibm.com>
240         * configure.tgt: Add s390x-ibm-tpf support.
242 2004-12-16  Martin Kögler  <mkoegler@auto.tuwien.ac.at>
244         * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
245         BFD.
247 2004-12-07  Ben Elliston  <bje@gnu.org>
249         * ldemul.h: Forward declare struct option.
251 2004-12-01  Danny Smith  <dannysmith@users.sourceforge.net>
253         * scripttempl/pe.sc (.data): Add .jcr subsection.
255 2004-11-30  Paul Brook  <paul@codesourcery.com>
257         * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
259 2004-11-30  Tero Niemela  <tero_niemela@yahoo.com>
261         * Makefile.am: Change LOCALEDIR to $(datadir)/share.
262         * Makefile.in: Regenerate.
264 2004-11-26  Melissa Mears  <asterisk@graces.dricas.com>
266         * emultempl/pe.em: Add --subsystem:xbox as well as
267         --subsystem:%d.
268         * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
269         and numeric subsystems.
271 2004-11-24  Alan Modra  <amodra@bigpond.net.au>
273         * ldexp.c (fold_name): Correct PR 338 fix.
275 2004-11-19  Mark Mitchell  <mark@codesourcery.com>
277         * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
278         (earmelf_linux_eabi.c): New target.
279         * configure.tgt (arm*-*-linux-gnueabi): Handle it.
280         * emulparams/armelf_linux_eabi.sh: New file.
281         * Makefile.in: Regenerated.
283 2004-11-19  Nick Clifton  <nickc@redhat.com>
285         PR 518
286         * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
287         LENGTH fields in the MEMORY command, to explicitly state that
288         symbols cannot be used in their expressions.
290 2004-11-19  Jon Beniston <jon@beniston.com>
292         * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
293         * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
294         * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
295         which return the length and origin of a memory.
296         * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
297         * NEWS: Mention support for ORIGIN and LENGTH operators.
299 2004-11-17  Daniel Jacobowitz  <dan@codesourcery.com>
301         * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
302         a dynamic object for stubs.
304 2004-11-04  Paul Brook  <paul@codesourcery.com>
306         * ld.texinfo: Document --default-imported-symver.
307         * ldmain.c (main): Set link_info.default_imported_symver.
308         * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
309         (ld_options): Add --default-imported-symver.
310         (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
312 2004-11-08  Inderpreet Singh   <inderpreetb@nioda.hcltech.com>
313             Vineet Sharma      <vineets@noida.hcltech.com>
315         * Makefile.am: Add entries for new maxq-coff target.
316         * Makefile.in: Regenerate.
317         * configure.tgt: Add support for maxq.
318         * emulparams/maxqcoff.sh: New File.
319         * scripttempl/maxqcoff.sc: New linker script for target maxq.
320         * NEWS: Mention the new target.
322 2004-11-08  Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
324         * testsuite/ld-scripts/weak.exp: Enable test on PE,
325         XFAIL non-i386 PE.
326         * testsuite/ld-undefined/weak-undef.exp: Enable test on PE,
327         XFAIL non-i386 PE.
328         * testsuite/lib/ld-lib.exp (is_pecoff_format): New.
330 2004-11-04  Daniel Jacobowitz  <dan@debian.org>
332         * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
333         (earmelf_oabi.c): Remove rule.
334         * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
335         * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
336         * Makefile.in: Regenerated.
338 2004-11-04  Hans-Peter Nilsson  <hp@axis.com>
340         * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
341         * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
342         (FINI_START): Ditto.
343         (INIT_END): Remove emitted "jump [sp+]".
344         (FINI_END): Ditto.
346 2004-11-04  Alan Modra  <amodra@bigpond.net.au>
348         * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
349         (no_opd_opt, no_toc_opt): New static vars.
350         (ppc_before_allocation): Don't edit opt if no_opd_opt.  Call
351         ppc64_elf_edit_toc.
352         (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
353         (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
354         (PARSE_AND_LIST_OPTIONS): Describe new options.
355         (PARSE_AND_LIST_ARGS_CASES): Handle them.
357 2004-10-27  Nick Clifton  <nickc@redhat.com>
359         * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
360         parameter to invocation of lang_section_start.
361         * emultempl/aix.em (_handle_option): Likewise.
363         * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
364         eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
365         * Makefile.in: Regenerate.
367 2004-10-26  Mark Mitchell  <mark@codesourcery.com>
369         * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
370         __exidx_{start,end} when not relocating.
372 2004-10-25  Mark Mitchell  <mark@codesourcery.com>
374         * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
375         * ldexp.h (segment_type): New type.
376         (segments): New variable.
377         * ldexp.c (segments): New variable.
378         (exp_print_token): Handle SEGMENT_START.
379         (fold_binary): Likewise.
380         * ldgram.y (SEGMENT_START): Declare it as a token.
381         (exp): Handle SEGMENT_START.
382         * ldlang.h (lang_address_statement_type): Add segment field.
383         (lang_section_start): Change prototype.
384         * ldlang.c (map_input_to_output_sections): Do not process section
385         assignments if a corresponding SEGMENT_START has already been
386         seen.
387         (lang_section_start): Add segment parameter.
388         * ldlex.l (SEGMENT_START): Add it.
389         * lexsup.c (seg_segment_start): New function.
390         (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
391         * ld.texinfo (SEGMENT_START): Document it.
392         * emulparams/armsymbian.sh (EMBEDDED): Set it.
393         * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
394         base addresses.  Do not map relocations.
395         * NEWS: Mention SEGMENT_START.
397 2004-10-26  Paul Brook  <paul@codesourcery.com>
399         * ld.texinfo: Document --default-symver.
400         * ldmain.c (main): Set link_info.create_default_symver.
401         * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
402         (ld_options): Add default-symver.
403         (parse_args): Handle OPTION_DEFAULT_SYMVER.
405 2004-10-24 Danny Smith  <dannysmith@users.sourceforge.net>
407         * pe-dll.c (process_def_file): Don't export all symbols by default if
408         building a position-independent executable.
410 2004-10-21  H.J. Lu  <hongjiu.lu@intel.com>
412         PR 463
413         * ldmain.c (reloc_overflow): Accept a pointer to struct
414         bfd_link_hash_entry. Report symbol location for relocation
415         overflow.
417 2004-10-21  H.J. Lu  <hongjiu.lu@intel.com>
419         * genscripts.sh (libpath.exp): Really generate for first
420         emulation only.
422 2004-10-19  Danny Smith  <dannysmith@users.sourceforge.net>
424         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
425         comparison and replacement of filenames.
427 2004-10-19  H.J. Lu  <hongjiu.lu@intel.com>
429         PR 459
430         * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
431         option on linker script as the one for linker script.
433 2004-10-16  Daniel Jacobowitz  <dan@debian.org>
435         * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
436         (check_excluded_libs): New.
437         (load_symbols): Call check_excluded_libs.
438         * ldlang.h (add_excluded_libs): New prototype.
439         * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
440         (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
441         (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
442         * ld.texinfo (Command Line Variables): Document --exclude-libs.
443         (Options Specific to i386 PE Targets): Remove --exclude-libs.
445 2004-10-15  Alan Modra  <amodra@bigpond.net.au>
447         * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
448         failing link script assert.
450         * ldctor.c (ldctor_add_set_entry): Fix comment typo.
452 2004-10-14  H.J. Lu  <hongjiu.lu@intel.com>
454         PR 445
455         * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
456         (SMALL_DATA_DTOR): Set.
457         * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
458         (SMALL_DATA_DTOR): Unset.
459         * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
460         after .data. If SMALL_DATA_DTOR is set, move .dtors after
461         .data.
463 2004-10-14  Alan Modra  <amodra@bigpond.net.au>
465         PR 63
466         * ldlang.h (lang_output_section_statement_type): Make "next" a
467         struct lang_output_section_statement_struct *.
468         (struct orphan_save): Move from elf32.em.  Add "name" and "flags".
469         (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
470         * ldlang.c (lang_output_section_find_1): Adjust for changed
471         output_section_statement "next".
472         (strip_excluded_output_sections): Likewise.
473         (lang_record_phdrs): Likewise.
474         (lang_output_section_find_by_flags): New function.
475         (output_prev_sec_find): Move from pe.em.  Adjust iterator.
476         (lang_insert_orphan): New function.  Tail end of elf32.em's
477         place_orphan merged with that from pe.em.  Allow bfd_section to
478         be placed first.  New heuristic for placing new output section
479         statement in existing script, and accompanying split of __start
480         symbol alignment into a separate assignment to dot.
481         (lang_add_section): Consistently use output->bfd_section rather than
482         an alias, section->output_section.
483         (map_input_to_output_sections): Rename overly long arg.  Move
484         initialization of data_statement output section to here..
485         (lang_check_section_addresses): ..from here.
486         (print_assignment): Correct printing of etree_assert.
487         (print_all_symbols): Don't bomb if userdata is NULL.
488         (IGNORE_SECTION): Rearrange.
489         * emultempl/elf32.em (output_rel_find): Adjust interator.
490         (output_prev_sec_find): Delete.
491         (struct orphan_save): Delete.
492         (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
493         flags without creating a duplicate output section statement.
494         Revise code holding history of various orphan section placements.
495         Allow orphan sections to place before script specified output
496         sections.  Call lang_output_section_find_by_flags when placement
497         by name fails.  Use lang_insert_orphan.
498         * emultempl/mmo.em (output_prev_sec_find): Delete.
499         (struct orphan_save): Delete.
500         (mmo_place_orphan): Revise code holding history of orphan placement.
501         Allow orphans to place before existing output sections.  Use
502         lang_insert_orphan.
503         * emultempl/pe.em (output_prev_sec_find): Delete.
504         (struct orphan_save): Delete.
505         (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
506         lang_insert_orphan.
508 2004-10-13  Mark Mitchell  <mark@codesourcery.com>
510         * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
511         loadable segment.
513 2004-10-13  Alan Modra  <amodra@bigpond.net.au>
515         PR 44
516         * ldcref.c (check_section_sym_xref): Delete.
517         (check_local_sym_xref): New function.
518         (check_nocrossrefs): Adjust call.
519         * emultempl/pe.em (struct orphan_save): Add os_tail.
520         (place_orphan): Backport assorted fixes from elf32.em.
522 2004-10-12  Bob Wilson  <bob.wilson@acm.org>
524         * emultempl/xtensaelf.em: Use ISO C90 formatting.
526 2004-10-11  Jakub Jelinek  <jakub@redhat.com>
528         * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
529         getline for portability.
531         * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
532         (gld${EMULATION_NAME}_parse_ld_so_conf,
533         gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
534         (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
536 2004-10-11  Alan Modra  <amodra@bigpond.net.au>
538         PR 423
539         * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
540         rejected when linking statically.
542 2004-10-08  Daniel Jacobowitz  <dan@debian.org>
544         * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
546 2004-10-07  Bob Wilson  <bob.wilson@acm.org>
548         * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
549         assembler-generated longcall sequences.  Describe new --size-opt
550         option.
551         * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
552         * emultempl/xtensaelf.em (remove_section,
553         replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
554         elf_xtensa_after_open): New.
555         (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
556         OPTION_NO_LITERAL_MOVEMENT): Define.
557         (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
558         (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
559         (PARSE_AND_LIST_OPTIONS): Add --size-opt.
560         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
561         OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
562         (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
563         * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
564         * Makefile.am (eelf32xtensa.c): Update dependencies.
565         * Makefile.in: Regenerate.
567 2004-10-07  Jeff Baker  <jbaker@qnx.com>
569         * lexsup.c: Handle --warn-shared-textrel option.
570         (ld_options): Restore alpha sorting of options.
571         * ldmain.c (main): Initialise warn_shared_info field to FALSE.
572         * ld.texinfo: Add documentation for --warn-shared-textrel.
573         * NEWS: Added mention of --warn-shared-textrel option.
575 2004-10-05  Tomer Levi  <Tomer.Levi@nsc.com>
577         * emultempl/crxelf.em (disable_relaxation): Add.
578         (crxelf_before_allocation): Enable --relax option by default.
579         (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
580         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
581         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
583 2004-10-04  H.J. Lu  <hongjiu.lu@intel.com>
585         * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
586         --sort-section name|alignment.
588         * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
589         --sort-section name|alignment.
591         * ld.h (sort_type): New enum.
592         (wildcard_spec): Change the type of `sorted' to sort_type.
594         * ldgram.y (SORT): Removed.
595         (SORT_BY_NAME): Added.
596         (SORT_BY_ALIGNMENT): Added.
597         (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
598         SORT_BY_ALIGNMENT.
599         (input_section_spec_no_keep): Updated `sorted'.
600         (statement): Replace SORT with SORT_BY_NAME.
602         * ldlang.c (compare_section): New function to compare 2
603         sections with different sorting schemes.
604         (wild_sort): Updated. Use compare_section.
605         (update_wild_statements): New function.
606         (lang_process): Call update_wild_statements before
607         map_input_to_output_sections.
609         * ldlex.l (SORT_BY_NAME): New.
610         (SORT_BY_ALIGNMENT): New.
611         (SORT): Return SORT_BY_NAME.
613         * ldmain.c (sort_section): New. Defined.
614         (main): Initialize it to none.
616         * lexsup.c (option_values): Add OPTION_SORT_SECTION.
617         (ld_options): Add an entry for OPTION_SORT_SECTION.
618         (parse_args): Handle OPTION_SORT_SECTION.
620         * mri.c (mri_draw_tree): Updated `sorted'.
622 2004-10-04  Jakub Jelinek  <jakub@redhat.com>
624         * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
625         * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
626         argument.
627         (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
628         and . as second argument.
629         (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
630         * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
631         (fold_binary): Add it here.  Insert padding to make relro_end
632         COMMONPAGESIZE bytes aligned.  For DATA_SEGMENT_ALIGN in
633         exp_dataseg_relro_adjust phase just use previously computed
634         exp_data_seg.base.
635         * ldlang.c (lang_size_sections): Set exp_data_seg.base for
636         relro_adjust here.  Call lang_size_sections_1 once more if there
637         was too big padding at DATA_SEGMENT_RELRO_END.
638         * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
640 2004-10-01  Paul Brook  <paul@codesourcery.com>
642         * emulparams/armelf.sh: Add unwinding table sections.
644 2004-09-30  Filip Navara  <navaraf@reactos.com>
646         * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
647         correct base address for position independant executables.
648         * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
649         executables as DLLs.
651 2004-09-30  Paul Brook  <paul@codesourcery.com>
653         * ld.texinfo: Document --target2=abs.
654         * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
656 2004-09-29  Nick Clifton  <nickc@redhat.com>
658         * scripttempl/xstormy16.sc: Only perform the assignments to the
659         ROM region when not performing a relocatable link.  The ROM region
660         does not start at address 0, but the sections will.
661         * Makefile.am: Fix linker script dependency for the generation of
662         eelf32xstormy16.c.
663         * Makefile.in: Regenerate.
665 2004-09-18  Filip Navara  <navaraf@reactos.com>
667         * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
668         emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
669         emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
670         TARGET_PAGE_SIZE.
671         * scripttempl/pe.sc: Make the virtual address and file offset synced if
672         the alignment is lower than the target page size.
674 2004-09-27  Filip Navara  <navaraf@reactos.com>
676         * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
677         def_file_parse to handle pe_def_file if NULL and prevent crash with
678         invalid .def files.
680 2004-09-27  Alan Modra  <amodra@bigpond.net.au>
682         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
683         --emit-stub-syms automatically when --emit-relocs.
685 2004-09-24  Paul Brook  <paul@codeosurcery.com>
687         * scripttempl/elf.sc: Keep .preinit_array, .init_array and
688         .fini_array sections.
690 2004-09-19  Andreas Schwab  <schwab@suse.de>
692         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
693         base so that relro end is suitably aligned.
695 2004-09-17  Paul Brook  <paul@codesourcery.com>
697         * ld.texinfo: Rename arm-specific section.  Document --target*
698         * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
699         * emulparams/armelf_linux.sh: Ditto.
700         * emulparams/armelf_nbsd.sh: Ditto.
701         * emultempl/armelf.em: Set default for TARGET2_TYPE.
702         (target2_type): New variable.
703         (arm_elf_before_allocation): Don't pass target1_type.
704         (arm_elf_create_output_section_statements): New function.
705         (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
706         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
707         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
708         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
709         * emultempl/armelf_oabi.em (_before_allocation): Remove extra
710         argument to bfd_elf32_arm_process_before_allocation.
712 2004-09-17  Alan Modra  <amodra@bigpond.net.au>
714         * ldexp.c (fold_name): Update u.undef.next refs.
715         * emultempl/pe.em: Likewise.
716         * emultempl/sunos.em: Likewise.
718 2004-09-17  Alan Modra  <amodra@bigpond.net.au>
720         * Makefile.am: Run "make dep-am".
721         * Makefile.in: Regenerate.
722         * config.in: Regenerate.
723         * configure: Regenerate.
724         * aclocal.m4: Regenerate.
725         * po/ld.pot: Regenerate.
727 2004-09-16  Tomer Levi  <Tomer.Levi@nsc.com>
729         * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
730         (.fini): Likewise.
731         (.jcr): Likewise.
733 2004-09-16  Alan Modra  <amodra@bigpond.net.au>
735         * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
736         to bfd_elf32_arm_process_before_allocation call.
738 2004-09-13  Paul Brook  <paul@codesourcery.com>
740         * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
741         * emultempl/armelf.em: Use TARGET1_IS_REL.  Add --target1-{rel,abs}.
743 2004-09-07  H.J. Lu  <hongjiu.lu@intel.com>
745         * configure: Regenerated with autconfig 2.13.
747 2004-09-07  Andreas Schwab  <schwab@suse.de>
749         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
750         alignment before adjusting DATA_SEGMENT_RELRO_END.
752 2004-09-06  Mark Mitchell  <mark@codesourcery.com>
754         * emulparams/armsymbian.sh: Use armbpabi script.
755         * scripttempl/armbpabi.sc: New script.
757 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
759         * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
760         (earmsymbian.c): New target.
761         * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
762         * Makefile.in: Regenerated.
763         * aclocal.m4: Likewise.
764         * configure: Likewise.
765         * emulparams/armsymbian.sh: New file.
767 2004-09-03  Tomer Levi  <Tomer.Levi@nsc.com>
769         * scripttempl/elf32crx.sc: Edit file with comments.
770         (.init): Add new section.
771         (.fini): Likewise.
772         (.ctor): Control the linkage order.
773         (.dtor): Likewise.
775 2004-08-27  Nick Clifton  <nickc@redhat.com>
777         * emultempl/pe.em (after_open): Do not assume that either bfd is
778         an archive.
780 2004-08-26  Alan Modra  <amodra@bigpond.net.au>
782         * ldlang.c (lang_init): Don't compare with TRUE.
784 2004-08-25  Dmitry Diky  <diwil@spec.ru>
786         * emulparams/msp430all.sh: Fix RAM sizes for all targets.
787         * scripttempl/elf32msp430.sc: Add .profiler section definition.
789 2004-08-24  H.J. Lu  <hongjiu.lu@intel.com>
791         * ldlang.c (wildcardp): Defined as a macro with strpbrk.
793 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
795         * configure.tgt (arm*-*-symbianelf*): New target.
796         (arm*-*-eabi*): Likewise.
798 2004-08-19  Jakub Jelinek  <jakub@redhat.com>
800         * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
801         (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
802         (OPTION_NON_OVERLAPPING_OPD): Define.
803         (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
804         --non-overlapping-opd option.
806 2004-08-18  Alan Modra  <amodra@bigpond.net.au>
808         PR 338
809         * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
810         was already on the undefs list.
812 2004-08-17  Alan Modra  <amodra@bigpond.net.au>
814         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
815         prefix the symbol field too.
817 2004-08-13  Alan Modra  <amodra@bigpond.net.au>
819         * ldmain.c (link_callbacks): Remove "error_handler".
820         * ldmisc.c: Include elf-bfd.h.
821         (vfinfo): Sort comment.  Handle %A.  Use %A instead of
822         bfd_get_section_indent.
823         (error_handler): Delete.
824         * ldmisc.h (error_handler): Delete declaration.
826 2004-08-10  Alan Modra  <amodra@bigpond.net.au>
828         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
829         ppc64_elf_restore_symbols.
831 2004-08-09  Alan Modra  <amodra@bigpond.net.au>
833         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
834         .toc is too large on relocatable linking.
836 2004-08-09  Alan Modra  <amodra@bigpond.net.au>
838         * emultempl/ppc64elf.em (ppc_after_open): Delete.
839         (LDEMUL_AFTER_OPEN): Don't define.
841 2004-08-02  Stephane Carrez  <stcarrez@nerim.fr>
843         * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
845 2004-08-01  Stephane Carrez  <stcarrez@nerim.fr>
847         * scripttempl/elfm68hc12.sc: Align text, rodata and data section
848         on power of 2.
850 2004-07-27  Jason Thorpe  <thorpej@wasabisystems.com>
852         * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
854 2004-07-26  Dmitry Diky  <diwil@spec.ru>
856         * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
857         msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
858         msp430xG439.
859         * configure.tgt: Likewise.
860         * emulparams/msp430all.sh: Likewise.
861         * Makefile.in: Regenerate.
863 2004-07-23  Nick Clifton  <nickc@redhat.com>
865         * emultempl/elf32.em (_place_orphan): Use an already existing
866         section name if that section does not have any flags set.
868 2004-07-21  H.J. Lu  <hongjiu.lu@intel.com>
870         * ldlang.c (already_linked_hash_entry): Removed.
871         (already_linked): Likewise.
872         (already_linked_table): Likewise.
873         (section_already_linked): Call bfd_section_already_linked.
874         (lang_process): Replace already_linked_table_init with
875         bfd_section_already_linked_table_init and check return. Replace
876         already_linked_table_free with bfd_section_already_linked_table_free.
878 2004-07-21  Nick Clifton  <nickc@redhat.com>
880         * ldlang.c (init_os): Make sure that the newly allocated userdata
881         structure is zeroed out.
883 2004-07-19  H.J. Lu  <hongjiu.lu@intel.com>
885         * NEWS: Mention the new --add-needed/--no-add-needed and
886         --as-needed/--no-as-needed options.
888 2004-07-19  H.J. Lu  <hongjiu.lu@intel.com>
890         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
891         check the add_needed field.
892         (dt_needed): New struct.
893         (gld${EMULATION_NAME}_try_needed): Change the first argument
894         to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
895         bit in the file where the DT_NEEDED entry comes from.
896         (gld${EMULATION_NAME}_search_needed): Change the second
897         argument to a pointer to struct dt_needed.
898         (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
899         (gld${EMULATION_NAME}_after_open): Likewise.
901         * ld.texinfo: Add --add-needed document.
902         * ldlang.c (new_afile): Set p->add_needed.
903         * ldlang.h (lang_input_statement_type): Add add_needed field.
904         * ldmain.h (add_needed): Declare.
905         * ldmain.c (add_needed): New global var.
906         * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
907         OPTION_NO_ADD_NEEDED.
908         (ld_options): Likewise.
909         (parse_args): Handle them.
911 2004-07-13  Christof Petig  <christof@petig-baender.de>
913         * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
914         for endian-ness of extracted addend.
916 2004-07-13  Danny Smith  <dannysmith@usesr.sourceforge.net>
918         * pe-dll.c (auto_export):  Filter on just the import prefix,
919         "_imp_", not "_imp__".
921 2004-07-09  Nick Clifton  <nickc@redhat.com>
923         * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
925 2004-07-06  Tomer Levi  <Tomer.Levi@nsc.com>
927         * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
928         (eelf32crx.c): New target.
929         * Makefile.in: Regenerate.
930         * configure.tgt: Handle crx-*-elf*.
931         * emulparams/elf32crx.sh: New file.
932         * emultempl/crxelf.em: New file.
933         * scripttempl/elf32crx.sc: New file.
934         * NEWS: Mention new target.
936 2004-07-06  Nick Clifton  <nickc@redhat.com>
938         * Makefile.am: Add eshlsymbian.c.
939         * Makefile.in: Regenerate.
940         * configure.tgt: Add sh*-symbian-elf target.
941         * emulparams/shlsymbian.sh: New file.  Configure the
942         sh-symbian-elf linker scripts.
943         * scripttemp/elf32sh-symbian.sc: New file.  Linker script
944         template for the sh-symbian-elf target.
946 2004-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
948         * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
949         * emulparams/hppalinux.sh: Likewise.
950         * scripttempl/elf.sc: Place .plt just before .got when .plt is in
951         data segment and PLT_BEFORE_GOT is defined.
953 2004-07-03  Aaron W. LaFramboise  <aaron98wiridge9@aaronwl.com>
955         * ld.texinfo (WIN32): Document PE weak symbols.
957 2004-07-02  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
959         * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
961 2004-07-01  H.J. Lu  <hongjiu.lu@intel.com>
963         * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
964         the section.
966 2004-06-29  Alan Modra  <amodra@bigpond.net.au>
968         * ldlang.c (lang_reset_memory_regions): Save last relax pass section
969         size in rawsize.
971 2004-06-24  Alan Modra  <amodra@bigpond.net.au>
973         * ldlang.c (print_output_section_statement): Don't print size before
974         relaxation.
975         (IGNORE_SECTION): Remove bfd arg.  Update all callers.
977         * ldexp.c (fold_name): .. See below.
978         * ldlang.c (section_already_linked, print_output_section_statement,
979         print_input_section, insert_pad, size_input_section,
980         lang_check_section_addresses, lang_size_sections_1,
981         lang_size_sections, lang_do_assignments_1, lang_set_startof,
982         lang_one_common, lang_reset_memory_regions, lang_process,
983         lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
984         * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
985         * pe-dll.c (process_def_file, generate_reloc): ..
986         * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
987         gld${EMULATION_NAME}_before_allocation): ..
988         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
989         * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
990         sh64_elf_${EMULATION_NAME}_after_allocation): ..
991         * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
992         * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
993         ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
994         "size" instead of "_raw_size" and "_cooked_size".  Expand
995         bfd_section_size macro invocations.
997 2004-06-22  Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
999         * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
1000         ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
1001         ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
1002         ___crt_xt_end__.
1003         (.tls): Define ___tls_start__ and ___tls_end__.
1005 2004-06-21  Alexandre Oliva  <aoliva@redhat.com>
1007         * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
1009 2004-06-18  Adam Nemet  <anemet@lnxw.com>
1011         * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
1012         * configure: Regenerate.
1014 2004-06-15  Jakub Jelinek  <jakub@redhat.com>
1016         * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
1017         .gcc_except_table output sections lost accidentally with
1018         -z relro patch.
1020 2004-06-15  Alan Modra  <amodra@bigpond.net.au>
1022         * ldwrite.c (build_link_order): Use bfd_get_section_size
1023         instead of bfd_get_section_size_before_reloc or _raw_size.
1024         * pe-dll.c (process_def_file): Likewise.
1026 2004-06-14  Alan Modra  <amodra@bigpond.net.au>
1028         From Richard Wirth <r.wirth@wirthware.de>
1029         * ldlang.c (lang_finish): Don't free lang_definedness_table.
1031 2004-05-29  Alan Modra  <amodra@bigpond.net.au>
1033         * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
1034         (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
1036 2004-05-28  Andrew Stubbs <andrew.stubbs@superh.com>
1038         * testsuite/ld-sh/arch/arch.exp: New test script.
1039         * testsuite/ld-sh/arch/arch_expected.txt: New file.
1040         * testsuite/ld-sh/arch/sh.s: New file.
1041         * testsuite/ld-sh/arch/sh2.s: New file.
1042         * testsuite/ld-sh/arch/sh-dsp.s: New file.
1043         * testsuite/ld-sh/arch/sh2e.s: New file.
1044         * testsuite/ld-sh/arch/sh3-nommu.s: New file.
1045         * testsuite/ld-sh/arch/sh3.s: New file.
1046         * testsuite/ld-sh/arch/sh3-dsp.s: New file.
1047         * testsuite/ld-sh/arch/sh3e.s: New file.
1048         * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
1049         * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
1050         * testsuite/ld-sh/arch/sh4.s: New file.
1051         * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
1052         * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
1053         * testsuite/ld-sh/arch/sh4a.s: New file.
1055 2004-05-28  Alan Modra  <amodra@bigpond.net.au>
1057         * ldlang.c: Formatting.  Wrap long lines, expand bfd_get_section_flags
1058         throughout file.
1059         * lexsup.c: Formatting.  Wrap long lines.
1060         * ldwrite.c: Update copyright date.
1062         * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
1063         (output_section_callback): Nor SEC_KEEP here.
1064         (gc_section_callback): Twiddle SEC_EXCLUDE here.
1065         (lang_gc_wild): Delete.  Fold into..
1066         (lang_gc_sections_1): ..here.  Only call bfd_gc_sections when garbage
1067         collecting.
1068         (lang_process): Always call lang_gc_sections.
1069         (lang_place_orphans): Handle SEC_EXCLUDE sections.
1070         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
1071         SEC_EXCLUDE code.
1073 2004-05-26  H.J. Lu  <hongjiu.lu@intel.com>
1075         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
1076         SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
1077         * ldlang.c (lang_add_section): Likewise.
1079 2004-05-26  Alan Modra  <amodra@bigpond.net.au>
1081         * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
1082         sections when doing a final link.  Clear SEC_EXCLUDE when doing
1083         a relocable link, except for SEC_DEBUGGING sections.
1084         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
1085         same condition here to drop SEC_EXCLUDE orphan sections.
1087 2004-05-25  Alan Modra  <amodra@bigpond.net.au>
1089         * ldlang.c (lang_process): Call bfd_merge_sections later, and
1090         only when not a relocatable link.
1091         (print_input_section): Handle SEC_EXCLUDE sections.
1092         (size_input_section): Don't update dot on SEC_EXCLUDE sections.
1093         (lang_do_assignments_1): Likewise.
1094         * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
1095         * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
1096         * emultempl/hppaelf.em (build_section_lists): Likewise.
1097         * emultempl/ppc64elf.em (build_toc_list): Likewise.
1098         (build_section_lists): Likewise.
1100 2004-05-23  Andreas Schwab  <schwab@suse.de>
1102         * ld.texinfo (Options): Fix typo in last change.
1104 2004-05-21  Andy Chittenden  <achittenden@bluearc.com>
1106         * ld.h (ld_config_type): Add new field: hash_table_size.
1107         * ldmain.c: Initialise the new field to zero.  If it is non-zero
1108         after parsing the linker's command line call
1109         bfd_hash_set_default_size.
1110         * lexsup.c (option_values): Add OPTION_HASH_SIZE.
1111         (ld_options): Add hash-size.
1112         (parse_args): Parse --hash-size option.  Allow
1113         --reduce-memory-overheads to set the default hash table size as
1114         well.
1115         * ld.texinfo: Document the new switch.  Also mention that
1116         --reduce-memory-overheads can affect the hash table size.
1117         * NEWS: Mention the new feature.
1119 2004-05-19  J"orn Rennecke <joern.rennecke@superh.com>
1121         * NEWS: Mention new linker map file generation and the
1122         --reduce-memory-overheads option.
1123         * ld.texinfo: Document --reduce-memory-overheads option.
1124         * ld.h (map_symbol_def): New struct.
1125         (struct user_section_struct, section_userdata_type): Rename to:
1126         (struct lean_user_section_struct, lean_section_userdata_type).
1127         (struct fat_user_section_struct, fat_section_userdata_type): New.
1128         (SECTION_USERDATA_SIZE): Define.
1129         (args_type): New member reduce_memory_overheads.
1130         * ldlang.c (map_obstack): New static variable.
1131         (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
1132         (lang_map): Unless command_line.reduce_memory_overheads is set,
1133         initialize lists of defined symbols for each section.
1134         (print_input_section): Unless command_line.reduce_memory_overheads
1135         is set, use print_all_symbols.
1136         (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
1137         * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
1138         * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
1139         (ld_options): Add entry for --reduce-memory-overheads.
1140         (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
1142 2004-05-19  Jakub Jelinek  <jakub@redhat.com>
1144         * ldgram.y (sect_constraint): New.
1145         (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1146         (section): Add sect_constraint.  Pass additional argument
1147         to lang_enter_output_section_statement.
1148         * mri.c (mri_draw_tree): Pass additional argument to
1149         lang_enter_output_section_statement.
1150         * emultempl/pe.em (place_orphan): Likewise.
1151         (output_prev_sec_find): Disregard output section statements with
1152         constraint == -1.
1153         * emultempl/mmo.em (output_prev_sec_find): Likewise.
1154         (mmo_place_orphan): Pass additional argument to
1155         lang_enter_output_section_statement.
1156         * emultempl/elf32.em (output_prev_sec_find): Disregard output section
1157         statements with constraint == -1.
1158         (place_orphan): Pass additional argument to
1159         lang_enter_output_section_statement.
1160         * ldlang.c (lang_enter_overlay_section): Likewise.
1161         (lang_output_section_find_1): New.
1162         (lang_output_section_find): Use it.
1163         (lang_output_section_statement_lookup_1): New.
1164         (lang_output_section_statement_lookup): Use it.
1165         (check_section_callback, check_input_sections): New.
1166         (map_input_to_output_sections): Check if all input sections
1167         are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
1168         (strip_excluded_output_sections): Disregard output section statements
1169         with constraint == -1.
1170         (lang_record_phdrs): Likewise.
1171         (lang_enter_output_section_statement): Add constraint argument.
1172         Use lang_output_section_statement_lookup_1.
1173         * ldlang.h (lang_output_section_statement_type): Add constraint
1174         and all_input_readonly fields.
1175         (lang_enter_output_section_statement): Adjust prototype.
1176         * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1177         * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
1178         segment if all input sections are readonly.
1180 2004-05-19  Adam Nemet  <anemet@lnxw.com>
1182         * scripttempl/i386lynx.sc: Remove file.
1184 2004-05-17  Bob Wilson  <bob.wilson@acm.org>
1186         * ld.texinfo (Output Section Address): Correct subsection name.
1188 2004-05-17  Adam Nemet  <anemet@lnxw.com>
1190         * configure.tgt (powerpc-*-lynxos* case): New case.
1191         * configure.host (i[3-7]86-*-lynxos* case): Remove case.
1192         * emulparams/ppclynx.sh: New file.
1193         * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
1194         * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
1195         (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
1196         (eppclynx.c): New rule.
1197         * Makefile.in: Regenerate.
1199 2004-05-13  Joel Sherrill <joel@oarcorp.com>
1201         * configure.tgt (or32-*-rtems*): Switch to elf and
1202         support versioned targets.
1204 2004-05-13  Nick Clifton  <nickc@redhat.com>
1206         * po/fr.po: Updated French translation.
1208 2004-05-11  Jakub Jelinek  <jakub@redhat.com>
1210         * genscripts.sh: Generate -z combreloc -z now -z relro scripts
1211         for binaries, -shared and -pie.
1212         * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
1213         * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
1214         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
1215         (OTHER_RELRO_SECTIONS): ... this.
1216         * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
1217         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1218         -z relro and -z norelro.
1219         (gld${EMULATION_NAME}_list_options): Add it to usage.
1220         (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
1221         -z relro scripts when appropriate.
1222         * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
1223         Create separate .got.plt section if SEPARATE_GOTPLT.
1224         Move sections which are only written during relocation handling
1225         to the beginning of RW segment.  If NO_SMALL_DATA, move .got
1226         before .data.  Add DATA_SEGMENT_RELRO_END directive.
1227         Include OTHER_RELRO_SECTIONS.
1228         * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
1229         * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
1230         (fold_unary): Likewise.
1231         (fold_binary): Handle -z relro.
1232         * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
1233         exp_dataseg_relro_adjust phases.  Add relro_end field.
1234         * ldmain.c (main): Initialize link_info.relro to FALSE.
1235         * ldlang.c (lang_size_sections): Handle -z relro.
1237 2004-05-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1239         * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1241 2004-05-07  J"orn Rennecke <joern.rennecke@superh.com>
1243         * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1244         before printing it with %W.
1246 2004-05-07  Brian Ford  <ford@vss.fsi.com>
1247             DJ Delorie  <dj@redhat.com>
1249         * emultempl/pe.em (real_flags): New static.
1250         (OPTION_LARGE_ADDRESS_AWARE): New define.
1251         (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1252         (gld_${EMULATION_NAME}_list_options): Likewise.
1253         (gld${EMULATION_NAME}_handle_option): Likewise.
1254         (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1255         * ld.texinfo: Document it.
1256         * NEWS: Mention it.
1258 2004-05-07  Brian Ford  <ford@vss.fsi.com>
1260         * NEWS: Mention DWARF 2 support for i386pe.
1262 2004-05-05  Alexandre Oliva  <aoliva@redhat.com>
1264         * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1265         elf32-frvfdpic.
1267 2004-04-30  Alan Modra  <amodra@bigpond.net.au>
1269         * ldlang.c (unique_section_p): Pass section parm, return true on
1270         group sections.
1271         (output_section_callback): Adjust.
1272         * ldlang.h (unique_section_p): Update prototype.
1273         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1275 2004-04-30  Eric Botcazou  <ebotcazou@act-europe.fr>
1277         * ld.texinfo (--gc-sections): Remove restriction for
1278         dynamic linking.
1280 2004-04-29  Brian Ford  <ford@vss.fsi.com>
1282         * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1283         for DWARF 2/3.  Update stab section's syntax.
1285 2004-04-29  Alan Modra  <amodra@bigpond.net.au>
1287         * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1288         (fill_edata): Correct pointer arithmetic.
1290 2004-04-21  Chris Demetriou  <cgd@broadcom.com>
1292         * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1293         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1294         * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1295         (EXTRA_EM_FILE): Use mipsecoff.em
1296         * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1297         (EXTRA_EM_FILE): Use mipsecoff.em
1298         * emultempl/mipsecoff.em: Restructure to be included as an
1299         extra emulation file.
1300         (check_sections, gld${EMULATION_NAME}_after_open)
1301         (gld${EMULATION_NAME}_after_allocation)
1302         (gld${EMULATION_NAME}_get_script)
1303         (ld_${EMULATION_NAME}_emulation): Remove
1304         (gld${EMULATION_NAME}_before_parse): Rename to...
1305         (mipsecoff_before_parse): This.
1306         (LDEMUL_BEFORE_PARSE): Define.
1307         * emultempl/mipself.em: Remove file.
1308         * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1309         (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1310         these symbols.
1311         * Makefile.am: Remove dependencies on emultempl/mipself.em.
1312         * Makefile.in: Regenerate.
1314 2004-04-21      Anil Paranjpe   <anilp1@kpitcummins.com>
1316         * ld.texinfo (synthesizing on H8/300): Information about linker
1317         relaxation support for bit manipulation instructions and system
1318         control instructions is added.
1320 2004-04-21  Hans-Peter Nilsson  <hp@axis.com>
1322         * NEWS: Mention change in DEFINED semantics.
1324 2004-04-21  Eric Botcazou  <ebotcazou@act-europe.fr>
1326         * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1327         (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1328         (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1330 2004-04-21  Ben Elliston  <bje@au.ibm.com>
1332         * ld.texinfo (Simple Example): Add missing punctuation.
1334 2004-04-20  Chris Demetriou  <cgd@broadcom.com>
1336         * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1338 2004-04-19  Jakub Jelinek  <jakub@redhat.com>
1340         * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1341         specially.
1343 2004-04-18  Danny Smith  <dannysmith@users.sourceforge.net>
1345         * scriptempl/pe.sc:  Put numbered .ctors.* after .ctors
1346         with default priority. Likewise for dtors.
1348 2004-04-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
1350         * configure.host: Remove mips*-dec-bsd* target.
1351         * configure.tgt: Likewise.
1353 2004-04-08  Richard Sandiford  <rsandifo@redhat.com>
1355         * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1356         * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1357         * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1358         * emultempl/irix.em: New file.
1359         * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1360         dependencies.
1361         * Makefile.in: Regenerate.
1363 2004-04-01  Paul Brook  <paul@codesourcery.com>
1365         * emultempl/armelf.em (byteswap_code): Add.
1366         (arm_elf_before_allocation): Pass extra parameter.
1367         (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1368         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1369         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1370         * emultempl/armelf_oabi.em: Pass extra parameter.
1371         * ld.texinfo: Document --be8.
1373 2004-03-30  Stan Shebs  <shebs@apple.com>
1375         Remove long-obsolete MPW support.
1376         * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1377         * Makefile.am (mpw): Remove file-presynthesizing actions.
1378         * Makefile.in: Likewise.
1379         * ldfile.c (slash): Remove MPW case.
1380         * ldlex.l [MPW]: Remove unused definition.
1382 2004-03-30  Galit Heller  <Galit.Heller@nsc.com>
1384         * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1385         (eelf32cr16c.c): New target.
1386         * Makefile.in: Regenerate.
1387         * configure.tgt: Handle cr16c-*-elf*.
1388         * emulparams/elf32cr16c.sh: New file.
1389         * scripttempl/elfcr16c.sc: Likewise
1390         * NEWS: Mention support for new target.
1392 2004-03-30  Nick Clifton  <nickc@redhat.com>
1394         * po/sv.po: Updated Swedish translation.
1396 2004-03-27  Alan Modra  <amodra@bigpond.net.au>
1398         * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1399         * emultempl/hppaelf.em: Likewise.
1400         * emultempl/ppc64elf.em: Likewise.
1401         * emultempl/sh64elf.em: Likewise.
1403 2004-03-25  Alan Modra  <amodra@bigpond.net.au>
1405         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1406         size_dynamic_sections call.
1408 2004-03-23  Alan Modra  <amodra@bigpond.net.au>
1410         PR 51.
1411         * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1412         link_info.wrap_char.
1414 2004-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1416         * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1417         or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1419 2004-03-20  Alexandre Oliva  <aoliva@redhat.com>
1421         * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1423 2004-03-19  Alan Modra  <amodra@bigpond.net.au>
1425         * config.in: Regenerate.
1426         * po/ld.pot: Regenerate.
1428 2004-03-18  Alan Modra  <amodra@bigpond.net.au>
1430         * ld.texinfo: Add --as-needed doco.
1431         * ldmain.c (as_needed): New global var.
1432         * ldmain.h (as_needed): Declare.
1433         * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1434         OPTION_NO_AS_NEEDED.
1435         (ld_options): Likewise.
1436         (parse_args): Handle them.
1437         * ldlang.h (lang_input_statement_type): Add as_needed field.
1438         * ldlang.c (new_afile): Set p->as_needed.
1439         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1440         (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1441         (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1443         * ldlang.c (open_input_bfds): Remove useless cast.
1444         (lang_do_assignments_1): Likewise.
1445         (lang_for_each_input_section): Delete.
1447 2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1449         * configure.tgt: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff*.
1451 2004-03-08  Danny Smith  <dannysmith@users.sourceforge.net>
1453         * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1454         private when building implib.
1456 2004-03-05  Nathan Sidwell  <nathan@codesourcery.com>
1458         * ldlang.c (lang_add_section): Don't force SEC_LOAD on
1459         SEC_THREAD_LOCAL.
1460         (IGNORE_SECTION): Ignore .tbss sections too.
1461         (lang_size_sections_1): .tbss sections do not advance dot.
1463 2004-03-01  Andreas Schwab  <schwab@suse.de>
1465         * ld.texinfo (Options): Fix example for --wrap.
1467 2004-02-25  Danny Smith  <dannysmith@users.sourceforge.net>
1469         * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1470         not NULL.
1472 2004-02-23  Ian Lance Taylor  <ian@wasabisystems.com>
1474         * ldlang.c (lang_check): Use %P, not %E, in error message.
1476 2004-02-23  Nathan Sidwell  <nathan@codesourcery.com>
1478         * ldlang.h (struct lang_output_section_state): Change processed
1479         field's type.
1480         * ldexp.c (check, invalid): Remove.
1481         (fold_name): Move valid_p assignments. Create undefined symbol
1482         when needed. Directly exampine section's processd flag.
1483         * ldlang.c (lang_output_section_statement_lookup): Adjust
1484         processed field init.
1485         (lang_size_sections_1): Allow LOADADDR when determining section's
1486         VMA. Adjust error message. Fold data statement's expr.
1487         (lang_size_sections): Correctly increment lang_statement_iteration.
1489 2004-02-23  Alan Modra <amodra@bigpond.net.au>
1491         * ldexp.c (fold_tree): Follow indirect symbols.
1493 2004-02-20  Nathan Sidwell  <nathan@codesourcery.com>
1495         * ldgram.y (exp): Add two operand ALIGN.
1496         * ldexp.c (fold_binary): Add ALIGN_K case.
1497         * ld.texinfo (ALIGN): Document two operand version.
1499 2004-02-19  Nathan Sidwell  <nathan@codesourcery.com>
1501         * ldlang.c (map_input_to_output_sections): Initialize sections
1502         mentioned in a data statement expression.
1503         (lang_do_assignments_1): Add data statement's expression's
1504         section's vma.
1506 2004-02-18  Nathan Sidwell  <nathan@codesourcery.com>
1508         * ldgram.y (statement_anywhere): Add assert rule.
1509         * ldlang.c (exp_init_os): Add assert case.
1511 2004-02-14  Andrew Cagney  <cagney@redhat.com>
1513         * ldmain.c (remove_output): Call bfd_cache_close.
1515 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
1517         * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
1518         .MIPS.content* and .MIPS.events* sections.
1520 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
1522         * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
1523         .note.gnu.arm.ident to after allocated sections.  Mark its
1524         address as 0.
1526 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
1528         * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
1529         * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
1530         * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
1531         * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
1532         * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
1534 2004-02-05  Nick Clifton  <nickc@redhat.com>
1536         * emultempl/pe.em (_after_open): Fix typo in previous delta.
1538 2004-02-04  Danny Smith  <dannysmith@users.sourceforge.net>
1540         * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
1542 2004-01-28  Alan Modra  <amodra@bigpond.net.au>
1544         * genscripts.sh: Fix typo.
1546         * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1548 2004-01-24  Jakub Jelinek  <jakub@redhat.com>
1550         * emulparams/elf64_ia64.sh: Put .rela.opd into
1551         OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1553 2004-01-20  Danny Smith  <dannysmith@users.sourceforge.net>
1555         * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1556         * ld.texinfo (--omagic): Note that writable text section
1557         does not conform to published PE-COFF specs.
1558         (--enable-auto-import): Likewise.
1560 2004-01-15  Alan Modra  <amodra@bigpond.net.au>
1562         * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
1564 2004-01-13  Nick Clifton  <nickc@redhat.com>
1566         * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
1567         which if true will prevent the LMA region being used as a
1568         replacement for a default VMA region.
1569         (lang_leave_output_section_statement): Pass extra parameter.
1570         (lang_leave_overlay): Likewise.
1571         * ld.texinfo (Output Section LMA): Document that the LMA
1572         region can be set to the VMA region if no VMA has been set.
1573         * ldlang.h (struct lang_output_section_phdr_list): Create a
1574         typedef for this type.  Minor formatting fixes.
1576 2004-01-13  Nick Clifton  <nickc@redhat.com>
1578         * ldlang.c (lang_size_sections_1): If dot is advanced, then
1579         assume that the section should be allocated.
1581 2004-01-13  Alan Modra  <amodra@bigpond.net.au>
1583         * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1584         sections.  Do ignore SEC_NEVER_LOAD sections.
1585         (lang_size_sections_1): Remove test made redundant with the above.
1587 2004-01-09  Alan Modra  <amodra@bigpond.net.au>
1589         * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1590         program_header_size.
1592 2004-01-06  Alexandre Oliva  <aoliva@redhat.com>
1594         2003-11-28  Alexandre Oliva  <aoliva@redhat.com>
1595         * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1596         2003-11-05  Alexandre Oliva  <aoliva@redhat.com>
1597         * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1598         (MAXPAGESIZE): Set to 64Kb.
1599         (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1600         __ROFIXUP_END__.  Don't map .rofixup.got any more.
1601         * emulparams/elf32frv.sh (NOP): Set.
1602         2003-10-31  Alexandre Oliva  <aoliva@redhat.com>
1603         * configure.tgt: Add frv-*-*linux*.
1604         2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
1605         * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1606         (eelf32frvfd.c): New.
1607         * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1608         * emulparams/elf32frv.sh: Reverted previous two patches.
1609         * emulparams/elf32frvfd.sh: New.
1610         * Makefile.in: Rebuilt.
1611         2003-09-18  Alexandre Oliva  <aoliva@redhat.com>
1612         * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1613         .rofixup.got to .rofixup.
1614         2003-09-15  Alexandre Oliva  <aoliva@redhat.com>
1615         * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
1616         (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
1618 2004-01-05  Jakub Jelinek  <jakub@redhat.com>
1620         * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
1621         * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
1623 2004-01-03  Alan Modra  <amodra@bigpond.net.au>
1625         * ldexp.c (align_n): Make static.
1626         * ldexp.h (align_n): Delete declaration.
1627         * ldlang.h (lang_enter_output_section_statement): Remove
1628         block_value param.
1629         * ldlang.c (lang_enter_output_section_statement): Likewise.
1630         (TO_ADDR, TO_SIZE): Define.
1631         (opb_shift): New var.
1632         (init_opb): New function.
1633         (print_input_section): Call init_opb and use TO_ADDR.
1634         (print_data_statement, print_reloc_statement): Likewise.
1635         (print_padding_statement): Likewise.
1636         (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
1637         (lang_check_section_addresses): Likewise.
1638         (lang_size_sections_1): Likewise.
1639         (lang_do_assignments_1): Likewise.
1640         (lang_set_startof): Likewise.
1641         (lang_one_common): Likewise.  Combine power_of_two and opb_shift align.
1642         (lang_process): Call init_opb.
1643         (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
1644         (lang_enter_overlay_section): Adjust
1645         lang_enter_output_section_statement call.
1646         * ldgram.y: Likewise.
1647         * mri.c (mri_draw_tree): Likewise.
1648         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1649         * emultempl/mmo.em (mmo_place_orphan): Likewise.
1650         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1652         * ldfile.c (ldfile_set_output_arch): Add defarch param.
1653         * ldfile.h (ldfile_set_output_arch): Ditto.
1654         * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
1655         ldfile_set_output_arch.
1656         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1657         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
1658         * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
1659         * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1660         * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
1661         * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1662         * ldgram.y: Adjust ldfile_set_output_arch call.
1663         * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1664         * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
1665         * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
1666         * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
1667         * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
1668         * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1669         * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1671 2004-01-02  Bernardo Innocenti  <bernie@develer.com>
1673         * configure.tgt: Add m68k-uClinux target.
1675 For older changes see ChangeLog-0203
1677 Local Variables:
1678 mode: change-log
1679 left-margin: 8
1680 fill-column: 74
1681 version-control: never
1682 End: