1 2004-10-07 Bob Wilson <bob.wilson@acm.org>
3 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
4 assembler-generated longcall sequences. Describe new --size-opt
6 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
7 * emultempl/xtensaelf.em (remove_section,
8 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
9 elf_xtensa_after_open): New.
10 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
11 OPTION_NO_LITERAL_MOVEMENT): Define.
12 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
13 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
14 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
15 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
16 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
17 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
18 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
19 * Makefile.am (eelf32xtensa.c): Update dependencies.
20 * Makefile.in: Regenerate.
22 2004-10-07 Jeff Baker <jbaker@qnx.com>
24 * lexsup.c: Handle --warn-shared-textrel option.
25 (ld_options): Restore alpha sorting of options.
26 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
27 * ld.texinfo: Add documentation for --warn-shared-textrel.
28 * NEWS: Added mention of --warn-shared-textrel option.
30 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
32 * emultempl/crxelf.em (disable_relaxation): Add.
33 (crxelf_before_allocation): Enable --relax option by default.
34 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
35 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
36 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
38 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
40 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
41 --sort-section name|alignment.
43 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
44 --sort-section name|alignment.
46 * ld.h (sort_type): New enum.
47 (wildcard_spec): Change the type of `sorted' to sort_type.
49 * ldgram.y (SORT): Removed.
50 (SORT_BY_NAME): Added.
51 (SORT_BY_ALIGNMENT): Added.
52 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
54 (input_section_spec_no_keep): Updated `sorted'.
55 (statement): Replace SORT with SORT_BY_NAME.
57 * ldlang.c (compare_section): New function to compare 2
58 sections with different sorting schemes.
59 (wild_sort): Updated. Use compare_section.
60 (update_wild_statements): New function.
61 (lang_process): Call update_wild_statements before
62 map_input_to_output_sections.
64 * ldlex.l (SORT_BY_NAME): New.
65 (SORT_BY_ALIGNMENT): New.
66 (SORT): Return SORT_BY_NAME.
68 * ldmain.c (sort_section): New. Defined.
69 (main): Initialize it to none.
71 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
72 (ld_options): Add an entry for OPTION_SORT_SECTION.
73 (parse_args): Handle OPTION_SORT_SECTION.
75 * mri.c (mri_draw_tree): Updated `sorted'.
77 2004-10-04 Jakub Jelinek <jakub@redhat.com>
79 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
80 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
82 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
83 and . as second argument.
84 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
85 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
86 (fold_binary): Add it here. Insert padding to make relro_end
87 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
88 exp_dataseg_relro_adjust phase just use previously computed
90 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
91 relro_adjust here. Call lang_size_sections_1 once more if there
92 was too big padding at DATA_SEGMENT_RELRO_END.
93 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
95 2004-10-01 Paul Brook <paul@codesourcery.com>
97 * emulparams/armelf.sh: Add unwinding table sections.
99 2004-09-30 Filip Navara <navaraf@reactos.com>
101 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
102 correct base address for position independant executables.
103 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
106 2004-09-30 Paul Brook <paul@codesourcery.com>
108 * ld.texinfo: Document --target2=abs.
109 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
111 2004-09-29 Nick Clifton <nickc@redhat.com>
113 * scripttempl/xstormy16.sc: Only perform the assignments to the
114 ROM region when not performing a relocatable link. The ROM region
115 does not start at address 0, but the sections will.
116 * Makefile.am: Fix linker script dependency for the generation of
118 * Makefile.in: Regenerate.
120 2004-09-18 Filip Navara <navaraf@reactos.com>
122 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
123 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
124 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
126 * scripttempl/pe.sc: Make the virtual address and file offset synced if
127 the alignment is lower than the target page size.
129 2004-09-27 Filip Navara <navaraf@reactos.com>
131 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
132 def_file_parse to handle pe_def_file if NULL and prevent crash with
135 2004-09-27 Alan Modra <amodra@bigpond.net.au>
137 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
138 --emit-stub-syms automatically when --emit-relocs.
140 2004-09-24 Paul Brook <paul@codeosurcery.com>
142 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
143 .fini_array sections.
145 2004-09-19 Andreas Schwab <schwab@suse.de>
147 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
148 base so that relro end is suitably aligned.
150 2004-09-17 Paul Brook <paul@codesourcery.com>
152 * ld.texinfo: Rename arm-specific section. Document --target*
153 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
154 * emulparams/armelf_linux.sh: Ditto.
155 * emulparams/armelf_nbsd.sh: Ditto.
156 * emultempl/armelf.em: Set default for TARGET2_TYPE.
157 (target2_type): New variable.
158 (arm_elf_before_allocation): Don't pass target1_type.
159 (arm_elf_create_output_section_statements): New function.
160 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
161 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
162 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
163 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
164 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
165 argument to bfd_elf32_arm_process_before_allocation.
167 2004-09-17 Alan Modra <amodra@bigpond.net.au>
169 * ldexp.c (fold_name): Update u.undef.next refs.
170 * emultempl/pe.em: Likewise.
171 * emultempl/sunos.em: Likewise.
173 2004-09-17 Alan Modra <amodra@bigpond.net.au>
175 * Makefile.am: Run "make dep-am".
176 * Makefile.in: Regenerate.
177 * config.in: Regenerate.
178 * configure: Regenerate.
179 * aclocal.m4: Regenerate.
180 * po/ld.pot: Regenerate.
182 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
184 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
188 2004-09-16 Alan Modra <amodra@bigpond.net.au>
190 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
191 to bfd_elf32_arm_process_before_allocation call.
193 2004-09-13 Paul Brook <paul@codesourcery.com>
195 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
196 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
198 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
200 * configure: Regenerated with autconfig 2.13.
202 2004-09-07 Andreas Schwab <schwab@suse.de>
204 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
205 alignment before adjusting DATA_SEGMENT_RELRO_END.
207 2004-09-06 Mark Mitchell <mark@codesourcery.com>
209 * emulparams/armsymbian.sh: Use armbpabi script.
210 * scripttempl/armbpabi.sc: New script.
212 2004-09-02 Mark Mitchell <mark@codesourcery.com>
214 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
215 (earmsymbian.c): New target.
216 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
217 * Makefile.in: Regenerated.
218 * aclocal.m4: Likewise.
219 * configure: Likewise.
220 * emulparams/armsymbian.sh: New file.
222 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
224 * scripttempl/elf32crx.sc: Edit file with comments.
225 (.init): Add new section.
227 (.ctor): Control the linkage order.
230 2004-08-27 Nick Clifton <nickc@redhat.com>
232 * emultempl/pe.em (after_open): Do not assume that either bfd is
235 2004-08-26 Alan Modra <amodra@bigpond.net.au>
237 * ldlang.c (lang_init): Don't compare with TRUE.
239 2004-08-25 Dmitry Diky <diwil@spec.ru>
241 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
242 * scripttempl/elf32msp430.sc: Add .profiler section definition.
244 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
246 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
248 2004-08-19 Mark Mitchell <mark@codesourcery.com>
250 * configure.tgt (arm*-*-symbianelf*): New target.
251 (arm*-*-eabi*): Likewise.
253 2004-08-19 Jakub Jelinek <jakub@redhat.com>
255 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
256 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
257 (OPTION_NON_OVERLAPPING_OPD): Define.
258 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
259 --non-overlapping-opd option.
261 2004-08-18 Alan Modra <amodra@bigpond.net.au>
264 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
265 was already on the undefs list.
267 2004-08-17 Alan Modra <amodra@bigpond.net.au>
269 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
270 prefix the symbol field too.
272 2004-08-13 Alan Modra <amodra@bigpond.net.au>
274 * ldmain.c (link_callbacks): Remove "error_handler".
275 * ldmisc.c: Include elf-bfd.h.
276 (vfinfo): Sort comment. Handle %A. Use %A instead of
277 bfd_get_section_indent.
278 (error_handler): Delete.
279 * ldmisc.h (error_handler): Delete declaration.
281 2004-08-10 Alan Modra <amodra@bigpond.net.au>
283 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
284 ppc64_elf_restore_symbols.
286 2004-08-09 Alan Modra <amodra@bigpond.net.au>
288 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
289 .toc is too large on relocatable linking.
291 2004-08-09 Alan Modra <amodra@bigpond.net.au>
293 * emultempl/ppc64elf.em (ppc_after_open): Delete.
294 (LDEMUL_AFTER_OPEN): Don't define.
296 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
298 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
300 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
302 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
305 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
307 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
309 2004-07-26 Dmitry Diky <diwil@spec.ru>
311 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
312 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
314 * configure.tgt: Likewise.
315 * emulparams/msp430all.sh: Likewise.
316 * Makefile.in: Regenerate.
318 2004-07-23 Nick Clifton <nickc@redhat.com>
320 * emultempl/elf32.em (_place_orphan): Use an already existing
321 section name if that section does not have any flags set.
323 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
325 * ldlang.c (already_linked_hash_entry): Removed.
326 (already_linked): Likewise.
327 (already_linked_table): Likewise.
328 (section_already_linked): Call bfd_section_already_linked.
329 (lang_process): Replace already_linked_table_init with
330 bfd_section_already_linked_table_init and check return. Replace
331 already_linked_table_free with bfd_section_already_linked_table_free.
333 2004-07-21 Nick Clifton <nickc@redhat.com>
335 * ldlang.c (init_os): Make sure that the newly allocated userdata
336 structure is zeroed out.
338 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
340 * NEWS: Mention the new --add-needed/--no-add-needed and
341 --as-needed/--no-as-needed options.
343 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
345 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
346 check the add_needed field.
347 (dt_needed): New struct.
348 (gld${EMULATION_NAME}_try_needed): Change the first argument
349 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
350 bit in the file where the DT_NEEDED entry comes from.
351 (gld${EMULATION_NAME}_search_needed): Change the second
352 argument to a pointer to struct dt_needed.
353 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
354 (gld${EMULATION_NAME}_after_open): Likewise.
356 * ld.texinfo: Add --add-needed document.
357 * ldlang.c (new_afile): Set p->add_needed.
358 * ldlang.h (lang_input_statement_type): Add add_needed field.
359 * ldmain.h (add_needed): Declare.
360 * ldmain.c (add_needed): New global var.
361 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
362 OPTION_NO_ADD_NEEDED.
363 (ld_options): Likewise.
364 (parse_args): Handle them.
366 2004-07-13 Christof Petig <christof@petig-baender.de>
368 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
369 for endian-ness of extracted addend.
371 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
373 * pe-dll.c (auto_export): Filter on just the import prefix,
374 "_imp_", not "_imp__".
376 2004-07-09 Nick Clifton <nickc@redhat.com>
378 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
380 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
382 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
383 (eelf32crx.c): New target.
384 * Makefile.in: Regenerate.
385 * configure.tgt: Handle crx-*-elf*.
386 * emulparams/elf32crx.sh: New file.
387 * emultempl/crxelf.em: New file.
388 * scripttempl/elf32crx.sc: New file.
389 * NEWS: Mention new target.
391 2004-07-06 Nick Clifton <nickc@redhat.com>
393 * Makefile.am: Add eshlsymbian.c.
394 * Makefile.in: Regenerate.
395 * configure.tgt: Add sh*-symbian-elf target.
396 * emulparams/shlsymbian.sh: New file. Configure the
397 sh-symbian-elf linker scripts.
398 * scripttemp/elf32sh-symbian.sc: New file. Linker script
399 template for the sh-symbian-elf target.
401 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
403 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
404 * emulparams/hppalinux.sh: Likewise.
405 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
406 data segment and PLT_BEFORE_GOT is defined.
408 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
410 * ld.texinfo (WIN32): Document PE weak symbols.
412 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
414 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
416 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
418 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
421 2004-06-29 Alan Modra <amodra@bigpond.net.au>
423 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
426 2004-06-24 Alan Modra <amodra@bigpond.net.au>
428 * ldlang.c (print_output_section_statement): Don't print size before
430 (IGNORE_SECTION): Remove bfd arg. Update all callers.
432 * ldexp.c (fold_name): .. See below.
433 * ldlang.c (section_already_linked, print_output_section_statement,
434 print_input_section, insert_pad, size_input_section,
435 lang_check_section_addresses, lang_size_sections_1,
436 lang_size_sections, lang_do_assignments_1, lang_set_startof,
437 lang_one_common, lang_reset_memory_regions, lang_process,
438 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
439 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
440 * pe-dll.c (process_def_file, generate_reloc): ..
441 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
442 gld${EMULATION_NAME}_before_allocation): ..
443 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
444 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
445 sh64_elf_${EMULATION_NAME}_after_allocation): ..
446 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
447 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
448 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
449 "size" instead of "_raw_size" and "_cooked_size". Expand
450 bfd_section_size macro invocations.
452 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
454 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
455 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
456 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
458 (.tls): Define ___tls_start__ and ___tls_end__.
460 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
462 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
464 2004-06-18 Adam Nemet <anemet@lnxw.com>
466 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
467 * configure: Regenerate.
469 2004-06-15 Jakub Jelinek <jakub@redhat.com>
471 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
472 .gcc_except_table output sections lost accidentally with
475 2004-06-15 Alan Modra <amodra@bigpond.net.au>
477 * ldwrite.c (build_link_order): Use bfd_get_section_size
478 instead of bfd_get_section_size_before_reloc or _raw_size.
479 * pe-dll.c (process_def_file): Likewise.
481 2004-06-14 Alan Modra <amodra@bigpond.net.au>
483 From Richard Wirth <r.wirth@wirthware.de>
484 * ldlang.c (lang_finish): Don't free lang_definedness_table.
486 2004-05-29 Alan Modra <amodra@bigpond.net.au>
488 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
489 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
491 2004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
493 * testsuite/ld-sh/arch/arch.exp: New test script.
494 * testsuite/ld-sh/arch/arch_expected.txt: New file.
495 * testsuite/ld-sh/arch/sh.s: New file.
496 * testsuite/ld-sh/arch/sh2.s: New file.
497 * testsuite/ld-sh/arch/sh-dsp.s: New file.
498 * testsuite/ld-sh/arch/sh2e.s: New file.
499 * testsuite/ld-sh/arch/sh3-nommu.s: New file.
500 * testsuite/ld-sh/arch/sh3.s: New file.
501 * testsuite/ld-sh/arch/sh3-dsp.s: New file.
502 * testsuite/ld-sh/arch/sh3e.s: New file.
503 * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
504 * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
505 * testsuite/ld-sh/arch/sh4.s: New file.
506 * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
507 * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
508 * testsuite/ld-sh/arch/sh4a.s: New file.
510 2004-05-28 Alan Modra <amodra@bigpond.net.au>
512 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
514 * lexsup.c: Formatting. Wrap long lines.
515 * ldwrite.c: Update copyright date.
517 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
518 (output_section_callback): Nor SEC_KEEP here.
519 (gc_section_callback): Twiddle SEC_EXCLUDE here.
520 (lang_gc_wild): Delete. Fold into..
521 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
523 (lang_process): Always call lang_gc_sections.
524 (lang_place_orphans): Handle SEC_EXCLUDE sections.
525 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
528 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
530 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
531 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
532 * ldlang.c (lang_add_section): Likewise.
534 2004-05-26 Alan Modra <amodra@bigpond.net.au>
536 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
537 sections when doing a final link. Clear SEC_EXCLUDE when doing
538 a relocable link, except for SEC_DEBUGGING sections.
539 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
540 same condition here to drop SEC_EXCLUDE orphan sections.
542 2004-05-25 Alan Modra <amodra@bigpond.net.au>
544 * ldlang.c (lang_process): Call bfd_merge_sections later, and
545 only when not a relocatable link.
546 (print_input_section): Handle SEC_EXCLUDE sections.
547 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
548 (lang_do_assignments_1): Likewise.
549 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
550 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
551 * emultempl/hppaelf.em (build_section_lists): Likewise.
552 * emultempl/ppc64elf.em (build_toc_list): Likewise.
553 (build_section_lists): Likewise.
555 2004-05-23 Andreas Schwab <schwab@suse.de>
557 * ld.texinfo (Options): Fix typo in last change.
559 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
561 * ld.h (ld_config_type): Add new field: hash_table_size.
562 * ldmain.c: Initialise the new field to zero. If it is non-zero
563 after parsing the linker's command line call
564 bfd_hash_set_default_size.
565 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
566 (ld_options): Add hash-size.
567 (parse_args): Parse --hash-size option. Allow
568 --reduce-memory-overheads to set the default hash table size as
570 * ld.texinfo: Document the new switch. Also mention that
571 --reduce-memory-overheads can affect the hash table size.
572 * NEWS: Mention the new feature.
574 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
576 * NEWS: Mention new linker map file generation and the
577 --reduce-memory-overheads option.
578 * ld.texinfo: Document --reduce-memory-overheads option.
579 * ld.h (map_symbol_def): New struct.
580 (struct user_section_struct, section_userdata_type): Rename to:
581 (struct lean_user_section_struct, lean_section_userdata_type).
582 (struct fat_user_section_struct, fat_section_userdata_type): New.
583 (SECTION_USERDATA_SIZE): Define.
584 (args_type): New member reduce_memory_overheads.
585 * ldlang.c (map_obstack): New static variable.
586 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
587 (lang_map): Unless command_line.reduce_memory_overheads is set,
588 initialize lists of defined symbols for each section.
589 (print_input_section): Unless command_line.reduce_memory_overheads
590 is set, use print_all_symbols.
591 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
592 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
593 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
594 (ld_options): Add entry for --reduce-memory-overheads.
595 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
597 2004-05-19 Jakub Jelinek <jakub@redhat.com>
599 * ldgram.y (sect_constraint): New.
600 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
601 (section): Add sect_constraint. Pass additional argument
602 to lang_enter_output_section_statement.
603 * mri.c (mri_draw_tree): Pass additional argument to
604 lang_enter_output_section_statement.
605 * emultempl/pe.em (place_orphan): Likewise.
606 (output_prev_sec_find): Disregard output section statements with
608 * emultempl/mmo.em (output_prev_sec_find): Likewise.
609 (mmo_place_orphan): Pass additional argument to
610 lang_enter_output_section_statement.
611 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
612 statements with constraint == -1.
613 (place_orphan): Pass additional argument to
614 lang_enter_output_section_statement.
615 * ldlang.c (lang_enter_overlay_section): Likewise.
616 (lang_output_section_find_1): New.
617 (lang_output_section_find): Use it.
618 (lang_output_section_statement_lookup_1): New.
619 (lang_output_section_statement_lookup): Use it.
620 (check_section_callback, check_input_sections): New.
621 (map_input_to_output_sections): Check if all input sections
622 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
623 (strip_excluded_output_sections): Disregard output section statements
624 with constraint == -1.
625 (lang_record_phdrs): Likewise.
626 (lang_enter_output_section_statement): Add constraint argument.
627 Use lang_output_section_statement_lookup_1.
628 * ldlang.h (lang_output_section_statement_type): Add constraint
629 and all_input_readonly fields.
630 (lang_enter_output_section_statement): Adjust prototype.
631 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
632 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
633 segment if all input sections are readonly.
635 2004-05-19 Adam Nemet <anemet@lnxw.com>
637 * scripttempl/i386lynx.sc: Remove file.
639 2004-05-17 Bob Wilson <bob.wilson@acm.org>
641 * ld.texinfo (Output Section Address): Correct subsection name.
643 2004-05-17 Adam Nemet <anemet@lnxw.com>
645 * configure.tgt (powerpc-*-lynxos* case): New case.
646 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
647 * emulparams/ppclynx.sh: New file.
648 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
649 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
650 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
651 (eppclynx.c): New rule.
652 * Makefile.in: Regenerate.
654 2004-05-13 Joel Sherrill <joel@oarcorp.com>
656 * configure.tgt (or32-*-rtems*): Switch to elf and
657 support versioned targets.
659 2004-05-13 Nick Clifton <nickc@redhat.com>
661 * po/fr.po: Updated French translation.
663 2004-05-11 Jakub Jelinek <jakub@redhat.com>
665 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
666 for binaries, -shared and -pie.
667 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
668 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
669 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
670 (OTHER_RELRO_SECTIONS): ... this.
671 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
672 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
673 -z relro and -z norelro.
674 (gld${EMULATION_NAME}_list_options): Add it to usage.
675 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
676 -z relro scripts when appropriate.
677 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
678 Create separate .got.plt section if SEPARATE_GOTPLT.
679 Move sections which are only written during relocation handling
680 to the beginning of RW segment. If NO_SMALL_DATA, move .got
681 before .data. Add DATA_SEGMENT_RELRO_END directive.
682 Include OTHER_RELRO_SECTIONS.
683 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
684 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
685 (fold_unary): Likewise.
686 (fold_binary): Handle -z relro.
687 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
688 exp_dataseg_relro_adjust phases. Add relro_end field.
689 * ldmain.c (main): Initialize link_info.relro to FALSE.
690 * ldlang.c (lang_size_sections): Handle -z relro.
692 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
694 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
696 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
698 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
699 before printing it with %W.
701 2004-05-07 Brian Ford <ford@vss.fsi.com>
702 DJ Delorie <dj@redhat.com>
704 * emultempl/pe.em (real_flags): New static.
705 (OPTION_LARGE_ADDRESS_AWARE): New define.
706 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
707 (gld_${EMULATION_NAME}_list_options): Likewise.
708 (gld${EMULATION_NAME}_handle_option): Likewise.
709 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
710 * ld.texinfo: Document it.
713 2004-05-07 Brian Ford <ford@vss.fsi.com>
715 * NEWS: Mention DWARF 2 support for i386pe.
717 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
719 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
722 2004-04-30 Alan Modra <amodra@bigpond.net.au>
724 * ldlang.c (unique_section_p): Pass section parm, return true on
726 (output_section_callback): Adjust.
727 * ldlang.h (unique_section_p): Update prototype.
728 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
730 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
732 * ld.texinfo (--gc-sections): Remove restriction for
735 2004-04-29 Brian Ford <ford@vss.fsi.com>
737 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
738 for DWARF 2/3. Update stab section's syntax.
740 2004-04-29 Alan Modra <amodra@bigpond.net.au>
742 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
743 (fill_edata): Correct pointer arithmetic.
745 2004-04-21 Chris Demetriou <cgd@broadcom.com>
747 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
748 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
749 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
750 (EXTRA_EM_FILE): Use mipsecoff.em
751 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
752 (EXTRA_EM_FILE): Use mipsecoff.em
753 * emultempl/mipsecoff.em: Restructure to be included as an
754 extra emulation file.
755 (check_sections, gld${EMULATION_NAME}_after_open)
756 (gld${EMULATION_NAME}_after_allocation)
757 (gld${EMULATION_NAME}_get_script)
758 (ld_${EMULATION_NAME}_emulation): Remove
759 (gld${EMULATION_NAME}_before_parse): Rename to...
760 (mipsecoff_before_parse): This.
761 (LDEMUL_BEFORE_PARSE): Define.
762 * emultempl/mipself.em: Remove file.
763 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
764 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
766 * Makefile.am: Remove dependencies on emultempl/mipself.em.
767 * Makefile.in: Regenerate.
769 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
771 * ld.texinfo (synthesizing on H8/300): Information about linker
772 relaxation support for bit manipulation instructions and system
773 control instructions is added.
775 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
777 * NEWS: Mention change in DEFINED semantics.
779 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
781 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
782 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
783 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
785 2004-04-21 Ben Elliston <bje@au.ibm.com>
787 * ld.texinfo (Simple Example): Add missing punctuation.
789 2004-04-20 Chris Demetriou <cgd@broadcom.com>
791 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
793 2004-04-19 Jakub Jelinek <jakub@redhat.com>
795 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
798 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
800 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
801 with default priority. Likewise for dtors.
803 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
805 * configure.host: Remove mips*-dec-bsd* target.
806 * configure.tgt: Likewise.
808 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
810 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
811 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
812 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
813 * emultempl/irix.em: New file.
814 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
816 * Makefile.in: Regenerate.
818 2004-04-01 Paul Brook <paul@codesourcery.com>
820 * emultempl/armelf.em (byteswap_code): Add.
821 (arm_elf_before_allocation): Pass extra parameter.
822 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
823 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
824 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
825 * emultempl/armelf_oabi.em: Pass extra parameter.
826 * ld.texinfo: Document --be8.
828 2004-03-30 Stan Shebs <shebs@apple.com>
830 Remove long-obsolete MPW support.
831 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
832 * Makefile.am (mpw): Remove file-presynthesizing actions.
833 * Makefile.in: Likewise.
834 * ldfile.c (slash): Remove MPW case.
835 * ldlex.l [MPW]: Remove unused definition.
837 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
839 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
840 (eelf32cr16c.c): New target.
841 * Makefile.in: Regenerate.
842 * configure.tgt: Handle cr16c-*-elf*.
843 * emulparams/elf32cr16c.sh: New file.
844 * scripttempl/elfcr16c.sc: Likewise
845 * NEWS: Mention support for new target.
847 2004-03-30 Nick Clifton <nickc@redhat.com>
849 * po/sv.po: Updated Swedish translation.
851 2004-03-27 Alan Modra <amodra@bigpond.net.au>
853 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
854 * emultempl/hppaelf.em: Likewise.
855 * emultempl/ppc64elf.em: Likewise.
856 * emultempl/sh64elf.em: Likewise.
858 2004-03-25 Alan Modra <amodra@bigpond.net.au>
860 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
861 size_dynamic_sections call.
863 2004-03-23 Alan Modra <amodra@bigpond.net.au>
866 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
869 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
871 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
872 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
874 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
876 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
878 2004-03-19 Alan Modra <amodra@bigpond.net.au>
880 * config.in: Regenerate.
881 * po/ld.pot: Regenerate.
883 2004-03-18 Alan Modra <amodra@bigpond.net.au>
885 * ld.texinfo: Add --as-needed doco.
886 * ldmain.c (as_needed): New global var.
887 * ldmain.h (as_needed): Declare.
888 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
890 (ld_options): Likewise.
891 (parse_args): Handle them.
892 * ldlang.h (lang_input_statement_type): Add as_needed field.
893 * ldlang.c (new_afile): Set p->as_needed.
894 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
895 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
896 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
898 * ldlang.c (open_input_bfds): Remove useless cast.
899 (lang_do_assignments_1): Likewise.
900 (lang_for_each_input_section): Delete.
902 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
904 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
906 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
908 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
909 private when building implib.
911 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
913 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
915 (IGNORE_SECTION): Ignore .tbss sections too.
916 (lang_size_sections_1): .tbss sections do not advance dot.
918 2004-03-01 Andreas Schwab <schwab@suse.de>
920 * ld.texinfo (Options): Fix example for --wrap.
922 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
924 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
927 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
929 * ldlang.c (lang_check): Use %P, not %E, in error message.
931 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
933 * ldlang.h (struct lang_output_section_state): Change processed
935 * ldexp.c (check, invalid): Remove.
936 (fold_name): Move valid_p assignments. Create undefined symbol
937 when needed. Directly exampine section's processd flag.
938 * ldlang.c (lang_output_section_statement_lookup): Adjust
939 processed field init.
940 (lang_size_sections_1): Allow LOADADDR when determining section's
941 VMA. Adjust error message. Fold data statement's expr.
942 (lang_size_sections): Correctly increment lang_statement_iteration.
944 2004-02-23 Alan Modra <amodra@bigpond.net.au>
946 * ldexp.c (fold_tree): Follow indirect symbols.
948 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
950 * ldgram.y (exp): Add two operand ALIGN.
951 * ldexp.c (fold_binary): Add ALIGN_K case.
952 * ld.texinfo (ALIGN): Document two operand version.
954 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
956 * ldlang.c (map_input_to_output_sections): Initialize sections
957 mentioned in a data statement expression.
958 (lang_do_assignments_1): Add data statement's expression's
961 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
963 * ldgram.y (statement_anywhere): Add assert rule.
964 * ldlang.c (exp_init_os): Add assert case.
966 2004-02-14 Andrew Cagney <cagney@redhat.com>
968 * ldmain.c (remove_output): Call bfd_cache_close.
970 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
972 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
973 .MIPS.content* and .MIPS.events* sections.
975 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
977 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
978 .note.gnu.arm.ident to after allocated sections. Mark its
981 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
983 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
984 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
985 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
986 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
987 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
989 2004-02-05 Nick Clifton <nickc@redhat.com>
991 * emultempl/pe.em (_after_open): Fix typo in previous delta.
993 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
995 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
997 2004-01-28 Alan Modra <amodra@bigpond.net.au>
999 * genscripts.sh: Fix typo.
1001 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1003 2004-01-24 Jakub Jelinek <jakub@redhat.com>
1005 * emulparams/elf64_ia64.sh: Put .rela.opd into
1006 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1008 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
1010 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1011 * ld.texinfo (--omagic): Note that writable text section
1012 does not conform to published PE-COFF specs.
1013 (--enable-auto-import): Likewise.
1015 2004-01-15 Alan Modra <amodra@bigpond.net.au>
1017 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
1019 2004-01-13 Nick Clifton <nickc@redhat.com>
1021 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
1022 which if true will prevent the LMA region being used as a
1023 replacement for a default VMA region.
1024 (lang_leave_output_section_statement): Pass extra parameter.
1025 (lang_leave_overlay): Likewise.
1026 * ld.texinfo (Output Section LMA): Document that the LMA
1027 region can be set to the VMA region if no VMA has been set.
1028 * ldlang.h (struct lang_output_section_phdr_list): Create a
1029 typedef for this type. Minor formatting fixes.
1031 2004-01-13 Nick Clifton <nickc@redhat.com>
1033 * ldlang.c (lang_size_sections_1): If dot is advanced, then
1034 assume that the section should be allocated.
1036 2004-01-13 Alan Modra <amodra@bigpond.net.au>
1038 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1039 sections. Do ignore SEC_NEVER_LOAD sections.
1040 (lang_size_sections_1): Remove test made redundant with the above.
1042 2004-01-09 Alan Modra <amodra@bigpond.net.au>
1044 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1045 program_header_size.
1047 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
1049 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
1050 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1051 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
1052 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1053 (MAXPAGESIZE): Set to 64Kb.
1054 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1055 __ROFIXUP_END__. Don't map .rofixup.got any more.
1056 * emulparams/elf32frv.sh (NOP): Set.
1057 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
1058 * configure.tgt: Add frv-*-*linux*.
1059 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
1060 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1061 (eelf32frvfd.c): New.
1062 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1063 * emulparams/elf32frv.sh: Reverted previous two patches.
1064 * emulparams/elf32frvfd.sh: New.
1065 * Makefile.in: Rebuilt.
1066 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
1067 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1068 .rofixup.got to .rofixup.
1069 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
1070 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
1071 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
1073 2004-01-05 Jakub Jelinek <jakub@redhat.com>
1075 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
1076 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
1078 2004-01-03 Alan Modra <amodra@bigpond.net.au>
1080 * ldexp.c (align_n): Make static.
1081 * ldexp.h (align_n): Delete declaration.
1082 * ldlang.h (lang_enter_output_section_statement): Remove
1084 * ldlang.c (lang_enter_output_section_statement): Likewise.
1085 (TO_ADDR, TO_SIZE): Define.
1086 (opb_shift): New var.
1087 (init_opb): New function.
1088 (print_input_section): Call init_opb and use TO_ADDR.
1089 (print_data_statement, print_reloc_statement): Likewise.
1090 (print_padding_statement): Likewise.
1091 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
1092 (lang_check_section_addresses): Likewise.
1093 (lang_size_sections_1): Likewise.
1094 (lang_do_assignments_1): Likewise.
1095 (lang_set_startof): Likewise.
1096 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
1097 (lang_process): Call init_opb.
1098 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
1099 (lang_enter_overlay_section): Adjust
1100 lang_enter_output_section_statement call.
1101 * ldgram.y: Likewise.
1102 * mri.c (mri_draw_tree): Likewise.
1103 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1104 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1105 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1107 * ldfile.c (ldfile_set_output_arch): Add defarch param.
1108 * ldfile.h (ldfile_set_output_arch): Ditto.
1109 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
1110 ldfile_set_output_arch.
1111 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1112 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
1113 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
1114 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1115 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
1116 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1117 * ldgram.y: Adjust ldfile_set_output_arch call.
1118 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1119 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
1120 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
1121 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
1122 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
1123 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1124 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1126 2004-01-02 Bernardo Innocenti <bernie@develer.com>
1128 * configure.tgt: Add m68k-uClinux target.
1130 For older changes see ChangeLog-0203
1136 version-control: never