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