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