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