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