OSDN Git Service

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