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