*sigh* undo previous delta which was done too early...
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
977cdf5a
NC
12004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2
3 * testsuite/ld-scripts/weak.exp: Enable test on PE,
4 XFAIL non-i386 PE.
5 * testsuite/ld-undefined/weak-undef.exp: Enable test on PE,
6 XFAIL non-i386 PE.
7 * testsuite/lib/ld-lib.exp (is_pecoff_format): New.
8
7f266840
DJ
92004-11-04 Daniel Jacobowitz <dan@debian.org>
10
11 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
12 (earmelf_oabi.c): Remove rule.
13 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
14 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
15 * Makefile.in: Regenerated.
16
a0055007
HPN
172004-11-04 Hans-Peter Nilsson <hp@axis.com>
18
19 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
20 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
21 (FINI_START): Ditto.
22 (INIT_END): Remove emitted "jump [sp+]".
23 (FINI_END): Ditto.
24
c5614fa4
AM
252004-11-04 Alan Modra <amodra@bigpond.net.au>
26
27 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
28 (no_opd_opt, no_toc_opt): New static vars.
29 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
30 ppc64_elf_edit_toc.
31 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
32 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
33 (PARSE_AND_LIST_OPTIONS): Describe new options.
34 (PARSE_AND_LIST_ARGS_CASES): Handle them.
35
7a5df8d0
NC
362004-10-27 Nick Clifton <nickc@redhat.com>
37
38 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
39 parameter to invocation of lang_section_start.
40 * emultempl/aix.em (_handle_option): Likewise.
c5614fa4 41
7a5df8d0
NC
42 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
43 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
44 * Makefile.in: Regenerate.
45
6f372e19
MM
462004-10-26 Mark Mitchell <mark@codesourcery.com>
47
48 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
49 __exidx_{start,end} when not relocating.
50
ba916c8a
MM
512004-10-25 Mark Mitchell <mark@codesourcery.com>
52
53 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
54 * ldexp.h (segment_type): New type.
55 (segments): New variable.
56 * ldexp.c (segments): New variable.
57 (exp_print_token): Handle SEGMENT_START.
58 (fold_binary): Likewise.
59 * ldgram.y (SEGMENT_START): Declare it as a token.
60 (exp): Handle SEGMENT_START.
61 * ldlang.h (lang_address_statement_type): Add segment field.
62 (lang_section_start): Change prototype.
63 * ldlang.c (map_input_to_output_sections): Do not process section
64 assignments if a corresponding SEGMENT_START has already been
65 seen.
66 (lang_section_start): Add segment parameter.
67 * ldlex.l (SEGMENT_START): Add it.
68 * lexsup.c (seg_segment_start): New function.
69 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
70 * ld.texinfo (SEGMENT_START): Document it.
71 * emulparams/armsymbian.sh (EMBEDDED): Set it.
72 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
73 base addresses. Do not map relocations.
74 * NEWS: Mention SEGMENT_START.
75
3e3b46e5
PB
762004-10-26 Paul Brook <paul@codesourcery.com>
77
78 * ld.texinfo: Document --default-symver.
79 * ldmain.c (main): Set link_info.create_default_symver.
80 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
81 (ld_options): Add default-symver.
82 (parse_args): Handle OPTION_DEFAULT_SYMVER.
83
7b0eaa22
DS
842004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
85
86 * pe-dll.c (process_def_file): Don't export all symbols by default if
87 building a position-independent executable.
88
dfeffb9f
L
892004-10-21 H.J. Lu <hongjiu.lu@intel.com>
90
91 PR 463
92 * ldmain.c (reloc_overflow): Accept a pointer to struct
93 bfd_link_hash_entry. Report symbol location for relocation
94 overflow.
95
dc4f76f8
L
962004-10-21 H.J. Lu <hongjiu.lu@intel.com>
97
98 * genscripts.sh (libpath.exp): Really generate for first
99 emulation only.
100
2a08daf3
DS
1012004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
102
103 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
104 comparison and replacement of filenames.
105
532345f2
L
1062004-10-19 H.J. Lu <hongjiu.lu@intel.com>
107
108 PR 459
109 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
110 option on linker script as the one for linker script.
111
b58f81ae
DJ
1122004-10-16 Daniel Jacobowitz <dan@debian.org>
113
114 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
115 (check_excluded_libs): New.
116 (load_symbols): Call check_excluded_libs.
117 * ldlang.h (add_excluded_libs): New prototype.
118 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
119 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
120 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
121 * ld.texinfo (Command Line Variables): Document --exclude-libs.
122 (Options Specific to i386 PE Targets): Remove --exclude-libs.
123
95c148b4
AM
1242004-10-15 Alan Modra <amodra@bigpond.net.au>
125
c468c8bc
AM
126 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
127 failing link script assert.
128
95c148b4
AM
129 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
130
951e9133
L
1312004-10-14 H.J. Lu <hongjiu.lu@intel.com>
132
133 PR 445
134 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
135 (SMALL_DATA_DTOR): Set.
136 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
137 (SMALL_DATA_DTOR): Unset.
138 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
139 after .data. If SMALL_DATA_DTOR is set, move .dtors after
140 .data.
141
afd7a018
AM
1422004-10-14 Alan Modra <amodra@bigpond.net.au>
143
144 PR 63
145 * ldlang.h (lang_output_section_statement_type): Make "next" a
146 struct lang_output_section_statement_struct *.
147 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
148 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
149 * ldlang.c (lang_output_section_find_1): Adjust for changed
150 output_section_statement "next".
151 (strip_excluded_output_sections): Likewise.
152 (lang_record_phdrs): Likewise.
153 (lang_output_section_find_by_flags): New function.
154 (output_prev_sec_find): Move from pe.em. Adjust iterator.
155 (lang_insert_orphan): New function. Tail end of elf32.em's
156 place_orphan merged with that from pe.em. Allow bfd_section to
157 be placed first. New heuristic for placing new output section
158 statement in existing script, and accompanying split of __start
159 symbol alignment into a separate assignment to dot.
160 (lang_add_section): Consistently use output->bfd_section rather than
161 an alias, section->output_section.
162 (map_input_to_output_sections): Rename overly long arg. Move
163 initialization of data_statement output section to here..
164 (lang_check_section_addresses): ..from here.
165 (print_assignment): Correct printing of etree_assert.
166 (print_all_symbols): Don't bomb if userdata is NULL.
167 (IGNORE_SECTION): Rearrange.
168 * emultempl/elf32.em (output_rel_find): Adjust interator.
169 (output_prev_sec_find): Delete.
170 (struct orphan_save): Delete.
171 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
172 flags without creating a duplicate output section statement.
173 Revise code holding history of various orphan section placements.
174 Allow orphan sections to place before script specified output
175 sections. Call lang_output_section_find_by_flags when placement
176 by name fails. Use lang_insert_orphan.
177 * emultempl/mmo.em (output_prev_sec_find): Delete.
178 (struct orphan_save): Delete.
179 (mmo_place_orphan): Revise code holding history of orphan placement.
180 Allow orphans to place before existing output sections. Use
181 lang_insert_orphan.
182 * emultempl/pe.em (output_prev_sec_find): Delete.
183 (struct orphan_save): Delete.
184 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
185 lang_insert_orphan.
186
c0042f5d
MM
1872004-10-13 Mark Mitchell <mark@codesourcery.com>
188
189 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
190 loadable segment.
191
1af699f4
AM
1922004-10-13 Alan Modra <amodra@bigpond.net.au>
193
194 PR 44
09c112da
AM
195 * ldcref.c (check_section_sym_xref): Delete.
196 (check_local_sym_xref): New function.
197 (check_nocrossrefs): Adjust call.
1af699f4
AM
198 * emultempl/pe.em (struct orphan_save): Add os_tail.
199 (place_orphan): Backport assorted fixes from elf32.em.
200
7fa3d080
BW
2012004-10-12 Bob Wilson <bob.wilson@acm.org>
202
203 * emultempl/xtensaelf.em: Use ISO C90 formatting.
204
d3989512
JJ
2052004-10-11 Jakub Jelinek <jakub@redhat.com>
206
563f4125
JJ
207 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
208 getline for portability.
209
d3989512
JJ
210 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
211 (gld${EMULATION_NAME}_parse_ld_so_conf,
212 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
213 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
214
6c0c5b1e
AM
2152004-10-11 Alan Modra <amodra@bigpond.net.au>
216
217 PR 423
218 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
219 rejected when linking statically.
220
d2b2c203
DJ
2212004-10-08 Daniel Jacobowitz <dan@debian.org>
222
223 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
224
43cd72b9
BW
2252004-10-07 Bob Wilson <bob.wilson@acm.org>
226
227 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
228 assembler-generated longcall sequences. Describe new --size-opt
229 option.
230 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
231 * emultempl/xtensaelf.em (remove_section,
232 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
233 elf_xtensa_after_open): New.
234 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
235 OPTION_NO_LITERAL_MOVEMENT): Define.
236 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
237 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
238 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
239 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
240 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
241 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
242 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
243 * Makefile.am (eelf32xtensa.c): Update dependencies.
244 * Makefile.in: Regenerate.
245
8fdd7217 2462004-10-07 Jeff Baker <jbaker@qnx.com>
6c0c5b1e 247
8fdd7217
NC
248 * lexsup.c: Handle --warn-shared-textrel option.
249 (ld_options): Restore alpha sorting of options.
250 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
251 * ld.texinfo: Add documentation for --warn-shared-textrel.
252 * NEWS: Added mention of --warn-shared-textrel option.
253
339207f8 2542004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
6c0c5b1e 255
339207f8 256 * emultempl/crxelf.em (disable_relaxation): Add.
6c0c5b1e 257 (crxelf_before_allocation): Enable --relax option by default.
339207f8
TL
258 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
259 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
260 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
261
bcaa7b3e
L
2622004-10-04 H.J. Lu <hongjiu.lu@intel.com>
263
264 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
265 --sort-section name|alignment.
266
267 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
268 --sort-section name|alignment.
269
270 * ld.h (sort_type): New enum.
271 (wildcard_spec): Change the type of `sorted' to sort_type.
272
273 * ldgram.y (SORT): Removed.
274 (SORT_BY_NAME): Added.
275 (SORT_BY_ALIGNMENT): Added.
276 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
277 SORT_BY_ALIGNMENT.
278 (input_section_spec_no_keep): Updated `sorted'.
279 (statement): Replace SORT with SORT_BY_NAME.
280
281 * ldlang.c (compare_section): New function to compare 2
282 sections with different sorting schemes.
283 (wild_sort): Updated. Use compare_section.
284 (update_wild_statements): New function.
285 (lang_process): Call update_wild_statements before
286 map_input_to_output_sections.
287
288 * ldlex.l (SORT_BY_NAME): New.
289 (SORT_BY_ALIGNMENT): New.
290 (SORT): Return SORT_BY_NAME.
291
292 * ldmain.c (sort_section): New. Defined.
293 (main): Initialize it to none.
294
295 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
296 (ld_options): Add an entry for OPTION_SORT_SECTION.
297 (parse_args): Handle OPTION_SORT_SECTION.
298
299 * mri.c (mri_draw_tree): Updated `sorted'.
300
a4f5ad88
JJ
3012004-10-04 Jakub Jelinek <jakub@redhat.com>
302
303 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
304 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
305 argument.
306 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
307 and . as second argument.
308 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
309 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
310 (fold_binary): Add it here. Insert padding to make relro_end
311 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
312 exp_dataseg_relro_adjust phase just use previously computed
313 exp_data_seg.base.
314 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
315 relro_adjust here. Call lang_size_sections_1 once more if there
316 was too big padding at DATA_SEGMENT_RELRO_END.
317 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
318
40a18ebd
NC
3192004-10-01 Paul Brook <paul@codesourcery.com>
320
321 * emulparams/armelf.sh: Add unwinding table sections.
322
db8acf26
NC
3232004-09-30 Filip Navara <navaraf@reactos.com>
324
325 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
326 correct base address for position independant executables.
327 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
328 executables as DLLs.
329
eeac373a
PB
3302004-09-30 Paul Brook <paul@codesourcery.com>
331
332 * ld.texinfo: Document --target2=abs.
333 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
334
1ee7cf4c
NC
3352004-09-29 Nick Clifton <nickc@redhat.com>
336
337 * scripttempl/xstormy16.sc: Only perform the assignments to the
338 ROM region when not performing a relocatable link. The ROM region
339 does not start at address 0, but the sections will.
340 * Makefile.am: Fix linker script dependency for the generation of
341 eelf32xstormy16.c.
342 * Makefile.in: Regenerate.
343
03098a9a
CF
3442004-09-18 Filip Navara <navaraf@reactos.com>
345
346 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
347 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
348 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
349 TARGET_PAGE_SIZE.
350 * scripttempl/pe.sc: Make the virtual address and file offset synced if
351 the alignment is lower than the target page size.
352
f2d3750d
CF
3532004-09-27 Filip Navara <navaraf@reactos.com>
354
355 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
356 def_file_parse to handle pe_def_file if NULL and prevent crash with
357 invalid .def files.
358
a23d8409
AM
3592004-09-27 Alan Modra <amodra@bigpond.net.au>
360
361 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
362 --emit-stub-syms automatically when --emit-relocs.
363
7b89fa29
PB
3642004-09-24 Paul Brook <paul@codeosurcery.com>
365
366 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
367 .fini_array sections.
368
e2a68bcc
AS
3692004-09-19 Andreas Schwab <schwab@suse.de>
370
371 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
372 base so that relro end is suitably aligned.
373
3674e28a
PB
3742004-09-17 Paul Brook <paul@codesourcery.com>
375
376 * ld.texinfo: Rename arm-specific section. Document --target*
377 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
378 * emulparams/armelf_linux.sh: Ditto.
379 * emulparams/armelf_nbsd.sh: Ditto.
380 * emultempl/armelf.em: Set default for TARGET2_TYPE.
381 (target2_type): New variable.
382 (arm_elf_before_allocation): Don't pass target1_type.
383 (arm_elf_create_output_section_statements): New function.
384 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
385 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
386 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
387 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
388 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
389 argument to bfd_elf32_arm_process_before_allocation.
390
f6e332e6
AM
3912004-09-17 Alan Modra <amodra@bigpond.net.au>
392
393 * ldexp.c (fold_name): Update u.undef.next refs.
394 * emultempl/pe.em: Likewise.
395 * emultempl/sunos.em: Likewise.
396
9c933e04
AM
3972004-09-17 Alan Modra <amodra@bigpond.net.au>
398
399 * Makefile.am: Run "make dep-am".
400 * Makefile.in: Regenerate.
401 * config.in: Regenerate.
402 * configure: Regenerate.
403 * aclocal.m4: Regenerate.
404 * po/ld.pot: Regenerate.
405
1fa32646
TL
4062004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
407
9c933e04
AM
408 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
409 (.fini): Likewise.
410 (.jcr): Likewise.
1fa32646 411
b6ee372a
AM
4122004-09-16 Alan Modra <amodra@bigpond.net.au>
413
414 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
415 to bfd_elf32_arm_process_before_allocation call.
416
9c504268
PB
4172004-09-13 Paul Brook <paul@codesourcery.com>
418
419 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
420 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
421
d15b04bd
L
4222004-09-07 H.J. Lu <hongjiu.lu@intel.com>
423
424 * configure: Regenerated with autconfig 2.13.
425
875c4330
AS
4262004-09-07 Andreas Schwab <schwab@suse.de>
427
428 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
429 alignment before adjusting DATA_SEGMENT_RELRO_END.
430
229fcec5
MM
4312004-09-06 Mark Mitchell <mark@codesourcery.com>
432
433 * emulparams/armsymbian.sh: Use armbpabi script.
434 * scripttempl/armbpabi.sc: New script.
435
e5a52504
MM
4362004-09-02 Mark Mitchell <mark@codesourcery.com>
437
438 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
439 (earmsymbian.c): New target.
440 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
441 * Makefile.in: Regenerated.
442 * aclocal.m4: Likewise.
443 * configure: Likewise.
444 * emulparams/armsymbian.sh: New file.
445
42851540
NC
4462004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
447
448 * scripttempl/elf32crx.sc: Edit file with comments.
449 (.init): Add new section.
450 (.fini): Likewise.
451 (.ctor): Control the linkage order.
452 (.dtor): Likewise.
453
c034e3e0
NC
4542004-08-27 Nick Clifton <nickc@redhat.com>
455
456 * emultempl/pe.em (after_open): Do not assume that either bfd is
9c933e04 457 an archive.
c034e3e0 458
688c58f3
AM
4592004-08-26 Alan Modra <amodra@bigpond.net.au>
460
461 * ldlang.c (lang_init): Don't compare with TRUE.
462
b18c562e
NC
4632004-08-25 Dmitry Diky <diwil@spec.ru>
464
465 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
466 * scripttempl/elf32msp430.sc: Add .profiler section definition.
467
61f5d054
L
4682004-08-24 H.J. Lu <hongjiu.lu@intel.com>
469
470 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
471
e77d3d77
MM
4722004-08-19 Mark Mitchell <mark@codesourcery.com>
473
474 * configure.tgt (arm*-*-symbianelf*): New target.
475 (arm*-*-eabi*): Likewise.
476
3f764659
JJ
4772004-08-19 Jakub Jelinek <jakub@redhat.com>
478
479 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
480 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
481 (OPTION_NON_OVERLAPPING_OPD): Define.
482 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
483 --non-overlapping-opd option.
484
a010d60f
AM
4852004-08-18 Alan Modra <amodra@bigpond.net.au>
486
487 PR 338
488 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
489 was already on the undefs list.
490
c4e33880
AM
4912004-08-17 Alan Modra <amodra@bigpond.net.au>
492
493 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
494 prefix the symbol field too.
495
d003868e
AM
4962004-08-13 Alan Modra <amodra@bigpond.net.au>
497
498 * ldmain.c (link_callbacks): Remove "error_handler".
499 * ldmisc.c: Include elf-bfd.h.
500 (vfinfo): Sort comment. Handle %A. Use %A instead of
501 bfd_get_section_indent.
502 (error_handler): Delete.
503 * ldmisc.h (error_handler): Delete declaration.
504
99877b66
AM
5052004-08-10 Alan Modra <amodra@bigpond.net.au>
506
507 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
508 ppc64_elf_restore_symbols.
509
40e45c8b
AM
5102004-08-09 Alan Modra <amodra@bigpond.net.au>
511
512 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
513 .toc is too large on relocatable linking.
514
ccfa59ea
AM
5152004-08-09 Alan Modra <amodra@bigpond.net.au>
516
517 * emultempl/ppc64elf.em (ppc_after_open): Delete.
518 (LDEMUL_AFTER_OPEN): Don't define.
519
93fd0973
SC
5202004-08-02 Stephane Carrez <stcarrez@nerim.fr>
521
522 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
523
f1b123db
SC
5242004-08-01 Stephane Carrez <stcarrez@nerim.fr>
525
526 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
527 on power of 2.
528
e7fbc2bf
JT
5292004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
530
531 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
532
c05e9f04
NC
5332004-07-26 Dmitry Diky <diwil@spec.ru>
534
535 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
536 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
537 msp430xG439.
538 * configure.tgt: Likewise.
539 * emulparams/msp430all.sh: Likewise.
540 * Makefile.in: Regenerate.
541
9f61903d
NC
5422004-07-23 Nick Clifton <nickc@redhat.com>
543
544 * emultempl/elf32.em (_place_orphan): Use an already existing
545 section name if that section does not have any flags set.
546
082b7297
L
5472004-07-21 H.J. Lu <hongjiu.lu@intel.com>
548
549 * ldlang.c (already_linked_hash_entry): Removed.
550 (already_linked): Likewise.
551 (already_linked_table): Likewise.
552 (section_already_linked): Call bfd_section_already_linked.
553 (lang_process): Replace already_linked_table_init with
554 bfd_section_already_linked_table_init and check return. Replace
555 already_linked_table_free with bfd_section_already_linked_table_free.
556
76d7af2d
NC
5572004-07-21 Nick Clifton <nickc@redhat.com>
558
559 * ldlang.c (init_os): Make sure that the newly allocated userdata
560 structure is zeroed out.
561
14b3c463
L
5622004-07-19 H.J. Lu <hongjiu.lu@intel.com>
563
564 * NEWS: Mention the new --add-needed/--no-add-needed and
565 --as-needed/--no-as-needed options.
566
e56f61be
L
5672004-07-19 H.J. Lu <hongjiu.lu@intel.com>
568
569 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
570 check the add_needed field.
571 (dt_needed): New struct.
572 (gld${EMULATION_NAME}_try_needed): Change the first argument
573 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
574 bit in the file where the DT_NEEDED entry comes from.
575 (gld${EMULATION_NAME}_search_needed): Change the second
576 argument to a pointer to struct dt_needed.
577 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
578 (gld${EMULATION_NAME}_after_open): Likewise.
579
580 * ld.texinfo: Add --add-needed document.
581 * ldlang.c (new_afile): Set p->add_needed.
582 * ldlang.h (lang_input_statement_type): Add add_needed field.
583 * ldmain.h (add_needed): Declare.
584 * ldmain.c (add_needed): New global var.
585 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
586 OPTION_NO_ADD_NEEDED.
587 (ld_options): Likewise.
588 (parse_args): Handle them.
589
c99b8138
NC
5902004-07-13 Christof Petig <christof@petig-baender.de>
591
592 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
593 for endian-ness of extracted addend.
594
13ed4151
NC
5952004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
596
597 * pe-dll.c (auto_export): Filter on just the import prefix,
598 "_imp_", not "_imp__".
599
1a320fbb
NC
6002004-07-09 Nick Clifton <nickc@redhat.com>
601
602 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
603
1fe1f39c
NC
6042004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
605
606 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
607 (eelf32crx.c): New target.
608 * Makefile.in: Regenerate.
609 * configure.tgt: Handle crx-*-elf*.
610 * emulparams/elf32crx.sh: New file.
611 * emultempl/crxelf.em: New file.
612 * scripttempl/elf32crx.sc: New file.
613 * NEWS: Mention new target.
614
85fbca6a
NC
6152004-07-06 Nick Clifton <nickc@redhat.com>
616
617 * Makefile.am: Add eshlsymbian.c.
618 * Makefile.in: Regenerate.
619 * configure.tgt: Add sh*-symbian-elf target.
620 * emulparams/shlsymbian.sh: New file. Configure the
621 sh-symbian-elf linker scripts.
622 * scripttemp/elf32sh-symbian.sc: New file. Linker script
623 template for the sh-symbian-elf target.
624
b71a5181
DA
6252004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
626
627 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
628 * emulparams/hppalinux.sh: Likewise.
629 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
630 data segment and PLT_BEFORE_GOT is defined.
631
c87db184
CF
6322004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
633
634 * ld.texinfo (WIN32): Document PE weak symbols.
635
f6a8ae81
KK
6362004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
637
638 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
639
b602c853
L
6402004-07-01 H.J. Lu <hongjiu.lu@intel.com>
641
642 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
643 the section.
644
1a23a9e6
AM
6452004-06-29 Alan Modra <amodra@bigpond.net.au>
646
647 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
648 size in rawsize.
649
eea6121a
AM
6502004-06-24 Alan Modra <amodra@bigpond.net.au>
651
652 * ldlang.c (print_output_section_statement): Don't print size before
653 relaxation.
654 (IGNORE_SECTION): Remove bfd arg. Update all callers.
655
656 * ldexp.c (fold_name): .. See below.
657 * ldlang.c (section_already_linked, print_output_section_statement,
658 print_input_section, insert_pad, size_input_section,
659 lang_check_section_addresses, lang_size_sections_1,
660 lang_size_sections, lang_do_assignments_1, lang_set_startof,
661 lang_one_common, lang_reset_memory_regions, lang_process,
662 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
663 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
664 * pe-dll.c (process_def_file, generate_reloc): ..
665 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
666 gld${EMULATION_NAME}_before_allocation): ..
667 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
668 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
669 sh64_elf_${EMULATION_NAME}_after_allocation): ..
670 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
671 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
672 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
673 "size" instead of "_raw_size" and "_cooked_size". Expand
674 bfd_section_size macro invocations.
675
552f8272
CF
6762004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
677
678 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
679 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
680 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
681 ___crt_xt_end__.
682 (.tls): Define ___tls_start__ and ___tls_end__.
683
aee6f5b4
AO
6842004-06-21 Alexandre Oliva <aoliva@redhat.com>
685
686 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
687
eea6121a 6882004-06-18 Adam Nemet <anemet@lnxw.com>
f234d5fe 689
eea6121a
AM
690 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
691 * configure: Regenerate.
f234d5fe 692
dfff4fbe
JJ
6932004-06-15 Jakub Jelinek <jakub@redhat.com>
694
695 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
696 .gcc_except_table output sections lost accidentally with
697 -z relro patch.
698
a9e0c0c6
AM
6992004-06-15 Alan Modra <amodra@bigpond.net.au>
700
701 * ldwrite.c (build_link_order): Use bfd_get_section_size
702 instead of bfd_get_section_size_before_reloc or _raw_size.
703 * pe-dll.c (process_def_file): Likewise.
704
7115639b
AM
7052004-06-14 Alan Modra <amodra@bigpond.net.au>
706
707 From Richard Wirth <r.wirth@wirthware.de>
708 * ldlang.c (lang_finish): Don't free lang_definedness_table.
709
9ca57817
AM
7102004-05-29 Alan Modra <amodra@bigpond.net.au>
711
712 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
713 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
714
f6f9408f
JR
7152004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
716
717 * testsuite/ld-sh/arch/arch.exp: New test script.
718 * testsuite/ld-sh/arch/arch_expected.txt: New file.
719 * testsuite/ld-sh/arch/sh.s: New file.
720 * testsuite/ld-sh/arch/sh2.s: New file.
721 * testsuite/ld-sh/arch/sh-dsp.s: New file.
722 * testsuite/ld-sh/arch/sh2e.s: New file.
723 * testsuite/ld-sh/arch/sh3-nommu.s: New file.
724 * testsuite/ld-sh/arch/sh3.s: New file.
725 * testsuite/ld-sh/arch/sh3-dsp.s: New file.
726 * testsuite/ld-sh/arch/sh3e.s: New file.
727 * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
728 * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
729 * testsuite/ld-sh/arch/sh4.s: New file.
730 * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
731 * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
732 * testsuite/ld-sh/arch/sh4a.s: New file.
733
164e712d
AM
7342004-05-28 Alan Modra <amodra@bigpond.net.au>
735
6feb9908
AM
736 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
737 throughout file.
738 * lexsup.c: Formatting. Wrap long lines.
739 * ldwrite.c: Update copyright date.
740
164e712d
AM
741 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
742 (output_section_callback): Nor SEC_KEEP here.
743 (gc_section_callback): Twiddle SEC_EXCLUDE here.
744 (lang_gc_wild): Delete. Fold into..
745 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
746 collecting.
747 (lang_process): Always call lang_gc_sections.
748 (lang_place_orphans): Handle SEC_EXCLUDE sections.
749 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
750 SEC_EXCLUDE code.
751
b3096250
L
7522004-05-26 H.J. Lu <hongjiu.lu@intel.com>
753
754 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
755 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
756 * ldlang.c (lang_add_section): Likewise.
757
e49f5022
AM
7582004-05-26 Alan Modra <amodra@bigpond.net.au>
759
760 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
761 sections when doing a final link. Clear SEC_EXCLUDE when doing
762 a relocable link, except for SEC_DEBUGGING sections.
763 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
764 same condition here to drop SEC_EXCLUDE orphan sections.
765
57ceae94
AM
7662004-05-25 Alan Modra <amodra@bigpond.net.au>
767
768 * ldlang.c (lang_process): Call bfd_merge_sections later, and
769 only when not a relocatable link.
770 (print_input_section): Handle SEC_EXCLUDE sections.
771 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
772 (lang_do_assignments_1): Likewise.
773 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
774 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
775 * emultempl/hppaelf.em (build_section_lists): Likewise.
776 * emultempl/ppc64elf.em (build_toc_list): Likewise.
777 (build_section_lists): Likewise.
778
a85785bc
AS
7792004-05-23 Andreas Schwab <schwab@suse.de>
780
781 * ld.texinfo (Options): Fix typo in last change.
782
2d643429
NC
7832004-05-21 Andy Chittenden <achittenden@bluearc.com>
784
785 * ld.h (ld_config_type): Add new field: hash_table_size.
786 * ldmain.c: Initialise the new field to zero. If it is non-zero
787 after parsing the linker's command line call
788 bfd_hash_set_default_size.
789 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
790 (ld_options): Add hash-size.
791 (parse_args): Parse --hash-size option. Allow
792 --reduce-memory-overheads to set the default hash table size as
793 well.
794 * ld.texinfo: Document the new switch. Also mention that
795 --reduce-memory-overheads can affect the hash table size.
796 * NEWS: Mention the new feature.
797
35835446
JR
7982004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
799
800 * NEWS: Mention new linker map file generation and the
801 --reduce-memory-overheads option.
802 * ld.texinfo: Document --reduce-memory-overheads option.
803 * ld.h (map_symbol_def): New struct.
804 (struct user_section_struct, section_userdata_type): Rename to:
805 (struct lean_user_section_struct, lean_section_userdata_type).
806 (struct fat_user_section_struct, fat_section_userdata_type): New.
807 (SECTION_USERDATA_SIZE): Define.
808 (args_type): New member reduce_memory_overheads.
809 * ldlang.c (map_obstack): New static variable.
810 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
811 (lang_map): Unless command_line.reduce_memory_overheads is set,
812 initialize lists of defined symbols for each section.
813 (print_input_section): Unless command_line.reduce_memory_overheads
814 is set, use print_all_symbols.
815 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
816 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
817 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
818 (ld_options): Add entry for --reduce-memory-overheads.
819 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
820
0841712e
JJ
8212004-05-19 Jakub Jelinek <jakub@redhat.com>
822
823 * ldgram.y (sect_constraint): New.
824 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
825 (section): Add sect_constraint. Pass additional argument
826 to lang_enter_output_section_statement.
827 * mri.c (mri_draw_tree): Pass additional argument to
828 lang_enter_output_section_statement.
829 * emultempl/pe.em (place_orphan): Likewise.
830 (output_prev_sec_find): Disregard output section statements with
831 constraint == -1.
832 * emultempl/mmo.em (output_prev_sec_find): Likewise.
833 (mmo_place_orphan): Pass additional argument to
834 lang_enter_output_section_statement.
835 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
836 statements with constraint == -1.
837 (place_orphan): Pass additional argument to
838 lang_enter_output_section_statement.
839 * ldlang.c (lang_enter_overlay_section): Likewise.
840 (lang_output_section_find_1): New.
841 (lang_output_section_find): Use it.
842 (lang_output_section_statement_lookup_1): New.
843 (lang_output_section_statement_lookup): Use it.
844 (check_section_callback, check_input_sections): New.
845 (map_input_to_output_sections): Check if all input sections
846 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
847 (strip_excluded_output_sections): Disregard output section statements
848 with constraint == -1.
849 (lang_record_phdrs): Likewise.
850 (lang_enter_output_section_statement): Add constraint argument.
851 Use lang_output_section_statement_lookup_1.
852 * ldlang.h (lang_output_section_statement_type): Add constraint
853 and all_input_readonly fields.
854 (lang_enter_output_section_statement): Adjust prototype.
855 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
856 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
857 segment if all input sections are readonly.
858
eea6121a 8592004-05-19 Adam Nemet <anemet@lnxw.com>
f2c50328
NC
860
861 * scripttempl/i386lynx.sc: Remove file.
862
2a16d82a
BW
8632004-05-17 Bob Wilson <bob.wilson@acm.org>
864
865 * ld.texinfo (Output Section Address): Correct subsection name.
866
eea6121a 8672004-05-17 Adam Nemet <anemet@lnxw.com>
b2d65c0b
NC
868
869 * configure.tgt (powerpc-*-lynxos* case): New case.
870 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
871 * emulparams/ppclynx.sh: New file.
872 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
873 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
874 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
875 (eppclynx.c): New rule.
876 * Makefile.in: Regenerate.
877
4b363073
NC
8782004-05-13 Joel Sherrill <joel@oarcorp.com>
879
880 * configure.tgt (or32-*-rtems*): Switch to elf and
881 support versioned targets.
882
9598fbe5
NC
8832004-05-13 Nick Clifton <nickc@redhat.com>
884
885 * po/fr.po: Updated French translation.
886
8c37241b
JJ
8872004-05-11 Jakub Jelinek <jakub@redhat.com>
888
889 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
890 for binaries, -shared and -pie.
891 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
892 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
893 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
894 (OTHER_RELRO_SECTIONS): ... this.
895 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
896 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
897 -z relro and -z norelro.
898 (gld${EMULATION_NAME}_list_options): Add it to usage.
899 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
900 -z relro scripts when appropriate.
901 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
902 Create separate .got.plt section if SEPARATE_GOTPLT.
903 Move sections which are only written during relocation handling
904 to the beginning of RW segment. If NO_SMALL_DATA, move .got
905 before .data. Add DATA_SEGMENT_RELRO_END directive.
906 Include OTHER_RELRO_SECTIONS.
907 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
908 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
909 (fold_unary): Likewise.
910 (fold_binary): Handle -z relro.
911 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
912 exp_dataseg_relro_adjust phases. Add relro_end field.
913 * ldmain.c (main): Initialize link_info.relro to FALSE.
914 * ldlang.c (lang_size_sections): Handle -z relro.
915
e21059f2
MM
9162004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
917
918 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
919
5f9b8920
JR
9202004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
921
922 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
923 before printing it with %W.
924
26d2d8a2 9252004-05-07 Brian Ford <ford@vss.fsi.com>
eea6121a 926 DJ Delorie <dj@redhat.com>
26d2d8a2
BF
927
928 * emultempl/pe.em (real_flags): New static.
929 (OPTION_LARGE_ADDRESS_AWARE): New define.
930 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
931 (gld_${EMULATION_NAME}_list_options): Likewise.
932 (gld${EMULATION_NAME}_handle_option): Likewise.
933 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
934 * ld.texinfo: Document it.
935 * NEWS: Mention it.
936
1b169501
BF
9372004-05-07 Brian Ford <ford@vss.fsi.com>
938
939 * NEWS: Mention DWARF 2 support for i386pe.
940
41cf0c62
AO
9412004-05-05 Alexandre Oliva <aoliva@redhat.com>
942
943 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
944 elf32-frvfdpic.
945
d0d6a25b
AM
9462004-04-30 Alan Modra <amodra@bigpond.net.au>
947
948 * ldlang.c (unique_section_p): Pass section parm, return true on
949 group sections.
950 (output_section_callback): Adjust.
951 * ldlang.h (unique_section_p): Update prototype.
952 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
953
755306be
EB
9542004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
955
eea6121a 956 * ld.texinfo (--gc-sections): Remove restriction for
755306be
EB
957 dynamic linking.
958
8a7140c3
NC
9592004-04-29 Brian Ford <ford@vss.fsi.com>
960
961 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
962 for DWARF 2/3. Update stab section's syntax.
963
2f9636ba
AM
9642004-04-29 Alan Modra <amodra@bigpond.net.au>
965
966 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
967 (fill_edata): Correct pointer arithmetic.
968
23867d67
CD
9692004-04-21 Chris Demetriou <cgd@broadcom.com>
970
971 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
972 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
973 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
974 (EXTRA_EM_FILE): Use mipsecoff.em
975 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
976 (EXTRA_EM_FILE): Use mipsecoff.em
977 * emultempl/mipsecoff.em: Restructure to be included as an
978 extra emulation file.
979 (check_sections, gld${EMULATION_NAME}_after_open)
980 (gld${EMULATION_NAME}_after_allocation)
981 (gld${EMULATION_NAME}_get_script)
982 (ld_${EMULATION_NAME}_emulation): Remove
983 (gld${EMULATION_NAME}_before_parse): Rename to...
984 (mipsecoff_before_parse): This.
985 (LDEMUL_BEFORE_PARSE): Define.
986 * emultempl/mipself.em: Remove file.
987 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
988 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
989 these symbols.
990 * Makefile.am: Remove dependencies on emultempl/mipself.em.
991 * Makefile.in: Regenerate.
992
1502569c
NC
9932004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
994
995 * ld.texinfo (synthesizing on H8/300): Information about linker
996 relaxation support for bit manipulation instructions and system
997 control instructions is added.
998
c894ddfb
HPN
9992004-04-21 Hans-Peter Nilsson <hp@axis.com>
1000
1001 * NEWS: Mention change in DEFINED semantics.
1002
a85bf78e
EB
10032004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
1004
1005 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1006 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1007 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1008
58434bc1
BE
10092004-04-21 Ben Elliston <bje@au.ibm.com>
1010
1011 * ld.texinfo (Simple Example): Add missing punctuation.
1012
7a7f4e42
CD
10132004-04-20 Chris Demetriou <cgd@broadcom.com>
1014
1015 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1016
3737f867
JJ
10172004-04-19 Jakub Jelinek <jakub@redhat.com>
1018
1019 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1020 specially.
1021
3c17e4f7
DS
10222004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
1023
1024 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
1025 with default priority. Likewise for dtors.
1026
279500de
TS
10272004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1028
1029 * configure.host: Remove mips*-dec-bsd* target.
1030 * configure.tgt: Likewise.
1031
52f89c0a
RS
10322004-04-08 Richard Sandiford <rsandifo@redhat.com>
1033
1034 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1035 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1036 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1037 * emultempl/irix.em: New file.
1038 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1039 dependencies.
1040 * Makefile.in: Regenerate.
1041
e489d0ae
PB
10422004-04-01 Paul Brook <paul@codesourcery.com>
1043
1044 * emultempl/armelf.em (byteswap_code): Add.
1045 (arm_elf_before_allocation): Pass extra parameter.
1046 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1047 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1048 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1049 * emultempl/armelf_oabi.em: Pass extra parameter.
1050 * ld.texinfo: Document --be8.
1051
7cc8057a
SS
10522004-03-30 Stan Shebs <shebs@apple.com>
1053
1054 Remove long-obsolete MPW support.
1055 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1056 * Makefile.am (mpw): Remove file-presynthesizing actions.
1057 * Makefile.in: Likewise.
1058 * ldfile.c (slash): Remove MPW case.
1059 * ldlex.l [MPW]: Remove unused definition.
1060
0949843d
NC
10612004-03-30 Galit Heller <Galit.Heller@nsc.com>
1062
1063 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1064 (eelf32cr16c.c): New target.
1065 * Makefile.in: Regenerate.
1066 * configure.tgt: Handle cr16c-*-elf*.
1067 * emulparams/elf32cr16c.sh: New file.
1068 * scripttempl/elfcr16c.sc: Likewise
1069 * NEWS: Mention support for new target.
1070
0a159ef8
NC
10712004-03-30 Nick Clifton <nickc@redhat.com>
1072
1073 * po/sv.po: Updated Swedish translation.
1074
7a945db6
AM
10752004-03-27 Alan Modra <amodra@bigpond.net.au>
1076
1077 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1078 * emultempl/hppaelf.em: Likewise.
1079 * emultempl/ppc64elf.em: Likewise.
1080 * emultempl/sh64elf.em: Likewise.
1081
5a580b3a
AM
10822004-03-25 Alan Modra <amodra@bigpond.net.au>
1083
1084 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1085 size_dynamic_sections call.
1086
b9cf773d
AM
10872004-03-23 Alan Modra <amodra@bigpond.net.au>
1088
1089 PR 51.
1090 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1091 link_info.wrap_char.
1092
59c2e50f
L
10932004-03-20 H.J. Lu <hongjiu.lu@intel.com>
1094
1095 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1096 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1097
44349745
AO
10982004-03-20 Alexandre Oliva <aoliva@redhat.com>
1099
1100 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1101
81359a70
AM
11022004-03-19 Alan Modra <amodra@bigpond.net.au>
1103
1104 * config.in: Regenerate.
1105 * po/ld.pot: Regenerate.
1106
4a43e768
AM
11072004-03-18 Alan Modra <amodra@bigpond.net.au>
1108
1109 * ld.texinfo: Add --as-needed doco.
1110 * ldmain.c (as_needed): New global var.
1111 * ldmain.h (as_needed): Declare.
1112 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1113 OPTION_NO_AS_NEEDED.
1114 (ld_options): Likewise.
1115 (parse_args): Handle them.
1116 * ldlang.h (lang_input_statement_type): Add as_needed field.
1117 * ldlang.c (new_afile): Set p->as_needed.
1118 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1119 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1120 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1121
1122 * ldlang.c (open_input_bfds): Remove useless cast.
1123 (lang_do_assignments_1): Likewise.
1124 (lang_for_each_input_section): Delete.
1125
9183ed4b
AM
11262004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1127
1128 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
1129
ee31fbd0
NC
11302004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
1131
1132 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1133 private when building implib.
1134
e5caec89
NS
11352004-03-05 Nathan Sidwell <nathan@codesourcery.com>
1136
1137 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
1138 SEC_THREAD_LOCAL.
1139 (IGNORE_SECTION): Ignore .tbss sections too.
1140 (lang_size_sections_1): .tbss sections do not advance dot.
1141
cc2f008e
AS
11422004-03-01 Andreas Schwab <schwab@suse.de>
1143
1144 * ld.texinfo (Options): Fix example for --wrap.
1145
f5a95868
DS
11462004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
1147
1148 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1149 not NULL.
1150
177b729b
ILT
11512004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
1152
1153 * ldlang.c (lang_check): Use %P, not %E, in error message.
1154
1b493742
NS
11552004-02-23 Nathan Sidwell <nathan@codesourcery.com>
1156
1157 * ldlang.h (struct lang_output_section_state): Change processed
1158 field's type.
1159 * ldexp.c (check, invalid): Remove.
1160 (fold_name): Move valid_p assignments. Create undefined symbol
1161 when needed. Directly exampine section's processd flag.
1162 * ldlang.c (lang_output_section_statement_lookup): Adjust
1163 processed field init.
1164 (lang_size_sections_1): Allow LOADADDR when determining section's
1165 VMA. Adjust error message. Fold data statement's expr.
1166 (lang_size_sections): Correctly increment lang_statement_iteration.
1167
11682004-02-23 Alan Modra <amodra@bigpond.net.au>
1169
1170 * ldexp.c (fold_tree): Follow indirect symbols.
b9cf773d 1171
876f4090
NS
11722004-02-20 Nathan Sidwell <nathan@codesourcery.com>
1173
1174 * ldgram.y (exp): Add two operand ALIGN.
1175 * ldexp.c (fold_binary): Add ALIGN_K case.
1176 * ld.texinfo (ALIGN): Document two operand version.
1177
384d938f
NS
11782004-02-19 Nathan Sidwell <nathan@codesourcery.com>
1179
1180 * ldlang.c (map_input_to_output_sections): Initialize sections
1181 mentioned in a data statement expression.
1182 (lang_do_assignments_1): Add data statement's expression's
1183 section's vma.
1184
b6ca8815
NS
11852004-02-18 Nathan Sidwell <nathan@codesourcery.com>
1186
1187 * ldgram.y (statement_anywhere): Add assert rule.
1188 * ldlang.c (exp_init_os): Add assert case.
1189
c92c35e7
AC
11902004-02-14 Andrew Cagney <cagney@redhat.com>
1191
1192 * ldmain.c (remove_output): Call bfd_cache_close.
1193
9bf78c99
RS
11942004-02-14 Richard Sandiford <rsandifo@redhat.com>
1195
1196 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
1197 .MIPS.content* and .MIPS.events* sections.
1198
f3806916
DJ
11992004-02-09 Daniel Jacobowitz <drow@mvista.com>
1200
1201 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
1202 .note.gnu.arm.ident to after allocated sections. Mark its
1203 address as 0.
1204
4c8e70d7
DJ
12052004-02-09 Daniel Jacobowitz <drow@mvista.com>
1206
1207 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
1208 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
1209 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
1210 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
1211 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
1212
ff71f4f7
NC
12132004-02-05 Nick Clifton <nickc@redhat.com>
1214
1215 * emultempl/pe.em (_after_open): Fix typo in previous delta.
1216
07a68a80
NC
12172004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
1218
1219 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
1220
1dd3bf68
AM
12212004-01-28 Alan Modra <amodra@bigpond.net.au>
1222
586196d5
AM
1223 * genscripts.sh: Fix typo.
1224
1dd3bf68
AM
1225 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1226
13d9421f
JJ
12272004-01-24 Jakub Jelinek <jakub@redhat.com>
1228
1229 * emulparams/elf64_ia64.sh: Put .rela.opd into
1230 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1231
4d8907ac
DS
12322004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
1233
1234 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1235 * ld.texinfo (--omagic): Note that writable text section
1236 does not conform to published PE-COFF specs.
1237 (--enable-auto-import): Likewise.
1238
e5c60db5
AM
12392004-01-15 Alan Modra <amodra@bigpond.net.au>
1240
1241 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
1242
6bdafbeb
NC
12432004-01-13 Nick Clifton <nickc@redhat.com>
1244
1245 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
1246 which if true will prevent the LMA region being used as a
1247 replacement for a default VMA region.
586196d5
AM
1248 (lang_leave_output_section_statement): Pass extra parameter.
1249 (lang_leave_overlay): Likewise.
1250 * ld.texinfo (Output Section LMA): Document that the LMA
6bdafbeb
NC
1251 region can be set to the VMA region if no VMA has been set.
1252 * ldlang.h (struct lang_output_section_phdr_list): Create a
1253 typedef for this type. Minor formatting fixes.
586196d5 1254
9dfc8ab2
NC
12552004-01-13 Nick Clifton <nickc@redhat.com>
1256
1257 * ldlang.c (lang_size_sections_1): If dot is advanced, then
1258 assume that the section should be allocated.
1259
8325c4dd
AM
12602004-01-13 Alan Modra <amodra@bigpond.net.au>
1261
1262 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1263 sections. Do ignore SEC_NEVER_LOAD sections.
1264 (lang_size_sections_1): Remove test made redundant with the above.
1265
83490352
AM
12662004-01-09 Alan Modra <amodra@bigpond.net.au>
1267
1268 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1269 program_header_size.
1270
005e1118
AO
12712004-01-06 Alexandre Oliva <aoliva@redhat.com>
1272
1273 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
1274 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1275 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
1276 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1277 (MAXPAGESIZE): Set to 64Kb.
1278 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1279 __ROFIXUP_END__. Don't map .rofixup.got any more.
1280 * emulparams/elf32frv.sh (NOP): Set.
1281 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
1282 * configure.tgt: Add frv-*-*linux*.
1283 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
1284 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1285 (eelf32frvfd.c): New.
1286 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1287 * emulparams/elf32frv.sh: Reverted previous two patches.
1288 * emulparams/elf32frvfd.sh: New.
1289 * Makefile.in: Rebuilt.
1290 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
1291 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1292 .rofixup.got to .rofixup.
1293 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
1294 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
1295 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
1296
060feee5
JJ
12972004-01-05 Jakub Jelinek <jakub@redhat.com>
1298
1299 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
1300 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
1301
5e2f1575
AM
13022004-01-03 Alan Modra <amodra@bigpond.net.au>
1303
e5caa5e0
AM
1304 * ldexp.c (align_n): Make static.
1305 * ldexp.h (align_n): Delete declaration.
1306 * ldlang.h (lang_enter_output_section_statement): Remove
1307 block_value param.
1308 * ldlang.c (lang_enter_output_section_statement): Likewise.
1309 (TO_ADDR, TO_SIZE): Define.
c2df3ea5 1310 (opb_shift): New var.
e5caa5e0
AM
1311 (init_opb): New function.
1312 (print_input_section): Call init_opb and use TO_ADDR.
1313 (print_data_statement, print_reloc_statement): Likewise.
1314 (print_padding_statement): Likewise.
c2df3ea5 1315 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
e5caa5e0
AM
1316 (lang_check_section_addresses): Likewise.
1317 (lang_size_sections_1): Likewise.
1318 (lang_do_assignments_1): Likewise.
1319 (lang_set_startof): Likewise.
c2df3ea5 1320 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
e5caa5e0 1321 (lang_process): Call init_opb.
c2df3ea5 1322 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
e5caa5e0
AM
1323 (lang_enter_overlay_section): Adjust
1324 lang_enter_output_section_statement call.
1325 * ldgram.y: Likewise.
1326 * mri.c (mri_draw_tree): Likewise.
1327 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1328 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1329 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1330
5e2f1575
AM
1331 * ldfile.c (ldfile_set_output_arch): Add defarch param.
1332 * ldfile.h (ldfile_set_output_arch): Ditto.
1333 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
1334 ldfile_set_output_arch.
1335 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1336 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
1337 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
1338 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1339 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
1340 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1341 * ldgram.y: Adjust ldfile_set_output_arch call.
1342 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1343 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
1344 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
1345 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
1346 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
1347 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1348 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1349
b50c15dc
NC
13502004-01-02 Bernardo Innocenti <bernie@develer.com>
1351
1352 * configure.tgt: Add m68k-uClinux target.
6edf0760 1353
c9e214e5 1354For older changes see ChangeLog-0203
252b5132
RH
1355\f
1356Local Variables:
1357mode: change-log
1358left-margin: 8
1359fill-column: 74
1360version-control: never
1361End:
This page took 0.367699 seconds and 4 git commands to generate.