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