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