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