* elf32-arm.h (elf32_arm_finish_dynamic_sections): Use file
[binutils.git] / ld / ChangeLog
blobbc1e142f341b56c61e284440b0cdd2e4b6151915
1 2004-10-13  Mark Mitchell  <mark@codesourcery.com>
3         * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
4         loadable segment.
6 2004-10-13  Alan Modra  <amodra@bigpond.net.au>
8         PR 44
9         * ldcref.c (check_section_sym_xref): Delete.
10         (check_local_sym_xref): New function.
11         (check_nocrossrefs): Adjust call.
12         * emultempl/pe.em (struct orphan_save): Add os_tail.
13         (place_orphan): Backport assorted fixes from elf32.em.
15 2004-10-12  Bob Wilson  <bob.wilson@acm.org>
17         * emultempl/xtensaelf.em: Use ISO C90 formatting.
19 2004-10-11  Jakub Jelinek  <jakub@redhat.com>
21         * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
22         getline for portability.
24         * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
25         (gld${EMULATION_NAME}_parse_ld_so_conf,
26         gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
27         (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
29 2004-10-11  Alan Modra  <amodra@bigpond.net.au>
31         PR 423
32         * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
33         rejected when linking statically.
35 2004-10-08  Daniel Jacobowitz  <dan@debian.org>
37         * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
39 2004-10-07  Bob Wilson  <bob.wilson@acm.org>
41         * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
42         assembler-generated longcall sequences.  Describe new --size-opt
43         option.
44         * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
45         * emultempl/xtensaelf.em (remove_section,
46         replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
47         elf_xtensa_after_open): New.
48         (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
49         OPTION_NO_LITERAL_MOVEMENT): Define.
50         (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
51         (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
52         (PARSE_AND_LIST_OPTIONS): Add --size-opt.
53         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
54         OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
55         (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
56         * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
57         * Makefile.am (eelf32xtensa.c): Update dependencies.
58         * Makefile.in: Regenerate.
60 2004-10-07  Jeff Baker  <jbaker@qnx.com>
62         * lexsup.c: Handle --warn-shared-textrel option.
63         (ld_options): Restore alpha sorting of options.
64         * ldmain.c (main): Initialise warn_shared_info field to FALSE.
65         * ld.texinfo: Add documentation for --warn-shared-textrel.
66         * NEWS: Added mention of --warn-shared-textrel option.
68 2004-10-05  Tomer Levi  <Tomer.Levi@nsc.com>
70         * emultempl/crxelf.em (disable_relaxation): Add.
71         (crxelf_before_allocation): Enable --relax option by default.
72         (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
73         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
74         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
76 2004-10-04  H.J. Lu  <hongjiu.lu@intel.com>
78         * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
79         --sort-section name|alignment.
81         * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
82         --sort-section name|alignment.
84         * ld.h (sort_type): New enum.
85         (wildcard_spec): Change the type of `sorted' to sort_type.
87         * ldgram.y (SORT): Removed.
88         (SORT_BY_NAME): Added.
89         (SORT_BY_ALIGNMENT): Added.
90         (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
91         SORT_BY_ALIGNMENT.
92         (input_section_spec_no_keep): Updated `sorted'.
93         (statement): Replace SORT with SORT_BY_NAME.
95         * ldlang.c (compare_section): New function to compare 2
96         sections with different sorting schemes.
97         (wild_sort): Updated. Use compare_section.
98         (update_wild_statements): New function.
99         (lang_process): Call update_wild_statements before
100         map_input_to_output_sections.
102         * ldlex.l (SORT_BY_NAME): New.
103         (SORT_BY_ALIGNMENT): New.
104         (SORT): Return SORT_BY_NAME.
106         * ldmain.c (sort_section): New. Defined.
107         (main): Initialize it to none.
109         * lexsup.c (option_values): Add OPTION_SORT_SECTION.
110         (ld_options): Add an entry for OPTION_SORT_SECTION.
111         (parse_args): Handle OPTION_SORT_SECTION.
113         * mri.c (mri_draw_tree): Updated `sorted'.
115 2004-10-04  Jakub Jelinek  <jakub@redhat.com>
117         * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
118         * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
119         argument.
120         (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
121         and . as second argument.
122         (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
123         * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
124         (fold_binary): Add it here.  Insert padding to make relro_end
125         COMMONPAGESIZE bytes aligned.  For DATA_SEGMENT_ALIGN in
126         exp_dataseg_relro_adjust phase just use previously computed
127         exp_data_seg.base.
128         * ldlang.c (lang_size_sections): Set exp_data_seg.base for
129         relro_adjust here.  Call lang_size_sections_1 once more if there
130         was too big padding at DATA_SEGMENT_RELRO_END.
131         * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
133 2004-10-01  Paul Brook  <paul@codesourcery.com>
135         * emulparams/armelf.sh: Add unwinding table sections.
137 2004-09-30  Filip Navara  <navaraf@reactos.com>
139         * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
140         correct base address for position independant executables.
141         * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
142         executables as DLLs.
144 2004-09-30  Paul Brook  <paul@codesourcery.com>
146         * ld.texinfo: Document --target2=abs.
147         * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
149 2004-09-29  Nick Clifton  <nickc@redhat.com>
151         * scripttempl/xstormy16.sc: Only perform the assignments to the
152         ROM region when not performing a relocatable link.  The ROM region
153         does not start at address 0, but the sections will.
154         * Makefile.am: Fix linker script dependency for the generation of
155         eelf32xstormy16.c.
156         * Makefile.in: Regenerate.
158 2004-09-18  Filip Navara  <navaraf@reactos.com>
160         * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
161         emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
162         emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
163         TARGET_PAGE_SIZE.
164         * scripttempl/pe.sc: Make the virtual address and file offset synced if
165         the alignment is lower than the target page size.
167 2004-09-27  Filip Navara  <navaraf@reactos.com>
169         * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
170         def_file_parse to handle pe_def_file if NULL and prevent crash with
171         invalid .def files.
173 2004-09-27  Alan Modra  <amodra@bigpond.net.au>
175         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
176         --emit-stub-syms automatically when --emit-relocs.
178 2004-09-24  Paul Brook  <paul@codeosurcery.com>
180         * scripttempl/elf.sc: Keep .preinit_array, .init_array and
181         .fini_array sections.
183 2004-09-19  Andreas Schwab  <schwab@suse.de>
185         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
186         base so that relro end is suitably aligned.
188 2004-09-17  Paul Brook  <paul@codesourcery.com>
190         * ld.texinfo: Rename arm-specific section.  Document --target*
191         * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
192         * emulparams/armelf_linux.sh: Ditto.
193         * emulparams/armelf_nbsd.sh: Ditto.
194         * emultempl/armelf.em: Set default for TARGET2_TYPE.
195         (target2_type): New variable.
196         (arm_elf_before_allocation): Don't pass target1_type.
197         (arm_elf_create_output_section_statements): New function.
198         (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
199         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
200         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
201         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
202         * emultempl/armelf_oabi.em (_before_allocation): Remove extra
203         argument to bfd_elf32_arm_process_before_allocation.
205 2004-09-17  Alan Modra  <amodra@bigpond.net.au>
207         * ldexp.c (fold_name): Update u.undef.next refs.
208         * emultempl/pe.em: Likewise.
209         * emultempl/sunos.em: Likewise.
211 2004-09-17  Alan Modra  <amodra@bigpond.net.au>
213         * Makefile.am: Run "make dep-am".
214         * Makefile.in: Regenerate.
215         * config.in: Regenerate.
216         * configure: Regenerate.
217         * aclocal.m4: Regenerate.
218         * po/ld.pot: Regenerate.
220 2004-09-16  Tomer Levi  <Tomer.Levi@nsc.com>
222         * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
223         (.fini): Likewise.
224         (.jcr): Likewise.
226 2004-09-16  Alan Modra  <amodra@bigpond.net.au>
228         * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
229         to bfd_elf32_arm_process_before_allocation call.
231 2004-09-13  Paul Brook  <paul@codesourcery.com>
233         * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
234         * emultempl/armelf.em: Use TARGET1_IS_REL.  Add --target1-{rel,abs}.
236 2004-09-07  H.J. Lu  <hongjiu.lu@intel.com>
238         * configure: Regenerated with autconfig 2.13.
240 2004-09-07  Andreas Schwab  <schwab@suse.de>
242         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
243         alignment before adjusting DATA_SEGMENT_RELRO_END.
245 2004-09-06  Mark Mitchell  <mark@codesourcery.com>
247         * emulparams/armsymbian.sh: Use armbpabi script.
248         * scripttempl/armbpabi.sc: New script.
250 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
252         * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
253         (earmsymbian.c): New target.
254         * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
255         * Makefile.in: Regenerated.
256         * aclocal.m4: Likewise.
257         * configure: Likewise.
258         * emulparams/armsymbian.sh: New file.
260 2004-09-03  Tomer Levi  <Tomer.Levi@nsc.com>
262         * scripttempl/elf32crx.sc: Edit file with comments.
263         (.init): Add new section.
264         (.fini): Likewise.
265         (.ctor): Control the linkage order.
266         (.dtor): Likewise.
268 2004-08-27  Nick Clifton  <nickc@redhat.com>
270         * emultempl/pe.em (after_open): Do not assume that either bfd is
271         an archive.
273 2004-08-26  Alan Modra  <amodra@bigpond.net.au>
275         * ldlang.c (lang_init): Don't compare with TRUE.
277 2004-08-25  Dmitry Diky  <diwil@spec.ru>
279         * emulparams/msp430all.sh: Fix RAM sizes for all targets.
280         * scripttempl/elf32msp430.sc: Add .profiler section definition.
282 2004-08-24  H.J. Lu  <hongjiu.lu@intel.com>
284         * ldlang.c (wildcardp): Defined as a macro with strpbrk.
286 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
288         * configure.tgt (arm*-*-symbianelf*): New target.
289         (arm*-*-eabi*): Likewise.
291 2004-08-19  Jakub Jelinek  <jakub@redhat.com>
293         * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
294         (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
295         (OPTION_NON_OVERLAPPING_OPD): Define.
296         (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
297         --non-overlapping-opd option.
299 2004-08-18  Alan Modra  <amodra@bigpond.net.au>
301         PR 338
302         * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
303         was already on the undefs list.
305 2004-08-17  Alan Modra  <amodra@bigpond.net.au>
307         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
308         prefix the symbol field too.
310 2004-08-13  Alan Modra  <amodra@bigpond.net.au>
312         * ldmain.c (link_callbacks): Remove "error_handler".
313         * ldmisc.c: Include elf-bfd.h.
314         (vfinfo): Sort comment.  Handle %A.  Use %A instead of
315         bfd_get_section_indent.
316         (error_handler): Delete.
317         * ldmisc.h (error_handler): Delete declaration.
319 2004-08-10  Alan Modra  <amodra@bigpond.net.au>
321         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
322         ppc64_elf_restore_symbols.
324 2004-08-09  Alan Modra  <amodra@bigpond.net.au>
326         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
327         .toc is too large on relocatable linking.
329 2004-08-09  Alan Modra  <amodra@bigpond.net.au>
331         * emultempl/ppc64elf.em (ppc_after_open): Delete.
332         (LDEMUL_AFTER_OPEN): Don't define.
334 2004-08-02  Stephane Carrez  <stcarrez@nerim.fr>
336         * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
338 2004-08-01  Stephane Carrez  <stcarrez@nerim.fr>
340         * scripttempl/elfm68hc12.sc: Align text, rodata and data section
341         on power of 2.
343 2004-07-27  Jason Thorpe  <thorpej@wasabisystems.com>
345         * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
347 2004-07-26  Dmitry Diky  <diwil@spec.ru>
349         * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
350         msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
351         msp430xG439.
352         * configure.tgt: Likewise.
353         * emulparams/msp430all.sh: Likewise.
354         * Makefile.in: Regenerate.
356 2004-07-23  Nick Clifton  <nickc@redhat.com>
358         * emultempl/elf32.em (_place_orphan): Use an already existing
359         section name if that section does not have any flags set.
361 2004-07-21  H.J. Lu  <hongjiu.lu@intel.com>
363         * ldlang.c (already_linked_hash_entry): Removed.
364         (already_linked): Likewise.
365         (already_linked_table): Likewise.
366         (section_already_linked): Call bfd_section_already_linked.
367         (lang_process): Replace already_linked_table_init with
368         bfd_section_already_linked_table_init and check return. Replace
369         already_linked_table_free with bfd_section_already_linked_table_free.
371 2004-07-21  Nick Clifton  <nickc@redhat.com>
373         * ldlang.c (init_os): Make sure that the newly allocated userdata
374         structure is zeroed out.
376 2004-07-19  H.J. Lu  <hongjiu.lu@intel.com>
378         * NEWS: Mention the new --add-needed/--no-add-needed and
379         --as-needed/--no-as-needed options.
381 2004-07-19  H.J. Lu  <hongjiu.lu@intel.com>
383         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
384         check the add_needed field.
385         (dt_needed): New struct.
386         (gld${EMULATION_NAME}_try_needed): Change the first argument
387         to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
388         bit in the file where the DT_NEEDED entry comes from.
389         (gld${EMULATION_NAME}_search_needed): Change the second
390         argument to a pointer to struct dt_needed.
391         (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
392         (gld${EMULATION_NAME}_after_open): Likewise.
394         * ld.texinfo: Add --add-needed document.
395         * ldlang.c (new_afile): Set p->add_needed.
396         * ldlang.h (lang_input_statement_type): Add add_needed field.
397         * ldmain.h (add_needed): Declare.
398         * ldmain.c (add_needed): New global var.
399         * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
400         OPTION_NO_ADD_NEEDED.
401         (ld_options): Likewise.
402         (parse_args): Handle them.
404 2004-07-13  Christof Petig  <christof@petig-baender.de>
406         * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
407         for endian-ness of extracted addend.
409 2004-07-13  Danny Smith  <dannysmith@usesr.sourceforge.net>
411         * pe-dll.c (auto_export):  Filter on just the import prefix,
412         "_imp_", not "_imp__".
414 2004-07-09  Nick Clifton  <nickc@redhat.com>
416         * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
418 2004-07-06  Tomer Levi  <Tomer.Levi@nsc.com>
420         * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
421         (eelf32crx.c): New target.
422         * Makefile.in: Regenerate.
423         * configure.tgt: Handle crx-*-elf*.
424         * emulparams/elf32crx.sh: New file.
425         * emultempl/crxelf.em: New file.
426         * scripttempl/elf32crx.sc: New file.
427         * NEWS: Mention new target.
429 2004-07-06  Nick Clifton  <nickc@redhat.com>
431         * Makefile.am: Add eshlsymbian.c.
432         * Makefile.in: Regenerate.
433         * configure.tgt: Add sh*-symbian-elf target.
434         * emulparams/shlsymbian.sh: New file.  Configure the
435         sh-symbian-elf linker scripts.
436         * scripttemp/elf32sh-symbian.sc: New file.  Linker script
437         template for the sh-symbian-elf target.
439 2004-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
441         * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
442         * emulparams/hppalinux.sh: Likewise.
443         * scripttempl/elf.sc: Place .plt just before .got when .plt is in
444         data segment and PLT_BEFORE_GOT is defined.
446 2004-07-03  Aaron W. LaFramboise  <aaron98wiridge9@aaronwl.com>
448         * ld.texinfo (WIN32): Document PE weak symbols.
450 2004-07-02  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
452         * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
454 2004-07-01  H.J. Lu  <hongjiu.lu@intel.com>
456         * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
457         the section.
459 2004-06-29  Alan Modra  <amodra@bigpond.net.au>
461         * ldlang.c (lang_reset_memory_regions): Save last relax pass section
462         size in rawsize.
464 2004-06-24  Alan Modra  <amodra@bigpond.net.au>
466         * ldlang.c (print_output_section_statement): Don't print size before
467         relaxation.
468         (IGNORE_SECTION): Remove bfd arg.  Update all callers.
470         * ldexp.c (fold_name): .. See below.
471         * ldlang.c (section_already_linked, print_output_section_statement,
472         print_input_section, insert_pad, size_input_section,
473         lang_check_section_addresses, lang_size_sections_1,
474         lang_size_sections, lang_do_assignments_1, lang_set_startof,
475         lang_one_common, lang_reset_memory_regions, lang_process,
476         lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
477         * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
478         * pe-dll.c (process_def_file, generate_reloc): ..
479         * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
480         gld${EMULATION_NAME}_before_allocation): ..
481         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
482         * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
483         sh64_elf_${EMULATION_NAME}_after_allocation): ..
484         * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
485         * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
486         ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
487         "size" instead of "_raw_size" and "_cooked_size".  Expand
488         bfd_section_size macro invocations.
490 2004-06-22  Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
492         * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
493         ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
494         ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
495         ___crt_xt_end__.
496         (.tls): Define ___tls_start__ and ___tls_end__.
498 2004-06-21  Alexandre Oliva  <aoliva@redhat.com>
500         * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
502 2004-06-18  Adam Nemet  <anemet@lnxw.com>
504         * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
505         * configure: Regenerate.
507 2004-06-15  Jakub Jelinek  <jakub@redhat.com>
509         * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
510         .gcc_except_table output sections lost accidentally with
511         -z relro patch.
513 2004-06-15  Alan Modra  <amodra@bigpond.net.au>
515         * ldwrite.c (build_link_order): Use bfd_get_section_size
516         instead of bfd_get_section_size_before_reloc or _raw_size.
517         * pe-dll.c (process_def_file): Likewise.
519 2004-06-14  Alan Modra  <amodra@bigpond.net.au>
521         From Richard Wirth <r.wirth@wirthware.de>
522         * ldlang.c (lang_finish): Don't free lang_definedness_table.
524 2004-05-29  Alan Modra  <amodra@bigpond.net.au>
526         * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
527         (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
529 2004-05-28  Andrew Stubbs <andrew.stubbs@superh.com>
531         * testsuite/ld-sh/arch/arch.exp: New test script.
532         * testsuite/ld-sh/arch/arch_expected.txt: New file.
533         * testsuite/ld-sh/arch/sh.s: New file.
534         * testsuite/ld-sh/arch/sh2.s: New file.
535         * testsuite/ld-sh/arch/sh-dsp.s: New file.
536         * testsuite/ld-sh/arch/sh2e.s: New file.
537         * testsuite/ld-sh/arch/sh3-nommu.s: New file.
538         * testsuite/ld-sh/arch/sh3.s: New file.
539         * testsuite/ld-sh/arch/sh3-dsp.s: New file.
540         * testsuite/ld-sh/arch/sh3e.s: New file.
541         * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
542         * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
543         * testsuite/ld-sh/arch/sh4.s: New file.
544         * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
545         * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
546         * testsuite/ld-sh/arch/sh4a.s: New file.
548 2004-05-28  Alan Modra  <amodra@bigpond.net.au>
550         * ldlang.c: Formatting.  Wrap long lines, expand bfd_get_section_flags
551         throughout file.
552         * lexsup.c: Formatting.  Wrap long lines.
553         * ldwrite.c: Update copyright date.
555         * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
556         (output_section_callback): Nor SEC_KEEP here.
557         (gc_section_callback): Twiddle SEC_EXCLUDE here.
558         (lang_gc_wild): Delete.  Fold into..
559         (lang_gc_sections_1): ..here.  Only call bfd_gc_sections when garbage
560         collecting.
561         (lang_process): Always call lang_gc_sections.
562         (lang_place_orphans): Handle SEC_EXCLUDE sections.
563         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
564         SEC_EXCLUDE code.
566 2004-05-26  H.J. Lu  <hongjiu.lu@intel.com>
568         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
569         SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
570         * ldlang.c (lang_add_section): Likewise.
572 2004-05-26  Alan Modra  <amodra@bigpond.net.au>
574         * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
575         sections when doing a final link.  Clear SEC_EXCLUDE when doing
576         a relocable link, except for SEC_DEBUGGING sections.
577         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
578         same condition here to drop SEC_EXCLUDE orphan sections.
580 2004-05-25  Alan Modra  <amodra@bigpond.net.au>
582         * ldlang.c (lang_process): Call bfd_merge_sections later, and
583         only when not a relocatable link.
584         (print_input_section): Handle SEC_EXCLUDE sections.
585         (size_input_section): Don't update dot on SEC_EXCLUDE sections.
586         (lang_do_assignments_1): Likewise.
587         * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
588         * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
589         * emultempl/hppaelf.em (build_section_lists): Likewise.
590         * emultempl/ppc64elf.em (build_toc_list): Likewise.
591         (build_section_lists): Likewise.
593 2004-05-23  Andreas Schwab  <schwab@suse.de>
595         * ld.texinfo (Options): Fix typo in last change.
597 2004-05-21  Andy Chittenden  <achittenden@bluearc.com>
599         * ld.h (ld_config_type): Add new field: hash_table_size.
600         * ldmain.c: Initialise the new field to zero.  If it is non-zero
601         after parsing the linker's command line call
602         bfd_hash_set_default_size.
603         * lexsup.c (option_values): Add OPTION_HASH_SIZE.
604         (ld_options): Add hash-size.
605         (parse_args): Parse --hash-size option.  Allow
606         --reduce-memory-overheads to set the default hash table size as
607         well.
608         * ld.texinfo: Document the new switch.  Also mention that
609         --reduce-memory-overheads can affect the hash table size.
610         * NEWS: Mention the new feature.
612 2004-05-19  J"orn Rennecke <joern.rennecke@superh.com>
614         * NEWS: Mention new linker map file generation and the
615         --reduce-memory-overheads option.
616         * ld.texinfo: Document --reduce-memory-overheads option.
617         * ld.h (map_symbol_def): New struct.
618         (struct user_section_struct, section_userdata_type): Rename to:
619         (struct lean_user_section_struct, lean_section_userdata_type).
620         (struct fat_user_section_struct, fat_section_userdata_type): New.
621         (SECTION_USERDATA_SIZE): Define.
622         (args_type): New member reduce_memory_overheads.
623         * ldlang.c (map_obstack): New static variable.
624         (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
625         (lang_map): Unless command_line.reduce_memory_overheads is set,
626         initialize lists of defined symbols for each section.
627         (print_input_section): Unless command_line.reduce_memory_overheads
628         is set, use print_all_symbols.
629         (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
630         * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
631         * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
632         (ld_options): Add entry for --reduce-memory-overheads.
633         (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
635 2004-05-19  Jakub Jelinek  <jakub@redhat.com>
637         * ldgram.y (sect_constraint): New.
638         (ONLY_IF_RO, ONLY_IF_RW): New tokens.
639         (section): Add sect_constraint.  Pass additional argument
640         to lang_enter_output_section_statement.
641         * mri.c (mri_draw_tree): Pass additional argument to
642         lang_enter_output_section_statement.
643         * emultempl/pe.em (place_orphan): Likewise.
644         (output_prev_sec_find): Disregard output section statements with
645         constraint == -1.
646         * emultempl/mmo.em (output_prev_sec_find): Likewise.
647         (mmo_place_orphan): Pass additional argument to
648         lang_enter_output_section_statement.
649         * emultempl/elf32.em (output_prev_sec_find): Disregard output section
650         statements with constraint == -1.
651         (place_orphan): Pass additional argument to
652         lang_enter_output_section_statement.
653         * ldlang.c (lang_enter_overlay_section): Likewise.
654         (lang_output_section_find_1): New.
655         (lang_output_section_find): Use it.
656         (lang_output_section_statement_lookup_1): New.
657         (lang_output_section_statement_lookup): Use it.
658         (check_section_callback, check_input_sections): New.
659         (map_input_to_output_sections): Check if all input sections
660         are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
661         (strip_excluded_output_sections): Disregard output section statements
662         with constraint == -1.
663         (lang_record_phdrs): Likewise.
664         (lang_enter_output_section_statement): Add constraint argument.
665         Use lang_output_section_statement_lookup_1.
666         * ldlang.h (lang_output_section_statement_type): Add constraint
667         and all_input_readonly fields.
668         (lang_enter_output_section_statement): Adjust prototype.
669         * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
670         * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
671         segment if all input sections are readonly.
673 2004-05-19  Adam Nemet  <anemet@lnxw.com>
675         * scripttempl/i386lynx.sc: Remove file.
677 2004-05-17  Bob Wilson  <bob.wilson@acm.org>
679         * ld.texinfo (Output Section Address): Correct subsection name.
681 2004-05-17  Adam Nemet  <anemet@lnxw.com>
683         * configure.tgt (powerpc-*-lynxos* case): New case.
684         * configure.host (i[3-7]86-*-lynxos* case): Remove case.
685         * emulparams/ppclynx.sh: New file.
686         * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
687         * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
688         (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
689         (eppclynx.c): New rule.
690         * Makefile.in: Regenerate.
692 2004-05-13  Joel Sherrill <joel@oarcorp.com>
694         * configure.tgt (or32-*-rtems*): Switch to elf and
695         support versioned targets.
697 2004-05-13  Nick Clifton  <nickc@redhat.com>
699         * po/fr.po: Updated French translation.
701 2004-05-11  Jakub Jelinek  <jakub@redhat.com>
703         * genscripts.sh: Generate -z combreloc -z now -z relro scripts
704         for binaries, -shared and -pie.
705         * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
706         * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
707         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
708         (OTHER_RELRO_SECTIONS): ... this.
709         * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
710         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
711         -z relro and -z norelro.
712         (gld${EMULATION_NAME}_list_options): Add it to usage.
713         (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
714         -z relro scripts when appropriate.
715         * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
716         Create separate .got.plt section if SEPARATE_GOTPLT.
717         Move sections which are only written during relocation handling
718         to the beginning of RW segment.  If NO_SMALL_DATA, move .got
719         before .data.  Add DATA_SEGMENT_RELRO_END directive.
720         Include OTHER_RELRO_SECTIONS.
721         * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
722         * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
723         (fold_unary): Likewise.
724         (fold_binary): Handle -z relro.
725         * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
726         exp_dataseg_relro_adjust phases.  Add relro_end field.
727         * ldmain.c (main): Initialize link_info.relro to FALSE.
728         * ldlang.c (lang_size_sections): Handle -z relro.
730 2004-05-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
732         * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
734 2004-05-07  J"orn Rennecke <joern.rennecke@superh.com>
736         * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
737         before printing it with %W.
739 2004-05-07  Brian Ford  <ford@vss.fsi.com>
740             DJ Delorie  <dj@redhat.com>
742         * emultempl/pe.em (real_flags): New static.
743         (OPTION_LARGE_ADDRESS_AWARE): New define.
744         (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
745         (gld_${EMULATION_NAME}_list_options): Likewise.
746         (gld${EMULATION_NAME}_handle_option): Likewise.
747         (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
748         * ld.texinfo: Document it.
749         * NEWS: Mention it.
751 2004-05-07  Brian Ford  <ford@vss.fsi.com>
753         * NEWS: Mention DWARF 2 support for i386pe.
755 2004-05-05  Alexandre Oliva  <aoliva@redhat.com>
757         * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
758         elf32-frvfdpic.
760 2004-04-30  Alan Modra  <amodra@bigpond.net.au>
762         * ldlang.c (unique_section_p): Pass section parm, return true on
763         group sections.
764         (output_section_callback): Adjust.
765         * ldlang.h (unique_section_p): Update prototype.
766         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
768 2004-04-30  Eric Botcazou  <ebotcazou@act-europe.fr>
770         * ld.texinfo (--gc-sections): Remove restriction for
771         dynamic linking.
773 2004-04-29  Brian Ford  <ford@vss.fsi.com>
775         * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
776         for DWARF 2/3.  Update stab section's syntax.
778 2004-04-29  Alan Modra  <amodra@bigpond.net.au>
780         * pe-dll.c: Revert changes accidentally committed 2004-03-08.
781         (fill_edata): Correct pointer arithmetic.
783 2004-04-21  Chris Demetriou  <cgd@broadcom.com>
785         * ld.texinfo: Remove MIPS --embedded-relocs documentation.
786         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
787         * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
788         (EXTRA_EM_FILE): Use mipsecoff.em
789         * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
790         (EXTRA_EM_FILE): Use mipsecoff.em
791         * emultempl/mipsecoff.em: Restructure to be included as an
792         extra emulation file.
793         (check_sections, gld${EMULATION_NAME}_after_open)
794         (gld${EMULATION_NAME}_after_allocation)
795         (gld${EMULATION_NAME}_get_script)
796         (ld_${EMULATION_NAME}_emulation): Remove
797         (gld${EMULATION_NAME}_before_parse): Rename to...
798         (mipsecoff_before_parse): This.
799         (LDEMUL_BEFORE_PARSE): Define.
800         * emultempl/mipself.em: Remove file.
801         * scripttempl/mips.sc (.rel.sdata): Do not include in output.
802         (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
803         these symbols.
804         * Makefile.am: Remove dependencies on emultempl/mipself.em.
805         * Makefile.in: Regenerate.
807 2004-04-21      Anil Paranjpe   <anilp1@kpitcummins.com>
809         * ld.texinfo (synthesizing on H8/300): Information about linker
810         relaxation support for bit manipulation instructions and system
811         control instructions is added.
813 2004-04-21  Hans-Peter Nilsson  <hp@axis.com>
815         * NEWS: Mention change in DEFINED semantics.
817 2004-04-21  Eric Botcazou  <ebotcazou@act-europe.fr>
819         * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
820         (.data): Add KEEP for .gnu.linkonce.d.*personality*.
821         (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
823 2004-04-21  Ben Elliston  <bje@au.ibm.com>
825         * ld.texinfo (Simple Example): Add missing punctuation.
827 2004-04-20  Chris Demetriou  <cgd@broadcom.com>
829         * NEWS: Note that MIPS --embedded-relocs option is deprecated.
831 2004-04-19  Jakub Jelinek  <jakub@redhat.com>
833         * ldlang.c (lang_do_assignments_1): Handle .tbss output section
834         specially.
836 2004-04-18  Danny Smith  <dannysmith@users.sourceforge.net>
838         * scriptempl/pe.sc:  Put numbered .ctors.* after .ctors
839         with default priority. Likewise for dtors.
841 2004-04-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
843         * configure.host: Remove mips*-dec-bsd* target.
844         * configure.tgt: Likewise.
846 2004-04-08  Richard Sandiford  <rsandifo@redhat.com>
848         * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
849         * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
850         * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
851         * emultempl/irix.em: New file.
852         * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
853         dependencies.
854         * Makefile.in: Regenerate.
856 2004-04-01  Paul Brook  <paul@codesourcery.com>
858         * emultempl/armelf.em (byteswap_code): Add.
859         (arm_elf_before_allocation): Pass extra parameter.
860         (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
861         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
862         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
863         * emultempl/armelf_oabi.em: Pass extra parameter.
864         * ld.texinfo: Document --be8.
866 2004-03-30  Stan Shebs  <shebs@apple.com>
868         Remove long-obsolete MPW support.
869         * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
870         * Makefile.am (mpw): Remove file-presynthesizing actions.
871         * Makefile.in: Likewise.
872         * ldfile.c (slash): Remove MPW case.
873         * ldlex.l [MPW]: Remove unused definition.
875 2004-03-30  Galit Heller  <Galit.Heller@nsc.com>
877         * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
878         (eelf32cr16c.c): New target.
879         * Makefile.in: Regenerate.
880         * configure.tgt: Handle cr16c-*-elf*.
881         * emulparams/elf32cr16c.sh: New file.
882         * scripttempl/elfcr16c.sc: Likewise
883         * NEWS: Mention support for new target.
885 2004-03-30  Nick Clifton  <nickc@redhat.com>
887         * po/sv.po: Updated Swedish translation.
889 2004-03-27  Alan Modra  <amodra@bigpond.net.au>
891         * emultempl/elf32.em: Update new bfd_elf_discard_info name.
892         * emultempl/hppaelf.em: Likewise.
893         * emultempl/ppc64elf.em: Likewise.
894         * emultempl/sh64elf.em: Likewise.
896 2004-03-25  Alan Modra  <amodra@bigpond.net.au>
898         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
899         size_dynamic_sections call.
901 2004-03-23  Alan Modra  <amodra@bigpond.net.au>
903         PR 51.
904         * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
905         link_info.wrap_char.
907 2004-03-20  H.J. Lu  <hongjiu.lu@intel.com>
909         * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
910         or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
912 2004-03-20  Alexandre Oliva  <aoliva@redhat.com>
914         * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
916 2004-03-19  Alan Modra  <amodra@bigpond.net.au>
918         * config.in: Regenerate.
919         * po/ld.pot: Regenerate.
921 2004-03-18  Alan Modra  <amodra@bigpond.net.au>
923         * ld.texinfo: Add --as-needed doco.
924         * ldmain.c (as_needed): New global var.
925         * ldmain.h (as_needed): Declare.
926         * lexsup.c (option_values): Add OPTION_AS_NEEDED and
927         OPTION_NO_AS_NEEDED.
928         (ld_options): Likewise.
929         (parse_args): Handle them.
930         * ldlang.h (lang_input_statement_type): Add as_needed field.
931         * ldlang.c (new_afile): Set p->as_needed.
932         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
933         (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
934         (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
936         * ldlang.c (open_input_bfds): Remove useless cast.
937         (lang_do_assignments_1): Likewise.
938         (lang_for_each_input_section): Delete.
940 2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
942         * configure.tgt: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff*.
944 2004-03-08  Danny Smith  <dannysmith@users.sourceforge.net>
946         * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
947         private when building implib.
949 2004-03-05  Nathan Sidwell  <nathan@codesourcery.com>
951         * ldlang.c (lang_add_section): Don't force SEC_LOAD on
952         SEC_THREAD_LOCAL.
953         (IGNORE_SECTION): Ignore .tbss sections too.
954         (lang_size_sections_1): .tbss sections do not advance dot.
956 2004-03-01  Andreas Schwab  <schwab@suse.de>
958         * ld.texinfo (Options): Fix example for --wrap.
960 2004-02-25  Danny Smith  <dannysmith@users.sourceforge.net>
962         * pe-dll.c (fill_edata): Check that exported_symbol_sections is
963         not NULL.
965 2004-02-23  Ian Lance Taylor  <ian@wasabisystems.com>
967         * ldlang.c (lang_check): Use %P, not %E, in error message.
969 2004-02-23  Nathan Sidwell  <nathan@codesourcery.com>
971         * ldlang.h (struct lang_output_section_state): Change processed
972         field's type.
973         * ldexp.c (check, invalid): Remove.
974         (fold_name): Move valid_p assignments. Create undefined symbol
975         when needed. Directly exampine section's processd flag.
976         * ldlang.c (lang_output_section_statement_lookup): Adjust
977         processed field init.
978         (lang_size_sections_1): Allow LOADADDR when determining section's
979         VMA. Adjust error message. Fold data statement's expr.
980         (lang_size_sections): Correctly increment lang_statement_iteration.
982 2004-02-23  Alan Modra <amodra@bigpond.net.au>
984         * ldexp.c (fold_tree): Follow indirect symbols.
986 2004-02-20  Nathan Sidwell  <nathan@codesourcery.com>
988         * ldgram.y (exp): Add two operand ALIGN.
989         * ldexp.c (fold_binary): Add ALIGN_K case.
990         * ld.texinfo (ALIGN): Document two operand version.
992 2004-02-19  Nathan Sidwell  <nathan@codesourcery.com>
994         * ldlang.c (map_input_to_output_sections): Initialize sections
995         mentioned in a data statement expression.
996         (lang_do_assignments_1): Add data statement's expression's
997         section's vma.
999 2004-02-18  Nathan Sidwell  <nathan@codesourcery.com>
1001         * ldgram.y (statement_anywhere): Add assert rule.
1002         * ldlang.c (exp_init_os): Add assert case.
1004 2004-02-14  Andrew Cagney  <cagney@redhat.com>
1006         * ldmain.c (remove_output): Call bfd_cache_close.
1008 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
1010         * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
1011         .MIPS.content* and .MIPS.events* sections.
1013 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
1015         * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
1016         .note.gnu.arm.ident to after allocated sections.  Mark its
1017         address as 0.
1019 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
1021         * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
1022         * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
1023         * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
1024         * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
1025         * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
1027 2004-02-05  Nick Clifton  <nickc@redhat.com>
1029         * emultempl/pe.em (_after_open): Fix typo in previous delta.
1031 2004-02-04  Danny Smith  <dannysmith@users.sourceforge.net>
1033         * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
1035 2004-01-28  Alan Modra  <amodra@bigpond.net.au>
1037         * genscripts.sh: Fix typo.
1039         * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1041 2004-01-24  Jakub Jelinek  <jakub@redhat.com>
1043         * emulparams/elf64_ia64.sh: Put .rela.opd into
1044         OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1046 2004-01-20  Danny Smith  <dannysmith@users.sourceforge.net>
1048         * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1049         * ld.texinfo (--omagic): Note that writable text section
1050         does not conform to published PE-COFF specs.
1051         (--enable-auto-import): Likewise.
1053 2004-01-15  Alan Modra  <amodra@bigpond.net.au>
1055         * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
1057 2004-01-13  Nick Clifton  <nickc@redhat.com>
1059         * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
1060         which if true will prevent the LMA region being used as a
1061         replacement for a default VMA region.
1062         (lang_leave_output_section_statement): Pass extra parameter.
1063         (lang_leave_overlay): Likewise.
1064         * ld.texinfo (Output Section LMA): Document that the LMA
1065         region can be set to the VMA region if no VMA has been set.
1066         * ldlang.h (struct lang_output_section_phdr_list): Create a
1067         typedef for this type.  Minor formatting fixes.
1069 2004-01-13  Nick Clifton  <nickc@redhat.com>
1071         * ldlang.c (lang_size_sections_1): If dot is advanced, then
1072         assume that the section should be allocated.
1074 2004-01-13  Alan Modra  <amodra@bigpond.net.au>
1076         * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1077         sections.  Do ignore SEC_NEVER_LOAD sections.
1078         (lang_size_sections_1): Remove test made redundant with the above.
1080 2004-01-09  Alan Modra  <amodra@bigpond.net.au>
1082         * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1083         program_header_size.
1085 2004-01-06  Alexandre Oliva  <aoliva@redhat.com>
1087         2003-11-28  Alexandre Oliva  <aoliva@redhat.com>
1088         * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1089         2003-11-05  Alexandre Oliva  <aoliva@redhat.com>
1090         * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1091         (MAXPAGESIZE): Set to 64Kb.
1092         (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1093         __ROFIXUP_END__.  Don't map .rofixup.got any more.
1094         * emulparams/elf32frv.sh (NOP): Set.
1095         2003-10-31  Alexandre Oliva  <aoliva@redhat.com>
1096         * configure.tgt: Add frv-*-*linux*.
1097         2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
1098         * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1099         (eelf32frvfd.c): New.
1100         * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1101         * emulparams/elf32frv.sh: Reverted previous two patches.
1102         * emulparams/elf32frvfd.sh: New.
1103         * Makefile.in: Rebuilt.
1104         2003-09-18  Alexandre Oliva  <aoliva@redhat.com>
1105         * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1106         .rofixup.got to .rofixup.
1107         2003-09-15  Alexandre Oliva  <aoliva@redhat.com>
1108         * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
1109         (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
1111 2004-01-05  Jakub Jelinek  <jakub@redhat.com>
1113         * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
1114         * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
1116 2004-01-03  Alan Modra  <amodra@bigpond.net.au>
1118         * ldexp.c (align_n): Make static.
1119         * ldexp.h (align_n): Delete declaration.
1120         * ldlang.h (lang_enter_output_section_statement): Remove
1121         block_value param.
1122         * ldlang.c (lang_enter_output_section_statement): Likewise.
1123         (TO_ADDR, TO_SIZE): Define.
1124         (opb_shift): New var.
1125         (init_opb): New function.
1126         (print_input_section): Call init_opb and use TO_ADDR.
1127         (print_data_statement, print_reloc_statement): Likewise.
1128         (print_padding_statement): Likewise.
1129         (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
1130         (lang_check_section_addresses): Likewise.
1131         (lang_size_sections_1): Likewise.
1132         (lang_do_assignments_1): Likewise.
1133         (lang_set_startof): Likewise.
1134         (lang_one_common): Likewise.  Combine power_of_two and opb_shift align.
1135         (lang_process): Call init_opb.
1136         (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
1137         (lang_enter_overlay_section): Adjust
1138         lang_enter_output_section_statement call.
1139         * ldgram.y: Likewise.
1140         * mri.c (mri_draw_tree): Likewise.
1141         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1142         * emultempl/mmo.em (mmo_place_orphan): Likewise.
1143         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1145         * ldfile.c (ldfile_set_output_arch): Add defarch param.
1146         * ldfile.h (ldfile_set_output_arch): Ditto.
1147         * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
1148         ldfile_set_output_arch.
1149         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1150         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
1151         * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
1152         * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1153         * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
1154         * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1155         * ldgram.y: Adjust ldfile_set_output_arch call.
1156         * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1157         * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
1158         * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
1159         * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
1160         * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
1161         * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1162         * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1164 2004-01-02  Bernardo Innocenti  <bernie@develer.com>
1166         * configure.tgt: Add m68k-uClinux target.
1168 For older changes see ChangeLog-0203
1170 Local Variables:
1171 mode: change-log
1172 left-margin: 8
1173 fill-column: 74
1174 version-control: never
1175 End: