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