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