* config.bfd (arm*-*-symbianelf*): Use OS-specific target vectors.
[binutils.git] / ld / ChangeLog
blobac7b36eddbce965e139ec5765f77a6e8ba44ab7f
1 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
3         * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
4         (earmsymbian.c): New target.
5         * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
6         * Makefile.in: Regenerated.
7         * aclocal.m4: Likewise.
8         * configure: Likewise.
9         * emulparams/armsymbian.sh: New file.
11 2004-09-03  Tomer Levi  <Tomer.Levi@nsc.com>
13         * scripttempl/elf32crx.sc: Edit file with comments.
14         (.init): Add new section.
15         (.fini): Likewise.
16         (.ctor): Control the linkage order.
17         (.dtor): Likewise.
19 2004-08-27  Nick Clifton  <nickc@redhat.com>
21         * emultempl/pe.em (after_open): Do not assume that either bfd is
22         an archive. 
24 2004-08-26  Alan Modra  <amodra@bigpond.net.au>
26         * ldlang.c (lang_init): Don't compare with TRUE.
28 2004-08-25  Dmitry Diky  <diwil@spec.ru>
30         * emulparams/msp430all.sh: Fix RAM sizes for all targets.
31         * scripttempl/elf32msp430.sc: Add .profiler section definition.
33 2004-08-24  H.J. Lu  <hongjiu.lu@intel.com>
35         * ldlang.c (wildcardp): Defined as a macro with strpbrk.
37 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
39         * configure.tgt (arm*-*-symbianelf*): New target.
40         (arm*-*-eabi*): Likewise.
42 2004-08-19  Jakub Jelinek  <jakub@redhat.com>
44         * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
45         (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
46         (OPTION_NON_OVERLAPPING_OPD): Define.
47         (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
48         --non-overlapping-opd option.
50 2004-08-18  Alan Modra  <amodra@bigpond.net.au>
52         PR 338
53         * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
54         was already on the undefs list.
56 2004-08-17  Alan Modra  <amodra@bigpond.net.au>
58         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
59         prefix the symbol field too.
61 2004-08-13  Alan Modra  <amodra@bigpond.net.au>
63         * ldmain.c (link_callbacks): Remove "error_handler".
64         * ldmisc.c: Include elf-bfd.h.
65         (vfinfo): Sort comment.  Handle %A.  Use %A instead of
66         bfd_get_section_indent.
67         (error_handler): Delete.
68         * ldmisc.h (error_handler): Delete declaration.
70 2004-08-10  Alan Modra  <amodra@bigpond.net.au>
72         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
73         ppc64_elf_restore_symbols.
75 2004-08-09  Alan Modra  <amodra@bigpond.net.au>
77         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
78         .toc is too large on relocatable linking.
80 2004-08-09  Alan Modra  <amodra@bigpond.net.au>
82         * emultempl/ppc64elf.em (ppc_after_open): Delete.
83         (LDEMUL_AFTER_OPEN): Don't define.
85 2004-08-02  Stephane Carrez  <stcarrez@nerim.fr>
87         * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
89 2004-08-01  Stephane Carrez  <stcarrez@nerim.fr>
91         * scripttempl/elfm68hc12.sc: Align text, rodata and data section
92         on power of 2.
94 2004-07-27  Jason Thorpe  <thorpej@wasabisystems.com>
96         * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
98 2004-07-26  Dmitry Diky  <diwil@spec.ru>
100         * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
101         msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
102         msp430xG439.
103         * configure.tgt: Likewise.
104         * emulparams/msp430all.sh: Likewise.
105         * Makefile.in: Regenerate.
107 2004-07-23  Nick Clifton  <nickc@redhat.com>
109         * emultempl/elf32.em (_place_orphan): Use an already existing
110         section name if that section does not have any flags set.
112 2004-07-21  H.J. Lu  <hongjiu.lu@intel.com>
114         * ldlang.c (already_linked_hash_entry): Removed.
115         (already_linked): Likewise.
116         (already_linked_table): Likewise.
117         (section_already_linked): Call bfd_section_already_linked.
118         (lang_process): Replace already_linked_table_init with
119         bfd_section_already_linked_table_init and check return. Replace
120         already_linked_table_free with bfd_section_already_linked_table_free.
122 2004-07-21  Nick Clifton  <nickc@redhat.com>
124         * ldlang.c (init_os): Make sure that the newly allocated userdata
125         structure is zeroed out.
127 2004-07-19  H.J. Lu  <hongjiu.lu@intel.com>
129         * NEWS: Mention the new --add-needed/--no-add-needed and
130         --as-needed/--no-as-needed options.
132 2004-07-19  H.J. Lu  <hongjiu.lu@intel.com>
134         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
135         check the add_needed field.
136         (dt_needed): New struct.
137         (gld${EMULATION_NAME}_try_needed): Change the first argument
138         to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
139         bit in the file where the DT_NEEDED entry comes from.
140         (gld${EMULATION_NAME}_search_needed): Change the second
141         argument to a pointer to struct dt_needed.
142         (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
143         (gld${EMULATION_NAME}_after_open): Likewise.
145         * ld.texinfo: Add --add-needed document.
146         * ldlang.c (new_afile): Set p->add_needed.
147         * ldlang.h (lang_input_statement_type): Add add_needed field.
148         * ldmain.h (add_needed): Declare.
149         * ldmain.c (add_needed): New global var.
150         * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
151         OPTION_NO_ADD_NEEDED.
152         (ld_options): Likewise.
153         (parse_args): Handle them.
155 2004-07-13  Christof Petig  <christof@petig-baender.de>
157         * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
158         for endian-ness of extracted addend.
160 2004-07-13  Danny Smith  <dannysmith@usesr.sourceforge.net>
162         * pe-dll.c (auto_export):  Filter on just the import prefix,
163         "_imp_", not "_imp__".
165 2004-07-09  Nick Clifton  <nickc@redhat.com>
167         * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
169 2004-07-06  Tomer Levi  <Tomer.Levi@nsc.com>
171         * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
172         (eelf32crx.c): New target.
173         * Makefile.in: Regenerate.
174         * configure.tgt: Handle crx-*-elf*.
175         * emulparams/elf32crx.sh: New file.
176         * emultempl/crxelf.em: New file.
177         * scripttempl/elf32crx.sc: New file.
178         * NEWS: Mention new target.
180 2004-07-06  Nick Clifton  <nickc@redhat.com>
182         * Makefile.am: Add eshlsymbian.c.
183         * Makefile.in: Regenerate.
184         * configure.tgt: Add sh*-symbian-elf target.
185         * emulparams/shlsymbian.sh: New file.  Configure the
186         sh-symbian-elf linker scripts.
187         * scripttemp/elf32sh-symbian.sc: New file.  Linker script
188         template for the sh-symbian-elf target.
190 2004-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
192         * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
193         * emulparams/hppalinux.sh: Likewise.
194         * scripttempl/elf.sc: Place .plt just before .got when .plt is in
195         data segment and PLT_BEFORE_GOT is defined.
197 2004-07-03  Aaron W. LaFramboise  <aaron98wiridge9@aaronwl.com>
199         * ld.texinfo (WIN32): Document PE weak symbols.
201 2004-07-02  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
203         * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
205 2004-07-01  H.J. Lu  <hongjiu.lu@intel.com>
207         * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
208         the section.
210 2004-06-29  Alan Modra  <amodra@bigpond.net.au>
212         * ldlang.c (lang_reset_memory_regions): Save last relax pass section
213         size in rawsize.
215 2004-06-24  Alan Modra  <amodra@bigpond.net.au>
217         * ldlang.c (print_output_section_statement): Don't print size before
218         relaxation.
219         (IGNORE_SECTION): Remove bfd arg.  Update all callers.
221         * ldexp.c (fold_name): .. See below.
222         * ldlang.c (section_already_linked, print_output_section_statement,
223         print_input_section, insert_pad, size_input_section,
224         lang_check_section_addresses, lang_size_sections_1,
225         lang_size_sections, lang_do_assignments_1, lang_set_startof,
226         lang_one_common, lang_reset_memory_regions, lang_process,
227         lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
228         * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
229         * pe-dll.c (process_def_file, generate_reloc): ..
230         * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
231         gld${EMULATION_NAME}_before_allocation): ..
232         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
233         * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
234         sh64_elf_${EMULATION_NAME}_after_allocation): ..
235         * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
236         * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
237         ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
238         "size" instead of "_raw_size" and "_cooked_size".  Expand
239         bfd_section_size macro invocations.
241 2004-06-22  Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
243         * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
244         ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
245         ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
246         ___crt_xt_end__.
247         (.tls): Define ___tls_start__ and ___tls_end__.
249 2004-06-21  Alexandre Oliva  <aoliva@redhat.com>
251         * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
253 2004-06-18  Adam Nemet  <anemet@lnxw.com>
255         * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
256         * configure: Regenerate.
258 2004-06-15  Jakub Jelinek  <jakub@redhat.com>
260         * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
261         .gcc_except_table output sections lost accidentally with
262         -z relro patch.
264 2004-06-15  Alan Modra  <amodra@bigpond.net.au>
266         * ldwrite.c (build_link_order): Use bfd_get_section_size
267         instead of bfd_get_section_size_before_reloc or _raw_size.
268         * pe-dll.c (process_def_file): Likewise.
270 2004-06-14  Alan Modra  <amodra@bigpond.net.au>
272         From Richard Wirth <r.wirth@wirthware.de>
273         * ldlang.c (lang_finish): Don't free lang_definedness_table.
275 2004-05-29  Alan Modra  <amodra@bigpond.net.au>
277         * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
278         (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
280 2004-05-28  Andrew Stubbs <andrew.stubbs@superh.com>
282         * testsuite/ld-sh/arch/arch.exp: New test script.
283         * testsuite/ld-sh/arch/arch_expected.txt: New file.
284         * testsuite/ld-sh/arch/sh.s: New file.
285         * testsuite/ld-sh/arch/sh2.s: New file.
286         * testsuite/ld-sh/arch/sh-dsp.s: New file.
287         * testsuite/ld-sh/arch/sh2e.s: New file.
288         * testsuite/ld-sh/arch/sh3-nommu.s: New file.
289         * testsuite/ld-sh/arch/sh3.s: New file.
290         * testsuite/ld-sh/arch/sh3-dsp.s: New file.
291         * testsuite/ld-sh/arch/sh3e.s: New file.
292         * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
293         * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
294         * testsuite/ld-sh/arch/sh4.s: New file.
295         * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
296         * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
297         * testsuite/ld-sh/arch/sh4a.s: New file.
299 2004-05-28  Alan Modra  <amodra@bigpond.net.au>
301         * ldlang.c: Formatting.  Wrap long lines, expand bfd_get_section_flags
302         throughout file.
303         * lexsup.c: Formatting.  Wrap long lines.
304         * ldwrite.c: Update copyright date.
306         * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
307         (output_section_callback): Nor SEC_KEEP here.
308         (gc_section_callback): Twiddle SEC_EXCLUDE here.
309         (lang_gc_wild): Delete.  Fold into..
310         (lang_gc_sections_1): ..here.  Only call bfd_gc_sections when garbage
311         collecting.
312         (lang_process): Always call lang_gc_sections.
313         (lang_place_orphans): Handle SEC_EXCLUDE sections.
314         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
315         SEC_EXCLUDE code.
317 2004-05-26  H.J. Lu  <hongjiu.lu@intel.com>
319         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
320         SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
321         * ldlang.c (lang_add_section): Likewise.
323 2004-05-26  Alan Modra  <amodra@bigpond.net.au>
325         * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
326         sections when doing a final link.  Clear SEC_EXCLUDE when doing
327         a relocable link, except for SEC_DEBUGGING sections.
328         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
329         same condition here to drop SEC_EXCLUDE orphan sections.
331 2004-05-25  Alan Modra  <amodra@bigpond.net.au>
333         * ldlang.c (lang_process): Call bfd_merge_sections later, and
334         only when not a relocatable link.
335         (print_input_section): Handle SEC_EXCLUDE sections.
336         (size_input_section): Don't update dot on SEC_EXCLUDE sections.
337         (lang_do_assignments_1): Likewise.
338         * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
339         * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
340         * emultempl/hppaelf.em (build_section_lists): Likewise.
341         * emultempl/ppc64elf.em (build_toc_list): Likewise.
342         (build_section_lists): Likewise.
344 2004-05-23  Andreas Schwab  <schwab@suse.de>
346         * ld.texinfo (Options): Fix typo in last change.
348 2004-05-21  Andy Chittenden  <achittenden@bluearc.com>
350         * ld.h (ld_config_type): Add new field: hash_table_size.
351         * ldmain.c: Initialise the new field to zero.  If it is non-zero
352         after parsing the linker's command line call
353         bfd_hash_set_default_size.
354         * lexsup.c (option_values): Add OPTION_HASH_SIZE.
355         (ld_options): Add hash-size.
356         (parse_args): Parse --hash-size option.  Allow
357         --reduce-memory-overheads to set the default hash table size as
358         well.
359         * ld.texinfo: Document the new switch.  Also mention that
360         --reduce-memory-overheads can affect the hash table size.
361         * NEWS: Mention the new feature.
363 2004-05-19  J"orn Rennecke <joern.rennecke@superh.com>
365         * NEWS: Mention new linker map file generation and the
366         --reduce-memory-overheads option.
367         * ld.texinfo: Document --reduce-memory-overheads option.
368         * ld.h (map_symbol_def): New struct.
369         (struct user_section_struct, section_userdata_type): Rename to:
370         (struct lean_user_section_struct, lean_section_userdata_type).
371         (struct fat_user_section_struct, fat_section_userdata_type): New.
372         (SECTION_USERDATA_SIZE): Define.
373         (args_type): New member reduce_memory_overheads.
374         * ldlang.c (map_obstack): New static variable.
375         (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
376         (lang_map): Unless command_line.reduce_memory_overheads is set,
377         initialize lists of defined symbols for each section.
378         (print_input_section): Unless command_line.reduce_memory_overheads
379         is set, use print_all_symbols.
380         (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
381         * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
382         * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
383         (ld_options): Add entry for --reduce-memory-overheads.
384         (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
386 2004-05-19  Jakub Jelinek  <jakub@redhat.com>
388         * ldgram.y (sect_constraint): New.
389         (ONLY_IF_RO, ONLY_IF_RW): New tokens.
390         (section): Add sect_constraint.  Pass additional argument
391         to lang_enter_output_section_statement.
392         * mri.c (mri_draw_tree): Pass additional argument to
393         lang_enter_output_section_statement.
394         * emultempl/pe.em (place_orphan): Likewise.
395         (output_prev_sec_find): Disregard output section statements with
396         constraint == -1.
397         * emultempl/mmo.em (output_prev_sec_find): Likewise.
398         (mmo_place_orphan): Pass additional argument to
399         lang_enter_output_section_statement.
400         * emultempl/elf32.em (output_prev_sec_find): Disregard output section
401         statements with constraint == -1.
402         (place_orphan): Pass additional argument to
403         lang_enter_output_section_statement.
404         * ldlang.c (lang_enter_overlay_section): Likewise.
405         (lang_output_section_find_1): New.
406         (lang_output_section_find): Use it.
407         (lang_output_section_statement_lookup_1): New.
408         (lang_output_section_statement_lookup): Use it.
409         (check_section_callback, check_input_sections): New.
410         (map_input_to_output_sections): Check if all input sections
411         are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
412         (strip_excluded_output_sections): Disregard output section statements
413         with constraint == -1.
414         (lang_record_phdrs): Likewise.
415         (lang_enter_output_section_statement): Add constraint argument.
416         Use lang_output_section_statement_lookup_1.
417         * ldlang.h (lang_output_section_statement_type): Add constraint
418         and all_input_readonly fields.
419         (lang_enter_output_section_statement): Adjust prototype.
420         * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
421         * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
422         segment if all input sections are readonly.
424 2004-05-19  Adam Nemet  <anemet@lnxw.com>
426         * scripttempl/i386lynx.sc: Remove file.
428 2004-05-17  Bob Wilson  <bob.wilson@acm.org>
430         * ld.texinfo (Output Section Address): Correct subsection name.
432 2004-05-17  Adam Nemet  <anemet@lnxw.com>
434         * configure.tgt (powerpc-*-lynxos* case): New case.
435         * configure.host (i[3-7]86-*-lynxos* case): Remove case.
436         * emulparams/ppclynx.sh: New file.
437         * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
438         * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
439         (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
440         (eppclynx.c): New rule.
441         * Makefile.in: Regenerate.
443 2004-05-13  Joel Sherrill <joel@oarcorp.com>
445         * configure.tgt (or32-*-rtems*): Switch to elf and
446         support versioned targets.
448 2004-05-13  Nick Clifton  <nickc@redhat.com>
450         * po/fr.po: Updated French translation.
452 2004-05-11  Jakub Jelinek  <jakub@redhat.com>
454         * genscripts.sh: Generate -z combreloc -z now -z relro scripts
455         for binaries, -shared and -pie.
456         * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
457         * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
458         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
459         (OTHER_RELRO_SECTIONS): ... this.
460         * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
461         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
462         -z relro and -z norelro.
463         (gld${EMULATION_NAME}_list_options): Add it to usage.
464         (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
465         -z relro scripts when appropriate.
466         * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
467         Create separate .got.plt section if SEPARATE_GOTPLT.
468         Move sections which are only written during relocation handling
469         to the beginning of RW segment.  If NO_SMALL_DATA, move .got
470         before .data.  Add DATA_SEGMENT_RELRO_END directive.
471         Include OTHER_RELRO_SECTIONS.
472         * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
473         * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
474         (fold_unary): Likewise.
475         (fold_binary): Handle -z relro.
476         * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
477         exp_dataseg_relro_adjust phases.  Add relro_end field.
478         * ldmain.c (main): Initialize link_info.relro to FALSE.
479         * ldlang.c (lang_size_sections): Handle -z relro.
481 2004-05-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
483         * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
485 2004-05-07  J"orn Rennecke <joern.rennecke@superh.com>
487         * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
488         before printing it with %W.
490 2004-05-07  Brian Ford  <ford@vss.fsi.com>
491             DJ Delorie  <dj@redhat.com>
493         * emultempl/pe.em (real_flags): New static.
494         (OPTION_LARGE_ADDRESS_AWARE): New define.
495         (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
496         (gld_${EMULATION_NAME}_list_options): Likewise.
497         (gld${EMULATION_NAME}_handle_option): Likewise.
498         (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
499         * ld.texinfo: Document it.
500         * NEWS: Mention it.
502 2004-05-07  Brian Ford  <ford@vss.fsi.com>
504         * NEWS: Mention DWARF 2 support for i386pe.
506 2004-05-05  Alexandre Oliva  <aoliva@redhat.com>
508         * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
509         elf32-frvfdpic.
511 2004-04-30  Alan Modra  <amodra@bigpond.net.au>
513         * ldlang.c (unique_section_p): Pass section parm, return true on
514         group sections.
515         (output_section_callback): Adjust.
516         * ldlang.h (unique_section_p): Update prototype.
517         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
519 2004-04-30  Eric Botcazou  <ebotcazou@act-europe.fr>
521         * ld.texinfo (--gc-sections): Remove restriction for
522         dynamic linking.
524 2004-04-29  Brian Ford  <ford@vss.fsi.com>
526         * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
527         for DWARF 2/3.  Update stab section's syntax.
529 2004-04-29  Alan Modra  <amodra@bigpond.net.au>
531         * pe-dll.c: Revert changes accidentally committed 2004-03-08.
532         (fill_edata): Correct pointer arithmetic.
534 2004-04-21  Chris Demetriou  <cgd@broadcom.com>
536         * ld.texinfo: Remove MIPS --embedded-relocs documentation.
537         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
538         * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
539         (EXTRA_EM_FILE): Use mipsecoff.em
540         * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
541         (EXTRA_EM_FILE): Use mipsecoff.em
542         * emultempl/mipsecoff.em: Restructure to be included as an
543         extra emulation file.
544         (check_sections, gld${EMULATION_NAME}_after_open)
545         (gld${EMULATION_NAME}_after_allocation)
546         (gld${EMULATION_NAME}_get_script)
547         (ld_${EMULATION_NAME}_emulation): Remove
548         (gld${EMULATION_NAME}_before_parse): Rename to...
549         (mipsecoff_before_parse): This.
550         (LDEMUL_BEFORE_PARSE): Define.
551         * emultempl/mipself.em: Remove file.
552         * scripttempl/mips.sc (.rel.sdata): Do not include in output.
553         (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
554         these symbols.
555         * Makefile.am: Remove dependencies on emultempl/mipself.em.
556         * Makefile.in: Regenerate.
558 2004-04-21      Anil Paranjpe   <anilp1@kpitcummins.com>
560         * ld.texinfo (synthesizing on H8/300): Information about linker
561         relaxation support for bit manipulation instructions and system
562         control instructions is added.
564 2004-04-21  Hans-Peter Nilsson  <hp@axis.com>
566         * NEWS: Mention change in DEFINED semantics.
568 2004-04-21  Eric Botcazou  <ebotcazou@act-europe.fr>
570         * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
571         (.data): Add KEEP for .gnu.linkonce.d.*personality*.
572         (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
574 2004-04-21  Ben Elliston  <bje@au.ibm.com>
576         * ld.texinfo (Simple Example): Add missing punctuation.
578 2004-04-20  Chris Demetriou  <cgd@broadcom.com>
580         * NEWS: Note that MIPS --embedded-relocs option is deprecated.
582 2004-04-19  Jakub Jelinek  <jakub@redhat.com>
584         * ldlang.c (lang_do_assignments_1): Handle .tbss output section
585         specially.
587 2004-04-18  Danny Smith  <dannysmith@users.sourceforge.net>
589         * scriptempl/pe.sc:  Put numbered .ctors.* after .ctors
590         with default priority. Likewise for dtors.
592 2004-04-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
594         * configure.host: Remove mips*-dec-bsd* target.
595         * configure.tgt: Likewise.
597 2004-04-08  Richard Sandiford  <rsandifo@redhat.com>
599         * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
600         * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
601         * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
602         * emultempl/irix.em: New file.
603         * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
604         dependencies.
605         * Makefile.in: Regenerate.
607 2004-04-01  Paul Brook  <paul@codesourcery.com>
609         * emultempl/armelf.em (byteswap_code): Add.
610         (arm_elf_before_allocation): Pass extra parameter.
611         (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
612         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
613         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
614         * emultempl/armelf_oabi.em: Pass extra parameter.
615         * ld.texinfo: Document --be8.
617 2004-03-30  Stan Shebs  <shebs@apple.com>
619         Remove long-obsolete MPW support.
620         * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
621         * Makefile.am (mpw): Remove file-presynthesizing actions.
622         * Makefile.in: Likewise.
623         * ldfile.c (slash): Remove MPW case.
624         * ldlex.l [MPW]: Remove unused definition.
626 2004-03-30  Galit Heller  <Galit.Heller@nsc.com>
628         * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
629         (eelf32cr16c.c): New target.
630         * Makefile.in: Regenerate.
631         * configure.tgt: Handle cr16c-*-elf*.
632         * emulparams/elf32cr16c.sh: New file.
633         * scripttempl/elfcr16c.sc: Likewise
634         * NEWS: Mention support for new target.
636 2004-03-30  Nick Clifton  <nickc@redhat.com>
638         * po/sv.po: Updated Swedish translation.
640 2004-03-27  Alan Modra  <amodra@bigpond.net.au>
642         * emultempl/elf32.em: Update new bfd_elf_discard_info name.
643         * emultempl/hppaelf.em: Likewise.
644         * emultempl/ppc64elf.em: Likewise.
645         * emultempl/sh64elf.em: Likewise.
647 2004-03-25  Alan Modra  <amodra@bigpond.net.au>
649         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
650         size_dynamic_sections call.
652 2004-03-23  Alan Modra  <amodra@bigpond.net.au>
654         PR 51.
655         * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
656         link_info.wrap_char.
658 2004-03-20  H.J. Lu  <hongjiu.lu@intel.com>
660         * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
661         or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
663 2004-03-20  Alexandre Oliva  <aoliva@redhat.com>
665         * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
667 2004-03-19  Alan Modra  <amodra@bigpond.net.au>
669         * config.in: Regenerate.
670         * po/ld.pot: Regenerate.
672 2004-03-18  Alan Modra  <amodra@bigpond.net.au>
674         * ld.texinfo: Add --as-needed doco.
675         * ldmain.c (as_needed): New global var.
676         * ldmain.h (as_needed): Declare.
677         * lexsup.c (option_values): Add OPTION_AS_NEEDED and
678         OPTION_NO_AS_NEEDED.
679         (ld_options): Likewise.
680         (parse_args): Handle them.
681         * ldlang.h (lang_input_statement_type): Add as_needed field.
682         * ldlang.c (new_afile): Set p->as_needed.
683         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
684         (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
685         (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
687         * ldlang.c (open_input_bfds): Remove useless cast.
688         (lang_do_assignments_1): Likewise.
689         (lang_for_each_input_section): Delete.
691 2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
693         * configure.tgt: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff*.
695 2004-03-08  Danny Smith  <dannysmith@users.sourceforge.net>
697         * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
698         private when building implib.
700 2004-03-05  Nathan Sidwell  <nathan@codesourcery.com>
702         * ldlang.c (lang_add_section): Don't force SEC_LOAD on
703         SEC_THREAD_LOCAL.
704         (IGNORE_SECTION): Ignore .tbss sections too.
705         (lang_size_sections_1): .tbss sections do not advance dot.
707 2004-03-01  Andreas Schwab  <schwab@suse.de>
709         * ld.texinfo (Options): Fix example for --wrap.
711 2004-02-25  Danny Smith  <dannysmith@users.sourceforge.net>
713         * pe-dll.c (fill_edata): Check that exported_symbol_sections is
714         not NULL.
716 2004-02-23  Ian Lance Taylor  <ian@wasabisystems.com>
718         * ldlang.c (lang_check): Use %P, not %E, in error message.
720 2004-02-23  Nathan Sidwell  <nathan@codesourcery.com>
722         * ldlang.h (struct lang_output_section_state): Change processed
723         field's type.
724         * ldexp.c (check, invalid): Remove.
725         (fold_name): Move valid_p assignments. Create undefined symbol
726         when needed. Directly exampine section's processd flag.
727         * ldlang.c (lang_output_section_statement_lookup): Adjust
728         processed field init.
729         (lang_size_sections_1): Allow LOADADDR when determining section's
730         VMA. Adjust error message. Fold data statement's expr.
731         (lang_size_sections): Correctly increment lang_statement_iteration.
733 2004-02-23  Alan Modra <amodra@bigpond.net.au>
735         * ldexp.c (fold_tree): Follow indirect symbols.
737 2004-02-20  Nathan Sidwell  <nathan@codesourcery.com>
739         * ldgram.y (exp): Add two operand ALIGN.
740         * ldexp.c (fold_binary): Add ALIGN_K case.
741         * ld.texinfo (ALIGN): Document two operand version.
743 2004-02-19  Nathan Sidwell  <nathan@codesourcery.com>
745         * ldlang.c (map_input_to_output_sections): Initialize sections
746         mentioned in a data statement expression.
747         (lang_do_assignments_1): Add data statement's expression's
748         section's vma.
750 2004-02-18  Nathan Sidwell  <nathan@codesourcery.com>
752         * ldgram.y (statement_anywhere): Add assert rule.
753         * ldlang.c (exp_init_os): Add assert case.
755 2004-02-14  Andrew Cagney  <cagney@redhat.com>
757         * ldmain.c (remove_output): Call bfd_cache_close.
759 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
761         * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
762         .MIPS.content* and .MIPS.events* sections.
764 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
766         * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
767         .note.gnu.arm.ident to after allocated sections.  Mark its
768         address as 0.
770 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
772         * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
773         * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
774         * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
775         * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
776         * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
778 2004-02-05  Nick Clifton  <nickc@redhat.com>
780         * emultempl/pe.em (_after_open): Fix typo in previous delta.
782 2004-02-04  Danny Smith  <dannysmith@users.sourceforge.net>
784         * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
786 2004-01-28  Alan Modra  <amodra@bigpond.net.au>
788         * genscripts.sh: Fix typo.
790         * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
792 2004-01-24  Jakub Jelinek  <jakub@redhat.com>
794         * emulparams/elf64_ia64.sh: Put .rela.opd into
795         OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
797 2004-01-20  Danny Smith  <dannysmith@users.sourceforge.net>
799         * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
800         * ld.texinfo (--omagic): Note that writable text section
801         does not conform to published PE-COFF specs.
802         (--enable-auto-import): Likewise.
804 2004-01-15  Alan Modra  <amodra@bigpond.net.au>
806         * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
808 2004-01-13  Nick Clifton  <nickc@redhat.com>
810         * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
811         which if true will prevent the LMA region being used as a
812         replacement for a default VMA region.
813         (lang_leave_output_section_statement): Pass extra parameter.
814         (lang_leave_overlay): Likewise.
815         * ld.texinfo (Output Section LMA): Document that the LMA
816         region can be set to the VMA region if no VMA has been set.
817         * ldlang.h (struct lang_output_section_phdr_list): Create a
818         typedef for this type.  Minor formatting fixes.
820 2004-01-13  Nick Clifton  <nickc@redhat.com>
822         * ldlang.c (lang_size_sections_1): If dot is advanced, then
823         assume that the section should be allocated.
825 2004-01-13  Alan Modra  <amodra@bigpond.net.au>
827         * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
828         sections.  Do ignore SEC_NEVER_LOAD sections.
829         (lang_size_sections_1): Remove test made redundant with the above.
831 2004-01-09  Alan Modra  <amodra@bigpond.net.au>
833         * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
834         program_header_size.
836 2004-01-06  Alexandre Oliva  <aoliva@redhat.com>
838         2003-11-28  Alexandre Oliva  <aoliva@redhat.com>
839         * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
840         2003-11-05  Alexandre Oliva  <aoliva@redhat.com>
841         * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
842         (MAXPAGESIZE): Set to 64Kb.
843         (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
844         __ROFIXUP_END__.  Don't map .rofixup.got any more.
845         * emulparams/elf32frv.sh (NOP): Set.
846         2003-10-31  Alexandre Oliva  <aoliva@redhat.com>
847         * configure.tgt: Add frv-*-*linux*.
848         2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
849         * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
850         (eelf32frvfd.c): New.
851         * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
852         * emulparams/elf32frv.sh: Reverted previous two patches.
853         * emulparams/elf32frvfd.sh: New.
854         * Makefile.in: Rebuilt.
855         2003-09-18  Alexandre Oliva  <aoliva@redhat.com>
856         * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
857         .rofixup.got to .rofixup.
858         2003-09-15  Alexandre Oliva  <aoliva@redhat.com>
859         * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
860         (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
862 2004-01-05  Jakub Jelinek  <jakub@redhat.com>
864         * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
865         * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
867 2004-01-03  Alan Modra  <amodra@bigpond.net.au>
869         * ldexp.c (align_n): Make static.
870         * ldexp.h (align_n): Delete declaration.
871         * ldlang.h (lang_enter_output_section_statement): Remove
872         block_value param.
873         * ldlang.c (lang_enter_output_section_statement): Likewise.
874         (TO_ADDR, TO_SIZE): Define.
875         (opb_shift): New var.
876         (init_opb): New function.
877         (print_input_section): Call init_opb and use TO_ADDR.
878         (print_data_statement, print_reloc_statement): Likewise.
879         (print_padding_statement): Likewise.
880         (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
881         (lang_check_section_addresses): Likewise.
882         (lang_size_sections_1): Likewise.
883         (lang_do_assignments_1): Likewise.
884         (lang_set_startof): Likewise.
885         (lang_one_common): Likewise.  Combine power_of_two and opb_shift align.
886         (lang_process): Call init_opb.
887         (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
888         (lang_enter_overlay_section): Adjust
889         lang_enter_output_section_statement call.
890         * ldgram.y: Likewise.
891         * mri.c (mri_draw_tree): Likewise.
892         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
893         * emultempl/mmo.em (mmo_place_orphan): Likewise.
894         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
896         * ldfile.c (ldfile_set_output_arch): Add defarch param.
897         * ldfile.h (ldfile_set_output_arch): Ditto.
898         * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
899         ldfile_set_output_arch.
900         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
901         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
902         * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
903         * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
904         * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
905         * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
906         * ldgram.y: Adjust ldfile_set_output_arch call.
907         * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
908         * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
909         * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
910         * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
911         * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
912         * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
913         * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
915 2004-01-02  Bernardo Innocenti  <bernie@develer.com>
917         * configure.tgt: Add m68k-uClinux target.
919 For older changes see ChangeLog-0203
921 Local Variables:
922 mode: change-log
923 left-margin: 8
924 fill-column: 74
925 version-control: never
926 End: