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