Change LOCALEDIR to $(datadir)/share.
[binutils.git] / ld / ChangeLog
blobc6447207f3ee6ac1d2774215a0ea4b441b076c47
1 2004-11-30  Tero Niemela  <tero_niemela@yahoo.com>
3         * Makefile.am: Change LOCALEDIR to $(datadir)/share.
4         * Makefile.in: Regenerate.
6 2004-11-26  Melissa Mears  <asterisk@graces.dricas.com>
8         * emultempl/pe.em: Add --subsystem:xbox as well as
9         --subsystem:%d.
10         * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
11         and numeric subsystems.
13 2004-11-24  Alan Modra  <amodra@bigpond.net.au>
15         * ldexp.c (fold_name): Correct PR 338 fix.
17 2004-11-19  Mark Mitchell  <mark@codesourcery.com>
19         * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
20         (earmelf_linux_eabi.c): New target.
21         * configure.tgt (arm*-*-linux-gnueabi): Handle it.
22         * emulparams/armelf_linux_eabi.sh: New file.
23         * Makefile.in: Regenerated.
25 2004-11-19  Nick Clifton  <nickc@redhat.com>
27         PR 518
28         * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
29         LENGTH fields in the MEMORY command, to explicitly state that
30         symbols cannot be used in their expressions.
32 2004-11-19  Jon Beniston <jon@beniston.com>
34         * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
35         * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
36         * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions 
37         which return the length and origin of a memory.
38         * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
39         * NEWS: Mention support for ORIGIN and LENGTH operators.
41 2004-11-17  Daniel Jacobowitz  <dan@codesourcery.com>
43         * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
44         a dynamic object for stubs.
46 2004-11-04  Paul Brook  <paul@codesourcery.com>
48         * ld.texinfo: Document --default-imported-symver.
49         * ldmain.c (main): Set link_info.default_imported_symver.
50         * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
51         (ld_options): Add --default-imported-symver.
52         (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
54 2004-11-08  Inderpreet Singh   <inderpreetb@nioda.hcltech.com>
55             Vineet Sharma      <vineets@noida.hcltech.com>
57         * Makefile.am: Add entries for new maxq-coff target.
58         * Makefile.in: Regenerate.
59         * configure.tgt: Add support for maxq.
60         * emulparams/maxqcoff.sh: New File.
61         * scripttempl/maxqcoff.sc: New linker script for target maxq.
62         * NEWS: Mention the new target.
64 2004-11-08  Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
66         * testsuite/ld-scripts/weak.exp: Enable test on PE,
67         XFAIL non-i386 PE.
68         * testsuite/ld-undefined/weak-undef.exp: Enable test on PE,
69         XFAIL non-i386 PE.
70         * testsuite/lib/ld-lib.exp (is_pecoff_format): New.
72 2004-11-04  Daniel Jacobowitz  <dan@debian.org>
74         * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
75         (earmelf_oabi.c): Remove rule.
76         * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
77         * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
78         * Makefile.in: Regenerated.
80 2004-11-04  Hans-Peter Nilsson  <hp@axis.com>
82         * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
83         * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
84         (FINI_START): Ditto.
85         (INIT_END): Remove emitted "jump [sp+]".
86         (FINI_END): Ditto.
88 2004-11-04  Alan Modra  <amodra@bigpond.net.au>
90         * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
91         (no_opd_opt, no_toc_opt): New static vars.
92         (ppc_before_allocation): Don't edit opt if no_opd_opt.  Call
93         ppc64_elf_edit_toc.
94         (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
95         (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
96         (PARSE_AND_LIST_OPTIONS): Describe new options.
97         (PARSE_AND_LIST_ARGS_CASES): Handle them.
99 2004-10-27  Nick Clifton  <nickc@redhat.com>
101         * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
102         parameter to invocation of lang_section_start.
103         * emultempl/aix.em (_handle_option): Likewise.
105         * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
106         eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
107         * Makefile.in: Regenerate.
109 2004-10-26  Mark Mitchell  <mark@codesourcery.com>
111         * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
112         __exidx_{start,end} when not relocating.
114 2004-10-25  Mark Mitchell  <mark@codesourcery.com>
116         * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
117         * ldexp.h (segment_type): New type.
118         (segments): New variable.
119         * ldexp.c (segments): New variable.
120         (exp_print_token): Handle SEGMENT_START.
121         (fold_binary): Likewise.
122         * ldgram.y (SEGMENT_START): Declare it as a token.
123         (exp): Handle SEGMENT_START.
124         * ldlang.h (lang_address_statement_type): Add segment field.
125         (lang_section_start): Change prototype.
126         * ldlang.c (map_input_to_output_sections): Do not process section
127         assignments if a corresponding SEGMENT_START has already been
128         seen.
129         (lang_section_start): Add segment parameter.
130         * ldlex.l (SEGMENT_START): Add it.
131         * lexsup.c (seg_segment_start): New function.
132         (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
133         * ld.texinfo (SEGMENT_START): Document it.
134         * emulparams/armsymbian.sh (EMBEDDED): Set it.
135         * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
136         base addresses.  Do not map relocations.
137         * NEWS: Mention SEGMENT_START.
139 2004-10-26  Paul Brook  <paul@codesourcery.com>
141         * ld.texinfo: Document --default-symver.
142         * ldmain.c (main): Set link_info.create_default_symver.
143         * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
144         (ld_options): Add default-symver.
145         (parse_args): Handle OPTION_DEFAULT_SYMVER.
147 2004-10-24 Danny Smith  <dannysmith@users.sourceforge.net>
149         * pe-dll.c (process_def_file): Don't export all symbols by default if
150         building a position-independent executable.
152 2004-10-21  H.J. Lu  <hongjiu.lu@intel.com>
154         PR 463
155         * ldmain.c (reloc_overflow): Accept a pointer to struct
156         bfd_link_hash_entry. Report symbol location for relocation
157         overflow.
159 2004-10-21  H.J. Lu  <hongjiu.lu@intel.com>
161         * genscripts.sh (libpath.exp): Really generate for first
162         emulation only.
164 2004-10-19  Danny Smith  <dannysmith@users.sourceforge.net>
166         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
167         comparison and replacement of filenames.
169 2004-10-19  H.J. Lu  <hongjiu.lu@intel.com>
171         PR 459
172         * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
173         option on linker script as the one for linker script.
175 2004-10-16  Daniel Jacobowitz  <dan@debian.org>
177         * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
178         (check_excluded_libs): New.
179         (load_symbols): Call check_excluded_libs.
180         * ldlang.h (add_excluded_libs): New prototype.
181         * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
182         (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
183         (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
184         * ld.texinfo (Command Line Variables): Document --exclude-libs.
185         (Options Specific to i386 PE Targets): Remove --exclude-libs.
187 2004-10-15  Alan Modra  <amodra@bigpond.net.au>
189         * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
190         failing link script assert.
192         * ldctor.c (ldctor_add_set_entry): Fix comment typo.
194 2004-10-14  H.J. Lu  <hongjiu.lu@intel.com>
196         PR 445
197         * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
198         (SMALL_DATA_DTOR): Set.
199         * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
200         (SMALL_DATA_DTOR): Unset.
201         * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
202         after .data. If SMALL_DATA_DTOR is set, move .dtors after
203         .data.
205 2004-10-14  Alan Modra  <amodra@bigpond.net.au>
207         PR 63
208         * ldlang.h (lang_output_section_statement_type): Make "next" a
209         struct lang_output_section_statement_struct *.
210         (struct orphan_save): Move from elf32.em.  Add "name" and "flags".
211         (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
212         * ldlang.c (lang_output_section_find_1): Adjust for changed
213         output_section_statement "next".
214         (strip_excluded_output_sections): Likewise.
215         (lang_record_phdrs): Likewise.
216         (lang_output_section_find_by_flags): New function.
217         (output_prev_sec_find): Move from pe.em.  Adjust iterator.
218         (lang_insert_orphan): New function.  Tail end of elf32.em's
219         place_orphan merged with that from pe.em.  Allow bfd_section to
220         be placed first.  New heuristic for placing new output section
221         statement in existing script, and accompanying split of __start
222         symbol alignment into a separate assignment to dot.
223         (lang_add_section): Consistently use output->bfd_section rather than
224         an alias, section->output_section.
225         (map_input_to_output_sections): Rename overly long arg.  Move
226         initialization of data_statement output section to here..
227         (lang_check_section_addresses): ..from here.
228         (print_assignment): Correct printing of etree_assert.
229         (print_all_symbols): Don't bomb if userdata is NULL.
230         (IGNORE_SECTION): Rearrange.
231         * emultempl/elf32.em (output_rel_find): Adjust interator.
232         (output_prev_sec_find): Delete.
233         (struct orphan_save): Delete.
234         (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
235         flags without creating a duplicate output section statement.
236         Revise code holding history of various orphan section placements.
237         Allow orphan sections to place before script specified output
238         sections.  Call lang_output_section_find_by_flags when placement
239         by name fails.  Use lang_insert_orphan.
240         * emultempl/mmo.em (output_prev_sec_find): Delete.
241         (struct orphan_save): Delete.
242         (mmo_place_orphan): Revise code holding history of orphan placement.
243         Allow orphans to place before existing output sections.  Use
244         lang_insert_orphan.
245         * emultempl/pe.em (output_prev_sec_find): Delete.
246         (struct orphan_save): Delete.
247         (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
248         lang_insert_orphan.
250 2004-10-13  Mark Mitchell  <mark@codesourcery.com>
252         * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
253         loadable segment.
255 2004-10-13  Alan Modra  <amodra@bigpond.net.au>
257         PR 44
258         * ldcref.c (check_section_sym_xref): Delete.
259         (check_local_sym_xref): New function.
260         (check_nocrossrefs): Adjust call.
261         * emultempl/pe.em (struct orphan_save): Add os_tail.
262         (place_orphan): Backport assorted fixes from elf32.em.
264 2004-10-12  Bob Wilson  <bob.wilson@acm.org>
266         * emultempl/xtensaelf.em: Use ISO C90 formatting.
268 2004-10-11  Jakub Jelinek  <jakub@redhat.com>
270         * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
271         getline for portability.
273         * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
274         (gld${EMULATION_NAME}_parse_ld_so_conf,
275         gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
276         (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
278 2004-10-11  Alan Modra  <amodra@bigpond.net.au>
280         PR 423
281         * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
282         rejected when linking statically.
284 2004-10-08  Daniel Jacobowitz  <dan@debian.org>
286         * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
288 2004-10-07  Bob Wilson  <bob.wilson@acm.org>
290         * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
291         assembler-generated longcall sequences.  Describe new --size-opt
292         option.
293         * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
294         * emultempl/xtensaelf.em (remove_section,
295         replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
296         elf_xtensa_after_open): New.
297         (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
298         OPTION_NO_LITERAL_MOVEMENT): Define.
299         (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
300         (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
301         (PARSE_AND_LIST_OPTIONS): Add --size-opt.
302         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
303         OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
304         (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
305         * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
306         * Makefile.am (eelf32xtensa.c): Update dependencies.
307         * Makefile.in: Regenerate.
309 2004-10-07  Jeff Baker  <jbaker@qnx.com>
311         * lexsup.c: Handle --warn-shared-textrel option.
312         (ld_options): Restore alpha sorting of options.
313         * ldmain.c (main): Initialise warn_shared_info field to FALSE.
314         * ld.texinfo: Add documentation for --warn-shared-textrel.
315         * NEWS: Added mention of --warn-shared-textrel option.
317 2004-10-05  Tomer Levi  <Tomer.Levi@nsc.com>
319         * emultempl/crxelf.em (disable_relaxation): Add.
320         (crxelf_before_allocation): Enable --relax option by default.
321         (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
322         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
323         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
325 2004-10-04  H.J. Lu  <hongjiu.lu@intel.com>
327         * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
328         --sort-section name|alignment.
330         * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
331         --sort-section name|alignment.
333         * ld.h (sort_type): New enum.
334         (wildcard_spec): Change the type of `sorted' to sort_type.
336         * ldgram.y (SORT): Removed.
337         (SORT_BY_NAME): Added.
338         (SORT_BY_ALIGNMENT): Added.
339         (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
340         SORT_BY_ALIGNMENT.
341         (input_section_spec_no_keep): Updated `sorted'.
342         (statement): Replace SORT with SORT_BY_NAME.
344         * ldlang.c (compare_section): New function to compare 2
345         sections with different sorting schemes.
346         (wild_sort): Updated. Use compare_section.
347         (update_wild_statements): New function.
348         (lang_process): Call update_wild_statements before
349         map_input_to_output_sections.
351         * ldlex.l (SORT_BY_NAME): New.
352         (SORT_BY_ALIGNMENT): New.
353         (SORT): Return SORT_BY_NAME.
355         * ldmain.c (sort_section): New. Defined.
356         (main): Initialize it to none.
358         * lexsup.c (option_values): Add OPTION_SORT_SECTION.
359         (ld_options): Add an entry for OPTION_SORT_SECTION.
360         (parse_args): Handle OPTION_SORT_SECTION.
362         * mri.c (mri_draw_tree): Updated `sorted'.
364 2004-10-04  Jakub Jelinek  <jakub@redhat.com>
366         * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
367         * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
368         argument.
369         (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
370         and . as second argument.
371         (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
372         * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
373         (fold_binary): Add it here.  Insert padding to make relro_end
374         COMMONPAGESIZE bytes aligned.  For DATA_SEGMENT_ALIGN in
375         exp_dataseg_relro_adjust phase just use previously computed
376         exp_data_seg.base.
377         * ldlang.c (lang_size_sections): Set exp_data_seg.base for
378         relro_adjust here.  Call lang_size_sections_1 once more if there
379         was too big padding at DATA_SEGMENT_RELRO_END.
380         * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
382 2004-10-01  Paul Brook  <paul@codesourcery.com>
384         * emulparams/armelf.sh: Add unwinding table sections.
386 2004-09-30  Filip Navara  <navaraf@reactos.com>
388         * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
389         correct base address for position independant executables.
390         * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
391         executables as DLLs.
393 2004-09-30  Paul Brook  <paul@codesourcery.com>
395         * ld.texinfo: Document --target2=abs.
396         * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
398 2004-09-29  Nick Clifton  <nickc@redhat.com>
400         * scripttempl/xstormy16.sc: Only perform the assignments to the
401         ROM region when not performing a relocatable link.  The ROM region
402         does not start at address 0, but the sections will.
403         * Makefile.am: Fix linker script dependency for the generation of
404         eelf32xstormy16.c.
405         * Makefile.in: Regenerate.
407 2004-09-18  Filip Navara  <navaraf@reactos.com>
409         * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
410         emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
411         emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
412         TARGET_PAGE_SIZE.
413         * scripttempl/pe.sc: Make the virtual address and file offset synced if
414         the alignment is lower than the target page size.
416 2004-09-27  Filip Navara  <navaraf@reactos.com>
418         * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
419         def_file_parse to handle pe_def_file if NULL and prevent crash with
420         invalid .def files.
422 2004-09-27  Alan Modra  <amodra@bigpond.net.au>
424         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
425         --emit-stub-syms automatically when --emit-relocs.
427 2004-09-24  Paul Brook  <paul@codeosurcery.com>
429         * scripttempl/elf.sc: Keep .preinit_array, .init_array and
430         .fini_array sections.
432 2004-09-19  Andreas Schwab  <schwab@suse.de>
434         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
435         base so that relro end is suitably aligned.
437 2004-09-17  Paul Brook  <paul@codesourcery.com>
439         * ld.texinfo: Rename arm-specific section.  Document --target*
440         * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
441         * emulparams/armelf_linux.sh: Ditto.
442         * emulparams/armelf_nbsd.sh: Ditto.
443         * emultempl/armelf.em: Set default for TARGET2_TYPE.
444         (target2_type): New variable.
445         (arm_elf_before_allocation): Don't pass target1_type.
446         (arm_elf_create_output_section_statements): New function.
447         (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
448         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
449         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
450         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
451         * emultempl/armelf_oabi.em (_before_allocation): Remove extra
452         argument to bfd_elf32_arm_process_before_allocation.
454 2004-09-17  Alan Modra  <amodra@bigpond.net.au>
456         * ldexp.c (fold_name): Update u.undef.next refs.
457         * emultempl/pe.em: Likewise.
458         * emultempl/sunos.em: Likewise.
460 2004-09-17  Alan Modra  <amodra@bigpond.net.au>
462         * Makefile.am: Run "make dep-am".
463         * Makefile.in: Regenerate.
464         * config.in: Regenerate.
465         * configure: Regenerate.
466         * aclocal.m4: Regenerate.
467         * po/ld.pot: Regenerate.
469 2004-09-16  Tomer Levi  <Tomer.Levi@nsc.com>
471         * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
472         (.fini): Likewise.
473         (.jcr): Likewise.
475 2004-09-16  Alan Modra  <amodra@bigpond.net.au>
477         * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
478         to bfd_elf32_arm_process_before_allocation call.
480 2004-09-13  Paul Brook  <paul@codesourcery.com>
482         * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
483         * emultempl/armelf.em: Use TARGET1_IS_REL.  Add --target1-{rel,abs}.
485 2004-09-07  H.J. Lu  <hongjiu.lu@intel.com>
487         * configure: Regenerated with autconfig 2.13.
489 2004-09-07  Andreas Schwab  <schwab@suse.de>
491         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
492         alignment before adjusting DATA_SEGMENT_RELRO_END.
494 2004-09-06  Mark Mitchell  <mark@codesourcery.com>
496         * emulparams/armsymbian.sh: Use armbpabi script.
497         * scripttempl/armbpabi.sc: New script.
499 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
501         * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
502         (earmsymbian.c): New target.
503         * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
504         * Makefile.in: Regenerated.
505         * aclocal.m4: Likewise.
506         * configure: Likewise.
507         * emulparams/armsymbian.sh: New file.
509 2004-09-03  Tomer Levi  <Tomer.Levi@nsc.com>
511         * scripttempl/elf32crx.sc: Edit file with comments.
512         (.init): Add new section.
513         (.fini): Likewise.
514         (.ctor): Control the linkage order.
515         (.dtor): Likewise.
517 2004-08-27  Nick Clifton  <nickc@redhat.com>
519         * emultempl/pe.em (after_open): Do not assume that either bfd is
520         an archive.
522 2004-08-26  Alan Modra  <amodra@bigpond.net.au>
524         * ldlang.c (lang_init): Don't compare with TRUE.
526 2004-08-25  Dmitry Diky  <diwil@spec.ru>
528         * emulparams/msp430all.sh: Fix RAM sizes for all targets.
529         * scripttempl/elf32msp430.sc: Add .profiler section definition.
531 2004-08-24  H.J. Lu  <hongjiu.lu@intel.com>
533         * ldlang.c (wildcardp): Defined as a macro with strpbrk.
535 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
537         * configure.tgt (arm*-*-symbianelf*): New target.
538         (arm*-*-eabi*): Likewise.
540 2004-08-19  Jakub Jelinek  <jakub@redhat.com>
542         * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
543         (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
544         (OPTION_NON_OVERLAPPING_OPD): Define.
545         (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
546         --non-overlapping-opd option.
548 2004-08-18  Alan Modra  <amodra@bigpond.net.au>
550         PR 338
551         * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
552         was already on the undefs list.
554 2004-08-17  Alan Modra  <amodra@bigpond.net.au>
556         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
557         prefix the symbol field too.
559 2004-08-13  Alan Modra  <amodra@bigpond.net.au>
561         * ldmain.c (link_callbacks): Remove "error_handler".
562         * ldmisc.c: Include elf-bfd.h.
563         (vfinfo): Sort comment.  Handle %A.  Use %A instead of
564         bfd_get_section_indent.
565         (error_handler): Delete.
566         * ldmisc.h (error_handler): Delete declaration.
568 2004-08-10  Alan Modra  <amodra@bigpond.net.au>
570         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
571         ppc64_elf_restore_symbols.
573 2004-08-09  Alan Modra  <amodra@bigpond.net.au>
575         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
576         .toc is too large on relocatable linking.
578 2004-08-09  Alan Modra  <amodra@bigpond.net.au>
580         * emultempl/ppc64elf.em (ppc_after_open): Delete.
581         (LDEMUL_AFTER_OPEN): Don't define.
583 2004-08-02  Stephane Carrez  <stcarrez@nerim.fr>
585         * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
587 2004-08-01  Stephane Carrez  <stcarrez@nerim.fr>
589         * scripttempl/elfm68hc12.sc: Align text, rodata and data section
590         on power of 2.
592 2004-07-27  Jason Thorpe  <thorpej@wasabisystems.com>
594         * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
596 2004-07-26  Dmitry Diky  <diwil@spec.ru>
598         * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
599         msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
600         msp430xG439.
601         * configure.tgt: Likewise.
602         * emulparams/msp430all.sh: Likewise.
603         * Makefile.in: Regenerate.
605 2004-07-23  Nick Clifton  <nickc@redhat.com>
607         * emultempl/elf32.em (_place_orphan): Use an already existing
608         section name if that section does not have any flags set.
610 2004-07-21  H.J. Lu  <hongjiu.lu@intel.com>
612         * ldlang.c (already_linked_hash_entry): Removed.
613         (already_linked): Likewise.
614         (already_linked_table): Likewise.
615         (section_already_linked): Call bfd_section_already_linked.
616         (lang_process): Replace already_linked_table_init with
617         bfd_section_already_linked_table_init and check return. Replace
618         already_linked_table_free with bfd_section_already_linked_table_free.
620 2004-07-21  Nick Clifton  <nickc@redhat.com>
622         * ldlang.c (init_os): Make sure that the newly allocated userdata
623         structure is zeroed out.
625 2004-07-19  H.J. Lu  <hongjiu.lu@intel.com>
627         * NEWS: Mention the new --add-needed/--no-add-needed and
628         --as-needed/--no-as-needed options.
630 2004-07-19  H.J. Lu  <hongjiu.lu@intel.com>
632         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
633         check the add_needed field.
634         (dt_needed): New struct.
635         (gld${EMULATION_NAME}_try_needed): Change the first argument
636         to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
637         bit in the file where the DT_NEEDED entry comes from.
638         (gld${EMULATION_NAME}_search_needed): Change the second
639         argument to a pointer to struct dt_needed.
640         (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
641         (gld${EMULATION_NAME}_after_open): Likewise.
643         * ld.texinfo: Add --add-needed document.
644         * ldlang.c (new_afile): Set p->add_needed.
645         * ldlang.h (lang_input_statement_type): Add add_needed field.
646         * ldmain.h (add_needed): Declare.
647         * ldmain.c (add_needed): New global var.
648         * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
649         OPTION_NO_ADD_NEEDED.
650         (ld_options): Likewise.
651         (parse_args): Handle them.
653 2004-07-13  Christof Petig  <christof@petig-baender.de>
655         * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
656         for endian-ness of extracted addend.
658 2004-07-13  Danny Smith  <dannysmith@usesr.sourceforge.net>
660         * pe-dll.c (auto_export):  Filter on just the import prefix,
661         "_imp_", not "_imp__".
663 2004-07-09  Nick Clifton  <nickc@redhat.com>
665         * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
667 2004-07-06  Tomer Levi  <Tomer.Levi@nsc.com>
669         * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
670         (eelf32crx.c): New target.
671         * Makefile.in: Regenerate.
672         * configure.tgt: Handle crx-*-elf*.
673         * emulparams/elf32crx.sh: New file.
674         * emultempl/crxelf.em: New file.
675         * scripttempl/elf32crx.sc: New file.
676         * NEWS: Mention new target.
678 2004-07-06  Nick Clifton  <nickc@redhat.com>
680         * Makefile.am: Add eshlsymbian.c.
681         * Makefile.in: Regenerate.
682         * configure.tgt: Add sh*-symbian-elf target.
683         * emulparams/shlsymbian.sh: New file.  Configure the
684         sh-symbian-elf linker scripts.
685         * scripttemp/elf32sh-symbian.sc: New file.  Linker script
686         template for the sh-symbian-elf target.
688 2004-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
690         * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
691         * emulparams/hppalinux.sh: Likewise.
692         * scripttempl/elf.sc: Place .plt just before .got when .plt is in
693         data segment and PLT_BEFORE_GOT is defined.
695 2004-07-03  Aaron W. LaFramboise  <aaron98wiridge9@aaronwl.com>
697         * ld.texinfo (WIN32): Document PE weak symbols.
699 2004-07-02  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
701         * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
703 2004-07-01  H.J. Lu  <hongjiu.lu@intel.com>
705         * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
706         the section.
708 2004-06-29  Alan Modra  <amodra@bigpond.net.au>
710         * ldlang.c (lang_reset_memory_regions): Save last relax pass section
711         size in rawsize.
713 2004-06-24  Alan Modra  <amodra@bigpond.net.au>
715         * ldlang.c (print_output_section_statement): Don't print size before
716         relaxation.
717         (IGNORE_SECTION): Remove bfd arg.  Update all callers.
719         * ldexp.c (fold_name): .. See below.
720         * ldlang.c (section_already_linked, print_output_section_statement,
721         print_input_section, insert_pad, size_input_section,
722         lang_check_section_addresses, lang_size_sections_1,
723         lang_size_sections, lang_do_assignments_1, lang_set_startof,
724         lang_one_common, lang_reset_memory_regions, lang_process,
725         lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
726         * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
727         * pe-dll.c (process_def_file, generate_reloc): ..
728         * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
729         gld${EMULATION_NAME}_before_allocation): ..
730         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
731         * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
732         sh64_elf_${EMULATION_NAME}_after_allocation): ..
733         * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
734         * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
735         ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
736         "size" instead of "_raw_size" and "_cooked_size".  Expand
737         bfd_section_size macro invocations.
739 2004-06-22  Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
741         * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
742         ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
743         ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
744         ___crt_xt_end__.
745         (.tls): Define ___tls_start__ and ___tls_end__.
747 2004-06-21  Alexandre Oliva  <aoliva@redhat.com>
749         * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
751 2004-06-18  Adam Nemet  <anemet@lnxw.com>
753         * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
754         * configure: Regenerate.
756 2004-06-15  Jakub Jelinek  <jakub@redhat.com>
758         * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
759         .gcc_except_table output sections lost accidentally with
760         -z relro patch.
762 2004-06-15  Alan Modra  <amodra@bigpond.net.au>
764         * ldwrite.c (build_link_order): Use bfd_get_section_size
765         instead of bfd_get_section_size_before_reloc or _raw_size.
766         * pe-dll.c (process_def_file): Likewise.
768 2004-06-14  Alan Modra  <amodra@bigpond.net.au>
770         From Richard Wirth <r.wirth@wirthware.de>
771         * ldlang.c (lang_finish): Don't free lang_definedness_table.
773 2004-05-29  Alan Modra  <amodra@bigpond.net.au>
775         * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
776         (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
778 2004-05-28  Andrew Stubbs <andrew.stubbs@superh.com>
780         * testsuite/ld-sh/arch/arch.exp: New test script.
781         * testsuite/ld-sh/arch/arch_expected.txt: New file.
782         * testsuite/ld-sh/arch/sh.s: New file.
783         * testsuite/ld-sh/arch/sh2.s: New file.
784         * testsuite/ld-sh/arch/sh-dsp.s: New file.
785         * testsuite/ld-sh/arch/sh2e.s: New file.
786         * testsuite/ld-sh/arch/sh3-nommu.s: New file.
787         * testsuite/ld-sh/arch/sh3.s: New file.
788         * testsuite/ld-sh/arch/sh3-dsp.s: New file.
789         * testsuite/ld-sh/arch/sh3e.s: New file.
790         * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
791         * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
792         * testsuite/ld-sh/arch/sh4.s: New file.
793         * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
794         * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
795         * testsuite/ld-sh/arch/sh4a.s: New file.
797 2004-05-28  Alan Modra  <amodra@bigpond.net.au>
799         * ldlang.c: Formatting.  Wrap long lines, expand bfd_get_section_flags
800         throughout file.
801         * lexsup.c: Formatting.  Wrap long lines.
802         * ldwrite.c: Update copyright date.
804         * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
805         (output_section_callback): Nor SEC_KEEP here.
806         (gc_section_callback): Twiddle SEC_EXCLUDE here.
807         (lang_gc_wild): Delete.  Fold into..
808         (lang_gc_sections_1): ..here.  Only call bfd_gc_sections when garbage
809         collecting.
810         (lang_process): Always call lang_gc_sections.
811         (lang_place_orphans): Handle SEC_EXCLUDE sections.
812         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
813         SEC_EXCLUDE code.
815 2004-05-26  H.J. Lu  <hongjiu.lu@intel.com>
817         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
818         SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
819         * ldlang.c (lang_add_section): Likewise.
821 2004-05-26  Alan Modra  <amodra@bigpond.net.au>
823         * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
824         sections when doing a final link.  Clear SEC_EXCLUDE when doing
825         a relocable link, except for SEC_DEBUGGING sections.
826         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
827         same condition here to drop SEC_EXCLUDE orphan sections.
829 2004-05-25  Alan Modra  <amodra@bigpond.net.au>
831         * ldlang.c (lang_process): Call bfd_merge_sections later, and
832         only when not a relocatable link.
833         (print_input_section): Handle SEC_EXCLUDE sections.
834         (size_input_section): Don't update dot on SEC_EXCLUDE sections.
835         (lang_do_assignments_1): Likewise.
836         * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
837         * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
838         * emultempl/hppaelf.em (build_section_lists): Likewise.
839         * emultempl/ppc64elf.em (build_toc_list): Likewise.
840         (build_section_lists): Likewise.
842 2004-05-23  Andreas Schwab  <schwab@suse.de>
844         * ld.texinfo (Options): Fix typo in last change.
846 2004-05-21  Andy Chittenden  <achittenden@bluearc.com>
848         * ld.h (ld_config_type): Add new field: hash_table_size.
849         * ldmain.c: Initialise the new field to zero.  If it is non-zero
850         after parsing the linker's command line call
851         bfd_hash_set_default_size.
852         * lexsup.c (option_values): Add OPTION_HASH_SIZE.
853         (ld_options): Add hash-size.
854         (parse_args): Parse --hash-size option.  Allow
855         --reduce-memory-overheads to set the default hash table size as
856         well.
857         * ld.texinfo: Document the new switch.  Also mention that
858         --reduce-memory-overheads can affect the hash table size.
859         * NEWS: Mention the new feature.
861 2004-05-19  J"orn Rennecke <joern.rennecke@superh.com>
863         * NEWS: Mention new linker map file generation and the
864         --reduce-memory-overheads option.
865         * ld.texinfo: Document --reduce-memory-overheads option.
866         * ld.h (map_symbol_def): New struct.
867         (struct user_section_struct, section_userdata_type): Rename to:
868         (struct lean_user_section_struct, lean_section_userdata_type).
869         (struct fat_user_section_struct, fat_section_userdata_type): New.
870         (SECTION_USERDATA_SIZE): Define.
871         (args_type): New member reduce_memory_overheads.
872         * ldlang.c (map_obstack): New static variable.
873         (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
874         (lang_map): Unless command_line.reduce_memory_overheads is set,
875         initialize lists of defined symbols for each section.
876         (print_input_section): Unless command_line.reduce_memory_overheads
877         is set, use print_all_symbols.
878         (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
879         * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
880         * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
881         (ld_options): Add entry for --reduce-memory-overheads.
882         (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
884 2004-05-19  Jakub Jelinek  <jakub@redhat.com>
886         * ldgram.y (sect_constraint): New.
887         (ONLY_IF_RO, ONLY_IF_RW): New tokens.
888         (section): Add sect_constraint.  Pass additional argument
889         to lang_enter_output_section_statement.
890         * mri.c (mri_draw_tree): Pass additional argument to
891         lang_enter_output_section_statement.
892         * emultempl/pe.em (place_orphan): Likewise.
893         (output_prev_sec_find): Disregard output section statements with
894         constraint == -1.
895         * emultempl/mmo.em (output_prev_sec_find): Likewise.
896         (mmo_place_orphan): Pass additional argument to
897         lang_enter_output_section_statement.
898         * emultempl/elf32.em (output_prev_sec_find): Disregard output section
899         statements with constraint == -1.
900         (place_orphan): Pass additional argument to
901         lang_enter_output_section_statement.
902         * ldlang.c (lang_enter_overlay_section): Likewise.
903         (lang_output_section_find_1): New.
904         (lang_output_section_find): Use it.
905         (lang_output_section_statement_lookup_1): New.
906         (lang_output_section_statement_lookup): Use it.
907         (check_section_callback, check_input_sections): New.
908         (map_input_to_output_sections): Check if all input sections
909         are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
910         (strip_excluded_output_sections): Disregard output section statements
911         with constraint == -1.
912         (lang_record_phdrs): Likewise.
913         (lang_enter_output_section_statement): Add constraint argument.
914         Use lang_output_section_statement_lookup_1.
915         * ldlang.h (lang_output_section_statement_type): Add constraint
916         and all_input_readonly fields.
917         (lang_enter_output_section_statement): Adjust prototype.
918         * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
919         * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
920         segment if all input sections are readonly.
922 2004-05-19  Adam Nemet  <anemet@lnxw.com>
924         * scripttempl/i386lynx.sc: Remove file.
926 2004-05-17  Bob Wilson  <bob.wilson@acm.org>
928         * ld.texinfo (Output Section Address): Correct subsection name.
930 2004-05-17  Adam Nemet  <anemet@lnxw.com>
932         * configure.tgt (powerpc-*-lynxos* case): New case.
933         * configure.host (i[3-7]86-*-lynxos* case): Remove case.
934         * emulparams/ppclynx.sh: New file.
935         * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
936         * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
937         (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
938         (eppclynx.c): New rule.
939         * Makefile.in: Regenerate.
941 2004-05-13  Joel Sherrill <joel@oarcorp.com>
943         * configure.tgt (or32-*-rtems*): Switch to elf and
944         support versioned targets.
946 2004-05-13  Nick Clifton  <nickc@redhat.com>
948         * po/fr.po: Updated French translation.
950 2004-05-11  Jakub Jelinek  <jakub@redhat.com>
952         * genscripts.sh: Generate -z combreloc -z now -z relro scripts
953         for binaries, -shared and -pie.
954         * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
955         * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
956         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
957         (OTHER_RELRO_SECTIONS): ... this.
958         * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
959         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
960         -z relro and -z norelro.
961         (gld${EMULATION_NAME}_list_options): Add it to usage.
962         (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
963         -z relro scripts when appropriate.
964         * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
965         Create separate .got.plt section if SEPARATE_GOTPLT.
966         Move sections which are only written during relocation handling
967         to the beginning of RW segment.  If NO_SMALL_DATA, move .got
968         before .data.  Add DATA_SEGMENT_RELRO_END directive.
969         Include OTHER_RELRO_SECTIONS.
970         * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
971         * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
972         (fold_unary): Likewise.
973         (fold_binary): Handle -z relro.
974         * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
975         exp_dataseg_relro_adjust phases.  Add relro_end field.
976         * ldmain.c (main): Initialize link_info.relro to FALSE.
977         * ldlang.c (lang_size_sections): Handle -z relro.
979 2004-05-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
981         * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
983 2004-05-07  J"orn Rennecke <joern.rennecke@superh.com>
985         * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
986         before printing it with %W.
988 2004-05-07  Brian Ford  <ford@vss.fsi.com>
989             DJ Delorie  <dj@redhat.com>
991         * emultempl/pe.em (real_flags): New static.
992         (OPTION_LARGE_ADDRESS_AWARE): New define.
993         (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
994         (gld_${EMULATION_NAME}_list_options): Likewise.
995         (gld${EMULATION_NAME}_handle_option): Likewise.
996         (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
997         * ld.texinfo: Document it.
998         * NEWS: Mention it.
1000 2004-05-07  Brian Ford  <ford@vss.fsi.com>
1002         * NEWS: Mention DWARF 2 support for i386pe.
1004 2004-05-05  Alexandre Oliva  <aoliva@redhat.com>
1006         * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1007         elf32-frvfdpic.
1009 2004-04-30  Alan Modra  <amodra@bigpond.net.au>
1011         * ldlang.c (unique_section_p): Pass section parm, return true on
1012         group sections.
1013         (output_section_callback): Adjust.
1014         * ldlang.h (unique_section_p): Update prototype.
1015         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1017 2004-04-30  Eric Botcazou  <ebotcazou@act-europe.fr>
1019         * ld.texinfo (--gc-sections): Remove restriction for
1020         dynamic linking.
1022 2004-04-29  Brian Ford  <ford@vss.fsi.com>
1024         * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1025         for DWARF 2/3.  Update stab section's syntax.
1027 2004-04-29  Alan Modra  <amodra@bigpond.net.au>
1029         * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1030         (fill_edata): Correct pointer arithmetic.
1032 2004-04-21  Chris Demetriou  <cgd@broadcom.com>
1034         * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1035         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1036         * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1037         (EXTRA_EM_FILE): Use mipsecoff.em
1038         * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1039         (EXTRA_EM_FILE): Use mipsecoff.em
1040         * emultempl/mipsecoff.em: Restructure to be included as an
1041         extra emulation file.
1042         (check_sections, gld${EMULATION_NAME}_after_open)
1043         (gld${EMULATION_NAME}_after_allocation)
1044         (gld${EMULATION_NAME}_get_script)
1045         (ld_${EMULATION_NAME}_emulation): Remove
1046         (gld${EMULATION_NAME}_before_parse): Rename to...
1047         (mipsecoff_before_parse): This.
1048         (LDEMUL_BEFORE_PARSE): Define.
1049         * emultempl/mipself.em: Remove file.
1050         * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1051         (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1052         these symbols.
1053         * Makefile.am: Remove dependencies on emultempl/mipself.em.
1054         * Makefile.in: Regenerate.
1056 2004-04-21      Anil Paranjpe   <anilp1@kpitcummins.com>
1058         * ld.texinfo (synthesizing on H8/300): Information about linker
1059         relaxation support for bit manipulation instructions and system
1060         control instructions is added.
1062 2004-04-21  Hans-Peter Nilsson  <hp@axis.com>
1064         * NEWS: Mention change in DEFINED semantics.
1066 2004-04-21  Eric Botcazou  <ebotcazou@act-europe.fr>
1068         * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1069         (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1070         (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1072 2004-04-21  Ben Elliston  <bje@au.ibm.com>
1074         * ld.texinfo (Simple Example): Add missing punctuation.
1076 2004-04-20  Chris Demetriou  <cgd@broadcom.com>
1078         * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1080 2004-04-19  Jakub Jelinek  <jakub@redhat.com>
1082         * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1083         specially.
1085 2004-04-18  Danny Smith  <dannysmith@users.sourceforge.net>
1087         * scriptempl/pe.sc:  Put numbered .ctors.* after .ctors
1088         with default priority. Likewise for dtors.
1090 2004-04-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
1092         * configure.host: Remove mips*-dec-bsd* target.
1093         * configure.tgt: Likewise.
1095 2004-04-08  Richard Sandiford  <rsandifo@redhat.com>
1097         * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1098         * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1099         * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1100         * emultempl/irix.em: New file.
1101         * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1102         dependencies.
1103         * Makefile.in: Regenerate.
1105 2004-04-01  Paul Brook  <paul@codesourcery.com>
1107         * emultempl/armelf.em (byteswap_code): Add.
1108         (arm_elf_before_allocation): Pass extra parameter.
1109         (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1110         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1111         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1112         * emultempl/armelf_oabi.em: Pass extra parameter.
1113         * ld.texinfo: Document --be8.
1115 2004-03-30  Stan Shebs  <shebs@apple.com>
1117         Remove long-obsolete MPW support.
1118         * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1119         * Makefile.am (mpw): Remove file-presynthesizing actions.
1120         * Makefile.in: Likewise.
1121         * ldfile.c (slash): Remove MPW case.
1122         * ldlex.l [MPW]: Remove unused definition.
1124 2004-03-30  Galit Heller  <Galit.Heller@nsc.com>
1126         * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1127         (eelf32cr16c.c): New target.
1128         * Makefile.in: Regenerate.
1129         * configure.tgt: Handle cr16c-*-elf*.
1130         * emulparams/elf32cr16c.sh: New file.
1131         * scripttempl/elfcr16c.sc: Likewise
1132         * NEWS: Mention support for new target.
1134 2004-03-30  Nick Clifton  <nickc@redhat.com>
1136         * po/sv.po: Updated Swedish translation.
1138 2004-03-27  Alan Modra  <amodra@bigpond.net.au>
1140         * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1141         * emultempl/hppaelf.em: Likewise.
1142         * emultempl/ppc64elf.em: Likewise.
1143         * emultempl/sh64elf.em: Likewise.
1145 2004-03-25  Alan Modra  <amodra@bigpond.net.au>
1147         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1148         size_dynamic_sections call.
1150 2004-03-23  Alan Modra  <amodra@bigpond.net.au>
1152         PR 51.
1153         * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1154         link_info.wrap_char.
1156 2004-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1158         * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1159         or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1161 2004-03-20  Alexandre Oliva  <aoliva@redhat.com>
1163         * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1165 2004-03-19  Alan Modra  <amodra@bigpond.net.au>
1167         * config.in: Regenerate.
1168         * po/ld.pot: Regenerate.
1170 2004-03-18  Alan Modra  <amodra@bigpond.net.au>
1172         * ld.texinfo: Add --as-needed doco.
1173         * ldmain.c (as_needed): New global var.
1174         * ldmain.h (as_needed): Declare.
1175         * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1176         OPTION_NO_AS_NEEDED.
1177         (ld_options): Likewise.
1178         (parse_args): Handle them.
1179         * ldlang.h (lang_input_statement_type): Add as_needed field.
1180         * ldlang.c (new_afile): Set p->as_needed.
1181         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1182         (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1183         (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1185         * ldlang.c (open_input_bfds): Remove useless cast.
1186         (lang_do_assignments_1): Likewise.
1187         (lang_for_each_input_section): Delete.
1189 2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1191         * configure.tgt: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff*.
1193 2004-03-08  Danny Smith  <dannysmith@users.sourceforge.net>
1195         * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1196         private when building implib.
1198 2004-03-05  Nathan Sidwell  <nathan@codesourcery.com>
1200         * ldlang.c (lang_add_section): Don't force SEC_LOAD on
1201         SEC_THREAD_LOCAL.
1202         (IGNORE_SECTION): Ignore .tbss sections too.
1203         (lang_size_sections_1): .tbss sections do not advance dot.
1205 2004-03-01  Andreas Schwab  <schwab@suse.de>
1207         * ld.texinfo (Options): Fix example for --wrap.
1209 2004-02-25  Danny Smith  <dannysmith@users.sourceforge.net>
1211         * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1212         not NULL.
1214 2004-02-23  Ian Lance Taylor  <ian@wasabisystems.com>
1216         * ldlang.c (lang_check): Use %P, not %E, in error message.
1218 2004-02-23  Nathan Sidwell  <nathan@codesourcery.com>
1220         * ldlang.h (struct lang_output_section_state): Change processed
1221         field's type.
1222         * ldexp.c (check, invalid): Remove.
1223         (fold_name): Move valid_p assignments. Create undefined symbol
1224         when needed. Directly exampine section's processd flag.
1225         * ldlang.c (lang_output_section_statement_lookup): Adjust
1226         processed field init.
1227         (lang_size_sections_1): Allow LOADADDR when determining section's
1228         VMA. Adjust error message. Fold data statement's expr.
1229         (lang_size_sections): Correctly increment lang_statement_iteration.
1231 2004-02-23  Alan Modra <amodra@bigpond.net.au>
1233         * ldexp.c (fold_tree): Follow indirect symbols.
1235 2004-02-20  Nathan Sidwell  <nathan@codesourcery.com>
1237         * ldgram.y (exp): Add two operand ALIGN.
1238         * ldexp.c (fold_binary): Add ALIGN_K case.
1239         * ld.texinfo (ALIGN): Document two operand version.
1241 2004-02-19  Nathan Sidwell  <nathan@codesourcery.com>
1243         * ldlang.c (map_input_to_output_sections): Initialize sections
1244         mentioned in a data statement expression.
1245         (lang_do_assignments_1): Add data statement's expression's
1246         section's vma.
1248 2004-02-18  Nathan Sidwell  <nathan@codesourcery.com>
1250         * ldgram.y (statement_anywhere): Add assert rule.
1251         * ldlang.c (exp_init_os): Add assert case.
1253 2004-02-14  Andrew Cagney  <cagney@redhat.com>
1255         * ldmain.c (remove_output): Call bfd_cache_close.
1257 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
1259         * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
1260         .MIPS.content* and .MIPS.events* sections.
1262 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
1264         * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
1265         .note.gnu.arm.ident to after allocated sections.  Mark its
1266         address as 0.
1268 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
1270         * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
1271         * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
1272         * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
1273         * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
1274         * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
1276 2004-02-05  Nick Clifton  <nickc@redhat.com>
1278         * emultempl/pe.em (_after_open): Fix typo in previous delta.
1280 2004-02-04  Danny Smith  <dannysmith@users.sourceforge.net>
1282         * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
1284 2004-01-28  Alan Modra  <amodra@bigpond.net.au>
1286         * genscripts.sh: Fix typo.
1288         * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1290 2004-01-24  Jakub Jelinek  <jakub@redhat.com>
1292         * emulparams/elf64_ia64.sh: Put .rela.opd into
1293         OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1295 2004-01-20  Danny Smith  <dannysmith@users.sourceforge.net>
1297         * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1298         * ld.texinfo (--omagic): Note that writable text section
1299         does not conform to published PE-COFF specs.
1300         (--enable-auto-import): Likewise.
1302 2004-01-15  Alan Modra  <amodra@bigpond.net.au>
1304         * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
1306 2004-01-13  Nick Clifton  <nickc@redhat.com>
1308         * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
1309         which if true will prevent the LMA region being used as a
1310         replacement for a default VMA region.
1311         (lang_leave_output_section_statement): Pass extra parameter.
1312         (lang_leave_overlay): Likewise.
1313         * ld.texinfo (Output Section LMA): Document that the LMA
1314         region can be set to the VMA region if no VMA has been set.
1315         * ldlang.h (struct lang_output_section_phdr_list): Create a
1316         typedef for this type.  Minor formatting fixes.
1318 2004-01-13  Nick Clifton  <nickc@redhat.com>
1320         * ldlang.c (lang_size_sections_1): If dot is advanced, then
1321         assume that the section should be allocated.
1323 2004-01-13  Alan Modra  <amodra@bigpond.net.au>
1325         * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1326         sections.  Do ignore SEC_NEVER_LOAD sections.
1327         (lang_size_sections_1): Remove test made redundant with the above.
1329 2004-01-09  Alan Modra  <amodra@bigpond.net.au>
1331         * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1332         program_header_size.
1334 2004-01-06  Alexandre Oliva  <aoliva@redhat.com>
1336         2003-11-28  Alexandre Oliva  <aoliva@redhat.com>
1337         * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1338         2003-11-05  Alexandre Oliva  <aoliva@redhat.com>
1339         * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1340         (MAXPAGESIZE): Set to 64Kb.
1341         (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1342         __ROFIXUP_END__.  Don't map .rofixup.got any more.
1343         * emulparams/elf32frv.sh (NOP): Set.
1344         2003-10-31  Alexandre Oliva  <aoliva@redhat.com>
1345         * configure.tgt: Add frv-*-*linux*.
1346         2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
1347         * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1348         (eelf32frvfd.c): New.
1349         * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1350         * emulparams/elf32frv.sh: Reverted previous two patches.
1351         * emulparams/elf32frvfd.sh: New.
1352         * Makefile.in: Rebuilt.
1353         2003-09-18  Alexandre Oliva  <aoliva@redhat.com>
1354         * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1355         .rofixup.got to .rofixup.
1356         2003-09-15  Alexandre Oliva  <aoliva@redhat.com>
1357         * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
1358         (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
1360 2004-01-05  Jakub Jelinek  <jakub@redhat.com>
1362         * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
1363         * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
1365 2004-01-03  Alan Modra  <amodra@bigpond.net.au>
1367         * ldexp.c (align_n): Make static.
1368         * ldexp.h (align_n): Delete declaration.
1369         * ldlang.h (lang_enter_output_section_statement): Remove
1370         block_value param.
1371         * ldlang.c (lang_enter_output_section_statement): Likewise.
1372         (TO_ADDR, TO_SIZE): Define.
1373         (opb_shift): New var.
1374         (init_opb): New function.
1375         (print_input_section): Call init_opb and use TO_ADDR.
1376         (print_data_statement, print_reloc_statement): Likewise.
1377         (print_padding_statement): Likewise.
1378         (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
1379         (lang_check_section_addresses): Likewise.
1380         (lang_size_sections_1): Likewise.
1381         (lang_do_assignments_1): Likewise.
1382         (lang_set_startof): Likewise.
1383         (lang_one_common): Likewise.  Combine power_of_two and opb_shift align.
1384         (lang_process): Call init_opb.
1385         (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
1386         (lang_enter_overlay_section): Adjust
1387         lang_enter_output_section_statement call.
1388         * ldgram.y: Likewise.
1389         * mri.c (mri_draw_tree): Likewise.
1390         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1391         * emultempl/mmo.em (mmo_place_orphan): Likewise.
1392         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1394         * ldfile.c (ldfile_set_output_arch): Add defarch param.
1395         * ldfile.h (ldfile_set_output_arch): Ditto.
1396         * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
1397         ldfile_set_output_arch.
1398         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1399         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
1400         * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
1401         * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1402         * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
1403         * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1404         * ldgram.y: Adjust ldfile_set_output_arch call.
1405         * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1406         * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
1407         * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
1408         * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
1409         * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
1410         * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1411         * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1413 2004-01-02  Bernardo Innocenti  <bernie@develer.com>
1415         * configure.tgt: Add m68k-uClinux target.
1417 For older changes see ChangeLog-0203
1419 Local Variables:
1420 mode: change-log
1421 left-margin: 8
1422 fill-column: 74
1423 version-control: never
1424 End: