PR binutils/614
[binutils.git] / ld / ChangeLog
blob8e5207b2922f9eba7683cac578facda667b3e734
1 2005-01-05  Nick Clifton  <nickc@redhat.com>
3         PR binutils/614
4         * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
5         Standard's specification for parsable error messages. 
7 2005-01-04  Paul Brook  <paul@codesourcery.com>
9         * Makefile.am: Correct dependency for earmsymbian.c.
10         * Makefile.in: Regenerate.
12 2004-12-28  Danny Smith  <dannysmith@users.sourceforge.net>
14         * emultempl/pe.em (set_pe_subsystem): Change second arg to
15         lang_add_entry to FALSE.
17 2004-12-23  Nick Clifton  <nickc@redhat.com>
19         PR 600
20         * emulparams/shelf.sh (.stack): Increase stack start address to
21         0x300000.
23 2004-12-20  Nick Clifton  <nickc@redhat.com>
25         * ldmain.c (main): Issue an error message if -static and -shared
26         are used together.
28 2004-12-17  Jakub Jelinek  <jakub@redhat.com>
30         * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
31         * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
32         * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
33         address space at DATA_SEGMENT_ALIGN.  Fix computation of expected
34         PT_GNU_RELRO segment end.
36 2004-12-14  P.J. Darcy  <darcypj@us.ibm.com>
38         * configure.tgt: Add s390x-ibm-tpf support.
40 2004-12-16  Martin Kögler  <mkoegler@auto.tuwien.ac.at>
42         * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
43         BFD.
45 2004-12-07  Ben Elliston  <bje@gnu.org>
47         * ldemul.h: Forward declare struct option.
49 2004-12-01  Danny Smith  <dannysmith@users.sourceforge.net>
51         * scripttempl/pe.sc (.data): Add .jcr subsection.
53 2004-11-30  Paul Brook  <paul@codesourcery.com>
55         * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
57 2004-11-30  Tero Niemela  <tero_niemela@yahoo.com>
59         * Makefile.am: Change LOCALEDIR to $(datadir)/share.
60         * Makefile.in: Regenerate.
62 2004-11-26  Melissa Mears  <asterisk@graces.dricas.com>
64         * emultempl/pe.em: Add --subsystem:xbox as well as
65         --subsystem:%d.
66         * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
67         and numeric subsystems.
69 2004-11-24  Alan Modra  <amodra@bigpond.net.au>
71         * ldexp.c (fold_name): Correct PR 338 fix.
73 2004-11-19  Mark Mitchell  <mark@codesourcery.com>
75         * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
76         (earmelf_linux_eabi.c): New target.
77         * configure.tgt (arm*-*-linux-gnueabi): Handle it.
78         * emulparams/armelf_linux_eabi.sh: New file.
79         * Makefile.in: Regenerated.
81 2004-11-19  Nick Clifton  <nickc@redhat.com>
83         PR 518
84         * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
85         LENGTH fields in the MEMORY command, to explicitly state that
86         symbols cannot be used in their expressions.
88 2004-11-19  Jon Beniston <jon@beniston.com>
90         * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
91         * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
92         * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions 
93         which return the length and origin of a memory.
94         * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
95         * NEWS: Mention support for ORIGIN and LENGTH operators.
97 2004-11-17  Daniel Jacobowitz  <dan@codesourcery.com>
99         * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
100         a dynamic object for stubs.
102 2004-11-04  Paul Brook  <paul@codesourcery.com>
104         * ld.texinfo: Document --default-imported-symver.
105         * ldmain.c (main): Set link_info.default_imported_symver.
106         * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
107         (ld_options): Add --default-imported-symver.
108         (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
110 2004-11-08  Inderpreet Singh   <inderpreetb@nioda.hcltech.com>
111             Vineet Sharma      <vineets@noida.hcltech.com>
113         * Makefile.am: Add entries for new maxq-coff target.
114         * Makefile.in: Regenerate.
115         * configure.tgt: Add support for maxq.
116         * emulparams/maxqcoff.sh: New File.
117         * scripttempl/maxqcoff.sc: New linker script for target maxq.
118         * NEWS: Mention the new target.
120 2004-11-08  Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
122         * testsuite/ld-scripts/weak.exp: Enable test on PE,
123         XFAIL non-i386 PE.
124         * testsuite/ld-undefined/weak-undef.exp: Enable test on PE,
125         XFAIL non-i386 PE.
126         * testsuite/lib/ld-lib.exp (is_pecoff_format): New.
128 2004-11-04  Daniel Jacobowitz  <dan@debian.org>
130         * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
131         (earmelf_oabi.c): Remove rule.
132         * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
133         * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
134         * Makefile.in: Regenerated.
136 2004-11-04  Hans-Peter Nilsson  <hp@axis.com>
138         * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
139         * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
140         (FINI_START): Ditto.
141         (INIT_END): Remove emitted "jump [sp+]".
142         (FINI_END): Ditto.
144 2004-11-04  Alan Modra  <amodra@bigpond.net.au>
146         * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
147         (no_opd_opt, no_toc_opt): New static vars.
148         (ppc_before_allocation): Don't edit opt if no_opd_opt.  Call
149         ppc64_elf_edit_toc.
150         (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
151         (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
152         (PARSE_AND_LIST_OPTIONS): Describe new options.
153         (PARSE_AND_LIST_ARGS_CASES): Handle them.
155 2004-10-27  Nick Clifton  <nickc@redhat.com>
157         * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
158         parameter to invocation of lang_section_start.
159         * emultempl/aix.em (_handle_option): Likewise.
161         * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
162         eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
163         * Makefile.in: Regenerate.
165 2004-10-26  Mark Mitchell  <mark@codesourcery.com>
167         * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
168         __exidx_{start,end} when not relocating.
170 2004-10-25  Mark Mitchell  <mark@codesourcery.com>
172         * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
173         * ldexp.h (segment_type): New type.
174         (segments): New variable.
175         * ldexp.c (segments): New variable.
176         (exp_print_token): Handle SEGMENT_START.
177         (fold_binary): Likewise.
178         * ldgram.y (SEGMENT_START): Declare it as a token.
179         (exp): Handle SEGMENT_START.
180         * ldlang.h (lang_address_statement_type): Add segment field.
181         (lang_section_start): Change prototype.
182         * ldlang.c (map_input_to_output_sections): Do not process section
183         assignments if a corresponding SEGMENT_START has already been
184         seen.
185         (lang_section_start): Add segment parameter.
186         * ldlex.l (SEGMENT_START): Add it.
187         * lexsup.c (seg_segment_start): New function.
188         (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
189         * ld.texinfo (SEGMENT_START): Document it.
190         * emulparams/armsymbian.sh (EMBEDDED): Set it.
191         * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
192         base addresses.  Do not map relocations.
193         * NEWS: Mention SEGMENT_START.
195 2004-10-26  Paul Brook  <paul@codesourcery.com>
197         * ld.texinfo: Document --default-symver.
198         * ldmain.c (main): Set link_info.create_default_symver.
199         * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
200         (ld_options): Add default-symver.
201         (parse_args): Handle OPTION_DEFAULT_SYMVER.
203 2004-10-24 Danny Smith  <dannysmith@users.sourceforge.net>
205         * pe-dll.c (process_def_file): Don't export all symbols by default if
206         building a position-independent executable.
208 2004-10-21  H.J. Lu  <hongjiu.lu@intel.com>
210         PR 463
211         * ldmain.c (reloc_overflow): Accept a pointer to struct
212         bfd_link_hash_entry. Report symbol location for relocation
213         overflow.
215 2004-10-21  H.J. Lu  <hongjiu.lu@intel.com>
217         * genscripts.sh (libpath.exp): Really generate for first
218         emulation only.
220 2004-10-19  Danny Smith  <dannysmith@users.sourceforge.net>
222         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
223         comparison and replacement of filenames.
225 2004-10-19  H.J. Lu  <hongjiu.lu@intel.com>
227         PR 459
228         * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
229         option on linker script as the one for linker script.
231 2004-10-16  Daniel Jacobowitz  <dan@debian.org>
233         * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
234         (check_excluded_libs): New.
235         (load_symbols): Call check_excluded_libs.
236         * ldlang.h (add_excluded_libs): New prototype.
237         * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
238         (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
239         (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
240         * ld.texinfo (Command Line Variables): Document --exclude-libs.
241         (Options Specific to i386 PE Targets): Remove --exclude-libs.
243 2004-10-15  Alan Modra  <amodra@bigpond.net.au>
245         * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
246         failing link script assert.
248         * ldctor.c (ldctor_add_set_entry): Fix comment typo.
250 2004-10-14  H.J. Lu  <hongjiu.lu@intel.com>
252         PR 445
253         * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
254         (SMALL_DATA_DTOR): Set.
255         * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
256         (SMALL_DATA_DTOR): Unset.
257         * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
258         after .data. If SMALL_DATA_DTOR is set, move .dtors after
259         .data.
261 2004-10-14  Alan Modra  <amodra@bigpond.net.au>
263         PR 63
264         * ldlang.h (lang_output_section_statement_type): Make "next" a
265         struct lang_output_section_statement_struct *.
266         (struct orphan_save): Move from elf32.em.  Add "name" and "flags".
267         (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
268         * ldlang.c (lang_output_section_find_1): Adjust for changed
269         output_section_statement "next".
270         (strip_excluded_output_sections): Likewise.
271         (lang_record_phdrs): Likewise.
272         (lang_output_section_find_by_flags): New function.
273         (output_prev_sec_find): Move from pe.em.  Adjust iterator.
274         (lang_insert_orphan): New function.  Tail end of elf32.em's
275         place_orphan merged with that from pe.em.  Allow bfd_section to
276         be placed first.  New heuristic for placing new output section
277         statement in existing script, and accompanying split of __start
278         symbol alignment into a separate assignment to dot.
279         (lang_add_section): Consistently use output->bfd_section rather than
280         an alias, section->output_section.
281         (map_input_to_output_sections): Rename overly long arg.  Move
282         initialization of data_statement output section to here..
283         (lang_check_section_addresses): ..from here.
284         (print_assignment): Correct printing of etree_assert.
285         (print_all_symbols): Don't bomb if userdata is NULL.
286         (IGNORE_SECTION): Rearrange.
287         * emultempl/elf32.em (output_rel_find): Adjust interator.
288         (output_prev_sec_find): Delete.
289         (struct orphan_save): Delete.
290         (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
291         flags without creating a duplicate output section statement.
292         Revise code holding history of various orphan section placements.
293         Allow orphan sections to place before script specified output
294         sections.  Call lang_output_section_find_by_flags when placement
295         by name fails.  Use lang_insert_orphan.
296         * emultempl/mmo.em (output_prev_sec_find): Delete.
297         (struct orphan_save): Delete.
298         (mmo_place_orphan): Revise code holding history of orphan placement.
299         Allow orphans to place before existing output sections.  Use
300         lang_insert_orphan.
301         * emultempl/pe.em (output_prev_sec_find): Delete.
302         (struct orphan_save): Delete.
303         (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
304         lang_insert_orphan.
306 2004-10-13  Mark Mitchell  <mark@codesourcery.com>
308         * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
309         loadable segment.
311 2004-10-13  Alan Modra  <amodra@bigpond.net.au>
313         PR 44
314         * ldcref.c (check_section_sym_xref): Delete.
315         (check_local_sym_xref): New function.
316         (check_nocrossrefs): Adjust call.
317         * emultempl/pe.em (struct orphan_save): Add os_tail.
318         (place_orphan): Backport assorted fixes from elf32.em.
320 2004-10-12  Bob Wilson  <bob.wilson@acm.org>
322         * emultempl/xtensaelf.em: Use ISO C90 formatting.
324 2004-10-11  Jakub Jelinek  <jakub@redhat.com>
326         * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
327         getline for portability.
329         * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
330         (gld${EMULATION_NAME}_parse_ld_so_conf,
331         gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
332         (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
334 2004-10-11  Alan Modra  <amodra@bigpond.net.au>
336         PR 423
337         * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
338         rejected when linking statically.
340 2004-10-08  Daniel Jacobowitz  <dan@debian.org>
342         * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
344 2004-10-07  Bob Wilson  <bob.wilson@acm.org>
346         * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
347         assembler-generated longcall sequences.  Describe new --size-opt
348         option.
349         * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
350         * emultempl/xtensaelf.em (remove_section,
351         replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
352         elf_xtensa_after_open): New.
353         (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
354         OPTION_NO_LITERAL_MOVEMENT): Define.
355         (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
356         (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
357         (PARSE_AND_LIST_OPTIONS): Add --size-opt.
358         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
359         OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
360         (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
361         * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
362         * Makefile.am (eelf32xtensa.c): Update dependencies.
363         * Makefile.in: Regenerate.
365 2004-10-07  Jeff Baker  <jbaker@qnx.com>
367         * lexsup.c: Handle --warn-shared-textrel option.
368         (ld_options): Restore alpha sorting of options.
369         * ldmain.c (main): Initialise warn_shared_info field to FALSE.
370         * ld.texinfo: Add documentation for --warn-shared-textrel.
371         * NEWS: Added mention of --warn-shared-textrel option.
373 2004-10-05  Tomer Levi  <Tomer.Levi@nsc.com>
375         * emultempl/crxelf.em (disable_relaxation): Add.
376         (crxelf_before_allocation): Enable --relax option by default.
377         (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
378         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
379         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
381 2004-10-04  H.J. Lu  <hongjiu.lu@intel.com>
383         * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
384         --sort-section name|alignment.
386         * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
387         --sort-section name|alignment.
389         * ld.h (sort_type): New enum.
390         (wildcard_spec): Change the type of `sorted' to sort_type.
392         * ldgram.y (SORT): Removed.
393         (SORT_BY_NAME): Added.
394         (SORT_BY_ALIGNMENT): Added.
395         (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
396         SORT_BY_ALIGNMENT.
397         (input_section_spec_no_keep): Updated `sorted'.
398         (statement): Replace SORT with SORT_BY_NAME.
400         * ldlang.c (compare_section): New function to compare 2
401         sections with different sorting schemes.
402         (wild_sort): Updated. Use compare_section.
403         (update_wild_statements): New function.
404         (lang_process): Call update_wild_statements before
405         map_input_to_output_sections.
407         * ldlex.l (SORT_BY_NAME): New.
408         (SORT_BY_ALIGNMENT): New.
409         (SORT): Return SORT_BY_NAME.
411         * ldmain.c (sort_section): New. Defined.
412         (main): Initialize it to none.
414         * lexsup.c (option_values): Add OPTION_SORT_SECTION.
415         (ld_options): Add an entry for OPTION_SORT_SECTION.
416         (parse_args): Handle OPTION_SORT_SECTION.
418         * mri.c (mri_draw_tree): Updated `sorted'.
420 2004-10-04  Jakub Jelinek  <jakub@redhat.com>
422         * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
423         * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
424         argument.
425         (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
426         and . as second argument.
427         (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
428         * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
429         (fold_binary): Add it here.  Insert padding to make relro_end
430         COMMONPAGESIZE bytes aligned.  For DATA_SEGMENT_ALIGN in
431         exp_dataseg_relro_adjust phase just use previously computed
432         exp_data_seg.base.
433         * ldlang.c (lang_size_sections): Set exp_data_seg.base for
434         relro_adjust here.  Call lang_size_sections_1 once more if there
435         was too big padding at DATA_SEGMENT_RELRO_END.
436         * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
438 2004-10-01  Paul Brook  <paul@codesourcery.com>
440         * emulparams/armelf.sh: Add unwinding table sections.
442 2004-09-30  Filip Navara  <navaraf@reactos.com>
444         * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
445         correct base address for position independant executables.
446         * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
447         executables as DLLs.
449 2004-09-30  Paul Brook  <paul@codesourcery.com>
451         * ld.texinfo: Document --target2=abs.
452         * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
454 2004-09-29  Nick Clifton  <nickc@redhat.com>
456         * scripttempl/xstormy16.sc: Only perform the assignments to the
457         ROM region when not performing a relocatable link.  The ROM region
458         does not start at address 0, but the sections will.
459         * Makefile.am: Fix linker script dependency for the generation of
460         eelf32xstormy16.c.
461         * Makefile.in: Regenerate.
463 2004-09-18  Filip Navara  <navaraf@reactos.com>
465         * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
466         emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
467         emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
468         TARGET_PAGE_SIZE.
469         * scripttempl/pe.sc: Make the virtual address and file offset synced if
470         the alignment is lower than the target page size.
472 2004-09-27  Filip Navara  <navaraf@reactos.com>
474         * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
475         def_file_parse to handle pe_def_file if NULL and prevent crash with
476         invalid .def files.
478 2004-09-27  Alan Modra  <amodra@bigpond.net.au>
480         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
481         --emit-stub-syms automatically when --emit-relocs.
483 2004-09-24  Paul Brook  <paul@codeosurcery.com>
485         * scripttempl/elf.sc: Keep .preinit_array, .init_array and
486         .fini_array sections.
488 2004-09-19  Andreas Schwab  <schwab@suse.de>
490         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
491         base so that relro end is suitably aligned.
493 2004-09-17  Paul Brook  <paul@codesourcery.com>
495         * ld.texinfo: Rename arm-specific section.  Document --target*
496         * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
497         * emulparams/armelf_linux.sh: Ditto.
498         * emulparams/armelf_nbsd.sh: Ditto.
499         * emultempl/armelf.em: Set default for TARGET2_TYPE.
500         (target2_type): New variable.
501         (arm_elf_before_allocation): Don't pass target1_type.
502         (arm_elf_create_output_section_statements): New function.
503         (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
504         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
505         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
506         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
507         * emultempl/armelf_oabi.em (_before_allocation): Remove extra
508         argument to bfd_elf32_arm_process_before_allocation.
510 2004-09-17  Alan Modra  <amodra@bigpond.net.au>
512         * ldexp.c (fold_name): Update u.undef.next refs.
513         * emultempl/pe.em: Likewise.
514         * emultempl/sunos.em: Likewise.
516 2004-09-17  Alan Modra  <amodra@bigpond.net.au>
518         * Makefile.am: Run "make dep-am".
519         * Makefile.in: Regenerate.
520         * config.in: Regenerate.
521         * configure: Regenerate.
522         * aclocal.m4: Regenerate.
523         * po/ld.pot: Regenerate.
525 2004-09-16  Tomer Levi  <Tomer.Levi@nsc.com>
527         * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
528         (.fini): Likewise.
529         (.jcr): Likewise.
531 2004-09-16  Alan Modra  <amodra@bigpond.net.au>
533         * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
534         to bfd_elf32_arm_process_before_allocation call.
536 2004-09-13  Paul Brook  <paul@codesourcery.com>
538         * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
539         * emultempl/armelf.em: Use TARGET1_IS_REL.  Add --target1-{rel,abs}.
541 2004-09-07  H.J. Lu  <hongjiu.lu@intel.com>
543         * configure: Regenerated with autconfig 2.13.
545 2004-09-07  Andreas Schwab  <schwab@suse.de>
547         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
548         alignment before adjusting DATA_SEGMENT_RELRO_END.
550 2004-09-06  Mark Mitchell  <mark@codesourcery.com>
552         * emulparams/armsymbian.sh: Use armbpabi script.
553         * scripttempl/armbpabi.sc: New script.
555 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
557         * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
558         (earmsymbian.c): New target.
559         * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
560         * Makefile.in: Regenerated.
561         * aclocal.m4: Likewise.
562         * configure: Likewise.
563         * emulparams/armsymbian.sh: New file.
565 2004-09-03  Tomer Levi  <Tomer.Levi@nsc.com>
567         * scripttempl/elf32crx.sc: Edit file with comments.
568         (.init): Add new section.
569         (.fini): Likewise.
570         (.ctor): Control the linkage order.
571         (.dtor): Likewise.
573 2004-08-27  Nick Clifton  <nickc@redhat.com>
575         * emultempl/pe.em (after_open): Do not assume that either bfd is
576         an archive.
578 2004-08-26  Alan Modra  <amodra@bigpond.net.au>
580         * ldlang.c (lang_init): Don't compare with TRUE.
582 2004-08-25  Dmitry Diky  <diwil@spec.ru>
584         * emulparams/msp430all.sh: Fix RAM sizes for all targets.
585         * scripttempl/elf32msp430.sc: Add .profiler section definition.
587 2004-08-24  H.J. Lu  <hongjiu.lu@intel.com>
589         * ldlang.c (wildcardp): Defined as a macro with strpbrk.
591 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
593         * configure.tgt (arm*-*-symbianelf*): New target.
594         (arm*-*-eabi*): Likewise.
596 2004-08-19  Jakub Jelinek  <jakub@redhat.com>
598         * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
599         (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
600         (OPTION_NON_OVERLAPPING_OPD): Define.
601         (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
602         --non-overlapping-opd option.
604 2004-08-18  Alan Modra  <amodra@bigpond.net.au>
606         PR 338
607         * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
608         was already on the undefs list.
610 2004-08-17  Alan Modra  <amodra@bigpond.net.au>
612         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
613         prefix the symbol field too.
615 2004-08-13  Alan Modra  <amodra@bigpond.net.au>
617         * ldmain.c (link_callbacks): Remove "error_handler".
618         * ldmisc.c: Include elf-bfd.h.
619         (vfinfo): Sort comment.  Handle %A.  Use %A instead of
620         bfd_get_section_indent.
621         (error_handler): Delete.
622         * ldmisc.h (error_handler): Delete declaration.
624 2004-08-10  Alan Modra  <amodra@bigpond.net.au>
626         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
627         ppc64_elf_restore_symbols.
629 2004-08-09  Alan Modra  <amodra@bigpond.net.au>
631         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
632         .toc is too large on relocatable linking.
634 2004-08-09  Alan Modra  <amodra@bigpond.net.au>
636         * emultempl/ppc64elf.em (ppc_after_open): Delete.
637         (LDEMUL_AFTER_OPEN): Don't define.
639 2004-08-02  Stephane Carrez  <stcarrez@nerim.fr>
641         * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
643 2004-08-01  Stephane Carrez  <stcarrez@nerim.fr>
645         * scripttempl/elfm68hc12.sc: Align text, rodata and data section
646         on power of 2.
648 2004-07-27  Jason Thorpe  <thorpej@wasabisystems.com>
650         * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
652 2004-07-26  Dmitry Diky  <diwil@spec.ru>
654         * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
655         msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
656         msp430xG439.
657         * configure.tgt: Likewise.
658         * emulparams/msp430all.sh: Likewise.
659         * Makefile.in: Regenerate.
661 2004-07-23  Nick Clifton  <nickc@redhat.com>
663         * emultempl/elf32.em (_place_orphan): Use an already existing
664         section name if that section does not have any flags set.
666 2004-07-21  H.J. Lu  <hongjiu.lu@intel.com>
668         * ldlang.c (already_linked_hash_entry): Removed.
669         (already_linked): Likewise.
670         (already_linked_table): Likewise.
671         (section_already_linked): Call bfd_section_already_linked.
672         (lang_process): Replace already_linked_table_init with
673         bfd_section_already_linked_table_init and check return. Replace
674         already_linked_table_free with bfd_section_already_linked_table_free.
676 2004-07-21  Nick Clifton  <nickc@redhat.com>
678         * ldlang.c (init_os): Make sure that the newly allocated userdata
679         structure is zeroed out.
681 2004-07-19  H.J. Lu  <hongjiu.lu@intel.com>
683         * NEWS: Mention the new --add-needed/--no-add-needed and
684         --as-needed/--no-as-needed options.
686 2004-07-19  H.J. Lu  <hongjiu.lu@intel.com>
688         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
689         check the add_needed field.
690         (dt_needed): New struct.
691         (gld${EMULATION_NAME}_try_needed): Change the first argument
692         to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
693         bit in the file where the DT_NEEDED entry comes from.
694         (gld${EMULATION_NAME}_search_needed): Change the second
695         argument to a pointer to struct dt_needed.
696         (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
697         (gld${EMULATION_NAME}_after_open): Likewise.
699         * ld.texinfo: Add --add-needed document.
700         * ldlang.c (new_afile): Set p->add_needed.
701         * ldlang.h (lang_input_statement_type): Add add_needed field.
702         * ldmain.h (add_needed): Declare.
703         * ldmain.c (add_needed): New global var.
704         * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
705         OPTION_NO_ADD_NEEDED.
706         (ld_options): Likewise.
707         (parse_args): Handle them.
709 2004-07-13  Christof Petig  <christof@petig-baender.de>
711         * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
712         for endian-ness of extracted addend.
714 2004-07-13  Danny Smith  <dannysmith@usesr.sourceforge.net>
716         * pe-dll.c (auto_export):  Filter on just the import prefix,
717         "_imp_", not "_imp__".
719 2004-07-09  Nick Clifton  <nickc@redhat.com>
721         * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
723 2004-07-06  Tomer Levi  <Tomer.Levi@nsc.com>
725         * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
726         (eelf32crx.c): New target.
727         * Makefile.in: Regenerate.
728         * configure.tgt: Handle crx-*-elf*.
729         * emulparams/elf32crx.sh: New file.
730         * emultempl/crxelf.em: New file.
731         * scripttempl/elf32crx.sc: New file.
732         * NEWS: Mention new target.
734 2004-07-06  Nick Clifton  <nickc@redhat.com>
736         * Makefile.am: Add eshlsymbian.c.
737         * Makefile.in: Regenerate.
738         * configure.tgt: Add sh*-symbian-elf target.
739         * emulparams/shlsymbian.sh: New file.  Configure the
740         sh-symbian-elf linker scripts.
741         * scripttemp/elf32sh-symbian.sc: New file.  Linker script
742         template for the sh-symbian-elf target.
744 2004-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
746         * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
747         * emulparams/hppalinux.sh: Likewise.
748         * scripttempl/elf.sc: Place .plt just before .got when .plt is in
749         data segment and PLT_BEFORE_GOT is defined.
751 2004-07-03  Aaron W. LaFramboise  <aaron98wiridge9@aaronwl.com>
753         * ld.texinfo (WIN32): Document PE weak symbols.
755 2004-07-02  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
757         * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
759 2004-07-01  H.J. Lu  <hongjiu.lu@intel.com>
761         * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
762         the section.
764 2004-06-29  Alan Modra  <amodra@bigpond.net.au>
766         * ldlang.c (lang_reset_memory_regions): Save last relax pass section
767         size in rawsize.
769 2004-06-24  Alan Modra  <amodra@bigpond.net.au>
771         * ldlang.c (print_output_section_statement): Don't print size before
772         relaxation.
773         (IGNORE_SECTION): Remove bfd arg.  Update all callers.
775         * ldexp.c (fold_name): .. See below.
776         * ldlang.c (section_already_linked, print_output_section_statement,
777         print_input_section, insert_pad, size_input_section,
778         lang_check_section_addresses, lang_size_sections_1,
779         lang_size_sections, lang_do_assignments_1, lang_set_startof,
780         lang_one_common, lang_reset_memory_regions, lang_process,
781         lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
782         * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
783         * pe-dll.c (process_def_file, generate_reloc): ..
784         * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
785         gld${EMULATION_NAME}_before_allocation): ..
786         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
787         * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
788         sh64_elf_${EMULATION_NAME}_after_allocation): ..
789         * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
790         * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
791         ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
792         "size" instead of "_raw_size" and "_cooked_size".  Expand
793         bfd_section_size macro invocations.
795 2004-06-22  Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
797         * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
798         ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
799         ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
800         ___crt_xt_end__.
801         (.tls): Define ___tls_start__ and ___tls_end__.
803 2004-06-21  Alexandre Oliva  <aoliva@redhat.com>
805         * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
807 2004-06-18  Adam Nemet  <anemet@lnxw.com>
809         * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
810         * configure: Regenerate.
812 2004-06-15  Jakub Jelinek  <jakub@redhat.com>
814         * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
815         .gcc_except_table output sections lost accidentally with
816         -z relro patch.
818 2004-06-15  Alan Modra  <amodra@bigpond.net.au>
820         * ldwrite.c (build_link_order): Use bfd_get_section_size
821         instead of bfd_get_section_size_before_reloc or _raw_size.
822         * pe-dll.c (process_def_file): Likewise.
824 2004-06-14  Alan Modra  <amodra@bigpond.net.au>
826         From Richard Wirth <r.wirth@wirthware.de>
827         * ldlang.c (lang_finish): Don't free lang_definedness_table.
829 2004-05-29  Alan Modra  <amodra@bigpond.net.au>
831         * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
832         (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
834 2004-05-28  Andrew Stubbs <andrew.stubbs@superh.com>
836         * testsuite/ld-sh/arch/arch.exp: New test script.
837         * testsuite/ld-sh/arch/arch_expected.txt: New file.
838         * testsuite/ld-sh/arch/sh.s: New file.
839         * testsuite/ld-sh/arch/sh2.s: New file.
840         * testsuite/ld-sh/arch/sh-dsp.s: New file.
841         * testsuite/ld-sh/arch/sh2e.s: New file.
842         * testsuite/ld-sh/arch/sh3-nommu.s: New file.
843         * testsuite/ld-sh/arch/sh3.s: New file.
844         * testsuite/ld-sh/arch/sh3-dsp.s: New file.
845         * testsuite/ld-sh/arch/sh3e.s: New file.
846         * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
847         * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
848         * testsuite/ld-sh/arch/sh4.s: New file.
849         * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
850         * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
851         * testsuite/ld-sh/arch/sh4a.s: New file.
853 2004-05-28  Alan Modra  <amodra@bigpond.net.au>
855         * ldlang.c: Formatting.  Wrap long lines, expand bfd_get_section_flags
856         throughout file.
857         * lexsup.c: Formatting.  Wrap long lines.
858         * ldwrite.c: Update copyright date.
860         * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
861         (output_section_callback): Nor SEC_KEEP here.
862         (gc_section_callback): Twiddle SEC_EXCLUDE here.
863         (lang_gc_wild): Delete.  Fold into..
864         (lang_gc_sections_1): ..here.  Only call bfd_gc_sections when garbage
865         collecting.
866         (lang_process): Always call lang_gc_sections.
867         (lang_place_orphans): Handle SEC_EXCLUDE sections.
868         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
869         SEC_EXCLUDE code.
871 2004-05-26  H.J. Lu  <hongjiu.lu@intel.com>
873         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
874         SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
875         * ldlang.c (lang_add_section): Likewise.
877 2004-05-26  Alan Modra  <amodra@bigpond.net.au>
879         * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
880         sections when doing a final link.  Clear SEC_EXCLUDE when doing
881         a relocable link, except for SEC_DEBUGGING sections.
882         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
883         same condition here to drop SEC_EXCLUDE orphan sections.
885 2004-05-25  Alan Modra  <amodra@bigpond.net.au>
887         * ldlang.c (lang_process): Call bfd_merge_sections later, and
888         only when not a relocatable link.
889         (print_input_section): Handle SEC_EXCLUDE sections.
890         (size_input_section): Don't update dot on SEC_EXCLUDE sections.
891         (lang_do_assignments_1): Likewise.
892         * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
893         * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
894         * emultempl/hppaelf.em (build_section_lists): Likewise.
895         * emultempl/ppc64elf.em (build_toc_list): Likewise.
896         (build_section_lists): Likewise.
898 2004-05-23  Andreas Schwab  <schwab@suse.de>
900         * ld.texinfo (Options): Fix typo in last change.
902 2004-05-21  Andy Chittenden  <achittenden@bluearc.com>
904         * ld.h (ld_config_type): Add new field: hash_table_size.
905         * ldmain.c: Initialise the new field to zero.  If it is non-zero
906         after parsing the linker's command line call
907         bfd_hash_set_default_size.
908         * lexsup.c (option_values): Add OPTION_HASH_SIZE.
909         (ld_options): Add hash-size.
910         (parse_args): Parse --hash-size option.  Allow
911         --reduce-memory-overheads to set the default hash table size as
912         well.
913         * ld.texinfo: Document the new switch.  Also mention that
914         --reduce-memory-overheads can affect the hash table size.
915         * NEWS: Mention the new feature.
917 2004-05-19  J"orn Rennecke <joern.rennecke@superh.com>
919         * NEWS: Mention new linker map file generation and the
920         --reduce-memory-overheads option.
921         * ld.texinfo: Document --reduce-memory-overheads option.
922         * ld.h (map_symbol_def): New struct.
923         (struct user_section_struct, section_userdata_type): Rename to:
924         (struct lean_user_section_struct, lean_section_userdata_type).
925         (struct fat_user_section_struct, fat_section_userdata_type): New.
926         (SECTION_USERDATA_SIZE): Define.
927         (args_type): New member reduce_memory_overheads.
928         * ldlang.c (map_obstack): New static variable.
929         (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
930         (lang_map): Unless command_line.reduce_memory_overheads is set,
931         initialize lists of defined symbols for each section.
932         (print_input_section): Unless command_line.reduce_memory_overheads
933         is set, use print_all_symbols.
934         (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
935         * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
936         * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
937         (ld_options): Add entry for --reduce-memory-overheads.
938         (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
940 2004-05-19  Jakub Jelinek  <jakub@redhat.com>
942         * ldgram.y (sect_constraint): New.
943         (ONLY_IF_RO, ONLY_IF_RW): New tokens.
944         (section): Add sect_constraint.  Pass additional argument
945         to lang_enter_output_section_statement.
946         * mri.c (mri_draw_tree): Pass additional argument to
947         lang_enter_output_section_statement.
948         * emultempl/pe.em (place_orphan): Likewise.
949         (output_prev_sec_find): Disregard output section statements with
950         constraint == -1.
951         * emultempl/mmo.em (output_prev_sec_find): Likewise.
952         (mmo_place_orphan): Pass additional argument to
953         lang_enter_output_section_statement.
954         * emultempl/elf32.em (output_prev_sec_find): Disregard output section
955         statements with constraint == -1.
956         (place_orphan): Pass additional argument to
957         lang_enter_output_section_statement.
958         * ldlang.c (lang_enter_overlay_section): Likewise.
959         (lang_output_section_find_1): New.
960         (lang_output_section_find): Use it.
961         (lang_output_section_statement_lookup_1): New.
962         (lang_output_section_statement_lookup): Use it.
963         (check_section_callback, check_input_sections): New.
964         (map_input_to_output_sections): Check if all input sections
965         are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
966         (strip_excluded_output_sections): Disregard output section statements
967         with constraint == -1.
968         (lang_record_phdrs): Likewise.
969         (lang_enter_output_section_statement): Add constraint argument.
970         Use lang_output_section_statement_lookup_1.
971         * ldlang.h (lang_output_section_statement_type): Add constraint
972         and all_input_readonly fields.
973         (lang_enter_output_section_statement): Adjust prototype.
974         * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
975         * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
976         segment if all input sections are readonly.
978 2004-05-19  Adam Nemet  <anemet@lnxw.com>
980         * scripttempl/i386lynx.sc: Remove file.
982 2004-05-17  Bob Wilson  <bob.wilson@acm.org>
984         * ld.texinfo (Output Section Address): Correct subsection name.
986 2004-05-17  Adam Nemet  <anemet@lnxw.com>
988         * configure.tgt (powerpc-*-lynxos* case): New case.
989         * configure.host (i[3-7]86-*-lynxos* case): Remove case.
990         * emulparams/ppclynx.sh: New file.
991         * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
992         * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
993         (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
994         (eppclynx.c): New rule.
995         * Makefile.in: Regenerate.
997 2004-05-13  Joel Sherrill <joel@oarcorp.com>
999         * configure.tgt (or32-*-rtems*): Switch to elf and
1000         support versioned targets.
1002 2004-05-13  Nick Clifton  <nickc@redhat.com>
1004         * po/fr.po: Updated French translation.
1006 2004-05-11  Jakub Jelinek  <jakub@redhat.com>
1008         * genscripts.sh: Generate -z combreloc -z now -z relro scripts
1009         for binaries, -shared and -pie.
1010         * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
1011         * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
1012         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
1013         (OTHER_RELRO_SECTIONS): ... this.
1014         * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
1015         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1016         -z relro and -z norelro.
1017         (gld${EMULATION_NAME}_list_options): Add it to usage.
1018         (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
1019         -z relro scripts when appropriate.
1020         * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
1021         Create separate .got.plt section if SEPARATE_GOTPLT.
1022         Move sections which are only written during relocation handling
1023         to the beginning of RW segment.  If NO_SMALL_DATA, move .got
1024         before .data.  Add DATA_SEGMENT_RELRO_END directive.
1025         Include OTHER_RELRO_SECTIONS.
1026         * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
1027         * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
1028         (fold_unary): Likewise.
1029         (fold_binary): Handle -z relro.
1030         * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
1031         exp_dataseg_relro_adjust phases.  Add relro_end field.
1032         * ldmain.c (main): Initialize link_info.relro to FALSE.
1033         * ldlang.c (lang_size_sections): Handle -z relro.
1035 2004-05-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1037         * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1039 2004-05-07  J"orn Rennecke <joern.rennecke@superh.com>
1041         * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1042         before printing it with %W.
1044 2004-05-07  Brian Ford  <ford@vss.fsi.com>
1045             DJ Delorie  <dj@redhat.com>
1047         * emultempl/pe.em (real_flags): New static.
1048         (OPTION_LARGE_ADDRESS_AWARE): New define.
1049         (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1050         (gld_${EMULATION_NAME}_list_options): Likewise.
1051         (gld${EMULATION_NAME}_handle_option): Likewise.
1052         (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1053         * ld.texinfo: Document it.
1054         * NEWS: Mention it.
1056 2004-05-07  Brian Ford  <ford@vss.fsi.com>
1058         * NEWS: Mention DWARF 2 support for i386pe.
1060 2004-05-05  Alexandre Oliva  <aoliva@redhat.com>
1062         * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1063         elf32-frvfdpic.
1065 2004-04-30  Alan Modra  <amodra@bigpond.net.au>
1067         * ldlang.c (unique_section_p): Pass section parm, return true on
1068         group sections.
1069         (output_section_callback): Adjust.
1070         * ldlang.h (unique_section_p): Update prototype.
1071         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1073 2004-04-30  Eric Botcazou  <ebotcazou@act-europe.fr>
1075         * ld.texinfo (--gc-sections): Remove restriction for
1076         dynamic linking.
1078 2004-04-29  Brian Ford  <ford@vss.fsi.com>
1080         * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1081         for DWARF 2/3.  Update stab section's syntax.
1083 2004-04-29  Alan Modra  <amodra@bigpond.net.au>
1085         * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1086         (fill_edata): Correct pointer arithmetic.
1088 2004-04-21  Chris Demetriou  <cgd@broadcom.com>
1090         * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1091         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1092         * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1093         (EXTRA_EM_FILE): Use mipsecoff.em
1094         * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1095         (EXTRA_EM_FILE): Use mipsecoff.em
1096         * emultempl/mipsecoff.em: Restructure to be included as an
1097         extra emulation file.
1098         (check_sections, gld${EMULATION_NAME}_after_open)
1099         (gld${EMULATION_NAME}_after_allocation)
1100         (gld${EMULATION_NAME}_get_script)
1101         (ld_${EMULATION_NAME}_emulation): Remove
1102         (gld${EMULATION_NAME}_before_parse): Rename to...
1103         (mipsecoff_before_parse): This.
1104         (LDEMUL_BEFORE_PARSE): Define.
1105         * emultempl/mipself.em: Remove file.
1106         * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1107         (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1108         these symbols.
1109         * Makefile.am: Remove dependencies on emultempl/mipself.em.
1110         * Makefile.in: Regenerate.
1112 2004-04-21      Anil Paranjpe   <anilp1@kpitcummins.com>
1114         * ld.texinfo (synthesizing on H8/300): Information about linker
1115         relaxation support for bit manipulation instructions and system
1116         control instructions is added.
1118 2004-04-21  Hans-Peter Nilsson  <hp@axis.com>
1120         * NEWS: Mention change in DEFINED semantics.
1122 2004-04-21  Eric Botcazou  <ebotcazou@act-europe.fr>
1124         * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1125         (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1126         (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1128 2004-04-21  Ben Elliston  <bje@au.ibm.com>
1130         * ld.texinfo (Simple Example): Add missing punctuation.
1132 2004-04-20  Chris Demetriou  <cgd@broadcom.com>
1134         * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1136 2004-04-19  Jakub Jelinek  <jakub@redhat.com>
1138         * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1139         specially.
1141 2004-04-18  Danny Smith  <dannysmith@users.sourceforge.net>
1143         * scriptempl/pe.sc:  Put numbered .ctors.* after .ctors
1144         with default priority. Likewise for dtors.
1146 2004-04-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
1148         * configure.host: Remove mips*-dec-bsd* target.
1149         * configure.tgt: Likewise.
1151 2004-04-08  Richard Sandiford  <rsandifo@redhat.com>
1153         * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1154         * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1155         * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1156         * emultempl/irix.em: New file.
1157         * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1158         dependencies.
1159         * Makefile.in: Regenerate.
1161 2004-04-01  Paul Brook  <paul@codesourcery.com>
1163         * emultempl/armelf.em (byteswap_code): Add.
1164         (arm_elf_before_allocation): Pass extra parameter.
1165         (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1166         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1167         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1168         * emultempl/armelf_oabi.em: Pass extra parameter.
1169         * ld.texinfo: Document --be8.
1171 2004-03-30  Stan Shebs  <shebs@apple.com>
1173         Remove long-obsolete MPW support.
1174         * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1175         * Makefile.am (mpw): Remove file-presynthesizing actions.
1176         * Makefile.in: Likewise.
1177         * ldfile.c (slash): Remove MPW case.
1178         * ldlex.l [MPW]: Remove unused definition.
1180 2004-03-30  Galit Heller  <Galit.Heller@nsc.com>
1182         * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1183         (eelf32cr16c.c): New target.
1184         * Makefile.in: Regenerate.
1185         * configure.tgt: Handle cr16c-*-elf*.
1186         * emulparams/elf32cr16c.sh: New file.
1187         * scripttempl/elfcr16c.sc: Likewise
1188         * NEWS: Mention support for new target.
1190 2004-03-30  Nick Clifton  <nickc@redhat.com>
1192         * po/sv.po: Updated Swedish translation.
1194 2004-03-27  Alan Modra  <amodra@bigpond.net.au>
1196         * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1197         * emultempl/hppaelf.em: Likewise.
1198         * emultempl/ppc64elf.em: Likewise.
1199         * emultempl/sh64elf.em: Likewise.
1201 2004-03-25  Alan Modra  <amodra@bigpond.net.au>
1203         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1204         size_dynamic_sections call.
1206 2004-03-23  Alan Modra  <amodra@bigpond.net.au>
1208         PR 51.
1209         * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1210         link_info.wrap_char.
1212 2004-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1214         * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1215         or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1217 2004-03-20  Alexandre Oliva  <aoliva@redhat.com>
1219         * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1221 2004-03-19  Alan Modra  <amodra@bigpond.net.au>
1223         * config.in: Regenerate.
1224         * po/ld.pot: Regenerate.
1226 2004-03-18  Alan Modra  <amodra@bigpond.net.au>
1228         * ld.texinfo: Add --as-needed doco.
1229         * ldmain.c (as_needed): New global var.
1230         * ldmain.h (as_needed): Declare.
1231         * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1232         OPTION_NO_AS_NEEDED.
1233         (ld_options): Likewise.
1234         (parse_args): Handle them.
1235         * ldlang.h (lang_input_statement_type): Add as_needed field.
1236         * ldlang.c (new_afile): Set p->as_needed.
1237         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1238         (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1239         (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1241         * ldlang.c (open_input_bfds): Remove useless cast.
1242         (lang_do_assignments_1): Likewise.
1243         (lang_for_each_input_section): Delete.
1245 2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1247         * configure.tgt: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff*.
1249 2004-03-08  Danny Smith  <dannysmith@users.sourceforge.net>
1251         * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1252         private when building implib.
1254 2004-03-05  Nathan Sidwell  <nathan@codesourcery.com>
1256         * ldlang.c (lang_add_section): Don't force SEC_LOAD on
1257         SEC_THREAD_LOCAL.
1258         (IGNORE_SECTION): Ignore .tbss sections too.
1259         (lang_size_sections_1): .tbss sections do not advance dot.
1261 2004-03-01  Andreas Schwab  <schwab@suse.de>
1263         * ld.texinfo (Options): Fix example for --wrap.
1265 2004-02-25  Danny Smith  <dannysmith@users.sourceforge.net>
1267         * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1268         not NULL.
1270 2004-02-23  Ian Lance Taylor  <ian@wasabisystems.com>
1272         * ldlang.c (lang_check): Use %P, not %E, in error message.
1274 2004-02-23  Nathan Sidwell  <nathan@codesourcery.com>
1276         * ldlang.h (struct lang_output_section_state): Change processed
1277         field's type.
1278         * ldexp.c (check, invalid): Remove.
1279         (fold_name): Move valid_p assignments. Create undefined symbol
1280         when needed. Directly exampine section's processd flag.
1281         * ldlang.c (lang_output_section_statement_lookup): Adjust
1282         processed field init.
1283         (lang_size_sections_1): Allow LOADADDR when determining section's
1284         VMA. Adjust error message. Fold data statement's expr.
1285         (lang_size_sections): Correctly increment lang_statement_iteration.
1287 2004-02-23  Alan Modra <amodra@bigpond.net.au>
1289         * ldexp.c (fold_tree): Follow indirect symbols.
1291 2004-02-20  Nathan Sidwell  <nathan@codesourcery.com>
1293         * ldgram.y (exp): Add two operand ALIGN.
1294         * ldexp.c (fold_binary): Add ALIGN_K case.
1295         * ld.texinfo (ALIGN): Document two operand version.
1297 2004-02-19  Nathan Sidwell  <nathan@codesourcery.com>
1299         * ldlang.c (map_input_to_output_sections): Initialize sections
1300         mentioned in a data statement expression.
1301         (lang_do_assignments_1): Add data statement's expression's
1302         section's vma.
1304 2004-02-18  Nathan Sidwell  <nathan@codesourcery.com>
1306         * ldgram.y (statement_anywhere): Add assert rule.
1307         * ldlang.c (exp_init_os): Add assert case.
1309 2004-02-14  Andrew Cagney  <cagney@redhat.com>
1311         * ldmain.c (remove_output): Call bfd_cache_close.
1313 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
1315         * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
1316         .MIPS.content* and .MIPS.events* sections.
1318 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
1320         * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
1321         .note.gnu.arm.ident to after allocated sections.  Mark its
1322         address as 0.
1324 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
1326         * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
1327         * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
1328         * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
1329         * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
1330         * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
1332 2004-02-05  Nick Clifton  <nickc@redhat.com>
1334         * emultempl/pe.em (_after_open): Fix typo in previous delta.
1336 2004-02-04  Danny Smith  <dannysmith@users.sourceforge.net>
1338         * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
1340 2004-01-28  Alan Modra  <amodra@bigpond.net.au>
1342         * genscripts.sh: Fix typo.
1344         * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1346 2004-01-24  Jakub Jelinek  <jakub@redhat.com>
1348         * emulparams/elf64_ia64.sh: Put .rela.opd into
1349         OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1351 2004-01-20  Danny Smith  <dannysmith@users.sourceforge.net>
1353         * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1354         * ld.texinfo (--omagic): Note that writable text section
1355         does not conform to published PE-COFF specs.
1356         (--enable-auto-import): Likewise.
1358 2004-01-15  Alan Modra  <amodra@bigpond.net.au>
1360         * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
1362 2004-01-13  Nick Clifton  <nickc@redhat.com>
1364         * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
1365         which if true will prevent the LMA region being used as a
1366         replacement for a default VMA region.
1367         (lang_leave_output_section_statement): Pass extra parameter.
1368         (lang_leave_overlay): Likewise.
1369         * ld.texinfo (Output Section LMA): Document that the LMA
1370         region can be set to the VMA region if no VMA has been set.
1371         * ldlang.h (struct lang_output_section_phdr_list): Create a
1372         typedef for this type.  Minor formatting fixes.
1374 2004-01-13  Nick Clifton  <nickc@redhat.com>
1376         * ldlang.c (lang_size_sections_1): If dot is advanced, then
1377         assume that the section should be allocated.
1379 2004-01-13  Alan Modra  <amodra@bigpond.net.au>
1381         * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1382         sections.  Do ignore SEC_NEVER_LOAD sections.
1383         (lang_size_sections_1): Remove test made redundant with the above.
1385 2004-01-09  Alan Modra  <amodra@bigpond.net.au>
1387         * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1388         program_header_size.
1390 2004-01-06  Alexandre Oliva  <aoliva@redhat.com>
1392         2003-11-28  Alexandre Oliva  <aoliva@redhat.com>
1393         * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1394         2003-11-05  Alexandre Oliva  <aoliva@redhat.com>
1395         * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1396         (MAXPAGESIZE): Set to 64Kb.
1397         (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1398         __ROFIXUP_END__.  Don't map .rofixup.got any more.
1399         * emulparams/elf32frv.sh (NOP): Set.
1400         2003-10-31  Alexandre Oliva  <aoliva@redhat.com>
1401         * configure.tgt: Add frv-*-*linux*.
1402         2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
1403         * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1404         (eelf32frvfd.c): New.
1405         * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1406         * emulparams/elf32frv.sh: Reverted previous two patches.
1407         * emulparams/elf32frvfd.sh: New.
1408         * Makefile.in: Rebuilt.
1409         2003-09-18  Alexandre Oliva  <aoliva@redhat.com>
1410         * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1411         .rofixup.got to .rofixup.
1412         2003-09-15  Alexandre Oliva  <aoliva@redhat.com>
1413         * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
1414         (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
1416 2004-01-05  Jakub Jelinek  <jakub@redhat.com>
1418         * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
1419         * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
1421 2004-01-03  Alan Modra  <amodra@bigpond.net.au>
1423         * ldexp.c (align_n): Make static.
1424         * ldexp.h (align_n): Delete declaration.
1425         * ldlang.h (lang_enter_output_section_statement): Remove
1426         block_value param.
1427         * ldlang.c (lang_enter_output_section_statement): Likewise.
1428         (TO_ADDR, TO_SIZE): Define.
1429         (opb_shift): New var.
1430         (init_opb): New function.
1431         (print_input_section): Call init_opb and use TO_ADDR.
1432         (print_data_statement, print_reloc_statement): Likewise.
1433         (print_padding_statement): Likewise.
1434         (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
1435         (lang_check_section_addresses): Likewise.
1436         (lang_size_sections_1): Likewise.
1437         (lang_do_assignments_1): Likewise.
1438         (lang_set_startof): Likewise.
1439         (lang_one_common): Likewise.  Combine power_of_two and opb_shift align.
1440         (lang_process): Call init_opb.
1441         (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
1442         (lang_enter_overlay_section): Adjust
1443         lang_enter_output_section_statement call.
1444         * ldgram.y: Likewise.
1445         * mri.c (mri_draw_tree): Likewise.
1446         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1447         * emultempl/mmo.em (mmo_place_orphan): Likewise.
1448         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1450         * ldfile.c (ldfile_set_output_arch): Add defarch param.
1451         * ldfile.h (ldfile_set_output_arch): Ditto.
1452         * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
1453         ldfile_set_output_arch.
1454         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1455         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
1456         * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
1457         * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1458         * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
1459         * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1460         * ldgram.y: Adjust ldfile_set_output_arch call.
1461         * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1462         * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
1463         * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
1464         * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
1465         * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
1466         * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1467         * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1469 2004-01-02  Bernardo Innocenti  <bernie@develer.com>
1471         * configure.tgt: Add m68k-uClinux target.
1473 For older changes see ChangeLog-0203
1475 Local Variables:
1476 mode: change-log
1477 left-margin: 8
1478 fill-column: 74
1479 version-control: never
1480 End: