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