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