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