* emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
[binutils.git] / ld / ChangeLog
blob077809051552116d5fa69ca50dcdb1e7f7e410a9
1 2004-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3         * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
4         * emulparams/hppalinux.sh: Likewise.
5         * scripttempl/elf.sc: Place .plt just before .got when .plt is in
6         data segment and PLT_BEFORE_GOT is defined.
8 2004-07-03  Aaron W. LaFramboise  <aaron98wiridge9@aaronwl.com>
10         * ld.texinfo (WIN32): Document PE weak symbols.
12 2004-07-02  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
14         * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
16 2004-07-01  H.J. Lu  <hongjiu.lu@intel.com>
18         * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
19         the section.
21 2004-06-29  Alan Modra  <amodra@bigpond.net.au>
23         * ldlang.c (lang_reset_memory_regions): Save last relax pass section
24         size in rawsize.
26 2004-06-24  Alan Modra  <amodra@bigpond.net.au>
28         * ldlang.c (print_output_section_statement): Don't print size before
29         relaxation.
30         (IGNORE_SECTION): Remove bfd arg.  Update all callers.
32         * ldexp.c (fold_name): .. See below.
33         * ldlang.c (section_already_linked, print_output_section_statement,
34         print_input_section, insert_pad, size_input_section,
35         lang_check_section_addresses, lang_size_sections_1,
36         lang_size_sections, lang_do_assignments_1, lang_set_startof,
37         lang_one_common, lang_reset_memory_regions, lang_process,
38         lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
39         * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
40         * pe-dll.c (process_def_file, generate_reloc): ..
41         * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
42         gld${EMULATION_NAME}_before_allocation): ..
43         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
44         * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
45         sh64_elf_${EMULATION_NAME}_after_allocation): ..
46         * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
47         * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
48         ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
49         "size" instead of "_raw_size" and "_cooked_size".  Expand
50         bfd_section_size macro invocations.
52 2004-06-22  Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
54         * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
55         ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
56         ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
57         ___crt_xt_end__.
58         (.tls): Define ___tls_start__ and ___tls_end__.
60 2004-06-21  Alexandre Oliva  <aoliva@redhat.com>
62         * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
64 2004-06-18  Adam Nemet  <anemet@lnxw.com>
66         * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
67         * configure: Regenerate.
69 2004-06-15  Jakub Jelinek  <jakub@redhat.com>
71         * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
72         .gcc_except_table output sections lost accidentally with
73         -z relro patch.
75 2004-06-15  Alan Modra  <amodra@bigpond.net.au>
77         * ldwrite.c (build_link_order): Use bfd_get_section_size
78         instead of bfd_get_section_size_before_reloc or _raw_size.
79         * pe-dll.c (process_def_file): Likewise.
81 2004-06-14  Alan Modra  <amodra@bigpond.net.au>
83         From Richard Wirth <r.wirth@wirthware.de>
84         * ldlang.c (lang_finish): Don't free lang_definedness_table.
86 2004-05-29  Alan Modra  <amodra@bigpond.net.au>
88         * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
89         (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
91 2004-05-28  Andrew Stubbs <andrew.stubbs@superh.com>
93         * testsuite/ld-sh/arch/arch.exp: New test script.
94         * testsuite/ld-sh/arch/arch_expected.txt: New file.
95         * testsuite/ld-sh/arch/sh.s: New file.
96         * testsuite/ld-sh/arch/sh2.s: New file.
97         * testsuite/ld-sh/arch/sh-dsp.s: New file.
98         * testsuite/ld-sh/arch/sh2e.s: New file.
99         * testsuite/ld-sh/arch/sh3-nommu.s: New file.
100         * testsuite/ld-sh/arch/sh3.s: New file.
101         * testsuite/ld-sh/arch/sh3-dsp.s: New file.
102         * testsuite/ld-sh/arch/sh3e.s: New file.
103         * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
104         * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
105         * testsuite/ld-sh/arch/sh4.s: New file.
106         * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
107         * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
108         * testsuite/ld-sh/arch/sh4a.s: New file.
110 2004-05-28  Alan Modra  <amodra@bigpond.net.au>
112         * ldlang.c: Formatting.  Wrap long lines, expand bfd_get_section_flags
113         throughout file.
114         * lexsup.c: Formatting.  Wrap long lines.
115         * ldwrite.c: Update copyright date.
117         * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
118         (output_section_callback): Nor SEC_KEEP here.
119         (gc_section_callback): Twiddle SEC_EXCLUDE here.
120         (lang_gc_wild): Delete.  Fold into..
121         (lang_gc_sections_1): ..here.  Only call bfd_gc_sections when garbage
122         collecting.
123         (lang_process): Always call lang_gc_sections.
124         (lang_place_orphans): Handle SEC_EXCLUDE sections.
125         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
126         SEC_EXCLUDE code.
128 2004-05-26  H.J. Lu  <hongjiu.lu@intel.com>
130         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
131         SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
132         * ldlang.c (lang_add_section): Likewise.
134 2004-05-26  Alan Modra  <amodra@bigpond.net.au>
136         * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
137         sections when doing a final link.  Clear SEC_EXCLUDE when doing
138         a relocable link, except for SEC_DEBUGGING sections.
139         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
140         same condition here to drop SEC_EXCLUDE orphan sections.
142 2004-05-25  Alan Modra  <amodra@bigpond.net.au>
144         * ldlang.c (lang_process): Call bfd_merge_sections later, and
145         only when not a relocatable link.
146         (print_input_section): Handle SEC_EXCLUDE sections.
147         (size_input_section): Don't update dot on SEC_EXCLUDE sections.
148         (lang_do_assignments_1): Likewise.
149         * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
150         * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
151         * emultempl/hppaelf.em (build_section_lists): Likewise.
152         * emultempl/ppc64elf.em (build_toc_list): Likewise.
153         (build_section_lists): Likewise.
155 2004-05-23  Andreas Schwab  <schwab@suse.de>
157         * ld.texinfo (Options): Fix typo in last change.
159 2004-05-21  Andy Chittenden  <achittenden@bluearc.com>
161         * ld.h (ld_config_type): Add new field: hash_table_size.
162         * ldmain.c: Initialise the new field to zero.  If it is non-zero
163         after parsing the linker's command line call
164         bfd_hash_set_default_size.
165         * lexsup.c (option_values): Add OPTION_HASH_SIZE.
166         (ld_options): Add hash-size.
167         (parse_args): Parse --hash-size option.  Allow
168         --reduce-memory-overheads to set the default hash table size as
169         well.
170         * ld.texinfo: Document the new switch.  Also mention that
171         --reduce-memory-overheads can affect the hash table size.
172         * NEWS: Mention the new feature.
174 2004-05-19  J"orn Rennecke <joern.rennecke@superh.com>
176         * NEWS: Mention new linker map file generation and the
177         --reduce-memory-overheads option.
178         * ld.texinfo: Document --reduce-memory-overheads option.
179         * ld.h (map_symbol_def): New struct.
180         (struct user_section_struct, section_userdata_type): Rename to:
181         (struct lean_user_section_struct, lean_section_userdata_type).
182         (struct fat_user_section_struct, fat_section_userdata_type): New.
183         (SECTION_USERDATA_SIZE): Define.
184         (args_type): New member reduce_memory_overheads.
185         * ldlang.c (map_obstack): New static variable.
186         (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
187         (lang_map): Unless command_line.reduce_memory_overheads is set,
188         initialize lists of defined symbols for each section.
189         (print_input_section): Unless command_line.reduce_memory_overheads
190         is set, use print_all_symbols.
191         (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
192         * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
193         * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
194         (ld_options): Add entry for --reduce-memory-overheads.
195         (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
197 2004-05-19  Jakub Jelinek  <jakub@redhat.com>
199         * ldgram.y (sect_constraint): New.
200         (ONLY_IF_RO, ONLY_IF_RW): New tokens.
201         (section): Add sect_constraint.  Pass additional argument
202         to lang_enter_output_section_statement.
203         * mri.c (mri_draw_tree): Pass additional argument to
204         lang_enter_output_section_statement.
205         * emultempl/pe.em (place_orphan): Likewise.
206         (output_prev_sec_find): Disregard output section statements with
207         constraint == -1.
208         * emultempl/mmo.em (output_prev_sec_find): Likewise.
209         (mmo_place_orphan): Pass additional argument to
210         lang_enter_output_section_statement.
211         * emultempl/elf32.em (output_prev_sec_find): Disregard output section
212         statements with constraint == -1.
213         (place_orphan): Pass additional argument to
214         lang_enter_output_section_statement.
215         * ldlang.c (lang_enter_overlay_section): Likewise.
216         (lang_output_section_find_1): New.
217         (lang_output_section_find): Use it.
218         (lang_output_section_statement_lookup_1): New.
219         (lang_output_section_statement_lookup): Use it.
220         (check_section_callback, check_input_sections): New.
221         (map_input_to_output_sections): Check if all input sections
222         are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
223         (strip_excluded_output_sections): Disregard output section statements
224         with constraint == -1.
225         (lang_record_phdrs): Likewise.
226         (lang_enter_output_section_statement): Add constraint argument.
227         Use lang_output_section_statement_lookup_1.
228         * ldlang.h (lang_output_section_statement_type): Add constraint
229         and all_input_readonly fields.
230         (lang_enter_output_section_statement): Adjust prototype.
231         * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
232         * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
233         segment if all input sections are readonly.
235 2004-05-19  Adam Nemet  <anemet@lnxw.com>
237         * scripttempl/i386lynx.sc: Remove file.
239 2004-05-17  Bob Wilson  <bob.wilson@acm.org>
241         * ld.texinfo (Output Section Address): Correct subsection name.
243 2004-05-17  Adam Nemet  <anemet@lnxw.com>
245         * configure.tgt (powerpc-*-lynxos* case): New case.
246         * configure.host (i[3-7]86-*-lynxos* case): Remove case.
247         * emulparams/ppclynx.sh: New file.
248         * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
249         * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
250         (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
251         (eppclynx.c): New rule.
252         * Makefile.in: Regenerate.
254 2004-05-13  Joel Sherrill <joel@oarcorp.com>
256         * configure.tgt (or32-*-rtems*): Switch to elf and
257         support versioned targets.
259 2004-05-13  Nick Clifton  <nickc@redhat.com>
261         * po/fr.po: Updated French translation.
263 2004-05-11  Jakub Jelinek  <jakub@redhat.com>
265         * genscripts.sh: Generate -z combreloc -z now -z relro scripts
266         for binaries, -shared and -pie.
267         * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
268         * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
269         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
270         (OTHER_RELRO_SECTIONS): ... this.
271         * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
272         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
273         -z relro and -z norelro.
274         (gld${EMULATION_NAME}_list_options): Add it to usage.
275         (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
276         -z relro scripts when appropriate.
277         * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
278         Create separate .got.plt section if SEPARATE_GOTPLT.
279         Move sections which are only written during relocation handling
280         to the beginning of RW segment.  If NO_SMALL_DATA, move .got
281         before .data.  Add DATA_SEGMENT_RELRO_END directive.
282         Include OTHER_RELRO_SECTIONS.
283         * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
284         * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
285         (fold_unary): Likewise.
286         (fold_binary): Handle -z relro.
287         * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
288         exp_dataseg_relro_adjust phases.  Add relro_end field.
289         * ldmain.c (main): Initialize link_info.relro to FALSE.
290         * ldlang.c (lang_size_sections): Handle -z relro.
292 2004-05-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
294         * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
296 2004-05-07  J"orn Rennecke <joern.rennecke@superh.com>
298         * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
299         before printing it with %W.
301 2004-05-07  Brian Ford  <ford@vss.fsi.com>
302             DJ Delorie  <dj@redhat.com>
304         * emultempl/pe.em (real_flags): New static.
305         (OPTION_LARGE_ADDRESS_AWARE): New define.
306         (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
307         (gld_${EMULATION_NAME}_list_options): Likewise.
308         (gld${EMULATION_NAME}_handle_option): Likewise.
309         (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
310         * ld.texinfo: Document it.
311         * NEWS: Mention it.
313 2004-05-07  Brian Ford  <ford@vss.fsi.com>
315         * NEWS: Mention DWARF 2 support for i386pe.
317 2004-05-05  Alexandre Oliva  <aoliva@redhat.com>
319         * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
320         elf32-frvfdpic.
322 2004-04-30  Alan Modra  <amodra@bigpond.net.au>
324         * ldlang.c (unique_section_p): Pass section parm, return true on
325         group sections.
326         (output_section_callback): Adjust.
327         * ldlang.h (unique_section_p): Update prototype.
328         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
330 2004-04-30  Eric Botcazou  <ebotcazou@act-europe.fr>
332         * ld.texinfo (--gc-sections): Remove restriction for
333         dynamic linking.
335 2004-04-29  Brian Ford  <ford@vss.fsi.com>
337         * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
338         for DWARF 2/3.  Update stab section's syntax.
340 2004-04-29  Alan Modra  <amodra@bigpond.net.au>
342         * pe-dll.c: Revert changes accidentally committed 2004-03-08.
343         (fill_edata): Correct pointer arithmetic.
345 2004-04-21  Chris Demetriou  <cgd@broadcom.com>
347         * ld.texinfo: Remove MIPS --embedded-relocs documentation.
348         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
349         * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
350         (EXTRA_EM_FILE): Use mipsecoff.em
351         * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
352         (EXTRA_EM_FILE): Use mipsecoff.em
353         * emultempl/mipsecoff.em: Restructure to be included as an
354         extra emulation file.
355         (check_sections, gld${EMULATION_NAME}_after_open)
356         (gld${EMULATION_NAME}_after_allocation)
357         (gld${EMULATION_NAME}_get_script)
358         (ld_${EMULATION_NAME}_emulation): Remove
359         (gld${EMULATION_NAME}_before_parse): Rename to...
360         (mipsecoff_before_parse): This.
361         (LDEMUL_BEFORE_PARSE): Define.
362         * emultempl/mipself.em: Remove file.
363         * scripttempl/mips.sc (.rel.sdata): Do not include in output.
364         (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
365         these symbols.
366         * Makefile.am: Remove dependencies on emultempl/mipself.em.
367         * Makefile.in: Regenerate.
369 2004-04-21      Anil Paranjpe   <anilp1@kpitcummins.com>
371         * ld.texinfo (synthesizing on H8/300): Information about linker
372         relaxation support for bit manipulation instructions and system
373         control instructions is added.
375 2004-04-21  Hans-Peter Nilsson  <hp@axis.com>
377         * NEWS: Mention change in DEFINED semantics.
379 2004-04-21  Eric Botcazou  <ebotcazou@act-europe.fr>
381         * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
382         (.data): Add KEEP for .gnu.linkonce.d.*personality*.
383         (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
385 2004-04-21  Ben Elliston  <bje@au.ibm.com>
387         * ld.texinfo (Simple Example): Add missing punctuation.
389 2004-04-20  Chris Demetriou  <cgd@broadcom.com>
391         * NEWS: Note that MIPS --embedded-relocs option is deprecated.
393 2004-04-19  Jakub Jelinek  <jakub@redhat.com>
395         * ldlang.c (lang_do_assignments_1): Handle .tbss output section
396         specially.
398 2004-04-18  Danny Smith  <dannysmith@users.sourceforge.net>
400         * scriptempl/pe.sc:  Put numbered .ctors.* after .ctors
401         with default priority. Likewise for dtors.
403 2004-04-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
405         * configure.host: Remove mips*-dec-bsd* target.
406         * configure.tgt: Likewise.
408 2004-04-08  Richard Sandiford  <rsandifo@redhat.com>
410         * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
411         * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
412         * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
413         * emultempl/irix.em: New file.
414         * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
415         dependencies.
416         * Makefile.in: Regenerate.
418 2004-04-01  Paul Brook  <paul@codesourcery.com>
420         * emultempl/armelf.em (byteswap_code): Add.
421         (arm_elf_before_allocation): Pass extra parameter.
422         (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
423         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
424         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
425         * emultempl/armelf_oabi.em: Pass extra parameter.
426         * ld.texinfo: Document --be8.
428 2004-03-30  Stan Shebs  <shebs@apple.com>
430         Remove long-obsolete MPW support.
431         * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
432         * Makefile.am (mpw): Remove file-presynthesizing actions.
433         * Makefile.in: Likewise.
434         * ldfile.c (slash): Remove MPW case.
435         * ldlex.l [MPW]: Remove unused definition.
437 2004-03-30  Galit Heller  <Galit.Heller@nsc.com>
439         * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
440         (eelf32cr16c.c): New target.
441         * Makefile.in: Regenerate.
442         * configure.tgt: Handle cr16c-*-elf*.
443         * emulparams/elf32cr16c.sh: New file.
444         * scripttempl/elfcr16c.sc: Likewise
445         * NEWS: Mention support for new target.
447 2004-03-30  Nick Clifton  <nickc@redhat.com>
449         * po/sv.po: Updated Swedish translation.
451 2004-03-27  Alan Modra  <amodra@bigpond.net.au>
453         * emultempl/elf32.em: Update new bfd_elf_discard_info name.
454         * emultempl/hppaelf.em: Likewise.
455         * emultempl/ppc64elf.em: Likewise.
456         * emultempl/sh64elf.em: Likewise.
458 2004-03-25  Alan Modra  <amodra@bigpond.net.au>
460         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
461         size_dynamic_sections call.
463 2004-03-23  Alan Modra  <amodra@bigpond.net.au>
465         PR 51.
466         * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
467         link_info.wrap_char.
469 2004-03-20  H.J. Lu  <hongjiu.lu@intel.com>
471         * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
472         or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
474 2004-03-20  Alexandre Oliva  <aoliva@redhat.com>
476         * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
478 2004-03-19  Alan Modra  <amodra@bigpond.net.au>
480         * config.in: Regenerate.
481         * po/ld.pot: Regenerate.
483 2004-03-18  Alan Modra  <amodra@bigpond.net.au>
485         * ld.texinfo: Add --as-needed doco.
486         * ldmain.c (as_needed): New global var.
487         * ldmain.h (as_needed): Declare.
488         * lexsup.c (option_values): Add OPTION_AS_NEEDED and
489         OPTION_NO_AS_NEEDED.
490         (ld_options): Likewise.
491         (parse_args): Handle them.
492         * ldlang.h (lang_input_statement_type): Add as_needed field.
493         * ldlang.c (new_afile): Set p->as_needed.
494         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
495         (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
496         (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
498         * ldlang.c (open_input_bfds): Remove useless cast.
499         (lang_do_assignments_1): Likewise.
500         (lang_for_each_input_section): Delete.
502 2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
504         * configure.tgt: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff*.
506 2004-03-08  Danny Smith  <dannysmith@users.sourceforge.net>
508         * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
509         private when building implib.
511 2004-03-05  Nathan Sidwell  <nathan@codesourcery.com>
513         * ldlang.c (lang_add_section): Don't force SEC_LOAD on
514         SEC_THREAD_LOCAL.
515         (IGNORE_SECTION): Ignore .tbss sections too.
516         (lang_size_sections_1): .tbss sections do not advance dot.
518 2004-03-01  Andreas Schwab  <schwab@suse.de>
520         * ld.texinfo (Options): Fix example for --wrap.
522 2004-02-25  Danny Smith  <dannysmith@users.sourceforge.net>
524         * pe-dll.c (fill_edata): Check that exported_symbol_sections is
525         not NULL.
527 2004-02-23  Ian Lance Taylor  <ian@wasabisystems.com>
529         * ldlang.c (lang_check): Use %P, not %E, in error message.
531 2004-02-23  Nathan Sidwell  <nathan@codesourcery.com>
533         * ldlang.h (struct lang_output_section_state): Change processed
534         field's type.
535         * ldexp.c (check, invalid): Remove.
536         (fold_name): Move valid_p assignments. Create undefined symbol
537         when needed. Directly exampine section's processd flag.
538         * ldlang.c (lang_output_section_statement_lookup): Adjust
539         processed field init.
540         (lang_size_sections_1): Allow LOADADDR when determining section's
541         VMA. Adjust error message. Fold data statement's expr.
542         (lang_size_sections): Correctly increment lang_statement_iteration.
544 2004-02-23  Alan Modra <amodra@bigpond.net.au>
546         * ldexp.c (fold_tree): Follow indirect symbols.
548 2004-02-20  Nathan Sidwell  <nathan@codesourcery.com>
550         * ldgram.y (exp): Add two operand ALIGN.
551         * ldexp.c (fold_binary): Add ALIGN_K case.
552         * ld.texinfo (ALIGN): Document two operand version.
554 2004-02-19  Nathan Sidwell  <nathan@codesourcery.com>
556         * ldlang.c (map_input_to_output_sections): Initialize sections
557         mentioned in a data statement expression.
558         (lang_do_assignments_1): Add data statement's expression's
559         section's vma.
561 2004-02-18  Nathan Sidwell  <nathan@codesourcery.com>
563         * ldgram.y (statement_anywhere): Add assert rule.
564         * ldlang.c (exp_init_os): Add assert case.
566 2004-02-14  Andrew Cagney  <cagney@redhat.com>
568         * ldmain.c (remove_output): Call bfd_cache_close.
570 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
572         * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
573         .MIPS.content* and .MIPS.events* sections.
575 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
577         * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
578         .note.gnu.arm.ident to after allocated sections.  Mark its
579         address as 0.
581 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
583         * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
584         * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
585         * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
586         * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
587         * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
589 2004-02-05  Nick Clifton  <nickc@redhat.com>
591         * emultempl/pe.em (_after_open): Fix typo in previous delta.
593 2004-02-04  Danny Smith  <dannysmith@users.sourceforge.net>
595         * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
597 2004-01-28  Alan Modra  <amodra@bigpond.net.au>
599         * genscripts.sh: Fix typo.
601         * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
603 2004-01-24  Jakub Jelinek  <jakub@redhat.com>
605         * emulparams/elf64_ia64.sh: Put .rela.opd into
606         OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
608 2004-01-20  Danny Smith  <dannysmith@users.sourceforge.net>
610         * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
611         * ld.texinfo (--omagic): Note that writable text section
612         does not conform to published PE-COFF specs.
613         (--enable-auto-import): Likewise.
615 2004-01-15  Alan Modra  <amodra@bigpond.net.au>
617         * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
619 2004-01-13  Nick Clifton  <nickc@redhat.com>
621         * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
622         which if true will prevent the LMA region being used as a
623         replacement for a default VMA region.
624         (lang_leave_output_section_statement): Pass extra parameter.
625         (lang_leave_overlay): Likewise.
626         * ld.texinfo (Output Section LMA): Document that the LMA
627         region can be set to the VMA region if no VMA has been set.
628         * ldlang.h (struct lang_output_section_phdr_list): Create a
629         typedef for this type.  Minor formatting fixes.
631 2004-01-13  Nick Clifton  <nickc@redhat.com>
633         * ldlang.c (lang_size_sections_1): If dot is advanced, then
634         assume that the section should be allocated.
636 2004-01-13  Alan Modra  <amodra@bigpond.net.au>
638         * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
639         sections.  Do ignore SEC_NEVER_LOAD sections.
640         (lang_size_sections_1): Remove test made redundant with the above.
642 2004-01-09  Alan Modra  <amodra@bigpond.net.au>
644         * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
645         program_header_size.
647 2004-01-06  Alexandre Oliva  <aoliva@redhat.com>
649         2003-11-28  Alexandre Oliva  <aoliva@redhat.com>
650         * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
651         2003-11-05  Alexandre Oliva  <aoliva@redhat.com>
652         * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
653         (MAXPAGESIZE): Set to 64Kb.
654         (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
655         __ROFIXUP_END__.  Don't map .rofixup.got any more.
656         * emulparams/elf32frv.sh (NOP): Set.
657         2003-10-31  Alexandre Oliva  <aoliva@redhat.com>
658         * configure.tgt: Add frv-*-*linux*.
659         2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
660         * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
661         (eelf32frvfd.c): New.
662         * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
663         * emulparams/elf32frv.sh: Reverted previous two patches.
664         * emulparams/elf32frvfd.sh: New.
665         * Makefile.in: Rebuilt.
666         2003-09-18  Alexandre Oliva  <aoliva@redhat.com>
667         * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
668         .rofixup.got to .rofixup.
669         2003-09-15  Alexandre Oliva  <aoliva@redhat.com>
670         * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
671         (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
673 2004-01-05  Jakub Jelinek  <jakub@redhat.com>
675         * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
676         * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
678 2004-01-03  Alan Modra  <amodra@bigpond.net.au>
680         * ldexp.c (align_n): Make static.
681         * ldexp.h (align_n): Delete declaration.
682         * ldlang.h (lang_enter_output_section_statement): Remove
683         block_value param.
684         * ldlang.c (lang_enter_output_section_statement): Likewise.
685         (TO_ADDR, TO_SIZE): Define.
686         (opb_shift): New var.
687         (init_opb): New function.
688         (print_input_section): Call init_opb and use TO_ADDR.
689         (print_data_statement, print_reloc_statement): Likewise.
690         (print_padding_statement): Likewise.
691         (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
692         (lang_check_section_addresses): Likewise.
693         (lang_size_sections_1): Likewise.
694         (lang_do_assignments_1): Likewise.
695         (lang_set_startof): Likewise.
696         (lang_one_common): Likewise.  Combine power_of_two and opb_shift align.
697         (lang_process): Call init_opb.
698         (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
699         (lang_enter_overlay_section): Adjust
700         lang_enter_output_section_statement call.
701         * ldgram.y: Likewise.
702         * mri.c (mri_draw_tree): Likewise.
703         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
704         * emultempl/mmo.em (mmo_place_orphan): Likewise.
705         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
707         * ldfile.c (ldfile_set_output_arch): Add defarch param.
708         * ldfile.h (ldfile_set_output_arch): Ditto.
709         * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
710         ldfile_set_output_arch.
711         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
712         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
713         * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
714         * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
715         * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
716         * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
717         * ldgram.y: Adjust ldfile_set_output_arch call.
718         * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
719         * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
720         * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
721         * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
722         * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
723         * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
724         * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
726 2004-01-02  Bernardo Innocenti  <bernie@develer.com>
728         * configure.tgt: Add m68k-uClinux target.
730 For older changes see ChangeLog-0203
732 Local Variables:
733 mode: change-log
734 left-margin: 8
735 fill-column: 74
736 version-control: never
737 End: