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