1 2004-08-18 Alan Modra <amodra@bigpond.net.au>
4 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
5 was already on the undefs list.
7 2004-08-17 Alan Modra <amodra@bigpond.net.au>
9 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
10 prefix the symbol field too.
12 2004-08-13 Alan Modra <amodra@bigpond.net.au>
14 * ldmain.c (link_callbacks): Remove "error_handler".
15 * ldmisc.c: Include elf-bfd.h.
16 (vfinfo): Sort comment. Handle %A. Use %A instead of
17 bfd_get_section_indent.
18 (error_handler): Delete.
19 * ldmisc.h (error_handler): Delete declaration.
21 2004-08-10 Alan Modra <amodra@bigpond.net.au>
23 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
24 ppc64_elf_restore_symbols.
26 2004-08-09 Alan Modra <amodra@bigpond.net.au>
28 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
29 .toc is too large on relocatable linking.
31 2004-08-09 Alan Modra <amodra@bigpond.net.au>
33 * emultempl/ppc64elf.em (ppc_after_open): Delete.
34 (LDEMUL_AFTER_OPEN): Don't define.
36 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
38 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
40 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
42 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
45 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
47 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
49 2004-07-26 Dmitry Diky <diwil@spec.ru>
51 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
52 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
54 * configure.tgt: Likewise.
55 * emulparams/msp430all.sh: Likewise.
56 * Makefile.in: Regenerate.
58 2004-07-23 Nick Clifton <nickc@redhat.com>
60 * emultempl/elf32.em (_place_orphan): Use an already existing
61 section name if that section does not have any flags set.
63 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
65 * ldlang.c (already_linked_hash_entry): Removed.
66 (already_linked): Likewise.
67 (already_linked_table): Likewise.
68 (section_already_linked): Call bfd_section_already_linked.
69 (lang_process): Replace already_linked_table_init with
70 bfd_section_already_linked_table_init and check return. Replace
71 already_linked_table_free with bfd_section_already_linked_table_free.
73 2004-07-21 Nick Clifton <nickc@redhat.com>
75 * ldlang.c (init_os): Make sure that the newly allocated userdata
76 structure is zeroed out.
78 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
80 * NEWS: Mention the new --add-needed/--no-add-needed and
81 --as-needed/--no-as-needed options.
83 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
85 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
86 check the add_needed field.
87 (dt_needed): New struct.
88 (gld${EMULATION_NAME}_try_needed): Change the first argument
89 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
90 bit in the file where the DT_NEEDED entry comes from.
91 (gld${EMULATION_NAME}_search_needed): Change the second
92 argument to a pointer to struct dt_needed.
93 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
94 (gld${EMULATION_NAME}_after_open): Likewise.
96 * ld.texinfo: Add --add-needed document.
97 * ldlang.c (new_afile): Set p->add_needed.
98 * ldlang.h (lang_input_statement_type): Add add_needed field.
99 * ldmain.h (add_needed): Declare.
100 * ldmain.c (add_needed): New global var.
101 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
102 OPTION_NO_ADD_NEEDED.
103 (ld_options): Likewise.
104 (parse_args): Handle them.
106 2004-07-13 Christof Petig <christof@petig-baender.de>
108 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
109 for endian-ness of extracted addend.
111 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
113 * pe-dll.c (auto_export): Filter on just the import prefix,
114 "_imp_", not "_imp__".
116 2004-07-09 Nick Clifton <nickc@redhat.com>
118 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
120 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
122 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
123 (eelf32crx.c): New target.
124 * Makefile.in: Regenerate.
125 * configure.tgt: Handle crx-*-elf*.
126 * emulparams/elf32crx.sh: New file.
127 * emultempl/crxelf.em: New file.
128 * scripttempl/elf32crx.sc: New file.
129 * NEWS: Mention new target.
131 2004-07-06 Nick Clifton <nickc@redhat.com>
133 * Makefile.am: Add eshlsymbian.c.
134 * Makefile.in: Regenerate.
135 * configure.tgt: Add sh*-symbian-elf target.
136 * emulparams/shlsymbian.sh: New file. Configure the
137 sh-symbian-elf linker scripts.
138 * scripttemp/elf32sh-symbian.sc: New file. Linker script
139 template for the sh-symbian-elf target.
141 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
143 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
144 * emulparams/hppalinux.sh: Likewise.
145 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
146 data segment and PLT_BEFORE_GOT is defined.
148 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
150 * ld.texinfo (WIN32): Document PE weak symbols.
152 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
154 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
156 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
158 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
161 2004-06-29 Alan Modra <amodra@bigpond.net.au>
163 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
166 2004-06-24 Alan Modra <amodra@bigpond.net.au>
168 * ldlang.c (print_output_section_statement): Don't print size before
170 (IGNORE_SECTION): Remove bfd arg. Update all callers.
172 * ldexp.c (fold_name): .. See below.
173 * ldlang.c (section_already_linked, print_output_section_statement,
174 print_input_section, insert_pad, size_input_section,
175 lang_check_section_addresses, lang_size_sections_1,
176 lang_size_sections, lang_do_assignments_1, lang_set_startof,
177 lang_one_common, lang_reset_memory_regions, lang_process,
178 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
179 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
180 * pe-dll.c (process_def_file, generate_reloc): ..
181 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
182 gld${EMULATION_NAME}_before_allocation): ..
183 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
184 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
185 sh64_elf_${EMULATION_NAME}_after_allocation): ..
186 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
187 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
188 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
189 "size" instead of "_raw_size" and "_cooked_size". Expand
190 bfd_section_size macro invocations.
192 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
194 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
195 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
196 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
198 (.tls): Define ___tls_start__ and ___tls_end__.
200 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
202 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
204 2004-06-18 Adam Nemet <anemet@lnxw.com>
206 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
207 * configure: Regenerate.
209 2004-06-15 Jakub Jelinek <jakub@redhat.com>
211 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
212 .gcc_except_table output sections lost accidentally with
215 2004-06-15 Alan Modra <amodra@bigpond.net.au>
217 * ldwrite.c (build_link_order): Use bfd_get_section_size
218 instead of bfd_get_section_size_before_reloc or _raw_size.
219 * pe-dll.c (process_def_file): Likewise.
221 2004-06-14 Alan Modra <amodra@bigpond.net.au>
223 From Richard Wirth <r.wirth@wirthware.de>
224 * ldlang.c (lang_finish): Don't free lang_definedness_table.
226 2004-05-29 Alan Modra <amodra@bigpond.net.au>
228 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
229 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
231 2004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
233 * testsuite/ld-sh/arch/arch.exp: New test script.
234 * testsuite/ld-sh/arch/arch_expected.txt: New file.
235 * testsuite/ld-sh/arch/sh.s: New file.
236 * testsuite/ld-sh/arch/sh2.s: New file.
237 * testsuite/ld-sh/arch/sh-dsp.s: New file.
238 * testsuite/ld-sh/arch/sh2e.s: New file.
239 * testsuite/ld-sh/arch/sh3-nommu.s: New file.
240 * testsuite/ld-sh/arch/sh3.s: New file.
241 * testsuite/ld-sh/arch/sh3-dsp.s: New file.
242 * testsuite/ld-sh/arch/sh3e.s: New file.
243 * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
244 * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
245 * testsuite/ld-sh/arch/sh4.s: New file.
246 * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
247 * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
248 * testsuite/ld-sh/arch/sh4a.s: New file.
250 2004-05-28 Alan Modra <amodra@bigpond.net.au>
252 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
254 * lexsup.c: Formatting. Wrap long lines.
255 * ldwrite.c: Update copyright date.
257 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
258 (output_section_callback): Nor SEC_KEEP here.
259 (gc_section_callback): Twiddle SEC_EXCLUDE here.
260 (lang_gc_wild): Delete. Fold into..
261 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
263 (lang_process): Always call lang_gc_sections.
264 (lang_place_orphans): Handle SEC_EXCLUDE sections.
265 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
268 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
270 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
271 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
272 * ldlang.c (lang_add_section): Likewise.
274 2004-05-26 Alan Modra <amodra@bigpond.net.au>
276 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
277 sections when doing a final link. Clear SEC_EXCLUDE when doing
278 a relocable link, except for SEC_DEBUGGING sections.
279 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
280 same condition here to drop SEC_EXCLUDE orphan sections.
282 2004-05-25 Alan Modra <amodra@bigpond.net.au>
284 * ldlang.c (lang_process): Call bfd_merge_sections later, and
285 only when not a relocatable link.
286 (print_input_section): Handle SEC_EXCLUDE sections.
287 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
288 (lang_do_assignments_1): Likewise.
289 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
290 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
291 * emultempl/hppaelf.em (build_section_lists): Likewise.
292 * emultempl/ppc64elf.em (build_toc_list): Likewise.
293 (build_section_lists): Likewise.
295 2004-05-23 Andreas Schwab <schwab@suse.de>
297 * ld.texinfo (Options): Fix typo in last change.
299 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
301 * ld.h (ld_config_type): Add new field: hash_table_size.
302 * ldmain.c: Initialise the new field to zero. If it is non-zero
303 after parsing the linker's command line call
304 bfd_hash_set_default_size.
305 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
306 (ld_options): Add hash-size.
307 (parse_args): Parse --hash-size option. Allow
308 --reduce-memory-overheads to set the default hash table size as
310 * ld.texinfo: Document the new switch. Also mention that
311 --reduce-memory-overheads can affect the hash table size.
312 * NEWS: Mention the new feature.
314 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
316 * NEWS: Mention new linker map file generation and the
317 --reduce-memory-overheads option.
318 * ld.texinfo: Document --reduce-memory-overheads option.
319 * ld.h (map_symbol_def): New struct.
320 (struct user_section_struct, section_userdata_type): Rename to:
321 (struct lean_user_section_struct, lean_section_userdata_type).
322 (struct fat_user_section_struct, fat_section_userdata_type): New.
323 (SECTION_USERDATA_SIZE): Define.
324 (args_type): New member reduce_memory_overheads.
325 * ldlang.c (map_obstack): New static variable.
326 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
327 (lang_map): Unless command_line.reduce_memory_overheads is set,
328 initialize lists of defined symbols for each section.
329 (print_input_section): Unless command_line.reduce_memory_overheads
330 is set, use print_all_symbols.
331 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
332 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
333 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
334 (ld_options): Add entry for --reduce-memory-overheads.
335 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
337 2004-05-19 Jakub Jelinek <jakub@redhat.com>
339 * ldgram.y (sect_constraint): New.
340 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
341 (section): Add sect_constraint. Pass additional argument
342 to lang_enter_output_section_statement.
343 * mri.c (mri_draw_tree): Pass additional argument to
344 lang_enter_output_section_statement.
345 * emultempl/pe.em (place_orphan): Likewise.
346 (output_prev_sec_find): Disregard output section statements with
348 * emultempl/mmo.em (output_prev_sec_find): Likewise.
349 (mmo_place_orphan): Pass additional argument to
350 lang_enter_output_section_statement.
351 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
352 statements with constraint == -1.
353 (place_orphan): Pass additional argument to
354 lang_enter_output_section_statement.
355 * ldlang.c (lang_enter_overlay_section): Likewise.
356 (lang_output_section_find_1): New.
357 (lang_output_section_find): Use it.
358 (lang_output_section_statement_lookup_1): New.
359 (lang_output_section_statement_lookup): Use it.
360 (check_section_callback, check_input_sections): New.
361 (map_input_to_output_sections): Check if all input sections
362 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
363 (strip_excluded_output_sections): Disregard output section statements
364 with constraint == -1.
365 (lang_record_phdrs): Likewise.
366 (lang_enter_output_section_statement): Add constraint argument.
367 Use lang_output_section_statement_lookup_1.
368 * ldlang.h (lang_output_section_statement_type): Add constraint
369 and all_input_readonly fields.
370 (lang_enter_output_section_statement): Adjust prototype.
371 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
372 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
373 segment if all input sections are readonly.
375 2004-05-19 Adam Nemet <anemet@lnxw.com>
377 * scripttempl/i386lynx.sc: Remove file.
379 2004-05-17 Bob Wilson <bob.wilson@acm.org>
381 * ld.texinfo (Output Section Address): Correct subsection name.
383 2004-05-17 Adam Nemet <anemet@lnxw.com>
385 * configure.tgt (powerpc-*-lynxos* case): New case.
386 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
387 * emulparams/ppclynx.sh: New file.
388 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
389 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
390 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
391 (eppclynx.c): New rule.
392 * Makefile.in: Regenerate.
394 2004-05-13 Joel Sherrill <joel@oarcorp.com>
396 * configure.tgt (or32-*-rtems*): Switch to elf and
397 support versioned targets.
399 2004-05-13 Nick Clifton <nickc@redhat.com>
401 * po/fr.po: Updated French translation.
403 2004-05-11 Jakub Jelinek <jakub@redhat.com>
405 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
406 for binaries, -shared and -pie.
407 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
408 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
409 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
410 (OTHER_RELRO_SECTIONS): ... this.
411 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
412 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
413 -z relro and -z norelro.
414 (gld${EMULATION_NAME}_list_options): Add it to usage.
415 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
416 -z relro scripts when appropriate.
417 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
418 Create separate .got.plt section if SEPARATE_GOTPLT.
419 Move sections which are only written during relocation handling
420 to the beginning of RW segment. If NO_SMALL_DATA, move .got
421 before .data. Add DATA_SEGMENT_RELRO_END directive.
422 Include OTHER_RELRO_SECTIONS.
423 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
424 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
425 (fold_unary): Likewise.
426 (fold_binary): Handle -z relro.
427 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
428 exp_dataseg_relro_adjust phases. Add relro_end field.
429 * ldmain.c (main): Initialize link_info.relro to FALSE.
430 * ldlang.c (lang_size_sections): Handle -z relro.
432 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
434 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
436 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
438 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
439 before printing it with %W.
441 2004-05-07 Brian Ford <ford@vss.fsi.com>
442 DJ Delorie <dj@redhat.com>
444 * emultempl/pe.em (real_flags): New static.
445 (OPTION_LARGE_ADDRESS_AWARE): New define.
446 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
447 (gld_${EMULATION_NAME}_list_options): Likewise.
448 (gld${EMULATION_NAME}_handle_option): Likewise.
449 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
450 * ld.texinfo: Document it.
453 2004-05-07 Brian Ford <ford@vss.fsi.com>
455 * NEWS: Mention DWARF 2 support for i386pe.
457 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
459 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
462 2004-04-30 Alan Modra <amodra@bigpond.net.au>
464 * ldlang.c (unique_section_p): Pass section parm, return true on
466 (output_section_callback): Adjust.
467 * ldlang.h (unique_section_p): Update prototype.
468 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
470 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
472 * ld.texinfo (--gc-sections): Remove restriction for
475 2004-04-29 Brian Ford <ford@vss.fsi.com>
477 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
478 for DWARF 2/3. Update stab section's syntax.
480 2004-04-29 Alan Modra <amodra@bigpond.net.au>
482 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
483 (fill_edata): Correct pointer arithmetic.
485 2004-04-21 Chris Demetriou <cgd@broadcom.com>
487 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
488 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
489 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
490 (EXTRA_EM_FILE): Use mipsecoff.em
491 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
492 (EXTRA_EM_FILE): Use mipsecoff.em
493 * emultempl/mipsecoff.em: Restructure to be included as an
494 extra emulation file.
495 (check_sections, gld${EMULATION_NAME}_after_open)
496 (gld${EMULATION_NAME}_after_allocation)
497 (gld${EMULATION_NAME}_get_script)
498 (ld_${EMULATION_NAME}_emulation): Remove
499 (gld${EMULATION_NAME}_before_parse): Rename to...
500 (mipsecoff_before_parse): This.
501 (LDEMUL_BEFORE_PARSE): Define.
502 * emultempl/mipself.em: Remove file.
503 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
504 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
506 * Makefile.am: Remove dependencies on emultempl/mipself.em.
507 * Makefile.in: Regenerate.
509 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
511 * ld.texinfo (synthesizing on H8/300): Information about linker
512 relaxation support for bit manipulation instructions and system
513 control instructions is added.
515 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
517 * NEWS: Mention change in DEFINED semantics.
519 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
521 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
522 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
523 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
525 2004-04-21 Ben Elliston <bje@au.ibm.com>
527 * ld.texinfo (Simple Example): Add missing punctuation.
529 2004-04-20 Chris Demetriou <cgd@broadcom.com>
531 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
533 2004-04-19 Jakub Jelinek <jakub@redhat.com>
535 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
538 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
540 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
541 with default priority. Likewise for dtors.
543 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
545 * configure.host: Remove mips*-dec-bsd* target.
546 * configure.tgt: Likewise.
548 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
550 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
551 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
552 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
553 * emultempl/irix.em: New file.
554 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
556 * Makefile.in: Regenerate.
558 2004-04-01 Paul Brook <paul@codesourcery.com>
560 * emultempl/armelf.em (byteswap_code): Add.
561 (arm_elf_before_allocation): Pass extra parameter.
562 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
563 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
564 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
565 * emultempl/armelf_oabi.em: Pass extra parameter.
566 * ld.texinfo: Document --be8.
568 2004-03-30 Stan Shebs <shebs@apple.com>
570 Remove long-obsolete MPW support.
571 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
572 * Makefile.am (mpw): Remove file-presynthesizing actions.
573 * Makefile.in: Likewise.
574 * ldfile.c (slash): Remove MPW case.
575 * ldlex.l [MPW]: Remove unused definition.
577 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
579 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
580 (eelf32cr16c.c): New target.
581 * Makefile.in: Regenerate.
582 * configure.tgt: Handle cr16c-*-elf*.
583 * emulparams/elf32cr16c.sh: New file.
584 * scripttempl/elfcr16c.sc: Likewise
585 * NEWS: Mention support for new target.
587 2004-03-30 Nick Clifton <nickc@redhat.com>
589 * po/sv.po: Updated Swedish translation.
591 2004-03-27 Alan Modra <amodra@bigpond.net.au>
593 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
594 * emultempl/hppaelf.em: Likewise.
595 * emultempl/ppc64elf.em: Likewise.
596 * emultempl/sh64elf.em: Likewise.
598 2004-03-25 Alan Modra <amodra@bigpond.net.au>
600 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
601 size_dynamic_sections call.
603 2004-03-23 Alan Modra <amodra@bigpond.net.au>
606 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
609 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
611 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
612 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
614 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
616 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
618 2004-03-19 Alan Modra <amodra@bigpond.net.au>
620 * config.in: Regenerate.
621 * po/ld.pot: Regenerate.
623 2004-03-18 Alan Modra <amodra@bigpond.net.au>
625 * ld.texinfo: Add --as-needed doco.
626 * ldmain.c (as_needed): New global var.
627 * ldmain.h (as_needed): Declare.
628 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
630 (ld_options): Likewise.
631 (parse_args): Handle them.
632 * ldlang.h (lang_input_statement_type): Add as_needed field.
633 * ldlang.c (new_afile): Set p->as_needed.
634 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
635 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
636 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
638 * ldlang.c (open_input_bfds): Remove useless cast.
639 (lang_do_assignments_1): Likewise.
640 (lang_for_each_input_section): Delete.
642 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
644 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
646 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
648 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
649 private when building implib.
651 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
653 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
655 (IGNORE_SECTION): Ignore .tbss sections too.
656 (lang_size_sections_1): .tbss sections do not advance dot.
658 2004-03-01 Andreas Schwab <schwab@suse.de>
660 * ld.texinfo (Options): Fix example for --wrap.
662 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
664 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
667 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
669 * ldlang.c (lang_check): Use %P, not %E, in error message.
671 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
673 * ldlang.h (struct lang_output_section_state): Change processed
675 * ldexp.c (check, invalid): Remove.
676 (fold_name): Move valid_p assignments. Create undefined symbol
677 when needed. Directly exampine section's processd flag.
678 * ldlang.c (lang_output_section_statement_lookup): Adjust
679 processed field init.
680 (lang_size_sections_1): Allow LOADADDR when determining section's
681 VMA. Adjust error message. Fold data statement's expr.
682 (lang_size_sections): Correctly increment lang_statement_iteration.
684 2004-02-23 Alan Modra <amodra@bigpond.net.au>
686 * ldexp.c (fold_tree): Follow indirect symbols.
688 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
690 * ldgram.y (exp): Add two operand ALIGN.
691 * ldexp.c (fold_binary): Add ALIGN_K case.
692 * ld.texinfo (ALIGN): Document two operand version.
694 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
696 * ldlang.c (map_input_to_output_sections): Initialize sections
697 mentioned in a data statement expression.
698 (lang_do_assignments_1): Add data statement's expression's
701 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
703 * ldgram.y (statement_anywhere): Add assert rule.
704 * ldlang.c (exp_init_os): Add assert case.
706 2004-02-14 Andrew Cagney <cagney@redhat.com>
708 * ldmain.c (remove_output): Call bfd_cache_close.
710 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
712 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
713 .MIPS.content* and .MIPS.events* sections.
715 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
717 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
718 .note.gnu.arm.ident to after allocated sections. Mark its
721 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
723 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
724 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
725 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
726 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
727 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
729 2004-02-05 Nick Clifton <nickc@redhat.com>
731 * emultempl/pe.em (_after_open): Fix typo in previous delta.
733 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
735 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
737 2004-01-28 Alan Modra <amodra@bigpond.net.au>
739 * genscripts.sh: Fix typo.
741 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
743 2004-01-24 Jakub Jelinek <jakub@redhat.com>
745 * emulparams/elf64_ia64.sh: Put .rela.opd into
746 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
748 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
750 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
751 * ld.texinfo (--omagic): Note that writable text section
752 does not conform to published PE-COFF specs.
753 (--enable-auto-import): Likewise.
755 2004-01-15 Alan Modra <amodra@bigpond.net.au>
757 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
759 2004-01-13 Nick Clifton <nickc@redhat.com>
761 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
762 which if true will prevent the LMA region being used as a
763 replacement for a default VMA region.
764 (lang_leave_output_section_statement): Pass extra parameter.
765 (lang_leave_overlay): Likewise.
766 * ld.texinfo (Output Section LMA): Document that the LMA
767 region can be set to the VMA region if no VMA has been set.
768 * ldlang.h (struct lang_output_section_phdr_list): Create a
769 typedef for this type. Minor formatting fixes.
771 2004-01-13 Nick Clifton <nickc@redhat.com>
773 * ldlang.c (lang_size_sections_1): If dot is advanced, then
774 assume that the section should be allocated.
776 2004-01-13 Alan Modra <amodra@bigpond.net.au>
778 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
779 sections. Do ignore SEC_NEVER_LOAD sections.
780 (lang_size_sections_1): Remove test made redundant with the above.
782 2004-01-09 Alan Modra <amodra@bigpond.net.au>
784 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
787 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
789 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
790 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
791 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
792 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
793 (MAXPAGESIZE): Set to 64Kb.
794 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
795 __ROFIXUP_END__. Don't map .rofixup.got any more.
796 * emulparams/elf32frv.sh (NOP): Set.
797 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
798 * configure.tgt: Add frv-*-*linux*.
799 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
800 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
801 (eelf32frvfd.c): New.
802 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
803 * emulparams/elf32frv.sh: Reverted previous two patches.
804 * emulparams/elf32frvfd.sh: New.
805 * Makefile.in: Rebuilt.
806 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
807 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
808 .rofixup.got to .rofixup.
809 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
810 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
811 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
813 2004-01-05 Jakub Jelinek <jakub@redhat.com>
815 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
816 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
818 2004-01-03 Alan Modra <amodra@bigpond.net.au>
820 * ldexp.c (align_n): Make static.
821 * ldexp.h (align_n): Delete declaration.
822 * ldlang.h (lang_enter_output_section_statement): Remove
824 * ldlang.c (lang_enter_output_section_statement): Likewise.
825 (TO_ADDR, TO_SIZE): Define.
826 (opb_shift): New var.
827 (init_opb): New function.
828 (print_input_section): Call init_opb and use TO_ADDR.
829 (print_data_statement, print_reloc_statement): Likewise.
830 (print_padding_statement): Likewise.
831 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
832 (lang_check_section_addresses): Likewise.
833 (lang_size_sections_1): Likewise.
834 (lang_do_assignments_1): Likewise.
835 (lang_set_startof): Likewise.
836 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
837 (lang_process): Call init_opb.
838 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
839 (lang_enter_overlay_section): Adjust
840 lang_enter_output_section_statement call.
841 * ldgram.y: Likewise.
842 * mri.c (mri_draw_tree): Likewise.
843 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
844 * emultempl/mmo.em (mmo_place_orphan): Likewise.
845 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
847 * ldfile.c (ldfile_set_output_arch): Add defarch param.
848 * ldfile.h (ldfile_set_output_arch): Ditto.
849 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
850 ldfile_set_output_arch.
851 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
852 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
853 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
854 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
855 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
856 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
857 * ldgram.y: Adjust ldfile_set_output_arch call.
858 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
859 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
860 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
861 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
862 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
863 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
864 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
866 2004-01-02 Bernardo Innocenti <bernie@develer.com>
868 * configure.tgt: Add m68k-uClinux target.
870 For older changes see ChangeLog-0203
876 version-control: never