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