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