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