ld/
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
afd7a018
AM
12004-10-14 Alan Modra <amodra@bigpond.net.au>
2
3 PR 63
4 * ldlang.h (lang_output_section_statement_type): Make "next" a
5 struct lang_output_section_statement_struct *.
6 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
7 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
8 * ldlang.c (lang_output_section_find_1): Adjust for changed
9 output_section_statement "next".
10 (strip_excluded_output_sections): Likewise.
11 (lang_record_phdrs): Likewise.
12 (lang_output_section_find_by_flags): New function.
13 (output_prev_sec_find): Move from pe.em. Adjust iterator.
14 (lang_insert_orphan): New function. Tail end of elf32.em's
15 place_orphan merged with that from pe.em. Allow bfd_section to
16 be placed first. New heuristic for placing new output section
17 statement in existing script, and accompanying split of __start
18 symbol alignment into a separate assignment to dot.
19 (lang_add_section): Consistently use output->bfd_section rather than
20 an alias, section->output_section.
21 (map_input_to_output_sections): Rename overly long arg. Move
22 initialization of data_statement output section to here..
23 (lang_check_section_addresses): ..from here.
24 (print_assignment): Correct printing of etree_assert.
25 (print_all_symbols): Don't bomb if userdata is NULL.
26 (IGNORE_SECTION): Rearrange.
27 * emultempl/elf32.em (output_rel_find): Adjust interator.
28 (output_prev_sec_find): Delete.
29 (struct orphan_save): Delete.
30 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
31 flags without creating a duplicate output section statement.
32 Revise code holding history of various orphan section placements.
33 Allow orphan sections to place before script specified output
34 sections. Call lang_output_section_find_by_flags when placement
35 by name fails. Use lang_insert_orphan.
36 * emultempl/mmo.em (output_prev_sec_find): Delete.
37 (struct orphan_save): Delete.
38 (mmo_place_orphan): Revise code holding history of orphan placement.
39 Allow orphans to place before existing output sections. Use
40 lang_insert_orphan.
41 * emultempl/pe.em (output_prev_sec_find): Delete.
42 (struct orphan_save): Delete.
43 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
44 lang_insert_orphan.
45
c0042f5d
MM
462004-10-13 Mark Mitchell <mark@codesourcery.com>
47
48 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
49 loadable segment.
50
1af699f4
AM
512004-10-13 Alan Modra <amodra@bigpond.net.au>
52
53 PR 44
09c112da
AM
54 * ldcref.c (check_section_sym_xref): Delete.
55 (check_local_sym_xref): New function.
56 (check_nocrossrefs): Adjust call.
1af699f4
AM
57 * emultempl/pe.em (struct orphan_save): Add os_tail.
58 (place_orphan): Backport assorted fixes from elf32.em.
59
7fa3d080
BW
602004-10-12 Bob Wilson <bob.wilson@acm.org>
61
62 * emultempl/xtensaelf.em: Use ISO C90 formatting.
63
d3989512
JJ
642004-10-11 Jakub Jelinek <jakub@redhat.com>
65
563f4125
JJ
66 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
67 getline for portability.
68
d3989512
JJ
69 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
70 (gld${EMULATION_NAME}_parse_ld_so_conf,
71 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
72 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
73
6c0c5b1e
AM
742004-10-11 Alan Modra <amodra@bigpond.net.au>
75
76 PR 423
77 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
78 rejected when linking statically.
79
d2b2c203
DJ
802004-10-08 Daniel Jacobowitz <dan@debian.org>
81
82 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
83
43cd72b9
BW
842004-10-07 Bob Wilson <bob.wilson@acm.org>
85
86 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
87 assembler-generated longcall sequences. Describe new --size-opt
88 option.
89 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
90 * emultempl/xtensaelf.em (remove_section,
91 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
92 elf_xtensa_after_open): New.
93 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
94 OPTION_NO_LITERAL_MOVEMENT): Define.
95 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
96 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
97 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
98 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
99 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
100 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
101 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
102 * Makefile.am (eelf32xtensa.c): Update dependencies.
103 * Makefile.in: Regenerate.
104
8fdd7217 1052004-10-07 Jeff Baker <jbaker@qnx.com>
6c0c5b1e 106
8fdd7217
NC
107 * lexsup.c: Handle --warn-shared-textrel option.
108 (ld_options): Restore alpha sorting of options.
109 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
110 * ld.texinfo: Add documentation for --warn-shared-textrel.
111 * NEWS: Added mention of --warn-shared-textrel option.
112
339207f8 1132004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
6c0c5b1e 114
339207f8 115 * emultempl/crxelf.em (disable_relaxation): Add.
6c0c5b1e 116 (crxelf_before_allocation): Enable --relax option by default.
339207f8
TL
117 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
118 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
119 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
120
bcaa7b3e
L
1212004-10-04 H.J. Lu <hongjiu.lu@intel.com>
122
123 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
124 --sort-section name|alignment.
125
126 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
127 --sort-section name|alignment.
128
129 * ld.h (sort_type): New enum.
130 (wildcard_spec): Change the type of `sorted' to sort_type.
131
132 * ldgram.y (SORT): Removed.
133 (SORT_BY_NAME): Added.
134 (SORT_BY_ALIGNMENT): Added.
135 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
136 SORT_BY_ALIGNMENT.
137 (input_section_spec_no_keep): Updated `sorted'.
138 (statement): Replace SORT with SORT_BY_NAME.
139
140 * ldlang.c (compare_section): New function to compare 2
141 sections with different sorting schemes.
142 (wild_sort): Updated. Use compare_section.
143 (update_wild_statements): New function.
144 (lang_process): Call update_wild_statements before
145 map_input_to_output_sections.
146
147 * ldlex.l (SORT_BY_NAME): New.
148 (SORT_BY_ALIGNMENT): New.
149 (SORT): Return SORT_BY_NAME.
150
151 * ldmain.c (sort_section): New. Defined.
152 (main): Initialize it to none.
153
154 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
155 (ld_options): Add an entry for OPTION_SORT_SECTION.
156 (parse_args): Handle OPTION_SORT_SECTION.
157
158 * mri.c (mri_draw_tree): Updated `sorted'.
159
a4f5ad88
JJ
1602004-10-04 Jakub Jelinek <jakub@redhat.com>
161
162 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
163 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
164 argument.
165 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
166 and . as second argument.
167 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
168 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
169 (fold_binary): Add it here. Insert padding to make relro_end
170 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
171 exp_dataseg_relro_adjust phase just use previously computed
172 exp_data_seg.base.
173 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
174 relro_adjust here. Call lang_size_sections_1 once more if there
175 was too big padding at DATA_SEGMENT_RELRO_END.
176 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
177
40a18ebd
NC
1782004-10-01 Paul Brook <paul@codesourcery.com>
179
180 * emulparams/armelf.sh: Add unwinding table sections.
181
db8acf26
NC
1822004-09-30 Filip Navara <navaraf@reactos.com>
183
184 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
185 correct base address for position independant executables.
186 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
187 executables as DLLs.
188
eeac373a
PB
1892004-09-30 Paul Brook <paul@codesourcery.com>
190
191 * ld.texinfo: Document --target2=abs.
192 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
193
1ee7cf4c
NC
1942004-09-29 Nick Clifton <nickc@redhat.com>
195
196 * scripttempl/xstormy16.sc: Only perform the assignments to the
197 ROM region when not performing a relocatable link. The ROM region
198 does not start at address 0, but the sections will.
199 * Makefile.am: Fix linker script dependency for the generation of
200 eelf32xstormy16.c.
201 * Makefile.in: Regenerate.
202
03098a9a
CF
2032004-09-18 Filip Navara <navaraf@reactos.com>
204
205 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
206 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
207 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
208 TARGET_PAGE_SIZE.
209 * scripttempl/pe.sc: Make the virtual address and file offset synced if
210 the alignment is lower than the target page size.
211
f2d3750d
CF
2122004-09-27 Filip Navara <navaraf@reactos.com>
213
214 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
215 def_file_parse to handle pe_def_file if NULL and prevent crash with
216 invalid .def files.
217
a23d8409
AM
2182004-09-27 Alan Modra <amodra@bigpond.net.au>
219
220 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
221 --emit-stub-syms automatically when --emit-relocs.
222
7b89fa29
PB
2232004-09-24 Paul Brook <paul@codeosurcery.com>
224
225 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
226 .fini_array sections.
227
e2a68bcc
AS
2282004-09-19 Andreas Schwab <schwab@suse.de>
229
230 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
231 base so that relro end is suitably aligned.
232
3674e28a
PB
2332004-09-17 Paul Brook <paul@codesourcery.com>
234
235 * ld.texinfo: Rename arm-specific section. Document --target*
236 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
237 * emulparams/armelf_linux.sh: Ditto.
238 * emulparams/armelf_nbsd.sh: Ditto.
239 * emultempl/armelf.em: Set default for TARGET2_TYPE.
240 (target2_type): New variable.
241 (arm_elf_before_allocation): Don't pass target1_type.
242 (arm_elf_create_output_section_statements): New function.
243 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
244 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
245 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
246 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
247 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
248 argument to bfd_elf32_arm_process_before_allocation.
249
f6e332e6
AM
2502004-09-17 Alan Modra <amodra@bigpond.net.au>
251
252 * ldexp.c (fold_name): Update u.undef.next refs.
253 * emultempl/pe.em: Likewise.
254 * emultempl/sunos.em: Likewise.
255
9c933e04
AM
2562004-09-17 Alan Modra <amodra@bigpond.net.au>
257
258 * Makefile.am: Run "make dep-am".
259 * Makefile.in: Regenerate.
260 * config.in: Regenerate.
261 * configure: Regenerate.
262 * aclocal.m4: Regenerate.
263 * po/ld.pot: Regenerate.
264
1fa32646
TL
2652004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
266
9c933e04
AM
267 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
268 (.fini): Likewise.
269 (.jcr): Likewise.
1fa32646 270
b6ee372a
AM
2712004-09-16 Alan Modra <amodra@bigpond.net.au>
272
273 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
274 to bfd_elf32_arm_process_before_allocation call.
275
9c504268
PB
2762004-09-13 Paul Brook <paul@codesourcery.com>
277
278 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
279 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
280
d15b04bd
L
2812004-09-07 H.J. Lu <hongjiu.lu@intel.com>
282
283 * configure: Regenerated with autconfig 2.13.
284
875c4330
AS
2852004-09-07 Andreas Schwab <schwab@suse.de>
286
287 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
288 alignment before adjusting DATA_SEGMENT_RELRO_END.
289
229fcec5
MM
2902004-09-06 Mark Mitchell <mark@codesourcery.com>
291
292 * emulparams/armsymbian.sh: Use armbpabi script.
293 * scripttempl/armbpabi.sc: New script.
294
e5a52504
MM
2952004-09-02 Mark Mitchell <mark@codesourcery.com>
296
297 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
298 (earmsymbian.c): New target.
299 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
300 * Makefile.in: Regenerated.
301 * aclocal.m4: Likewise.
302 * configure: Likewise.
303 * emulparams/armsymbian.sh: New file.
304
42851540
NC
3052004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
306
307 * scripttempl/elf32crx.sc: Edit file with comments.
308 (.init): Add new section.
309 (.fini): Likewise.
310 (.ctor): Control the linkage order.
311 (.dtor): Likewise.
312
c034e3e0
NC
3132004-08-27 Nick Clifton <nickc@redhat.com>
314
315 * emultempl/pe.em (after_open): Do not assume that either bfd is
9c933e04 316 an archive.
c034e3e0 317
688c58f3
AM
3182004-08-26 Alan Modra <amodra@bigpond.net.au>
319
320 * ldlang.c (lang_init): Don't compare with TRUE.
321
b18c562e
NC
3222004-08-25 Dmitry Diky <diwil@spec.ru>
323
324 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
325 * scripttempl/elf32msp430.sc: Add .profiler section definition.
326
61f5d054
L
3272004-08-24 H.J. Lu <hongjiu.lu@intel.com>
328
329 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
330
e77d3d77
MM
3312004-08-19 Mark Mitchell <mark@codesourcery.com>
332
333 * configure.tgt (arm*-*-symbianelf*): New target.
334 (arm*-*-eabi*): Likewise.
335
3f764659
JJ
3362004-08-19 Jakub Jelinek <jakub@redhat.com>
337
338 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
339 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
340 (OPTION_NON_OVERLAPPING_OPD): Define.
341 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
342 --non-overlapping-opd option.
343
a010d60f
AM
3442004-08-18 Alan Modra <amodra@bigpond.net.au>
345
346 PR 338
347 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
348 was already on the undefs list.
349
c4e33880
AM
3502004-08-17 Alan Modra <amodra@bigpond.net.au>
351
352 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
353 prefix the symbol field too.
354
d003868e
AM
3552004-08-13 Alan Modra <amodra@bigpond.net.au>
356
357 * ldmain.c (link_callbacks): Remove "error_handler".
358 * ldmisc.c: Include elf-bfd.h.
359 (vfinfo): Sort comment. Handle %A. Use %A instead of
360 bfd_get_section_indent.
361 (error_handler): Delete.
362 * ldmisc.h (error_handler): Delete declaration.
363
99877b66
AM
3642004-08-10 Alan Modra <amodra@bigpond.net.au>
365
366 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
367 ppc64_elf_restore_symbols.
368
40e45c8b
AM
3692004-08-09 Alan Modra <amodra@bigpond.net.au>
370
371 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
372 .toc is too large on relocatable linking.
373
ccfa59ea
AM
3742004-08-09 Alan Modra <amodra@bigpond.net.au>
375
376 * emultempl/ppc64elf.em (ppc_after_open): Delete.
377 (LDEMUL_AFTER_OPEN): Don't define.
378
93fd0973
SC
3792004-08-02 Stephane Carrez <stcarrez@nerim.fr>
380
381 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
382
f1b123db
SC
3832004-08-01 Stephane Carrez <stcarrez@nerim.fr>
384
385 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
386 on power of 2.
387
e7fbc2bf
JT
3882004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
389
390 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
391
c05e9f04
NC
3922004-07-26 Dmitry Diky <diwil@spec.ru>
393
394 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
395 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
396 msp430xG439.
397 * configure.tgt: Likewise.
398 * emulparams/msp430all.sh: Likewise.
399 * Makefile.in: Regenerate.
400
9f61903d
NC
4012004-07-23 Nick Clifton <nickc@redhat.com>
402
403 * emultempl/elf32.em (_place_orphan): Use an already existing
404 section name if that section does not have any flags set.
405
082b7297
L
4062004-07-21 H.J. Lu <hongjiu.lu@intel.com>
407
408 * ldlang.c (already_linked_hash_entry): Removed.
409 (already_linked): Likewise.
410 (already_linked_table): Likewise.
411 (section_already_linked): Call bfd_section_already_linked.
412 (lang_process): Replace already_linked_table_init with
413 bfd_section_already_linked_table_init and check return. Replace
414 already_linked_table_free with bfd_section_already_linked_table_free.
415
76d7af2d
NC
4162004-07-21 Nick Clifton <nickc@redhat.com>
417
418 * ldlang.c (init_os): Make sure that the newly allocated userdata
419 structure is zeroed out.
420
14b3c463
L
4212004-07-19 H.J. Lu <hongjiu.lu@intel.com>
422
423 * NEWS: Mention the new --add-needed/--no-add-needed and
424 --as-needed/--no-as-needed options.
425
e56f61be
L
4262004-07-19 H.J. Lu <hongjiu.lu@intel.com>
427
428 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
429 check the add_needed field.
430 (dt_needed): New struct.
431 (gld${EMULATION_NAME}_try_needed): Change the first argument
432 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
433 bit in the file where the DT_NEEDED entry comes from.
434 (gld${EMULATION_NAME}_search_needed): Change the second
435 argument to a pointer to struct dt_needed.
436 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
437 (gld${EMULATION_NAME}_after_open): Likewise.
438
439 * ld.texinfo: Add --add-needed document.
440 * ldlang.c (new_afile): Set p->add_needed.
441 * ldlang.h (lang_input_statement_type): Add add_needed field.
442 * ldmain.h (add_needed): Declare.
443 * ldmain.c (add_needed): New global var.
444 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
445 OPTION_NO_ADD_NEEDED.
446 (ld_options): Likewise.
447 (parse_args): Handle them.
448
c99b8138
NC
4492004-07-13 Christof Petig <christof@petig-baender.de>
450
451 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
452 for endian-ness of extracted addend.
453
13ed4151
NC
4542004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
455
456 * pe-dll.c (auto_export): Filter on just the import prefix,
457 "_imp_", not "_imp__".
458
1a320fbb
NC
4592004-07-09 Nick Clifton <nickc@redhat.com>
460
461 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
462
1fe1f39c
NC
4632004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
464
465 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
466 (eelf32crx.c): New target.
467 * Makefile.in: Regenerate.
468 * configure.tgt: Handle crx-*-elf*.
469 * emulparams/elf32crx.sh: New file.
470 * emultempl/crxelf.em: New file.
471 * scripttempl/elf32crx.sc: New file.
472 * NEWS: Mention new target.
473
85fbca6a
NC
4742004-07-06 Nick Clifton <nickc@redhat.com>
475
476 * Makefile.am: Add eshlsymbian.c.
477 * Makefile.in: Regenerate.
478 * configure.tgt: Add sh*-symbian-elf target.
479 * emulparams/shlsymbian.sh: New file. Configure the
480 sh-symbian-elf linker scripts.
481 * scripttemp/elf32sh-symbian.sc: New file. Linker script
482 template for the sh-symbian-elf target.
483
b71a5181
DA
4842004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
485
486 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
487 * emulparams/hppalinux.sh: Likewise.
488 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
489 data segment and PLT_BEFORE_GOT is defined.
490
c87db184
CF
4912004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
492
493 * ld.texinfo (WIN32): Document PE weak symbols.
494
f6a8ae81
KK
4952004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
496
497 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
498
b602c853
L
4992004-07-01 H.J. Lu <hongjiu.lu@intel.com>
500
501 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
502 the section.
503
1a23a9e6
AM
5042004-06-29 Alan Modra <amodra@bigpond.net.au>
505
506 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
507 size in rawsize.
508
eea6121a
AM
5092004-06-24 Alan Modra <amodra@bigpond.net.au>
510
511 * ldlang.c (print_output_section_statement): Don't print size before
512 relaxation.
513 (IGNORE_SECTION): Remove bfd arg. Update all callers.
514
515 * ldexp.c (fold_name): .. See below.
516 * ldlang.c (section_already_linked, print_output_section_statement,
517 print_input_section, insert_pad, size_input_section,
518 lang_check_section_addresses, lang_size_sections_1,
519 lang_size_sections, lang_do_assignments_1, lang_set_startof,
520 lang_one_common, lang_reset_memory_regions, lang_process,
521 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
522 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
523 * pe-dll.c (process_def_file, generate_reloc): ..
524 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
525 gld${EMULATION_NAME}_before_allocation): ..
526 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
527 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
528 sh64_elf_${EMULATION_NAME}_after_allocation): ..
529 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
530 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
531 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
532 "size" instead of "_raw_size" and "_cooked_size". Expand
533 bfd_section_size macro invocations.
534
552f8272
CF
5352004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
536
537 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
538 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
539 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
540 ___crt_xt_end__.
541 (.tls): Define ___tls_start__ and ___tls_end__.
542
aee6f5b4
AO
5432004-06-21 Alexandre Oliva <aoliva@redhat.com>
544
545 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
546
eea6121a 5472004-06-18 Adam Nemet <anemet@lnxw.com>
f234d5fe 548
eea6121a
AM
549 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
550 * configure: Regenerate.
f234d5fe 551
dfff4fbe
JJ
5522004-06-15 Jakub Jelinek <jakub@redhat.com>
553
554 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
555 .gcc_except_table output sections lost accidentally with
556 -z relro patch.
557
a9e0c0c6
AM
5582004-06-15 Alan Modra <amodra@bigpond.net.au>
559
560 * ldwrite.c (build_link_order): Use bfd_get_section_size
561 instead of bfd_get_section_size_before_reloc or _raw_size.
562 * pe-dll.c (process_def_file): Likewise.
563
7115639b
AM
5642004-06-14 Alan Modra <amodra@bigpond.net.au>
565
566 From Richard Wirth <r.wirth@wirthware.de>
567 * ldlang.c (lang_finish): Don't free lang_definedness_table.
568
9ca57817
AM
5692004-05-29 Alan Modra <amodra@bigpond.net.au>
570
571 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
572 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
573
f6f9408f
JR
5742004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
575
576 * testsuite/ld-sh/arch/arch.exp: New test script.
577 * testsuite/ld-sh/arch/arch_expected.txt: New file.
578 * testsuite/ld-sh/arch/sh.s: New file.
579 * testsuite/ld-sh/arch/sh2.s: New file.
580 * testsuite/ld-sh/arch/sh-dsp.s: New file.
581 * testsuite/ld-sh/arch/sh2e.s: New file.
582 * testsuite/ld-sh/arch/sh3-nommu.s: New file.
583 * testsuite/ld-sh/arch/sh3.s: New file.
584 * testsuite/ld-sh/arch/sh3-dsp.s: New file.
585 * testsuite/ld-sh/arch/sh3e.s: New file.
586 * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
587 * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
588 * testsuite/ld-sh/arch/sh4.s: New file.
589 * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
590 * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
591 * testsuite/ld-sh/arch/sh4a.s: New file.
592
164e712d
AM
5932004-05-28 Alan Modra <amodra@bigpond.net.au>
594
6feb9908
AM
595 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
596 throughout file.
597 * lexsup.c: Formatting. Wrap long lines.
598 * ldwrite.c: Update copyright date.
599
164e712d
AM
600 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
601 (output_section_callback): Nor SEC_KEEP here.
602 (gc_section_callback): Twiddle SEC_EXCLUDE here.
603 (lang_gc_wild): Delete. Fold into..
604 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
605 collecting.
606 (lang_process): Always call lang_gc_sections.
607 (lang_place_orphans): Handle SEC_EXCLUDE sections.
608 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
609 SEC_EXCLUDE code.
610
b3096250
L
6112004-05-26 H.J. Lu <hongjiu.lu@intel.com>
612
613 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
614 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
615 * ldlang.c (lang_add_section): Likewise.
616
e49f5022
AM
6172004-05-26 Alan Modra <amodra@bigpond.net.au>
618
619 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
620 sections when doing a final link. Clear SEC_EXCLUDE when doing
621 a relocable link, except for SEC_DEBUGGING sections.
622 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
623 same condition here to drop SEC_EXCLUDE orphan sections.
624
57ceae94
AM
6252004-05-25 Alan Modra <amodra@bigpond.net.au>
626
627 * ldlang.c (lang_process): Call bfd_merge_sections later, and
628 only when not a relocatable link.
629 (print_input_section): Handle SEC_EXCLUDE sections.
630 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
631 (lang_do_assignments_1): Likewise.
632 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
633 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
634 * emultempl/hppaelf.em (build_section_lists): Likewise.
635 * emultempl/ppc64elf.em (build_toc_list): Likewise.
636 (build_section_lists): Likewise.
637
a85785bc
AS
6382004-05-23 Andreas Schwab <schwab@suse.de>
639
640 * ld.texinfo (Options): Fix typo in last change.
641
2d643429
NC
6422004-05-21 Andy Chittenden <achittenden@bluearc.com>
643
644 * ld.h (ld_config_type): Add new field: hash_table_size.
645 * ldmain.c: Initialise the new field to zero. If it is non-zero
646 after parsing the linker's command line call
647 bfd_hash_set_default_size.
648 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
649 (ld_options): Add hash-size.
650 (parse_args): Parse --hash-size option. Allow
651 --reduce-memory-overheads to set the default hash table size as
652 well.
653 * ld.texinfo: Document the new switch. Also mention that
654 --reduce-memory-overheads can affect the hash table size.
655 * NEWS: Mention the new feature.
656
35835446
JR
6572004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
658
659 * NEWS: Mention new linker map file generation and the
660 --reduce-memory-overheads option.
661 * ld.texinfo: Document --reduce-memory-overheads option.
662 * ld.h (map_symbol_def): New struct.
663 (struct user_section_struct, section_userdata_type): Rename to:
664 (struct lean_user_section_struct, lean_section_userdata_type).
665 (struct fat_user_section_struct, fat_section_userdata_type): New.
666 (SECTION_USERDATA_SIZE): Define.
667 (args_type): New member reduce_memory_overheads.
668 * ldlang.c (map_obstack): New static variable.
669 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
670 (lang_map): Unless command_line.reduce_memory_overheads is set,
671 initialize lists of defined symbols for each section.
672 (print_input_section): Unless command_line.reduce_memory_overheads
673 is set, use print_all_symbols.
674 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
675 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
676 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
677 (ld_options): Add entry for --reduce-memory-overheads.
678 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
679
0841712e
JJ
6802004-05-19 Jakub Jelinek <jakub@redhat.com>
681
682 * ldgram.y (sect_constraint): New.
683 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
684 (section): Add sect_constraint. Pass additional argument
685 to lang_enter_output_section_statement.
686 * mri.c (mri_draw_tree): Pass additional argument to
687 lang_enter_output_section_statement.
688 * emultempl/pe.em (place_orphan): Likewise.
689 (output_prev_sec_find): Disregard output section statements with
690 constraint == -1.
691 * emultempl/mmo.em (output_prev_sec_find): Likewise.
692 (mmo_place_orphan): Pass additional argument to
693 lang_enter_output_section_statement.
694 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
695 statements with constraint == -1.
696 (place_orphan): Pass additional argument to
697 lang_enter_output_section_statement.
698 * ldlang.c (lang_enter_overlay_section): Likewise.
699 (lang_output_section_find_1): New.
700 (lang_output_section_find): Use it.
701 (lang_output_section_statement_lookup_1): New.
702 (lang_output_section_statement_lookup): Use it.
703 (check_section_callback, check_input_sections): New.
704 (map_input_to_output_sections): Check if all input sections
705 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
706 (strip_excluded_output_sections): Disregard output section statements
707 with constraint == -1.
708 (lang_record_phdrs): Likewise.
709 (lang_enter_output_section_statement): Add constraint argument.
710 Use lang_output_section_statement_lookup_1.
711 * ldlang.h (lang_output_section_statement_type): Add constraint
712 and all_input_readonly fields.
713 (lang_enter_output_section_statement): Adjust prototype.
714 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
715 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
716 segment if all input sections are readonly.
717
eea6121a 7182004-05-19 Adam Nemet <anemet@lnxw.com>
f2c50328
NC
719
720 * scripttempl/i386lynx.sc: Remove file.
721
2a16d82a
BW
7222004-05-17 Bob Wilson <bob.wilson@acm.org>
723
724 * ld.texinfo (Output Section Address): Correct subsection name.
725
eea6121a 7262004-05-17 Adam Nemet <anemet@lnxw.com>
b2d65c0b
NC
727
728 * configure.tgt (powerpc-*-lynxos* case): New case.
729 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
730 * emulparams/ppclynx.sh: New file.
731 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
732 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
733 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
734 (eppclynx.c): New rule.
735 * Makefile.in: Regenerate.
736
4b363073
NC
7372004-05-13 Joel Sherrill <joel@oarcorp.com>
738
739 * configure.tgt (or32-*-rtems*): Switch to elf and
740 support versioned targets.
741
9598fbe5
NC
7422004-05-13 Nick Clifton <nickc@redhat.com>
743
744 * po/fr.po: Updated French translation.
745
8c37241b
JJ
7462004-05-11 Jakub Jelinek <jakub@redhat.com>
747
748 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
749 for binaries, -shared and -pie.
750 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
751 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
752 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
753 (OTHER_RELRO_SECTIONS): ... this.
754 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
755 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
756 -z relro and -z norelro.
757 (gld${EMULATION_NAME}_list_options): Add it to usage.
758 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
759 -z relro scripts when appropriate.
760 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
761 Create separate .got.plt section if SEPARATE_GOTPLT.
762 Move sections which are only written during relocation handling
763 to the beginning of RW segment. If NO_SMALL_DATA, move .got
764 before .data. Add DATA_SEGMENT_RELRO_END directive.
765 Include OTHER_RELRO_SECTIONS.
766 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
767 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
768 (fold_unary): Likewise.
769 (fold_binary): Handle -z relro.
770 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
771 exp_dataseg_relro_adjust phases. Add relro_end field.
772 * ldmain.c (main): Initialize link_info.relro to FALSE.
773 * ldlang.c (lang_size_sections): Handle -z relro.
774
e21059f2
MM
7752004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
776
777 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
778
5f9b8920
JR
7792004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
780
781 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
782 before printing it with %W.
783
26d2d8a2 7842004-05-07 Brian Ford <ford@vss.fsi.com>
eea6121a 785 DJ Delorie <dj@redhat.com>
26d2d8a2
BF
786
787 * emultempl/pe.em (real_flags): New static.
788 (OPTION_LARGE_ADDRESS_AWARE): New define.
789 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
790 (gld_${EMULATION_NAME}_list_options): Likewise.
791 (gld${EMULATION_NAME}_handle_option): Likewise.
792 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
793 * ld.texinfo: Document it.
794 * NEWS: Mention it.
795
1b169501
BF
7962004-05-07 Brian Ford <ford@vss.fsi.com>
797
798 * NEWS: Mention DWARF 2 support for i386pe.
799
41cf0c62
AO
8002004-05-05 Alexandre Oliva <aoliva@redhat.com>
801
802 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
803 elf32-frvfdpic.
804
d0d6a25b
AM
8052004-04-30 Alan Modra <amodra@bigpond.net.au>
806
807 * ldlang.c (unique_section_p): Pass section parm, return true on
808 group sections.
809 (output_section_callback): Adjust.
810 * ldlang.h (unique_section_p): Update prototype.
811 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
812
755306be
EB
8132004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
814
eea6121a 815 * ld.texinfo (--gc-sections): Remove restriction for
755306be
EB
816 dynamic linking.
817
8a7140c3
NC
8182004-04-29 Brian Ford <ford@vss.fsi.com>
819
820 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
821 for DWARF 2/3. Update stab section's syntax.
822
2f9636ba
AM
8232004-04-29 Alan Modra <amodra@bigpond.net.au>
824
825 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
826 (fill_edata): Correct pointer arithmetic.
827
23867d67
CD
8282004-04-21 Chris Demetriou <cgd@broadcom.com>
829
830 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
831 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
832 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
833 (EXTRA_EM_FILE): Use mipsecoff.em
834 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
835 (EXTRA_EM_FILE): Use mipsecoff.em
836 * emultempl/mipsecoff.em: Restructure to be included as an
837 extra emulation file.
838 (check_sections, gld${EMULATION_NAME}_after_open)
839 (gld${EMULATION_NAME}_after_allocation)
840 (gld${EMULATION_NAME}_get_script)
841 (ld_${EMULATION_NAME}_emulation): Remove
842 (gld${EMULATION_NAME}_before_parse): Rename to...
843 (mipsecoff_before_parse): This.
844 (LDEMUL_BEFORE_PARSE): Define.
845 * emultempl/mipself.em: Remove file.
846 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
847 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
848 these symbols.
849 * Makefile.am: Remove dependencies on emultempl/mipself.em.
850 * Makefile.in: Regenerate.
851
1502569c
NC
8522004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
853
854 * ld.texinfo (synthesizing on H8/300): Information about linker
855 relaxation support for bit manipulation instructions and system
856 control instructions is added.
857
c894ddfb
HPN
8582004-04-21 Hans-Peter Nilsson <hp@axis.com>
859
860 * NEWS: Mention change in DEFINED semantics.
861
a85bf78e
EB
8622004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
863
864 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
865 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
866 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
867
58434bc1
BE
8682004-04-21 Ben Elliston <bje@au.ibm.com>
869
870 * ld.texinfo (Simple Example): Add missing punctuation.
871
7a7f4e42
CD
8722004-04-20 Chris Demetriou <cgd@broadcom.com>
873
874 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
875
3737f867
JJ
8762004-04-19 Jakub Jelinek <jakub@redhat.com>
877
878 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
879 specially.
880
3c17e4f7
DS
8812004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
882
883 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
884 with default priority. Likewise for dtors.
885
279500de
TS
8862004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
887
888 * configure.host: Remove mips*-dec-bsd* target.
889 * configure.tgt: Likewise.
890
52f89c0a
RS
8912004-04-08 Richard Sandiford <rsandifo@redhat.com>
892
893 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
894 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
895 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
896 * emultempl/irix.em: New file.
897 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
898 dependencies.
899 * Makefile.in: Regenerate.
900
e489d0ae
PB
9012004-04-01 Paul Brook <paul@codesourcery.com>
902
903 * emultempl/armelf.em (byteswap_code): Add.
904 (arm_elf_before_allocation): Pass extra parameter.
905 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
906 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
907 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
908 * emultempl/armelf_oabi.em: Pass extra parameter.
909 * ld.texinfo: Document --be8.
910
7cc8057a
SS
9112004-03-30 Stan Shebs <shebs@apple.com>
912
913 Remove long-obsolete MPW support.
914 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
915 * Makefile.am (mpw): Remove file-presynthesizing actions.
916 * Makefile.in: Likewise.
917 * ldfile.c (slash): Remove MPW case.
918 * ldlex.l [MPW]: Remove unused definition.
919
0949843d
NC
9202004-03-30 Galit Heller <Galit.Heller@nsc.com>
921
922 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
923 (eelf32cr16c.c): New target.
924 * Makefile.in: Regenerate.
925 * configure.tgt: Handle cr16c-*-elf*.
926 * emulparams/elf32cr16c.sh: New file.
927 * scripttempl/elfcr16c.sc: Likewise
928 * NEWS: Mention support for new target.
929
0a159ef8
NC
9302004-03-30 Nick Clifton <nickc@redhat.com>
931
932 * po/sv.po: Updated Swedish translation.
933
7a945db6
AM
9342004-03-27 Alan Modra <amodra@bigpond.net.au>
935
936 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
937 * emultempl/hppaelf.em: Likewise.
938 * emultempl/ppc64elf.em: Likewise.
939 * emultempl/sh64elf.em: Likewise.
940
5a580b3a
AM
9412004-03-25 Alan Modra <amodra@bigpond.net.au>
942
943 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
944 size_dynamic_sections call.
945
b9cf773d
AM
9462004-03-23 Alan Modra <amodra@bigpond.net.au>
947
948 PR 51.
949 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
950 link_info.wrap_char.
951
59c2e50f
L
9522004-03-20 H.J. Lu <hongjiu.lu@intel.com>
953
954 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
955 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
956
44349745
AO
9572004-03-20 Alexandre Oliva <aoliva@redhat.com>
958
959 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
960
81359a70
AM
9612004-03-19 Alan Modra <amodra@bigpond.net.au>
962
963 * config.in: Regenerate.
964 * po/ld.pot: Regenerate.
965
4a43e768
AM
9662004-03-18 Alan Modra <amodra@bigpond.net.au>
967
968 * ld.texinfo: Add --as-needed doco.
969 * ldmain.c (as_needed): New global var.
970 * ldmain.h (as_needed): Declare.
971 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
972 OPTION_NO_AS_NEEDED.
973 (ld_options): Likewise.
974 (parse_args): Handle them.
975 * ldlang.h (lang_input_statement_type): Add as_needed field.
976 * ldlang.c (new_afile): Set p->as_needed.
977 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
978 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
979 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
980
981 * ldlang.c (open_input_bfds): Remove useless cast.
982 (lang_do_assignments_1): Likewise.
983 (lang_for_each_input_section): Delete.
984
9183ed4b
AM
9852004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
986
987 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
988
ee31fbd0
NC
9892004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
990
991 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
992 private when building implib.
993
e5caec89
NS
9942004-03-05 Nathan Sidwell <nathan@codesourcery.com>
995
996 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
997 SEC_THREAD_LOCAL.
998 (IGNORE_SECTION): Ignore .tbss sections too.
999 (lang_size_sections_1): .tbss sections do not advance dot.
1000
cc2f008e
AS
10012004-03-01 Andreas Schwab <schwab@suse.de>
1002
1003 * ld.texinfo (Options): Fix example for --wrap.
1004
f5a95868
DS
10052004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
1006
1007 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1008 not NULL.
1009
177b729b
ILT
10102004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
1011
1012 * ldlang.c (lang_check): Use %P, not %E, in error message.
1013
1b493742
NS
10142004-02-23 Nathan Sidwell <nathan@codesourcery.com>
1015
1016 * ldlang.h (struct lang_output_section_state): Change processed
1017 field's type.
1018 * ldexp.c (check, invalid): Remove.
1019 (fold_name): Move valid_p assignments. Create undefined symbol
1020 when needed. Directly exampine section's processd flag.
1021 * ldlang.c (lang_output_section_statement_lookup): Adjust
1022 processed field init.
1023 (lang_size_sections_1): Allow LOADADDR when determining section's
1024 VMA. Adjust error message. Fold data statement's expr.
1025 (lang_size_sections): Correctly increment lang_statement_iteration.
1026
10272004-02-23 Alan Modra <amodra@bigpond.net.au>
1028
1029 * ldexp.c (fold_tree): Follow indirect symbols.
b9cf773d 1030
876f4090
NS
10312004-02-20 Nathan Sidwell <nathan@codesourcery.com>
1032
1033 * ldgram.y (exp): Add two operand ALIGN.
1034 * ldexp.c (fold_binary): Add ALIGN_K case.
1035 * ld.texinfo (ALIGN): Document two operand version.
1036
384d938f
NS
10372004-02-19 Nathan Sidwell <nathan@codesourcery.com>
1038
1039 * ldlang.c (map_input_to_output_sections): Initialize sections
1040 mentioned in a data statement expression.
1041 (lang_do_assignments_1): Add data statement's expression's
1042 section's vma.
1043
b6ca8815
NS
10442004-02-18 Nathan Sidwell <nathan@codesourcery.com>
1045
1046 * ldgram.y (statement_anywhere): Add assert rule.
1047 * ldlang.c (exp_init_os): Add assert case.
1048
c92c35e7
AC
10492004-02-14 Andrew Cagney <cagney@redhat.com>
1050
1051 * ldmain.c (remove_output): Call bfd_cache_close.
1052
9bf78c99
RS
10532004-02-14 Richard Sandiford <rsandifo@redhat.com>
1054
1055 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
1056 .MIPS.content* and .MIPS.events* sections.
1057
f3806916
DJ
10582004-02-09 Daniel Jacobowitz <drow@mvista.com>
1059
1060 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
1061 .note.gnu.arm.ident to after allocated sections. Mark its
1062 address as 0.
1063
4c8e70d7
DJ
10642004-02-09 Daniel Jacobowitz <drow@mvista.com>
1065
1066 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
1067 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
1068 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
1069 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
1070 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
1071
ff71f4f7
NC
10722004-02-05 Nick Clifton <nickc@redhat.com>
1073
1074 * emultempl/pe.em (_after_open): Fix typo in previous delta.
1075
07a68a80
NC
10762004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
1077
1078 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
1079
1dd3bf68
AM
10802004-01-28 Alan Modra <amodra@bigpond.net.au>
1081
586196d5
AM
1082 * genscripts.sh: Fix typo.
1083
1dd3bf68
AM
1084 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1085
13d9421f
JJ
10862004-01-24 Jakub Jelinek <jakub@redhat.com>
1087
1088 * emulparams/elf64_ia64.sh: Put .rela.opd into
1089 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1090
4d8907ac
DS
10912004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
1092
1093 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1094 * ld.texinfo (--omagic): Note that writable text section
1095 does not conform to published PE-COFF specs.
1096 (--enable-auto-import): Likewise.
1097
e5c60db5
AM
10982004-01-15 Alan Modra <amodra@bigpond.net.au>
1099
1100 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
1101
6bdafbeb
NC
11022004-01-13 Nick Clifton <nickc@redhat.com>
1103
1104 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
1105 which if true will prevent the LMA region being used as a
1106 replacement for a default VMA region.
586196d5
AM
1107 (lang_leave_output_section_statement): Pass extra parameter.
1108 (lang_leave_overlay): Likewise.
1109 * ld.texinfo (Output Section LMA): Document that the LMA
6bdafbeb
NC
1110 region can be set to the VMA region if no VMA has been set.
1111 * ldlang.h (struct lang_output_section_phdr_list): Create a
1112 typedef for this type. Minor formatting fixes.
586196d5 1113
9dfc8ab2
NC
11142004-01-13 Nick Clifton <nickc@redhat.com>
1115
1116 * ldlang.c (lang_size_sections_1): If dot is advanced, then
1117 assume that the section should be allocated.
1118
8325c4dd
AM
11192004-01-13 Alan Modra <amodra@bigpond.net.au>
1120
1121 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1122 sections. Do ignore SEC_NEVER_LOAD sections.
1123 (lang_size_sections_1): Remove test made redundant with the above.
1124
83490352
AM
11252004-01-09 Alan Modra <amodra@bigpond.net.au>
1126
1127 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1128 program_header_size.
1129
005e1118
AO
11302004-01-06 Alexandre Oliva <aoliva@redhat.com>
1131
1132 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
1133 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1134 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
1135 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1136 (MAXPAGESIZE): Set to 64Kb.
1137 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1138 __ROFIXUP_END__. Don't map .rofixup.got any more.
1139 * emulparams/elf32frv.sh (NOP): Set.
1140 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
1141 * configure.tgt: Add frv-*-*linux*.
1142 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
1143 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1144 (eelf32frvfd.c): New.
1145 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1146 * emulparams/elf32frv.sh: Reverted previous two patches.
1147 * emulparams/elf32frvfd.sh: New.
1148 * Makefile.in: Rebuilt.
1149 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
1150 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1151 .rofixup.got to .rofixup.
1152 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
1153 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
1154 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
1155
060feee5
JJ
11562004-01-05 Jakub Jelinek <jakub@redhat.com>
1157
1158 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
1159 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
1160
5e2f1575
AM
11612004-01-03 Alan Modra <amodra@bigpond.net.au>
1162
e5caa5e0
AM
1163 * ldexp.c (align_n): Make static.
1164 * ldexp.h (align_n): Delete declaration.
1165 * ldlang.h (lang_enter_output_section_statement): Remove
1166 block_value param.
1167 * ldlang.c (lang_enter_output_section_statement): Likewise.
1168 (TO_ADDR, TO_SIZE): Define.
c2df3ea5 1169 (opb_shift): New var.
e5caa5e0
AM
1170 (init_opb): New function.
1171 (print_input_section): Call init_opb and use TO_ADDR.
1172 (print_data_statement, print_reloc_statement): Likewise.
1173 (print_padding_statement): Likewise.
c2df3ea5 1174 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
e5caa5e0
AM
1175 (lang_check_section_addresses): Likewise.
1176 (lang_size_sections_1): Likewise.
1177 (lang_do_assignments_1): Likewise.
1178 (lang_set_startof): Likewise.
c2df3ea5 1179 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
e5caa5e0 1180 (lang_process): Call init_opb.
c2df3ea5 1181 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
e5caa5e0
AM
1182 (lang_enter_overlay_section): Adjust
1183 lang_enter_output_section_statement call.
1184 * ldgram.y: Likewise.
1185 * mri.c (mri_draw_tree): Likewise.
1186 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1187 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1188 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1189
5e2f1575
AM
1190 * ldfile.c (ldfile_set_output_arch): Add defarch param.
1191 * ldfile.h (ldfile_set_output_arch): Ditto.
1192 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
1193 ldfile_set_output_arch.
1194 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1195 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
1196 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
1197 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1198 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
1199 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1200 * ldgram.y: Adjust ldfile_set_output_arch call.
1201 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1202 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
1203 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
1204 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
1205 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
1206 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1207 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1208
b50c15dc
NC
12092004-01-02 Bernardo Innocenti <bernie@develer.com>
1210
1211 * configure.tgt: Add m68k-uClinux target.
6edf0760 1212
c9e214e5 1213For older changes see ChangeLog-0203
252b5132
RH
1214\f
1215Local Variables:
1216mode: change-log
1217left-margin: 8
1218fill-column: 74
1219version-control: never
1220End:
This page took 0.353675 seconds and 4 git commands to generate.