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