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