2005-11-15 Jim Blandy <jimb@redhat.com>
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
a541e3ce
SE
12005-11-07 Steve Ellcey <sje@cup.hp.com>
2
3 * configure: Regenerate after modifying bfd/warning.m4.
4
70487fb2
AM
52005-11-07 Olaf Hering <olh@suse.de>
6
7 * ldmain.c (main): Add \n to error message.
8
384a9dda
AM
92005-11-04 Alan Modra <amodra@bigpond.net.au>
10
11 * ldlang.c (struct output_statement_hash_entry): Don't indirect to os.
12 (output_statement_newfunc): Rewrite.
13 (lang_output_section_find_1): Merge into..
14 (lang_output_section_find): ..here.
15 (lang_output_section_statement_lookup_1): Rewrite to handle
16 multiple sections with the same name.
17 (output_statement_table_init): Commonise error message.
18 (lang_init, open_output): Likewise.
19
6f2942ed
PB
202005-11-03 Paul Brook <paul@codesourcery.com>
21
22 * scripttempl/elf.sc: Add .init_array.* and .fini_array.*.
23 * scripttempl/armbpabi.sc: Make init/fini array consistent with
24 elf.sc.
25 * scripttempl/elf32sh-symbian.sc: Ditto.
26 * scripttempl/elfxtensa.sc: Ditto.
27
7fabd029
AM
282005-11-03 Alan Modra <amodra@bigpond.net.au>
29
30 * ldlang.h (lang_output_section_statement_type): Rearrange. Remove
31 memspec. Make "processed" a bitfield.
32 (lang_data_statement_type, lang_reloc_statement_type): Rename
33 output_vma to output_offset.
34 * ldlang.c (lang_output_section_statement_lookup_1): Init
35 all_input_readonly. Don't init memspec.
36 (init_os): Remove incorrect comment.
37 (print_data_statement, print_reloc_statement): Adjust for
38 lang_data_statement_type and lang_reloc_statement_type change.
39 (lang_size_sections_1, lang_add_reloc): Likewise.
40 * ldwrite.c (build_link_order): Likewise.
41
a55ff675
MM
422005-10-30 Mark Mitchell <mark@codesourcery.com>
43
44 * lexsup.c (help): Document "@FILE".
45
9e5169a8
L
462005-10-30 H.J. Lu <hongjiu.lu@intel.com>
47
48 * Makefile.am: Run "make dep-am".
49 * Makefile.in: Regenerated.
50
51 * dep-in.sed: Replace " ./" with " ".
52
3c9b82ba
NC
532005-10-25 Arnold Metselaar <arnold.metselaar@planet.nl>
54
55 * Makefile.am: Add support for Z80
56 * Makefile.in: Regenerated
57 * configure.tgt: Add z80-*-coff
58 * emulparams/z80.sh: New file.
59 * emultempl/z80.em: New file.
60 * scripttempl/z80.sc New file.
61 * NEWS: Mention this new support.
62
3caac5b8
AM
632005-10-25 Alan Modra <amodra@bigpond.net.au>
64
65 * po/ld.pot: Regenerate.
66
4f9c04f7
AM
672005-10-25 Chris Metcalf <cdmetcalf@comcast.net>
68
69 * ld.texinfo (--reduce-memory-overheads): Fix typo.
70
ccd2ec6a
L
712005-10-23 H.J. Lu <hongjiu.lu@intel.com>
72
73 PR ld/1487
74 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
75 bfd_match_sections_by_type to match section types.
76
77 * ldlang.c (init_os): Take the input section. Call
78 bfd_init_private_section_data if the input section isn't NULL.
79 (exp_init_os): Pass NULL to init_os.
80 (map_input_to_output_sections): Likewise.
81 (lang_add_section): Pass the input section to init_os.
82
3242b11e
PB
832005-10-19 Paul Brook <paul@codesourcery.com>
84
85 * emulparams/armelf.sh: Add .ARM.attributes to OTHER_SECTIONS.
86
ecca9871
L
872005-10-15 H.J. Lu <hongjiu.lu@intel.com>
88
89 PR ld/1467
90 * emultempl/elf32.em: Include "elf-bfd.h".
91 (gld${EMULATION_NAME}_place_orphan): Check section type and
92 don't use section name for ELF input sections.
93
94 * ld.texinfo: Document orphan section processing.
95
96 * ldlang.c (lang_output_section_find_by_flags): Match section
97 types by calling bfd_match_sections_by_type.
98
86043bbb
MM
992005-10-13 Mark Mitchell <mark@codesourcery.com>
100
101 * ld.texino: Describe double-quoted string syntax for version
102 nodes.
103 * ldlang.h (lang_new_vers_pattern): Add literal_p parameter.
104 * ldgram.y (vers_defns): Allow NAME as well as VERS_IDENTIFIER.
105 Adjust calls to lang_new_vers_pattern to pass literal_p argument.
106 * ldlang.c (lang_vers_match): Fix indentation. Do not glob-match
107 version nodes without a pattern.
108 (lang_new_vers_pattern): Add literal_p parameter.
109 (lang_do_version_exports_section): Pass it.
110
3e8a519c
MM
1112005-10-12 Mark Mitchell <mark@codesourcery.com>
112
113 * NEWS: Mention @file.
114
f0e0fb23
L
1152005-10-05 H.J. Lu <hongjiu.lu@intel.com>
116
117 PR ld/1396
118 * ldcref.c (check_refs): Accept bfd_boolean.
119 (check_local_sym_xref): Pass FALSE to check_refs.
120 (check_nocrossref): Pass TRUE to check_refs.
121 (check_refs_info): Add bfd_boolean.
122 (check_refs): Add bfd_boolean to check_refs_info.
123 (check_reloc_refs): Match relocations with proper symbols.
124
125 * ldmisc.c (vfinfo): Don't add extra ":\n".
126
e60cc415
DS
1272005-10-05 Danny Smith <dannysmith@users.sourceforge.net>
128
129 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set
130 default entry symbol to ENTRY here.
131 * scripttempl/pe.sc: Not here.
132
4520f868
JW
1332005-09-30 James E Wilson <wilson@specifix.com>
134
135 * ldlang.c (lang_startup): Add missing ": " to einfo call.
136
b898a385
L
1372005-09-30 H.J. Lu <hongjiu.lu@intel.com>
138
139 * Makefile.am: Run "make dep-am".
140 * Makefile.in: Regenerated.
141 * aclocal.m4: Likewise.
142
750877ba
L
1432005-09-30 H.J. Lu <hongjiu.lu@intel.com>
144
145 * ldlang.c (output_statement_hash_entry): New type.
146 (output_statement_table): New variable for hash table.
147 (output_statement_newfunc): New function.
148 (output_statement_table_init): Likewise.
149 (output_statement_table_free): Likewise.
150 (lang_init): Call output_statement_table_init.
151 (lang_finish): Renamed to ...
152 (lang_end): This.
153 (lang_process): Updated.
154 (lang_finish): New function.
155 (lang_output_section_find_1): Use hash table.
156 (lang_output_section_statement_lookup_1): Likewise.
157
158 * ldlang.h (lang_finish): New.
159
160 * ldmain.c (main): Call lang_finish.
161
869b9d07
MM
1622005-09-30 Mark Mitchell <mark@codesourcery.com>
163
164 * ldmain.c (main): Use expandargv.
165
95f4309b 1662005-09-30 Catherine Moore <clm@cm00re.com>
384a9dda 167
95f4309b
CM
168 * Makefile.am: Bfin support.
169 * Makefile.in: Regenerated.
170 * aclocal.m4: Regenerated.
171 * configure.tgt: Bfin support.
172 * emulparams/bfin.sh: New file.
173 * emultempl/bfin.em: New file.
174
a70c2403
NC
1752005-09-30 Matthias Kurz <mk@baerlap.north.de>
176
177 * ld.h: Prevent the inclusion of <libintl.h> from the Solaris
178 version of <locale.h> when ENABLE_NLS is not defined.
179
bbf115d3
L
1802005-09-27 H.J. Lu <hongjiu.lu@intel.com>
181
182 * ld.texinfo (ALIGN): Document it as forcing output section
183 alignment.
184
185 * ldgram.y (ALIGN): Support it for forcing output section
186 alignment.
187
a5df8c84
AM
1882005-09-20 Alan Modra <amodra@bigpond.net.au>
189
f68d3f78
AM
190 * ldlang.h (lang_output_section_statement_struct): Change type of
191 "processed" to bfd_boolean.
192 * ldexp.c (fold_name): Update references to os->processed.
193 * ldlang.c (lang_output_section_statement_lookup_1): Likewise.
194 (lang_size_sections_1): Likewise.
195 (lang_reset_memory_regions): Likewise.
196
a5df8c84
AM
197 PR ld/1353
198 * ldlang.c (lang_size_sections_1): Process addr_tree earlier,
199 so that unused output section statements affect dot.
200
6aa29e7b
JJ
2012005-09-08 Jakub Jelinek <jakub@redhat.com>
202
203 * ld.texinfo: Document -z {no,}execstack, -z {no,}relro
204 and --eh-frame-hdr options.
205
5397b1fe
AM
2062005-09-07 Alan Modra <amodra@bigpond.net.au>
207
208 * ldexp.c (fold_name <SIZEOF>): Return 0 for non-existent section.
209 (exp_fold_tree_1): Print assert message only in final stage of
210 linking. Trigger assertion failure if expression cannot be
211 evaluated.
212
12b9ff6c
L
2132005-09-06 H.J. Lu <hongjiu.lu@intel.com>
214
215 PR ld/1263
216 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Check
217 --just-symbols on DSO.
218
2caf1300
AM
2192005-08-18 Alan Modra <amodra@bigpond.net.au>
220
221 * scripttempl/elf.sc: Remove commented out defines.
222
c17ae8a2
AM
2232005-08-18 Alan Modra <amodra@bigpond.net.au>
224
848cf006
AM
225 * emulparams/a29k.sh: Delete.
226 * emulparams/ebmon29k.sh: Delete.
227 * emulparams/sa29200.sh: Delete.
c17ae8a2
AM
228 * Makefile.am: Remove a29k support.
229 * configure.tgt: Likewise.
230 * ld.texinfo: Likewise.
231 * Makefile.in: Regenerate.
232
96f8ade5
JJ
2332005-08-17 Jakub Jelinek <jakub@redhat.com>
234
235 * ldgram.y (vers_defns): Don't lose pattern list before
236 extern NAME {}. Handle global, local and extern symbol names.
237
24dc748d
KK
2382005-08-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
239
240 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
241 Don't increment rel_count of .cranges here. Set rawsize of .cranges.
242
38975f9e
NC
2432005-08-10 Nick Clifton <nickc@redhat.com>
244
245 * pe-dll.c (pe_exe_fill_sections): Call lang_reset_memory_regions
246 before lang_size_sections.
247
66bcaf1f
AM
2482005-08-09 Alan Modra <amodra@bigpond.net.au>
249
250 * emulparams/hppa64linux.sh (LARGE_SECTIONS): Remove .tbss.
251
2522005-08-08 Eric Doenges <Eric.Doenges@betty-tv.com>
44c86e8c
NC
253
254 * Makefile.am (ALL_EMULATIONS): Add msp430x21xx variants.
255 Add rules to build these emulations.
256 * Makefile.in: Regenerate.
257 * configure.tgt (msp430): Add the new variants to the
258 targ_extra_emuls list.
259 * emulparams/msp430all.sh: Add entries for the msp430x21xx
260 variants.
261
7af8e998
L
2622005-08-05 H.J. Lu <hongjiu.lu@intel.com>
263
264 * ld.texinfo: Document PROVIDE_HIDDEN.
265
266 * ldexp.c (exp_fold_tree_1): Hide a provided symbol if asked.
267 (exp_provide): Add and set hidden.
268
269 * ldexp.h (etree_type): Add hidden to assign.
270
271 * ldgram.y (PROVIDE_HIDDEN): New.
272 * ldlex.l (PROVIDE_HIDDEN): Likewise.
273
274 * scripttempl/elf.sc: Use PROVIDE_HIDDEN on array bound
275 symbols.
276
9599dfb1
AM
2772005-08-05 Alan Modra <amodra@bigpond.net.au>
278
279 * emulparams/elf_x86_64.sh: Revert last change.
280 * scripttempl/elf.sc (REL_LARGE, LARGE_SECTIONS): Define here.
281
827a1c67
AM
2822005-08-05 Alan Modra <amodra@bigpond.net.au>
283
284 * emulparams/armelf.sh (OTHER_BSS_END_SYMBOLS): Split out from
285 OTHER_END_SYMBOLS.
286 * emulparams/armelf_linux.sh: Likewise.
287 * emulparams/armnto.sh: Likewise.
288 * emulparams/criself.sh: Likewise.
289 * emulparams/elf32mcore.sh: Likewise.
290 * emulparams/criself.sh (OTHER_SYMBOLS): Define.
291 * emulparams/crislinux.sh (OTHER_SYMBOLS): Define.
292 (OTHER_END_SYMBOLS): Don't define.
293 * emulparams/elf32fr30.sh: Likewise.
294 * emulparams/elf64mmix.sh: Likewise.
295 * emulparams/hppa64linux.sh: Likewise.
296 * emulparams/m32relf.sh: Likewise.
297 * emulparams/vxworks.sh: Likewise.
298 * scripttempl/armbpabi.sc (OTHER_BSS_SECTIONS): Delete.
299 (OTHER_BSS_END_SYMBOLS): Add.
300 (OTHER_END_SYMBOLS): Move before current end sym definitions.
301 (OTHER_SYMBOLS): Replace OTHER_END_SYMBOLS near end of script.
302 * scripttempl/elf.sc: Likewise.
303 * scripttempl/elf32sh-symbian.sc: Likewise.
304 * scripttempl/elf_chaos.sc: Likewise.
305 * scripttempl/elfxtensa.sc: Likewise.
306 * scripttempl/iq2000.sc: Likewise.
307 * scripttempl/xstormy16.sc: Likewise.
308
309 * scripttempl/elf.sc (LBSS, LARGE_SECTIONS): Delete.
310 (REL_LDATA, REL_LBSS, REL_LRODATA): Delete.
311 (REL_LARGE, LARGE_SECTIONS): Add.
312 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): Define as script text.
313 (REL_LARGE): Define.
314 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
315 (LARGE_SECTIONS): Define.
316 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
317 (LARGE_SECTIONS): Define.
318
046183de
AM
3192005-08-04 Alan Modra <amodra@bigpond.net.au>
320
321 * ldemul.c (ldemul_do_assignments, do_assignments_default): Delete.
322 * ldemul.h (ldemul_do_assignments, do_assignments_default): Delete.
323 (struct ld_emulation_xfer_struct): Remove do_assignments field.
324 * ldlang.c (lang_do_assignments): Don't call ldemul_do_assignments.
325 * emulparams/elf32ppc.sh (SDATA_START_SYMBOLS): New.
326 (SDATA2_START_SYMBOLS, SBSS_START_SYMBOLS, SBSS_END_SYMBOLS): New.
327 * emultempl/aix.em (ld_*_emulation): Delete do_assignments init.
328 * emultempl/armcoff.em: Likewise.
329 * emultempl/beos.em: Likewise.
330 * emultempl/generic.em: Likewise.
331 * emultempl/gld960.em: Likewise.
332 * emultempl/gld960c.em: Likewise.
333 * emultempl/linux.em: Likewise.
334 * emultempl/lnk960.em: Likewise.
335 * emultempl/m68kcoff.em: Likewise.
336 * emultempl/pe.em: Likewise.
337 * emultempl/sunos.em: Likewise.
338 * emultempl/ticoff.em: Likewise.
339 * emultempl/vanilla.em: Likewise.
340 * emultempl/elf32.em: Likewise.
341 (gld*_provide_bound_symbols): Delete.
342 (gld*_provide_init_fini_syms): Delete.
343 (gld*_before_allocation): Don't call ldemul_do_assignments.
344 * emultempl/ppc32elf.em (ppc_do_assignments): Delete.
345 (LDEMUL_DO_ASSIGNMENTS): Delete.
346 * scripttempl/elf.sc: Provide init/fini syms. Add SBSS_START_SYMBOLS,
347 SBSS_END_SYMBOLS, SDATA2_START_SYMBOLS.
348
fa498e09
AM
3492005-08-04 Alan Modra <amodra@bigpond.net.au>
350
351 * Makefile.am (eelf32m32c.c): Fix dependencies.
352 * Makefile.in: Regenerate.
353
1e035701
AM
3542005-08-04 Alan Modra <amodra@bigpond.net.au>
355
356 * ldemul.c (ldemul_finish): Call ld_emulation->finish unconditionally.
357 (finish_default): New function.
358 * ldemul.h (finish_default): Declare.
359 * emultempl/aix.em (gld*_before_allocation): Call
360 before_allocation_default rather than strip_excluded_output_sections.
361 (ld_*_emulation): Init finish field to finish_default.
362 * emultempl/armcoff.em: Likewise.
363 * emultempl/beos.em: Likewise.
364 * emultempl/elf32.em: Likewise.
365 * emultempl/generic.em: Likewise.
366 * emultempl/gld960.em: Likewise.
367 * emultempl/gld960c.em: Likewise.
368 * emultempl/hppaelf.em: Likewise.
369 * emultempl/linux.em: Likewise.
370 * emultempl/lnk960.em: Likewise.
371 * emultempl/m68kcoff.em: Likewise.
372 * emultempl/mmo.em: Likewise.
373 * emultempl/pe.em: Likewise.
374 * emultempl/ppc64elf.em: Likewise.
375 * emultempl/sunos.em: Likewise.
376 * emultempl/ticoff.em: Likewise.
377 * emultempl/vanilla.em: Likewise.
378
9f4fb502
AM
3792005-08-03 Alan Modra <amodra@bigpond.net.au>
380
381 * ldlang.c (exp_init_os): Handle etree_provide.
382 * emulparams/armelf.sh (OTHER_END_SYMBOLS): Rename from..
383 (OTHER_BSS_END_SYMBOLS): ..this.
384 * emulparams/armelf_linux.sh: Likewise.
385 * emulparams/armnto.sh: Likewise.
386 * emulparams/criself.sh: Likewise.
387 * emulparams/crislinux.sh: Likewise.
388 * emulparams/elf32frv.sh: Likewise.
389 * emulparams/elf32mcore.sh: Likewise.
390 * emulparams/elf32ppc.sh: Likewise.
391 * emulparams/elf32ppclinux.sh: Likewise.
392 * emulparams/hppa64linux.sh: Likewise.
393 * scripttempl/armbpabi.sc: Substitute $OTHER_END_SYMBOLS, not
394 $OTHER_BSS_END_SYMBOLS.
395 * scripttempl/elf32sh-symbian.sc: Likewise.
396 * scripttempl/elf_chaos.sc: Likewise.
397 * scripttempl/iq2000.sc: Likewise.
398 * scripttempl/xstormy16.sc: Likewise.
399 * scripttempl/elf.sc: Likewise. Delete __bss_start comment.
400 * scripttempl/elfxtensa.sc: Likewise.
401
e9156f74
NC
4022005-07-29 Nick Clifton <nickc@redhat.com>
403
404 * ldmain.c (main): Allow -shared and -static to be used together.
405 * ld.texinfo (-static): Mention that it is allowed with -shared.
406
89806866
DD
4072005-07-28 DJ Delorie <dj@redhat.com>
408
409 * ldlang.c (lang_output_section_statement_lookup_1): Don't cast a
410 unary & address operator, as that breaks GCC's strict aliasing
411 rules.
412
3b22753a
L
4132005-07-25 Jan Hubicka <jh@suse.cz>
414 H.J. Lu <hongjiu.lu@intel.com>
415
416 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): New.
417
418 * scripttempl/elf.sc: Updated for large section support.
419
9f971fcb
NC
4202005-07-21 Ralf Corsepius <ralf.corsepius@rtems.org>
421
422 * configure.tgt: Remove i[3-7]86-*-rtemself*.
423 Remove sparc-*-rtemself*.
424
71f51525
BE
4252005-07-21 Ben Elliston <bje@gnu.org>
426
427 * ldgram.y (ldgram_want_filename): Remove unused static.
428
fe773494
DD
4292005-07-20 DJ Delorie <dj@redhat.com>
430
431 * emulparams/elf32m32c.sh (TEMPLATE_NAME): New.
432 (EXTRA_EM_FILE): New.
433
0e1b44ba
L
4342005-07-19 H.J. Lu <hongjiu.lu@intel.com>
435
436 * ldmain.c (main): Reindent.
437
a3540342
PB
4382005-07-19 Paul Brook <paul@codesourcery.com>
439
440 * configure.host (HOSTING_CRT0): Parse output of gcc --help --verbose
441 to determine dynamic linker name.
442
85da3a56
NC
4432005-07-18 Nick Clifton <nickc@redhat.com>
444
445 * configure.tgt: Restore alpha ordering to list of arches.
446
42fa7765
AM
4472005-07-16 Alan Modra <amodra@bigpond.net.au>
448
449 * emultempl/elf32.em (gld*_provide_init_fini_syms): Prototype.
450 (gld*_before_allocation): Call ldemul_do_assignments rather than
451 gld*_provide_init_fini_syms directly.
452 * emultempl/ppc32elf.em (gld*_after_allocation): Delete.
453 (ppc_do_assignments): New function.
454 (LDEMUL_AFTER_ALLOCATION): Don't define.
455 (LDEMUL_DO_ASSIGNMENTS): Define.
456
0f82ff91
AM
4572005-07-16 Alan Modra <amodra@bigpond.net.au>
458
459 * Makefile.am: Run "make dep-am".
460 (emipsidt.c, emipsidtl.c): Depend on generic.em.
461 * Makefile.in: Regenerate.
462
5e797c2c
AM
4632005-07-15 Alan Modra <amodra@bigpond.net.au>
464
465 * ldemul.c (ldemul_do_assignments): New function.
466 (do_assignments_default): New function.
467 * ldemul.h (ldemul_do_assignments): Declare.
468 (do_assignments_default): Declare.
469 (struct ld_emulation_xfer_struct): Add do_assignments.
470 * ldlang.c (lang_do_assignments) Call ldemul_do_assignments.
471 * emultempl/aix.em (ld_*_emulation): Init do_assignments field.
472 * emultempl/armcoff.em: Likewise.
473 * emultempl/beos.em: Likewise.
474 * emultempl/generic.em: Likewise.
475 * emultempl/gld960.em: Likewise.
476 * emultempl/gld960c.em: Likewise.
477 * emultempl/linux.em: Likewise.
478 * emultempl/lnk960.em: Likewise.
479 * emultempl/m68kcoff.em: Likewise.
480 * emultempl/pe.em: Likewise.
481 * emultempl/sunos.em: Likewise.
482 * emultempl/ticoff.em: Likewise.
483 * emultempl/vanilla.em: Likewise.
484 * emultempl/elf32.em: Likewise, to call gld*_provide_init_fini_syms.
485 (gld*_find_exp_assignment): Adjust bfd_elf_record_link_assignment call.
486
49f58d10
JB
4872005-07-14 Jim Blandy <jimb@redhat.com>
488
489 Add support for the Renesas M32C and M16C.
490 * Makefile.am (ALL_EMULATIONS): Add eelf32m32c.o.
491 (eelf32m32c.c): New target.
492 * Makefile.in: Regenerated.
493 * configure.tgt: Add case for m32c-*-elf.
494 * emulparams/elf32m32c.sh: New file.
495
a3c2b96a
AM
4962005-07-14 Alan Modra <amodra@bigpond.net.au>
497
498 * ldlang.c (strip_excluded_output_sections): Don't call
499 bfd_gc_sections.
500 * emultempl/elf32.em (gld*_provide_bound_symbols): Move.
501 (gld*_provide_init_fini_syms): Move.
502 (gld*_before_allocation): Call the above from here..
503 (gld*_finish): ..not here. Call _bfd_elf_fix_excluded_sec_syms.
504 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
505 * emultempl/ppc64elf.em (ppc_finish): Likewise.
506
438361cd
NC
5072005-07-10 Ralf Corsepius <ralf.corsepius@rtems.org>
508
509 * configure.tgt: Remove sparc*-*-rtemsaout*, i[3-7]86-go32-rtems*,
510 i[3-7]86-*-rtemscoff*, hppa*-*-rtems*, mips*el-*-rtems*,
511 powerpcle-*-rtems*.
512
2c7fd14a
CF
5132005-07-09 Christopher Faylor <cgf@timesys.com>
514
515 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Enable runtime
516 relocation by default.
517 (compute_dll_image_base): Avoid linking into cygwin dll address space.
518
32124d5b
AM
5192005-07-08 Alan Modra <amodra@bigpond.net.au>
520
521 * ldlang.c (wild_sort): Formatting.
522 (strip_excluded_output_sections): Strip zero size sections here.
523 * emultempl/elf32.em (gld*_strip_empty_sections): Delete.
524 (gld*_finish): Don't call the above.
525 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
526 * emultempl/ppc64elf.em (ppc_finish): Likewise.
527
4cd5aacc 5282005-07-05 Paul Brook <paul@codesourcery.com>
9d8504b1
PB
529
530 * Makefile.am (ALL_EMULATIONS): Add eelf32ppcvxworks.o.
531 (eelf32ppcvxworks.o): Add dependencies.
532 * Makefile.in: Regenerate.
533 * configure.tgt: Add entry for powerpc-vxworks.
534 * emulparams/elf32-ppc.c: Mention elf32ppcvxworks.sh in comment.
535 * emulparams/elf32ppcvxworks.sh: New file.
536 * emultempl/ppc32elf.em (bfd_elf32_powerpc_vxworks_vec): Declare.
537 (is_ppc_elf32_vec): New function.
538 (ppc_after_open, ppc_before_allocation,
539 gld${EMULATION_NAME}_after_allocation): Use it.
540
35eb9fb6
NC
5412005-07-05 Peter S. Mazinger" <ps.m@gmx.net>
542
543 * emulparams/elf32bmip.sh (GENERATE_PIE_SCRIPT): Define as "yes".
544 * emulparams/elf32bmipn32-defs.sh (GENERATE_PIE_SCRIPT): Define as "yes".
545
5b5a4ec7
NC
5462005-07-04 Mike Frysinger <vapier@gentoo.org>
547
548 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Fix typo in
549 name.
550
80447b21
NC
5512005-07-04 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
552
553 * emulparams/m32relf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
554
711c0baa
AM
5552005-07-04 Aurelien Jarno <aurel32@debian.org>
556
557 * emultempl/elf32.em: Enable use of ld.so.conf for *-*-k*bsd-*.
558
c8c9c297
AM
5592005-07-01 Alan Modra <amodra@bigpond.net.au>
560
561 * scripttempl/elf.sc (.gcc_except_table): Don't KEEP.
562
b753922c
BE
5632005-06-30 Ben Elliston <bje@gnu.org>
564
565 * Makefile.am (check-DEJAGNU): Don't search for expect.
566 * Makefile.in: Regenerate.
567
c3298874
BE
5682005-06-30 Ben Elliston <bje@gnu.org>
569
570 * Makefile.am (EXPECT): Set to expect.
571 (RUNTEST): Likewise, set to runtest.
572 * Makefile.in: Regenerate.
573
a82644e2
NC
5742005-06-16 Alexander Klimov <alserkli@inbox.ru>
575
576 * emultempl/armelf.em: Add quotes to avoid a null test
577 expression.
578
e185dd51
DJ
5792005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
580
581 * ld.texinfo (Command Line Options): Add @item for --hash-size.
582
9d12f64c
AM
5832005-06-10 Alan Modra <amodra@bigpond.net.au>
584
585 * scripttempt/elf.sc (.bss): Align tail in a way that allows
586 empty section pruning.
587
502bdb00
JW
5882005-06-09 Steve Ellcey <sje@cup.hp.com>
589
590 * configure.in (AM_BINUTILS_WARNINGS): Add.
591 (BFD_NEED_DECLARATION) Replace with AC_CHECK_DECLS.
592 * config.in: Regenerate.
593 * configure: Regenerate.
594 * sysdep.h (NEED_DECLARATION_*): Replace with HAVE_DECL_*
595 * ldmain.c: Ditto.
596
dea2f0a8
AM
5972005-06-09 Alan Modra <amodra@bigpond.net.au>
598
599 * ldexp.c (fold_unary <ALIGN_K>): Revert last change.
600
e9ee469a
AM
6012005-06-09 Alan Modra <amodra@bigpond.net.au>
602
603 * ld.h (lang_phase_type): Move to..
604 * ldexp.h: ..here. Add lang_mark_phase_enum.
605 (node_type): Remove etree_undef and etree_unspec.
606 (exp_data_seg): Delete.
607 (struct ldexp_control, expld): New.
608 (invalid, exp_mark_used_section): Delete.
609 (exp_fold_tree, exp_get_vma, exp_get_value_int, exp_get_fill,
610 exp_get_abs_int): Update prototypes.
611 * ldexp.c (assigning_to_dot): Delete.
612 (expld): Define.
613 (make_abs): Operate directly on expld.result. Update all callers.
614 (new_abs): Likewise. Return void.
615 (new_rel_from_abs): Rename from new_rel_from_section.
616 (new_rel, new_rel_from_abs): Operate on expld.result and return void.
617 Update all callers.
618 (fold_unary): Operate on expld.result and return void. Remove
619 "current_section", "allocation_done", "dot", "dotp" and "mark_used"
620 params. Update all callers.
621 (fold_binary, fold_trinary, fold_name, exp_fold_tree_1): Likewise.
622 (fold_unary <ALIGN_K>): Ensure alignment is absolute.
623 (fold_unary <ABSOLUTE>): Use make_abs.
624 (fold_unary <DATA_SEGMENT_END>): Evaluate mark_phase as for
625 allocating_phase.
626 (fold_binary <DATA_SEGMENT_ALIGN, DATA_SEGMENT_RELRO_END, >): Ditto.
627 (fold_binary <'%','/'>): Don't error if marking.
628 (fold_name <SIZEOF_HEADERS>): Don't call bfd_sizeof_headers when
629 marking.
630 (fold_name <NAME>): Remove FIXME; -R is handled correctly. Don't
631 error when marking.
632 (fold_name <ADDR, LOADADDR, SIZEOF>): Don't set SEC_KEEP.
633 (exp_fold_tree_1): Don't error when marking.
634 (exp_fold_tree_1 <etree_rel>): Evaluate in all phases except first.
635 (exp_fold_tree_1 <etree_assign to dot>): Don't check for NULL
636 current section, instead check for NULL dotp.
637 (exp_fold_tree_1 <etree_provide>): Don't evaluate the assignment
638 source unless the symbol is referenced and undefined.
639 (exp_fold_tree): Remove "allocation_done" and "dot" params. Save
640 params to expld.
641 (exp_fold_tree_no_dot): Remove "current_section", "allocation_done
642 and "mark_used" params. Save params to expld. Update all callers.
643 (exp_assop): Do without temp var.
644 (exp_print_tree <etree_undef>): Delete code.
645 (exp_get_vma): Remove "allocation_done" param. Correct error return.
646 (exp_get_fill, exp_get_abs_int): Likewise.
647 (exp_get_value_int): Remove "allocation_done" param.
648 (exp_mark_used_section): Delete.
649 * ldgram.y (fill_exp): Update exp_get_fill call.
650 (origin_spec, length_spec): Update exp_get_vma call.
651 * ldlang.c (lang_init): Don't bother clearing lang_statement_iteration.
652 (lang_mark_used_section_1, lang_mark_used_section): Delete.
653 (strip_excluded_output_sections): Call one_lang_size_sections_pass in
654 marking mode. Merge old lang_mark_used_section code. Correct handling
655 of output sections with excluded input sections and data statements.
656 Don't drop non-zero sized sections. Don't zap os->bfd_section.
657 Do set SEC_EXCLUDE when appropriate.
658 (print_output_section_statement): Update for changed ldexp.c
659 interface.
660 (print_assignment, lang_size_sections_1): Likewise.
661 (lang_do_assignments_1, lang_enter_output_section_statement): Likewise.
662 (lang_new_phdr, lang_record_phdrs): Likewise.
663 (lang_size_sections): Likewise.
664 (insert_pad): Use following statement if it is a pad, rather than
665 creating a new one.
666 (lang_size_sections_1 <lang_output_section_statement_enum>): Do
667 process ignored output section to set vma and lma, but don't
668 update dot for these sections. Don't error if marking.
669 (lang_size_sections_1 <lang_assignment_statement_enum>): Don't
670 update dot for ignored sections.
671 (lang_size_sections_1 <lang_data_statement_enum>): Don't mark absolute
672 section with SEC_ALLOC.
673 (one_lang_size_sections_pass): New function.
674 (lang_size_sections): Remove first five params. Set expld.phase on
675 entry and exit. Use one_lang_size_sections_pass.
676 (lang_do_assignments): Remove all params. Update all callers.
677 (lang_reset_memory_regions): Clear os->processed for all output
678 section statements.
679 * ldlang.h (lang_do_assignments): Update prototype.
680 (lang_size_sections): Likewise.
681 (one_lang_size_sections_pass): Declare.
682 * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
683 lang_size_sections and lang_do_assignments calls.
684 * emultempl/elf32.em (layout_sections_again): Likewise.
685 * emultempl/ppc64elf.em (ppc_before_allocation): Use
686 one_lang_size_sections_pass.
687
b2be2013
AH
6882005-06-08 Aldy Hernandez <aldyh@redhat.com>
689
690 * emulparams/elf32ms1.sh: New.
691
a34e3ecb
EC
6922005-06-07 Eric Christopher <echristo@redhat.com>
693
694 * Makefile.am (eelf32ms1.c): Use tab.
695 * Makefile.in: Regenerate.
696
9e1f170f
AH
6972005-06-07 Aldy Hernandez <aldyh@redhat.com>
698 Michael Snyder <msnyder@redhat.com>
699 Stan Cox <scox@redhat.com>
700
701 * configure.tgt: Same.
702
703 * Makefile.am (ALL_EMULATIONS): Depend on eelf32ms1.o.
704 (eelf32ms1.c): Add eelf32ms1.c rule.
705
706 * Makefile.in: Regenerate.
707
b4f4e59f
AM
7082005-06-06 Alan Modra <amodra@bigpond.net.au>
709
710 * emultempl/ppc64elf.em (ppc_before_allocation): Always run
711 ppc64_elf_edit_opd.
712
18b79829
L
7132005-06-05 H.J. Lu <hongjiu.lu@intel.com>
714
715 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
716 section only if the symbol will be defined.
717
079f985c
L
7182005-06-04 H.J. Lu <hongjiu.lu@intel.com>
719
720 PR 992
721 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
722 section for etree_assign, etree_provide and etree_provided.
723 Call fold_binary on etree_binary.
724
725 * ldlang.c (lang_mark_used_section_1): Handle load base.
726
e1fffbe6
AM
7272005-06-03 Alan Modra <amodra@bigpond.net.au>
728
729 * ldmain.c (link_callbacks): Add einfo.
730 (add_archive_element): Use passed info, not link_info.
731 (constructor_callback): Likewise.
732 (reloc_overflow): Don't handle null bfd specially.
733 (reloc_dangerous, unattached_reloc): Likewise.
734 * ldmisc.c (vfinfo <B>): Print "ld generated" for null bfd.
735 (vfinfo <C, D, G>): Handle null bfd. Wrap comments.
736
408082ec
AM
7372005-06-02 Alan Modra <amodra@bigpond.net.au>
738
739 * ldexp.h (etree_value_type): Use "asection *" in place of
740 "struct lang_output_section_statement_struct *" for "section".
741 (exp_fold_tree): Likewise.
742 (exp_mark_used_section): Likewise.
743 * ldexp.c (new_rel, new_rel_from_section, fold_unary, fold_binary,
744 fold_trinary, fold_name, exp_fold_tree_1, exp_fold_tree,
745 exp_mark_used_section): Likewise for "current_section" param.
746 (make_abs, new_abs, exp_binop, exp_unop, exp_get_vma, exp_get_fill,
747 exp_get_abs_int): Adjust for above changes.
748 * ldlang.c (lang_mark_used_section_1, print_assignment,
749 lang_size_sections_1, lang_do_assignments_1): Likewise.
750 * ldexp.c (fold_name): Init entire result struct.
751
d0d3b2e8
MR
7522005-06-01 Maciej W. Rozycki <macro@linux-mips.org>
753
754 * emulparams/elf32btsmip.sh: Unset DATA_ADDR.
755
a359509e
ZW
7562005-05-31 Zack Weinberg <zack@codesourcery.com>
757
758 * ldlang.c (entry_symbol_default): New file-scope global.
759 (lang_finish): Use it, not a hardwired "start".
760 (lang_default_entry): Set it.
761 * ldlang.h: Declare lang_default_entry.
762 * emultempl/beos.em, emultempl/pe.em: Use lang_default_entry,
763 not lang_add_entry, to override default entry point symbol.
764
8d6d53d4
RH
7652005-05-29 Richard Henderson <rth@redhat.com>
766
767 * emulparams/elf64alpha.sh (PLT): New.
768 (TEXT_PLT): New.
769 * emultempl/alphaelf.em (disable_relaxation): New.
770 (limit_32bit): Rename from elf64alpha_32bit; update all users.
771 (elf64_alpha_use_secureplt): Declare.
772 (bfd_elf64_alpha_vec, bfd_elf64_alpha_freebsd_vec): Declare.
773 (alpha_after_open): New.
774 (alpha_before_allocation): New.
775 (OPTION_NO_RELAX, OPTION_SECUREPLT, OPTION_NO_SECUREPLT): New.
776 (PARSE_AND_LIST_LONGOPTS): Include them.
777 (PARSE_AND_LIST_OPTIONS): Likewise.
778 (PARSE_AND_LIST_ARGS_CASES): Likewise.
779 (LDEMUL_AFTER_OPEN, LDEMUL_BEFORE_ALLOCATION): New.
780 * scripttempl/elf.sc (TEXT_PLT): New.
781 (PLT): Use it.
782
f93e81d6
AS
7832005-05-27 Andreas Schwab <schwab@suse.de>
784
785 * configure.host (HOSTING_LIBS): Add libunwind.a if it exists.
786
61f8ebf2
AM
7872005-05-24 Alan Modra <amodra@bigpond.net.au>
788
789 * emultempl/ppc32elf.em (after_allocation): Don't call
790 ppc_elf_set_sdata_syms when relocatable.
791
8b803601
L
7922005-05-21 H.J. Lu <hongjiu.lu@intel.com>
793
794 * Makefile.am (ld.1): Revert the last 2 changes.
795 (info-recursive): Depend on ld.1.
796 * Makefile.in: Regenerated.
797
e366efef
L
7982005-05-21 H.J. Lu <hongjiu.lu@intel.com>
799
800 * Makefile.am (ld.1): Depend on "info" instead of
801 "configdoc.texi ldver.texi".
802 * Makefile.in: Regenerated.
803
abf32a89
L
8042005-05-21 H.J. Lu <hongjiu.lu@intel.com>
805
806 * Makefile.am (ld.1): Depend on "info".
807 * Makefile.in: Regenerated.
808
e3e71e27
ZW
8092005-05-19 Zack Weinberg <zack@codesourcery.com>
810
811 * Makefile.am: Have 'all' depend on 'info' and 'ld.1'.
812 * Makefile.in: Regenerate.
813
c19d1205
ZW
8142005-05-17 Zack Weinberg <zack@codesourcery.com>
815
816 * ld-arm/mixed-app.d: Adjust expected disassembly a little.
817
970c3dbc
DJ
8182005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
819
820 * Makefile.am (ldver.texi): Don't use $<.
821 * Makefile.in: Regenerated.
822
6e1b59d2
DJ
8232005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
824
825 * Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
826 $(srcdir) before $(BFDDIR)/doc.
827 * Makefile.in: Regenerated.
828
75ff4589
L
8292005-05-17 H.J. Lu <hongjiu.lu@intel.com>
830
831 PR 797
832 * ldexp.c (exp_fold_tree_1): Renamed from exp_fold_tree and
833 take take a bfd_boolean, mark_used. Ignore assert failure if
834 mark_used is TRUE.
835 (exp_fold_tree) Call exp_fold_tree_1 with mark_used == FALSE.
836 (exp_fold_tree_no_dot): Updated to take a bfd_boolean,
837 mark_used and pass down.
838 (fold_unary): Likewise.
839 (fold_binary): Likewise.
840 (fold_trinary): Likewise.
841 (exp_binop): Add FALSE to call to exp_fold_tree_no_dot.
842 (exp_trinop): Likewise.
843 (exp_unop): Likewise.
844 (exp_nameop): Likewise.
845 (exp_get_vma): Likewise.
846 (exp_get_fill): Likewise.
847 (exp_get_abs_int): Likewise.
848 (fold_name): Likewise. Set SEC_KEEP in output section flags.
849 (exp_mark_used_section): New.
850
851 * ldexp.h (exp_mark_used_section): New.
852
853 * ldlang.c (lang_output_section_statement_lookup_1): Set the
854 ignored field to FALSE.
855 (lang_mark_used_section_1): New.
856 (lang_mark_used_section): Call lang_mark_used_section_1.
857 (strip_excluded_output_sections): Call lang_mark_used_section
858 and check for unused sections.
859 (lang_size_sections_1): Skip an output section if it should
860 be ignored.
861 (lang_do_assignments_1): Likewise.
862 (lang_process): Don't call lang_mark_used_section here.
863
864 * ldlang.h (lang_output_section_statement_type): Change
865 all_input_readonly to bitfield. Add ignored.
866
25ba8e7b
NC
8672005-05-17 Lennert Buytenhek <buytenh@wantstofly.org>
868 Peter S. Mazinger" <ps.m@gmx.net>
869
c19d1205
ZW
870 * emulparams/armelf_linux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
871 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
25ba8e7b 872
10dbd1f3
NC
8732005-05-17 Julian Brown <julian@codesourcery.com>
874
875 * ldlang.c (print_assignment): Do not rely upon a valid result
876 having a section associated with it.
877
3b83e13a
NC
8782005-05-17 Nick Clifton <nickc@redhat.com>
879
880 * ldlang.c (Scan_for_self_assignment): Check an assignment tree to
881 see if the same value is being used on the rhs as on the lhs.
882 (print_assignment): Call scan_for_self_assignment and if it
883 returns true, do no display the result of the computation but
884 instead just the final value of the symbol on the lhs.
885 * ld.texinfo: Document this behaviour and provide an example of
886 when it will happen.
887
42ecbf5e
DJ
8882005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
889
890 * Makefile.am (AM_MAKEINFOFLAGS): Define.
891 (TEXI2DVI): Define.
892 (ldver.texi): Depend on distributed files instead of built files.
893 (ld.info): Include $(srcdir) in the rule target. Remove actions.
894 (ld.dvi): Remove actions.
895 (MAINTAINERCLEANFILES): Add configdoc.texi.
896 (CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in.
897 (install-data-local): Renamed from install.
898 (Makefile): Remove explicit dependency.
899 * acinclude.m4: Remove obsolete code.
900 * configure.in: Update AC_PREREQ. Remove extra $CONFIG_SHELL.
901 * Makefile.in, aclocal.m4, config.in, configure: Regenerated.
902
be2c2e39
BW
9032005-05-11 Bob Wilson <bob.wilson@acm.org>
904
905 * scripttempl/elfxtensa.sc: Sync up with elf.sc.
906 * emulparams/elf32xtensa.sh (PLT, GOT): Define.
907
0cf7d72c
AM
9082005-05-11 Alan Modra <amodra@bigpond.net.au>
909
910 * ldgram.y: Add SPECIAL token.
911 (sect_constraint): Handle SPECIAL.
912 * ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
913 (map_input_to_output_sections): Likewise.
914 * ldlex.l (SPECIAL): Define.
915 * emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
916 GOT, PLT, GOTPLT): Define.
917 * emultempl/ppc32elf.em (old_plt, old_got): New static vars.
918 (ppc_after_open): New function.
919 (PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
920 (PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
921 (PARSE_AND_LIST_OPTIONS): Document them.
922 (PARSE_AND_LIST_ARGS_CASES): Handle them.
923 (LDEMUL_AFTER_OPEN): Define.
924 * scripttempl/elf.sc (PLT): Don't override existing define.
925 (DATA_GOT, SDATA_GOT): Define and use to enable alternate got
926 placement rather than using NO_SMALL_DATA. Emit GOTPLT for RELRO_NOW.
927
4ca02259
AM
9282005-05-10 Alan Modra <amodra@bigpond.net.au>
929
930 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
931 (DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
932 (GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END. Place after
933 DATA_SEGMENT_RELRO_END in script.
934
baf6e97f
L
9352005-05-09 H.J. Lu <hongjiu.lu@intel.com>
936
937 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
938 Don't use a removed section.
939
a6e1b90f
L
9402005-05-09 H.J. Lu <hongjiu.lu@intel.com>
941
942 * ldmain.c (reloc_overflow): Use output_bfd if the symbol
943 is defined in the ABS section.
944
c18bae34
L
9452005-05-06 H.J. Lu <hongjiu.lu@intel.com>
946
947 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
948 Put back !link_info.relocatable.
949
4ef24a2e
L
9502005-05-06 H.J. Lu <hongjiu.lu@intel.com>
951
3f693ed5 952 PR 878
4ef24a2e
L
953 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
954 Just check link_info.executable.
955
e06fb9c3
NC
9562005-05-06 Nick Clifton <nickc@redhat.com>
957
958 * Update the address and phone number of the FSF organization in
959 the GPL notices in the following files:
960 aclocal.m4, deffile.h, deffilep.y, fdl.texi, ld.h, ldcref.c,
961 ldctor.c, ldctor.h, ldemul.c, ldexp.c, ldexp.h, ldfile.c,
962 ldfile.h, 20ldgram.y, ldint.texinfo, ldlang.c, ldlang.h, ldlex.h,
963 ldlex.l, ldmain.c, ldmain.h, ldmisc.c, ldmisc.h, ldver.c, ldver.h,
964 ldwrite.c, ldwrite.h, lexsup.c, mri.c, mri.h, pe-dll.c, pe-dll.h,
965 sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
966 emultempl/armcoff.em, emultempl/armelf.em, emultempl/beos.em,
967 emultempl/crxelf.em, emultempl/elf32.em, emultempl/generic.em,
968 emultempl/gld960.em, emultempl/gld960c.em, emultempl/hppaelf.em,
969 emultempl/ia64elf.em, emultempl/irix.em, emultempl/linux.em,
970 emultempl/lnk960.em, emultempl/m68hc1xelf.em,
971 emultempl/m68kcoff.em, emultempl/m68kelf.em,
972 emultempl/mipsecoff.em, emultempl/mmix-elfnmmo.em,
973 emultempl/mmixelf.em, emultempl/mmo.em, emultempl/needrelax.em,
974 emultempl/pe.em, emultempl/ppc32elf.em, emultempl/ppc64elf.em,
975 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em,
976 emultempl/vanilla.em, emultempl/xtensaelf.em
977
01d9ad14
L
9782005-05-05 H.J. Lu <hongjiu.lu@intel.com>
979
980 * scripttempl/elf.sc: Document the usage of __bss_start.
981
eac338cf
PB
9822005-05-05 Paul Brook <paul@codesourcery.com>
983
984 * Makefile.am: Add eelf_i386_vxworks.
985 * Makefile.in: Regenerate.
986 * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
987 * emulparams/elf_i386_vxworks.sh: New file.
988 * emulparams/vxworks.sh: New file.
989 * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
990
f652615e
L
9912005-05-04 H.J. Lu <hongjiu.lu@intel.com>
992
993 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
994 Call _bfd_elf_provide_section_bound_symbols.
995
8423293d
AM
9962005-05-04 Alan Modra <amodra@bigpond.net.au>
997
998 * ldemul.c: Include bfdlink.h.
999 (ldemul_before_allocation): Assume before_allocation is non-zero.
1000 (before_allocation_default): Call strip_excluded_output_sections.
1001 * ldlang.c (stripped_excluded_sections): New variable.
1002 (lang_add_section): Build input section list for each output
1003 section, attached via map_head and map_tail pointers.
1004 (strip_excluded_output_sections): Make global. Traverse the
1005 input section lists to find which output sections can go. Clear
1006 link_order pointers and set stripped_excluded_sections.
1007 (lang_process): Call strip_excluded_output_sections.
1008 * ldlang.h (strip_excluded_output_sections): Declare.
1009 * ldwrite.c: Update throuhout for link_order_head -> map_head change.
1010 * emultempl/aix.em (before_allocation): Call
1011 strip_excluded_output_sections.
1012 * emultempl/armcoff.em (before_allocation): Likewise.
1013 * emultempl/beos.em (before_allocation): Likewise.
1014 * emultempl/linux.em (before_allocation): Likewise.
1015 * emultempl/pe.em (before_allocation): Likewise.
1016 * emultempl/sunos.em (before_allocation): Likewise.
1017 * emultempl/elf32.em (before_allocation): Likewise. Call
1018 bfd_elf_size_dynsym_hash_dynstr too.
1019 * emultempl/lnk960.em (lnk960_before_allocation): Delete.
1020 (ld_lnk960): Use before_allocation_default.
1021
5daa8fe7
L
10222005-05-02 H.J. Lu <hongjiu.lu@intel.com>
1023
1024 * emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
1025 Updated for bfd_section_list_remove change.
1026 * ldlang.c (lang_insert_orphan): Likewise.
1027 (strip_excluded_output_sections): Likewise.
1028 (sort_sections_by_lma): New.
1029 (lang_check_section_addresses): Sort the sections before
1030 checking addresses.
1031
009b6a7a
DJ
10322005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
1033
1034 * configure.tgt: Add h8300*-*-rtemscoff.
1035 Switch h8300*-*-rtems* to elf.
1036
279e75dc
BE
10372005-04-29 Ben Elliston <bje@au.ibm.com>
1038
1039 * ldgram.y (lang_memory_region_type): Make static.
1040 (ldgram_want_filename): Likewise.
1041 * ldemul.c (ld_emulation): Make static.
1042 * ldfile.h (ldfile_find_command_file): Remove extern.
1043 * ldfile.c (ldfile_find_command_file): Make static.
1044 * ldlang.h (unique_section_list): Remove extern declaration.
1045 * ldlang.c (unique_section_list): Make static.
1046 * mri.h (symbol_truncate): Remove extern declaration.
1047 * mri.c (symbol_truncate): Make static.
1048 (order, only_load, address, alias): Likewise.
1049 (alignment, subalignment): Likewise.
1050
4a2afbc1
L
10512005-04-27 H.J. Lu <hongjiu.lu@intel.com>
1052
1053 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1054 Use the first SEC_ALLOC section which isn't SEC_READONLY or the
1055 last SEC_ALLOC section if such a section doesn't exist.
1056
fd9719b1
MK
10572005-04-24 Mark Kettenis <kettenis@gnu.org>
1058
1059 * configure.host: Add *-*-openbsd support.
1060
33bfe774
JB
10612005-04-15 Julian Brown <julian@codesourcery.com>
1062
1063 * ld.texinfo: Document --use-blx.
1064 * emultempl/armelf.em (use_blx): New variable.
1065 (arm_elf_create_output_section_statements): Communicate value of
1066 use_blx to bfd.
1067 (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
1068 (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
1069 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
1070
9e9b66a9
AM
10712005-04-14 Alan Modra <amodra@bigpond.net.au>
1072
1073 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
1074 * configure.in: Include ../bfd/warning.m4 contents.
1075 * Makefile.in: Regenerate.
1076 * configure: Regenerate.
1077
ceae3e33
AM
10782005-04-12 Alan Modra <amodra@bigpond.net.au>
1079
1080 * Makefile.am: Run "make dep-am".
1081 (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
1082 * Makefile.in: Regenerate.
1083 * config.in: Regenerate.
1084
7cedef86
AM
10852005-04-11 Alan Modra <amodra@bigpond.net.au>
1086
1087 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
1088 as_needed libs that were not needed.
1089 (gld${EMULATION_NAME}_check_needed): Likewise.
1090
187ffe95
NC
10912005-04-07 Nick Clifton <nickc@redhat.com>
1092
1093 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
0cf7d72c 1094 ldfile.h can use the lang_input_statement type.
187ffe95 1095
72223188
JJ
10962005-04-06 Jakub Jelinek <jakub@redhat.com>
1097
1098 * ldlang.c: Formatting.
1099 (walk_wild_consider_section): Remember return value from wildcardp.
1100 (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
1101 (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
1102
11032005-04-06 Robert O'Callahan <rocallahan@novell.com>
1104
1105 * ld.h (lean_section_userdata_type): Remove.
1106 (fat_section_userdata_type): Remove file field.
1107 (SECTION_USERDATA_SIZE): Remove.
1108 * ldlang.c (init_os): Eliminate initialization of unused
1109 lean_section_userdata_type.
1110
1111 * ldlang.h (callback_t, walk_wild_section_handler_t): New
1112 typedefs.
1113 (struct lang_wild_statement_struct): Add walk_wild_section_handler
1114 and handler_data fields.
1115 * ldlang.c (callback_t): Removed.
1116 (walk_wild_consider_section, walk_wild_section_general,
1117 section_iterator_callback, find_section, is_simple_wild,
1118 match_simple_wild, walk_wild_section_specs1_wild0,
1119 walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
1120 walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
1121 wild_spec_can_overlap, analyze_walk_wild_section_handler): New
1122 functions.
1123 (lang_add_wild): Call analyze_walk_wild_section_handler.
1124 (walk_wild_section): Renamed to walk_wild_section_general and
1125 created a wrapper function.
1126 (section_iterator_callback_data): New typedef.
1127
34875e64
NC
11282005-04-04 Nick Clifton <nickc@redhat.com>
1129
1130 * configure.in: Add a check for <unistd.h> providing a prototype
1131 for getopt() which is compatible with the one in
1132 include/getopt.h. If so then define HAVE_DECL_GETOPT.
1133 * configure: Regenerate.
1134 * config.in (HAVE_DECL_GETOPT): Add.
1135 * ldemul.c: Include config.h
1136 * lexsup.c: Likewise.
1137 * emultempl/elf32.sc: Likewise.
1138
deb04cdb
AM
11392005-03-29 Alan Modra <amodra@bigpond.net.au>
1140
1141 * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
1142 New function, extracted from static void gld${EMULATION_NAME}_finish.
1143 (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
1144 (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
1145 * emultempl/ppc64elf.em: Revert last change.
1146 (ppc_layout_sections_again): Use
1147 gld${EMULATION_NAME}_layout_sections_again.
1148 (ppc_finish): Don't call gld${EMULATION_NAME}_finish. Instead call
1149 gld${EMULATION_NAME}_strip_empty_sections and
1150 gld${EMULATION_NAME}_provide_init_fini_syms.
1151 * emultempl/hppaelf.em: Similarly.
1152
8b4e5e28
AM
11532005-03-29 Alan Modra <amodra@bigpond.net.au>
1154
1155 * emultempl/ppc64elf.em (need_laying_out): Delete. Remove all refs.
1156 (ppc_finish): Don't call bfd_elf_discard_info.
1157 * emultempl/hppaelf.em: Similarly.
1158
510a939b
NC
11592005-03-24 Nick Clifton <nickc@redhat.com>
1160
1161 * po/fr.po: Updated French translation.
1162
ed84e695
NC
11632005-03-23 Mike Frysinger <vapier@gentoo.org>
1164 Nick Clifton <nickc@redhat.com>
1165
1166 * configure.host: Accept any C library to accompany a GNU Linux
1167 implementation, not just the GNU C library.
1168 * configure.tgt: Likewise.
1169 * emultempl/elf32.em: Likewise.
deb04cdb 1170
81e1b023
L
11712005-03-22 H.J. Lu <hongjiu.lu@intel.com>
1172
1173 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
1174 (gld${EMULATION_NAME}_finish): Call
1175 gld${EMULATION_NAME}_provide_bound_symbols to provide
1176 __preinit_array_start, __preinit_array_end, __init_array_start,
1177 __init_array_end, __fini_array_start and __fini_array_end.
1178
1179 * scripttempl/elf.sc: Don't provide __preinit_array_start,
1180 __preinit_array_end, __init_array_start, __init_array_end,
1181 __fini_array_start nor __fini_array_end.
1182
11d2f718
AM
11832005-03-23 Alan Modra <amodra@bigpond.net.au>
1184
1185 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
1186 SEC_EXCLUDE on .gnu.warning sections.
1187
644285ef
AM
11882005-03-22 Alan Modra <amodra@bigpond.net.au>
1189
1190 * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
1191
c9a2f333
AM
11922005-03-21 Alan Modra <amodra@bigpond.net.au>
1193
1194 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
1195 function.
1196 (LDEMUL_AFTER_ALLOCATION): Define.
1197
b1ab9777
AM
11982005-03-21 Alan Modra <amodra@bigpond.net.au>
1199
1200 * emultempl/ppc64elf.em (ppc_finish): Rename from
1201 gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
1202 (LDEMUL_FINISH): Update.
1203 * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
1204 * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
1205
2a2a7c94
JB
12062005-03-18 Julian Brown <julian@codesourcery.com>
1207
1208 * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
1209 .rel.fini_array.
1210 (.rela.dyn): Add .rela.init_array, .rela.fini_array.
1211 (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
1212
98720c64
L
12132005-03-18 H.J. Lu <hongjiu.lu@intel.com>
1214
1215 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
1216 bfd_section when removing unused empty output sections for
1217 non-relocatable link.
1218
41c7ba7c
AM
12192005-03-19 Alan Modra <amodra@bigpond.net.au>
1220
1221 * ldlang.c (lang_insert_orphan): Use old section_tail rather than
1222 traversing the bfd section list to find pointer to new section.
1223
0fb53118
AM
12242005-03-18 Alan Modra <amodra@bigpond.net.au>
1225
1226 * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
1227 input sections into .sdata and .sbss output respectively.
1228
de7f8cc8
BW
12292005-03-16 David Heine <dlheine@tensilica.com>
1230 Bob Wilson <bob.wilson@acm.org>
1231
1232 * ldlang.c (IGNORE_SECTION): Remove check for zero size.
1233 (lang_check_section_addresses): Ignore zero size sections here.
1234
57316bff
L
12352005-03-16 H.J. Lu <hongjiu.lu@intel.com>
1236
1237 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
1238 unused empty output sections for non-relocatable link.
1239
1240 * ld.h (args_type): Remove gc_sections.
1241
1242 * ldlang.c (lang_mark_used_section): New.
1243 (lang_gc_sections): Use link_info.gc_sections instead of
1244 command_line.gc_sections.
1245 * ldmain.c (main): Likewise.
1246 * lexsup.c (parse_args): Likewise.
1247 * ldlang.c (lang_process): Call lang_mark_used_section.
1248
1249 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
1250
1ad12f97
NC
12512005-03-16 Nick Clifton <nickc@redhat.com>
1252 Ben Elliston <bje@au.ibm.com>
1253
569acd2c 1254 * configure.in (werror): New switch: Add -Werror to the
1ad12f97 1255 compiler command line. Enabled by default. Disable via
569acd2c 1256 --disable-werror.
1ad12f97
NC
1257 * configure: Regenerate.
1258
cb2d1ef2
AM
12592005-03-16 Alan Modra <amodra@bigpond.net.au>
1260
1261 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
1262 (OTHER_RELRO_SECTIONS): Set this instead.
1263
957d91c1
NC
12642005-03-15 Nick Clifton <nickc@redhat.com>
1265
1266 * NEWS: Add cutoff for changes in 2.16 release.
1267
34723071
NC
12682005-03-15 Mikkel Krautz <krautz@gmail.com>
1269
1270 * configure.tgt (x86_64-elf): Add target.
1271
729ae8d2
AM
12722005-03-15 Alan Modra <amodra@bigpond.net.au>
1273
1274 * po/es.po: Commit new Spanish translation.
1275
8b3d8fa8
AM
12762005-03-14 Alan Modra <amodra@bigpond.net.au>
1277
1278 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
1279 Tidy etree_assert case.
1280
882cb63e
AM
12812005-03-14 Alan Modra <amodra@bigpond.net.au>
1282
1283 * po/tr.po: Commit new Turkish translation.
1284
61c84b48
DJ
12852005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
1286
1287 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
1288 * Makefile.in: Regenerated.
1289 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
1290
41c9e29d
NC
12912005-03-07 Nick Clifton <nickc@redhat.com>
1292
1293 * po/fr.po: Updated translation.
1294
06647dfd
AM
12952005-03-05 Alan Modra <amodra@bigpond.net.au>
1296
1297 * po/ld.pot: Regenerate.
1298
bb14f524
JB
12992005-03-02 Jan Beulich <jbeulich@novell.com>
1300
1301 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
1302 * pe-dll.c (pe_dll_generate_implib): Likewise.
1303
0ef622cb
BE
13042005-02-24 Ben Elliston <bje@au.ibm.com>
1305
1306 * ldfile.c: Remove GNU960 conditional code.
1307 * emultempl/gld960.em: Likewise.
1308 * emultempl/gld960c.em: Likewise.
1309 * emultempl/lnk960.em: Likewise.
1310
f3f4bcca
NC
13112005-02-24 Nick Clifton <nickc@redhat.com>
1312
1313 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
1314 empty string from calls to concat.
1315
13162005-02-23 Nick Clifton <nickc@redhat.com>
1317
1318 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
1319 arguments passed to concat() with a NULL.
1320
1321 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
1322 define types needed by ldfile.h
1323
47639182
AM
13242005-02-23 Alan Modra <amodra@bigpond.net.au>
1325
1326 * pe-dll.c: Warning fixes.
1327 * emultempl/sunos.em: Likewise.
1328
ace66bb2
DJ
13292005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
1330
1331 * ldlang.c (section_already_linked): Don't call
1332 bfd_section_already_linked for dynamic objects.
1333
5718918d
AM
13342005-02-22 Alan Modra <amodra@bigpond.net.au>
1335
1336 * ldexp.c: Warning fixes.
1337 * ldwrite.c: Likewise.
1338 * emultempl/elf32.em: Likewise.
1339
ebe372c1
L
13402005-02-21 H.J. Lu <hongjiu.lu@intel.com>
1341
1342 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
1343 tic54x input only.
1344 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
1345 and ECOFF output only.
1346
0ca2f5d5
AM
13472005-02-21 Alan Modra <amodra@bigpond.net.au>
1348
1349 * config.in: Regenerate.
1350 * configure: Regenerate.
1351
fbbb9ac5
ZW
13522005-02-17 Zack Weinberg <zack@codesourcery.com>
1353
1354 * ldexp.c (assigning_to_dot): New global flag.
1355 (fold_name): If assigning_to_dot is true, object immediately to
1356 an undefined symbol.
1357 (exp_fold_tree): Set and clear assigning_to_dot around the
1358 recursive call to exp_fold_tree to process the right-hand side
1359 of an assignment to the location counter.
1360
c68dac40
PB
13612005-02-17 Paul Brook <paul@codesourcery.com>
1362
1363 * scripttempl/armbpabi.sc: Add dummy name to version block.
1364
20c2cbe3
AM
13652005-02-17 Alan Modra <amodra@bigpond.net.au>
1366
1367 * ldexp.c (new_abs): Init new.str.
1368
0b48acfe
MM
13692005-02-15 Mark Mitchell <mark@codesourcery.com>
1370
1371 * configure.in (AC_CHECK_FUNCS): Add glob.
1372 * configure: Regenerated.
1373 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
1374 not defined.
1375 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
1376 if HAVE_GLOB is not defined.
fbbb9ac5 1377
ff925e69
KK
13782005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1379
1380 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
1381 lib_path if NATIVE is yes.
1382
92b7a70f
AM
13832005-02-16 Alan Modra <amodra@bigpond.net.au>
1384
1385 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
1386 an error creating fake bfd fatal.
1387 (ppc_before_allocation): Continue on after errors.
1388 (gld${EMULATION_NAME}_finish): Likewise.
1389
297ba367
NC
13902005-02-15 Nick Clifton <nickc@redhat.com>
1391
1392 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
1393 not declared. It is not used and its presence causes a compile
1394 time warning.
fbbb9ac5 1395
9eabd475
ZW
13962005-02-11 Zack Weinberg <zack@codesourcery.com>
1397
1398 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
1399 If st.st_ino is zero, do not treat the library as a duplicate.
1400
d457dcf6
JJ
14012005-02-10 Jakub Jelinek <jakub@redhat.com>
1402
1403 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1404 Set BFD_LINKER_CREATED on the stubs bfd.
1405 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
1406 Likewise.
1407
4e5db43b
MM
14082005-02-08 Mark Mitchell <mark@codesourcery.com>
1409
1410 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
9eabd475 1411 local.
4e5db43b
MM
1412 (Image$$ER_RO$$Base): Define whenever RELOCATING.
1413 (Image$$ER_RO$$Limit): Likewise.
1414 (SHT$$INIT_ARRAY$$Base): Likewise.
1415 (SHT$$INIT_ARRAY$$Limit): Likeise.
1416
4297f9f1
BE
14172005-02-10 Ben Elliston <bje@au.ibm.com>
1418
1419 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
1420
1c7c5e5b
RS
14212005-02-08 Richard Sandiford <rsandifo@redhat.com>
1422
1423 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
1424 to include o32 and n64 emulations.
1425 (mips64*-*-linux-gnu*): Likewise.
1426
300475fe
HPN
14272005-02-08 Hans-Peter Nilsson <hp@axis.com>
1428
1429 * ldmain.c (warning_callback, warning_find_reloc): Prepend
1430 "warning: " to warning messages.
1431
4ea42fb7
AM
14322005-02-04 Alan Modra <amodra@bigpond.net.au>
1433
1434 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
1435 look up symbol for etree_provide here.
1436
161f49a3
DJ
14372005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
1438
1439 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
1440
73ae6183
NC
14412005-02-01 Edward Welbourne <eddy@opera.com>
1442 Nick Clifton <nickc@redhat.com>
1443
1444 * ld.texinfo (Source Code Reference): New node describing how to
1445 access linker script defined variables from source code.
1446
77cfaee6
AM
14472005-02-01 Alan Modra <amodra@bigpond.net.au>
1448
1449 * ld.texinfo: Clarify --as-needed operation.
1450
c46f8c51
AC
14512005-01-31 Andrew Cagney <cagney@gnu.org>
1452
1453 * configure: Regenerate to track ../gettext.m4.
1454
d342277e
NC
14552005-01-31 Nick Clifton <nickc@redhat.com>
1456
1457 * ldver.c (ldversion): Bump reported copyright date to 2005.
1458
d6486796
NC
14592005-01-31 Nick Clifton <nickc@redhat.com>
1460
1461 * configure.tgt: Remove obsolete targets m68k-lynxos and
1462 sparc-lynxos.
1463
319850b4
JB
14642005-01-28 Julian Brown <julian@codesourcery.com>
1465
1466 * emultempl/armelf.em (fix_v4bx): New variable.
1467 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
1468 value to bfd.
1469 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
1470 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
1471 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
9eabd475 1472 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
319850b4
JB
1473 * NEWS: Mention --fix-v4bx.
1474 * ld.texinfo: Document --fix-v4bx.
1475
dc4c9c19
MM
14762005-01-25 Mark Mitchell <mark@codesourcery.com>
1477
1478 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
1479 as to include .ARM.exidx$${Base,Limit}.
1480 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
1481 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
1482 Put .init_array, .fini_array, etc. into the read-only data
9eabd475
ZW
1483 segment.
1484
7e9f0867
AM
14852005-01-25 Alan Modra <amodra@bigpond.net.au>
1486
1487 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
1488 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
1489 only needed by an as-needed lib that didn't get linked.
1490
7e69709c
AM
14912005-01-23 Alan Modra <amodra@bigpond.net.au>
1492
1493 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
1494 __DTOR_LIST__ description.
1495
b5666f2f
AM
14962005-01-23 Alan Modra <amodra@bigpond.net.au>
1497
1498 * ld.texinfo (Location Counter <dot outside sections>): Document
1499 effects of orphan section placement, and ". = ." workaround.
1500 * Makefile.in: Regenerate.
1501
4e25343c
RS
15022005-01-22 Richard Sandiford <rsandifo@redhat.com>
1503
1504 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
1505 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
1506
b717d30e
JJ
15072005-01-21 Jakub Jelinek <jakub@redhat.com>
1508
1509 * ldgram.y (AS_NEEDED): New token.
1510 (input_list): Handle AS_NEEDED ( input_list ).
1511 * ldlex.l (AS_NEEDED): Add.
1512 * ld.texinfo: Document AS_NEEDED ().
1513 * NEWS: Mention AS_NEEDED ().
1514
7a64f7b8
BE
15152005-01-21 Ben Elliston <bje@au.ibm.com>
1516
1517 * ldlang.c (lang_reasonable_defaults): Remove.
1518 (lang_process): Don't call lang_reasonable_defaults.
1519
1520 * ldexp.c (exp_assop): Remove #if 0'd code.
1521 (exp_print_tree): Likewise.
1522 * ldlang.c (lang_memory_region_lookup): Likewise.
1523 (open_output): Likewise.
1524 (lang_do_assignments_1): Likewise.
1525 (lang_place_orphans): Likewise.
1526 (lang_enter_output_section_statement): Likewise.
1527 (lang_reasonable_defaults): Likewise.
1528 * ldlang.h (struct lang_input_statement_struct): Likewise.
1529 * mri.c (mri_draw_tree): Likewise.
1530 (mri_load): Likewise.
1531 * pe-dll.c (generate_reloc): Likewise.
1532 (make_import_fixup_entry): Likewise.
1533 (pe_as16): Likewise.
1534 * emultempl/beos.em (set_pe_subsystem): Likewise.
1535 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
1536 * emultempl/pe.em: Likewise.
1537 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
1538
a154a8ad
MM
15392005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1540
1541 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
1542 (earmelfb_linux_eabi.c): New target.
1543 * Makefile.in: Regenerated.
1544 * configure.tgt (arm*b-*-linux-gnueabi): New target.
1545 * emulparams/armelfb_linux_eabi.sh: New file.
1546
9c183183
AM
15472005-01-20 Nick Hudson <skrll@netbsd.org>
1548
1549 PR ld/676
1550 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1551 Handle bfd_elf32_hppa_nbsd_vec.
1552
e2243057
RS
15532005-01-19 Richard Sandiford <rsandifo@redhat.com>
1554
1555 * ldmain.h (ld_sysroot): Change type to a constant string.
1556 * ldmain.c (ld_sysroot): Likewise.
1557 (get_relative_sysroot, get_sysroot): New functions, adding command-line
1558 support for changing the sysroot.
1559 (main): Call the new functions.
1560 * lexsup.c (OPTION_SYSROOT): New.
1561 (ld_options): Add --sysroot.
1562 (parse_args): Add a dummy handler for it.
1563 * ld.texinfo (--sysroot): Document.
1564 * NEWS: Mention the new --sysroot option.
1565
1449d79b
AM
15662005-01-18 Alan Modra <amodra@bigpond.net.au>
1567
1568 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
1569 (lang_place_orphans): Don't abort on just_syms_flag, instead call
1570 bfd_link_just_syms.
1571
a880c748
DS
15722005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
1573
1574 * defilep.y (def_name, def_library): Combine into...
1575 (def_image_name): New function. Strip name to basename,
1576 with warning.
1577
07baa8ee
MK
15782005-01-12 Mark Kettenis <kettenis@gnu.org>
1579
1580 * configure.in: Be sure to invoke config.sub using the shell.
1581 * configure: Regenerate.
1582
e9b181b8
AM
15832005-01-11 Alan Modra <amodra@bigpond.net.au>
1584
1585 * configure.host: Correct sed patterns for last change.
1586
59ef2528
NC
15872005-01-10 Nick Clifton <nickc@redhat.com>
1588
1589 PR binutils/609
1590 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
1591 to determine whether config.make_executable should be set to FALSE in
1592 conjunction with config.fatal_warnings.
1593 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
1594 (einfo): Pass TRUE as the extra argument.
1595
71a2d53a
NC
15962005-01-10 Greg Schaffer <gschafer@zip.com.au>
1597
1598 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
1599 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
1600 (ia64-*-aix): Delete - this target is obsolete, and would be
1601 broken by this patch.
1602
d6d0b336
EB
16032005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1604
1605 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
1606 (sparc64-sun-solaris2*): New host.
1607
4e7fd91e
PB
16082005-01-06 Paul Brook <paul@codesourcery.com>
1609
1610 * Makefie.am: Add earmelf_vxworks.
1611 * Makefile.in: Regenerate.
1612 * configure.tgt: Make arm-*-vxworks a separate case.
1613 * emulparams/armelf_vxworks.sh: New function.
1614
4c52953f
AM
16152005-01-06 Alan Modra <amodra@bigpond.net.au>
1616
1617 * emultempl/ppc64elf.em (no_multi_toc): New var.
1618 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
1619 (OPTION_NO_MULTI_TOC): Define.
1620 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
1621 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
1622
98d87ee7
NC
16232005-01-05 Nick Clifton <nickc@redhat.com>
1624
1625 PR binutils/614
1626 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
4c52953f 1627 Standard's specification for parsable error messages.
98d87ee7 1628
5f81b918
PB
16292005-01-04 Paul Brook <paul@codesourcery.com>
1630
1631 * Makefile.am: Correct dependency for earmsymbian.c.
1632 * Makefile.in: Regenerate.
1633
2af59bab
DS
16342004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
1635
1636 * emultempl/pe.em (set_pe_subsystem): Change second arg to
1637 lang_add_entry to FALSE.
1638
c38f024c
NC
16392004-12-23 Nick Clifton <nickc@redhat.com>
1640
1641 PR 600
1642 * emulparams/shelf.sh (.stack): Increase stack start address to
1643 0x300000.
1644
550bdea6
NC
16452004-12-20 Nick Clifton <nickc@redhat.com>
1646
1647 * ldmain.c (main): Issue an error message if -static and -shared
1648 are used together.
1649
e3070fef
JJ
16502004-12-17 Jakub Jelinek <jakub@redhat.com>
1651
1652 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
1653 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
1654 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
1655 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
1656 PT_GNU_RELRO segment end.
1657
2fbd2a87
NC
16582004-12-14 P.J. Darcy <darcypj@us.ibm.com>
1659
1660 * configure.tgt: Add s390x-ibm-tpf support.
1661
f2763b01
NC
16622004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
1663
1664 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
1665 BFD.
1666
cb9faf63
BE
16672004-12-07 Ben Elliston <bje@gnu.org>
1668
1669 * ldemul.h: Forward declare struct option.
1670
02f80eef
DS
16712004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
1672
1673 * scripttempl/pe.sc (.data): Add .jcr subsection.
1674
dea514f5
PB
16752004-11-30 Paul Brook <paul@codesourcery.com>
1676
1677 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
1678
32118081
NC
16792004-11-30 Tero Niemela <tero_niemela@yahoo.com>
1680
1681 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
1682 * Makefile.in: Regenerate.
1683
33f362e1
NC
16842004-11-26 Melissa Mears <asterisk@graces.dricas.com>
1685
1686 * emultempl/pe.em: Add --subsystem:xbox as well as
1687 --subsystem:%d.
1688 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
1689 and numeric subsystems.
1690
3eda52aa
AM
16912004-11-24 Alan Modra <amodra@bigpond.net.au>
1692
1693 * ldexp.c (fold_name): Correct PR 338 fix.
1694
6b3221b4
MM
16952004-11-19 Mark Mitchell <mark@codesourcery.com>
1696
1697 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
1698 (earmelf_linux_eabi.c): New target.
1699 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
1700 * emulparams/armelf_linux_eabi.sh: New file.
1701 * Makefile.in: Regenerated.
1702
9cd6d51a
NC
17032004-11-19 Nick Clifton <nickc@redhat.com>
1704
1705 PR 518
1706 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
1707 LENGTH fields in the MEMORY command, to explicitly state that
1708 symbols cannot be used in their expressions.
1709
3ec57632
NC
17102004-11-19 Jon Beniston <jon@beniston.com>
1711
1712 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
1713 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
4c52953f 1714 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
3ec57632
NC
1715 which return the length and origin of a memory.
1716 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
1717 * NEWS: Mention support for ORIGIN and LENGTH operators.
1718
b7693d02
DJ
17192004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
1720
1721 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
1722 a dynamic object for stubs.
1723
fc0e6df6
PB
17242004-11-04 Paul Brook <paul@codesourcery.com>
1725
1726 * ld.texinfo: Document --default-imported-symver.
1727 * ldmain.c (main): Set link_info.default_imported_symver.
1728 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
1729 (ld_options): Add --default-imported-symver.
1730 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
1731
7499d566
NC
17322004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
1733 Vineet Sharma <vineets@noida.hcltech.com>
1734
1735 * Makefile.am: Add entries for new maxq-coff target.
1736 * Makefile.in: Regenerate.
1737 * configure.tgt: Add support for maxq.
1738 * emulparams/maxqcoff.sh: New File.
1739 * scripttempl/maxqcoff.sc: New linker script for target maxq.
1740 * NEWS: Mention the new target.
1741
7f266840
DJ
17422004-11-04 Daniel Jacobowitz <dan@debian.org>
1743
1744 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
1745 (earmelf_oabi.c): Remove rule.
1746 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
1747 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
1748 * Makefile.in: Regenerated.
1749
a0055007
HPN
17502004-11-04 Hans-Peter Nilsson <hp@axis.com>
1751
1752 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
1753 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
1754 (FINI_START): Ditto.
1755 (INIT_END): Remove emitted "jump [sp+]".
1756 (FINI_END): Ditto.
1757
c5614fa4
AM
17582004-11-04 Alan Modra <amodra@bigpond.net.au>
1759
1760 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
1761 (no_opd_opt, no_toc_opt): New static vars.
1762 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
1763 ppc64_elf_edit_toc.
1764 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
1765 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
1766 (PARSE_AND_LIST_OPTIONS): Describe new options.
1767 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1768
7a5df8d0
NC
17692004-10-27 Nick Clifton <nickc@redhat.com>
1770
1771 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
1772 parameter to invocation of lang_section_start.
1773 * emultempl/aix.em (_handle_option): Likewise.
c5614fa4 1774
7a5df8d0
NC
1775 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
1776 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
1777 * Makefile.in: Regenerate.
1778
6f372e19
MM
17792004-10-26 Mark Mitchell <mark@codesourcery.com>
1780
1781 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
1782 __exidx_{start,end} when not relocating.
1783
ba916c8a
MM
17842004-10-25 Mark Mitchell <mark@codesourcery.com>
1785
1786 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
1787 * ldexp.h (segment_type): New type.
1788 (segments): New variable.
1789 * ldexp.c (segments): New variable.
1790 (exp_print_token): Handle SEGMENT_START.
1791 (fold_binary): Likewise.
1792 * ldgram.y (SEGMENT_START): Declare it as a token.
1793 (exp): Handle SEGMENT_START.
1794 * ldlang.h (lang_address_statement_type): Add segment field.
1795 (lang_section_start): Change prototype.
1796 * ldlang.c (map_input_to_output_sections): Do not process section
1797 assignments if a corresponding SEGMENT_START has already been
1798 seen.
1799 (lang_section_start): Add segment parameter.
1800 * ldlex.l (SEGMENT_START): Add it.
1801 * lexsup.c (seg_segment_start): New function.
1802 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
1803 * ld.texinfo (SEGMENT_START): Document it.
1804 * emulparams/armsymbian.sh (EMBEDDED): Set it.
1805 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
1806 base addresses. Do not map relocations.
1807 * NEWS: Mention SEGMENT_START.
1808
3e3b46e5
PB
18092004-10-26 Paul Brook <paul@codesourcery.com>
1810
1811 * ld.texinfo: Document --default-symver.
1812 * ldmain.c (main): Set link_info.create_default_symver.
1813 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
1814 (ld_options): Add default-symver.
1815 (parse_args): Handle OPTION_DEFAULT_SYMVER.
1816
7b0eaa22
DS
18172004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
1818
1819 * pe-dll.c (process_def_file): Don't export all symbols by default if
1820 building a position-independent executable.
1821
dfeffb9f
L
18222004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1823
1824 PR 463
1825 * ldmain.c (reloc_overflow): Accept a pointer to struct
1826 bfd_link_hash_entry. Report symbol location for relocation
1827 overflow.
1828
dc4f76f8
L
18292004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1830
1831 * genscripts.sh (libpath.exp): Really generate for first
1832 emulation only.
1833
2a08daf3
DS
18342004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
1835
1836 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
1837 comparison and replacement of filenames.
1838
532345f2
L
18392004-10-19 H.J. Lu <hongjiu.lu@intel.com>
1840
1841 PR 459
1842 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
1843 option on linker script as the one for linker script.
1844
b58f81ae
DJ
18452004-10-16 Daniel Jacobowitz <dan@debian.org>
1846
1847 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
1848 (check_excluded_libs): New.
1849 (load_symbols): Call check_excluded_libs.
1850 * ldlang.h (add_excluded_libs): New prototype.
1851 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
1852 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
1853 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
1854 * ld.texinfo (Command Line Variables): Document --exclude-libs.
1855 (Options Specific to i386 PE Targets): Remove --exclude-libs.
1856
95c148b4
AM
18572004-10-15 Alan Modra <amodra@bigpond.net.au>
1858
c468c8bc
AM
1859 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
1860 failing link script assert.
1861
95c148b4
AM
1862 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
1863
951e9133
L
18642004-10-14 H.J. Lu <hongjiu.lu@intel.com>
1865
1866 PR 445
1867 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
1868 (SMALL_DATA_DTOR): Set.
1869 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
1870 (SMALL_DATA_DTOR): Unset.
1871 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
1872 after .data. If SMALL_DATA_DTOR is set, move .dtors after
1873 .data.
1874
afd7a018
AM
18752004-10-14 Alan Modra <amodra@bigpond.net.au>
1876
1877 PR 63
1878 * ldlang.h (lang_output_section_statement_type): Make "next" a
1879 struct lang_output_section_statement_struct *.
1880 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
1881 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
1882 * ldlang.c (lang_output_section_find_1): Adjust for changed
1883 output_section_statement "next".
1884 (strip_excluded_output_sections): Likewise.
1885 (lang_record_phdrs): Likewise.
1886 (lang_output_section_find_by_flags): New function.
1887 (output_prev_sec_find): Move from pe.em. Adjust iterator.
1888 (lang_insert_orphan): New function. Tail end of elf32.em's
1889 place_orphan merged with that from pe.em. Allow bfd_section to
1890 be placed first. New heuristic for placing new output section
1891 statement in existing script, and accompanying split of __start
1892 symbol alignment into a separate assignment to dot.
1893 (lang_add_section): Consistently use output->bfd_section rather than
1894 an alias, section->output_section.
1895 (map_input_to_output_sections): Rename overly long arg. Move
1896 initialization of data_statement output section to here..
1897 (lang_check_section_addresses): ..from here.
1898 (print_assignment): Correct printing of etree_assert.
1899 (print_all_symbols): Don't bomb if userdata is NULL.
1900 (IGNORE_SECTION): Rearrange.
1901 * emultempl/elf32.em (output_rel_find): Adjust interator.
1902 (output_prev_sec_find): Delete.
1903 (struct orphan_save): Delete.
1904 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
1905 flags without creating a duplicate output section statement.
1906 Revise code holding history of various orphan section placements.
1907 Allow orphan sections to place before script specified output
1908 sections. Call lang_output_section_find_by_flags when placement
1909 by name fails. Use lang_insert_orphan.
1910 * emultempl/mmo.em (output_prev_sec_find): Delete.
1911 (struct orphan_save): Delete.
1912 (mmo_place_orphan): Revise code holding history of orphan placement.
1913 Allow orphans to place before existing output sections. Use
1914 lang_insert_orphan.
1915 * emultempl/pe.em (output_prev_sec_find): Delete.
1916 (struct orphan_save): Delete.
1917 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
1918 lang_insert_orphan.
1919
c0042f5d
MM
19202004-10-13 Mark Mitchell <mark@codesourcery.com>
1921
1922 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
1923 loadable segment.
1924
1af699f4
AM
19252004-10-13 Alan Modra <amodra@bigpond.net.au>
1926
1927 PR 44
09c112da
AM
1928 * ldcref.c (check_section_sym_xref): Delete.
1929 (check_local_sym_xref): New function.
1930 (check_nocrossrefs): Adjust call.
1af699f4
AM
1931 * emultempl/pe.em (struct orphan_save): Add os_tail.
1932 (place_orphan): Backport assorted fixes from elf32.em.
1933
7fa3d080
BW
19342004-10-12 Bob Wilson <bob.wilson@acm.org>
1935
1936 * emultempl/xtensaelf.em: Use ISO C90 formatting.
1937
d3989512
JJ
19382004-10-11 Jakub Jelinek <jakub@redhat.com>
1939
563f4125
JJ
1940 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
1941 getline for portability.
1942
d3989512
JJ
1943 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
1944 (gld${EMULATION_NAME}_parse_ld_so_conf,
1945 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
1946 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
1947
6c0c5b1e
AM
19482004-10-11 Alan Modra <amodra@bigpond.net.au>
1949
1950 PR 423
1951 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
1952 rejected when linking statically.
1953
d2b2c203
DJ
19542004-10-08 Daniel Jacobowitz <dan@debian.org>
1955
1956 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
1957
43cd72b9
BW
19582004-10-07 Bob Wilson <bob.wilson@acm.org>
1959
1960 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
1961 assembler-generated longcall sequences. Describe new --size-opt
1962 option.
1963 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
1964 * emultempl/xtensaelf.em (remove_section,
1965 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
1966 elf_xtensa_after_open): New.
1967 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
1968 OPTION_NO_LITERAL_MOVEMENT): Define.
1969 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
1970 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
1971 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
1972 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
1973 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
1974 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
1975 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
1976 * Makefile.am (eelf32xtensa.c): Update dependencies.
1977 * Makefile.in: Regenerate.
1978
8fdd7217 19792004-10-07 Jeff Baker <jbaker@qnx.com>
6c0c5b1e 1980
8fdd7217
NC
1981 * lexsup.c: Handle --warn-shared-textrel option.
1982 (ld_options): Restore alpha sorting of options.
1983 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
1984 * ld.texinfo: Add documentation for --warn-shared-textrel.
1985 * NEWS: Added mention of --warn-shared-textrel option.
1986
339207f8 19872004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
6c0c5b1e 1988
339207f8 1989 * emultempl/crxelf.em (disable_relaxation): Add.
6c0c5b1e 1990 (crxelf_before_allocation): Enable --relax option by default.
339207f8
TL
1991 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
1992 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
1993 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
1994
bcaa7b3e
L
19952004-10-04 H.J. Lu <hongjiu.lu@intel.com>
1996
1997 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
1998 --sort-section name|alignment.
1999
2000 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
2001 --sort-section name|alignment.
2002
2003 * ld.h (sort_type): New enum.
2004 (wildcard_spec): Change the type of `sorted' to sort_type.
2005
2006 * ldgram.y (SORT): Removed.
2007 (SORT_BY_NAME): Added.
2008 (SORT_BY_ALIGNMENT): Added.
2009 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
2010 SORT_BY_ALIGNMENT.
2011 (input_section_spec_no_keep): Updated `sorted'.
2012 (statement): Replace SORT with SORT_BY_NAME.
2013
2014 * ldlang.c (compare_section): New function to compare 2
2015 sections with different sorting schemes.
2016 (wild_sort): Updated. Use compare_section.
2017 (update_wild_statements): New function.
2018 (lang_process): Call update_wild_statements before
2019 map_input_to_output_sections.
2020
2021 * ldlex.l (SORT_BY_NAME): New.
2022 (SORT_BY_ALIGNMENT): New.
2023 (SORT): Return SORT_BY_NAME.
2024
2025 * ldmain.c (sort_section): New. Defined.
2026 (main): Initialize it to none.
2027
2028 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
2029 (ld_options): Add an entry for OPTION_SORT_SECTION.
2030 (parse_args): Handle OPTION_SORT_SECTION.
2031
2032 * mri.c (mri_draw_tree): Updated `sorted'.
2033
a4f5ad88
JJ
20342004-10-04 Jakub Jelinek <jakub@redhat.com>
2035
2036 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
2037 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
2038 argument.
2039 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
2040 and . as second argument.
2041 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
2042 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
2043 (fold_binary): Add it here. Insert padding to make relro_end
2044 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
2045 exp_dataseg_relro_adjust phase just use previously computed
2046 exp_data_seg.base.
2047 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
2048 relro_adjust here. Call lang_size_sections_1 once more if there
2049 was too big padding at DATA_SEGMENT_RELRO_END.
2050 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
2051
40a18ebd
NC
20522004-10-01 Paul Brook <paul@codesourcery.com>
2053
2054 * emulparams/armelf.sh: Add unwinding table sections.
2055
db8acf26
NC
20562004-09-30 Filip Navara <navaraf@reactos.com>
2057
2058 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
2059 correct base address for position independant executables.
2060 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
2061 executables as DLLs.
2062
eeac373a
PB
20632004-09-30 Paul Brook <paul@codesourcery.com>
2064
2065 * ld.texinfo: Document --target2=abs.
2066 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
2067
1ee7cf4c
NC
20682004-09-29 Nick Clifton <nickc@redhat.com>
2069
2070 * scripttempl/xstormy16.sc: Only perform the assignments to the
2071 ROM region when not performing a relocatable link. The ROM region
2072 does not start at address 0, but the sections will.
2073 * Makefile.am: Fix linker script dependency for the generation of
2074 eelf32xstormy16.c.
2075 * Makefile.in: Regenerate.
2076
03098a9a
CF
20772004-09-18 Filip Navara <navaraf@reactos.com>
2078
2079 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
2080 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
2081 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
2082 TARGET_PAGE_SIZE.
2083 * scripttempl/pe.sc: Make the virtual address and file offset synced if
2084 the alignment is lower than the target page size.
2085
f2d3750d
CF
20862004-09-27 Filip Navara <navaraf@reactos.com>
2087
2088 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
2089 def_file_parse to handle pe_def_file if NULL and prevent crash with
2090 invalid .def files.
2091
a23d8409
AM
20922004-09-27 Alan Modra <amodra@bigpond.net.au>
2093
2094 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
2095 --emit-stub-syms automatically when --emit-relocs.
2096
7b89fa29
PB
20972004-09-24 Paul Brook <paul@codeosurcery.com>
2098
2099 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
2100 .fini_array sections.
2101
e2a68bcc
AS
21022004-09-19 Andreas Schwab <schwab@suse.de>
2103
2104 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
2105 base so that relro end is suitably aligned.
2106
3674e28a
PB
21072004-09-17 Paul Brook <paul@codesourcery.com>
2108
2109 * ld.texinfo: Rename arm-specific section. Document --target*
2110 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
2111 * emulparams/armelf_linux.sh: Ditto.
2112 * emulparams/armelf_nbsd.sh: Ditto.
2113 * emultempl/armelf.em: Set default for TARGET2_TYPE.
2114 (target2_type): New variable.
2115 (arm_elf_before_allocation): Don't pass target1_type.
2116 (arm_elf_create_output_section_statements): New function.
2117 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
2118 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
2119 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
2120 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
2121 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
2122 argument to bfd_elf32_arm_process_before_allocation.
2123
f6e332e6
AM
21242004-09-17 Alan Modra <amodra@bigpond.net.au>
2125
2126 * ldexp.c (fold_name): Update u.undef.next refs.
2127 * emultempl/pe.em: Likewise.
2128 * emultempl/sunos.em: Likewise.
2129
9c933e04
AM
21302004-09-17 Alan Modra <amodra@bigpond.net.au>
2131
2132 * Makefile.am: Run "make dep-am".
2133 * Makefile.in: Regenerate.
2134 * config.in: Regenerate.
2135 * configure: Regenerate.
2136 * aclocal.m4: Regenerate.
2137 * po/ld.pot: Regenerate.
2138
1fa32646
TL
21392004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
2140
9c933e04
AM
2141 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
2142 (.fini): Likewise.
2143 (.jcr): Likewise.
1fa32646 2144
b6ee372a
AM
21452004-09-16 Alan Modra <amodra@bigpond.net.au>
2146
2147 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
2148 to bfd_elf32_arm_process_before_allocation call.
2149
9c504268
PB
21502004-09-13 Paul Brook <paul@codesourcery.com>
2151
2152 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
2153 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
2154
d15b04bd
L
21552004-09-07 H.J. Lu <hongjiu.lu@intel.com>
2156
2157 * configure: Regenerated with autconfig 2.13.
2158
875c4330
AS
21592004-09-07 Andreas Schwab <schwab@suse.de>
2160
2161 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
2162 alignment before adjusting DATA_SEGMENT_RELRO_END.
2163
229fcec5
MM
21642004-09-06 Mark Mitchell <mark@codesourcery.com>
2165
2166 * emulparams/armsymbian.sh: Use armbpabi script.
2167 * scripttempl/armbpabi.sc: New script.
2168
e5a52504
MM
21692004-09-02 Mark Mitchell <mark@codesourcery.com>
2170
2171 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
2172 (earmsymbian.c): New target.
2173 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
2174 * Makefile.in: Regenerated.
2175 * aclocal.m4: Likewise.
2176 * configure: Likewise.
2177 * emulparams/armsymbian.sh: New file.
2178
42851540
NC
21792004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
2180
2181 * scripttempl/elf32crx.sc: Edit file with comments.
2182 (.init): Add new section.
2183 (.fini): Likewise.
2184 (.ctor): Control the linkage order.
2185 (.dtor): Likewise.
2186
c034e3e0
NC
21872004-08-27 Nick Clifton <nickc@redhat.com>
2188
2189 * emultempl/pe.em (after_open): Do not assume that either bfd is
9c933e04 2190 an archive.
c034e3e0 2191
688c58f3
AM
21922004-08-26 Alan Modra <amodra@bigpond.net.au>
2193
2194 * ldlang.c (lang_init): Don't compare with TRUE.
2195
b18c562e
NC
21962004-08-25 Dmitry Diky <diwil@spec.ru>
2197
2198 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
2199 * scripttempl/elf32msp430.sc: Add .profiler section definition.
2200
61f5d054
L
22012004-08-24 H.J. Lu <hongjiu.lu@intel.com>
2202
2203 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
2204
e77d3d77
MM
22052004-08-19 Mark Mitchell <mark@codesourcery.com>
2206
2207 * configure.tgt (arm*-*-symbianelf*): New target.
2208 (arm*-*-eabi*): Likewise.
2209
3f764659
JJ
22102004-08-19 Jakub Jelinek <jakub@redhat.com>
2211
2212 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
2213 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
2214 (OPTION_NON_OVERLAPPING_OPD): Define.
2215 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
2216 --non-overlapping-opd option.
2217
a010d60f
AM
22182004-08-18 Alan Modra <amodra@bigpond.net.au>
2219
2220 PR 338
2221 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
2222 was already on the undefs list.
2223
c4e33880
AM
22242004-08-17 Alan Modra <amodra@bigpond.net.au>
2225
2226 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
2227 prefix the symbol field too.
2228
d003868e
AM
22292004-08-13 Alan Modra <amodra@bigpond.net.au>
2230
2231 * ldmain.c (link_callbacks): Remove "error_handler".
2232 * ldmisc.c: Include elf-bfd.h.
2233 (vfinfo): Sort comment. Handle %A. Use %A instead of
2234 bfd_get_section_indent.
2235 (error_handler): Delete.
2236 * ldmisc.h (error_handler): Delete declaration.
2237
99877b66
AM
22382004-08-10 Alan Modra <amodra@bigpond.net.au>
2239
2240 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
2241 ppc64_elf_restore_symbols.
2242
40e45c8b
AM
22432004-08-09 Alan Modra <amodra@bigpond.net.au>
2244
2245 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
2246 .toc is too large on relocatable linking.
2247
ccfa59ea
AM
22482004-08-09 Alan Modra <amodra@bigpond.net.au>
2249
2250 * emultempl/ppc64elf.em (ppc_after_open): Delete.
2251 (LDEMUL_AFTER_OPEN): Don't define.
2252
93fd0973
SC
22532004-08-02 Stephane Carrez <stcarrez@nerim.fr>
2254
2255 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
2256
f1b123db
SC
22572004-08-01 Stephane Carrez <stcarrez@nerim.fr>
2258
2259 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
2260 on power of 2.
2261
e7fbc2bf
JT
22622004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
2263
2264 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
2265
c05e9f04
NC
22662004-07-26 Dmitry Diky <diwil@spec.ru>
2267
2268 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
2269 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
2270 msp430xG439.
2271 * configure.tgt: Likewise.
2272 * emulparams/msp430all.sh: Likewise.
2273 * Makefile.in: Regenerate.
2274
9f61903d
NC
22752004-07-23 Nick Clifton <nickc@redhat.com>
2276
2277 * emultempl/elf32.em (_place_orphan): Use an already existing
2278 section name if that section does not have any flags set.
2279
082b7297
L
22802004-07-21 H.J. Lu <hongjiu.lu@intel.com>
2281
2282 * ldlang.c (already_linked_hash_entry): Removed.
2283 (already_linked): Likewise.
2284 (already_linked_table): Likewise.
2285 (section_already_linked): Call bfd_section_already_linked.
2286 (lang_process): Replace already_linked_table_init with
2287 bfd_section_already_linked_table_init and check return. Replace
2288 already_linked_table_free with bfd_section_already_linked_table_free.
2289
76d7af2d
NC
22902004-07-21 Nick Clifton <nickc@redhat.com>
2291
2292 * ldlang.c (init_os): Make sure that the newly allocated userdata
2293 structure is zeroed out.
2294
14b3c463
L
22952004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2296
2297 * NEWS: Mention the new --add-needed/--no-add-needed and
2298 --as-needed/--no-as-needed options.
2299
e56f61be
L
23002004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2301
2302 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
2303 check the add_needed field.
2304 (dt_needed): New struct.
2305 (gld${EMULATION_NAME}_try_needed): Change the first argument
2306 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
2307 bit in the file where the DT_NEEDED entry comes from.
2308 (gld${EMULATION_NAME}_search_needed): Change the second
2309 argument to a pointer to struct dt_needed.
2310 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
2311 (gld${EMULATION_NAME}_after_open): Likewise.
2312
2313 * ld.texinfo: Add --add-needed document.
2314 * ldlang.c (new_afile): Set p->add_needed.
2315 * ldlang.h (lang_input_statement_type): Add add_needed field.
2316 * ldmain.h (add_needed): Declare.
2317 * ldmain.c (add_needed): New global var.
2318 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
2319 OPTION_NO_ADD_NEEDED.
2320 (ld_options): Likewise.
2321 (parse_args): Handle them.
2322
c99b8138
NC
23232004-07-13 Christof Petig <christof@petig-baender.de>
2324
2325 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
2326 for endian-ness of extracted addend.
2327
13ed4151
NC
23282004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
2329
2330 * pe-dll.c (auto_export): Filter on just the import prefix,
2331 "_imp_", not "_imp__".
2332
1a320fbb
NC
23332004-07-09 Nick Clifton <nickc@redhat.com>
2334
2335 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
2336
1fe1f39c
NC
23372004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
2338
2339 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
2340 (eelf32crx.c): New target.
2341 * Makefile.in: Regenerate.
2342 * configure.tgt: Handle crx-*-elf*.
2343 * emulparams/elf32crx.sh: New file.
2344 * emultempl/crxelf.em: New file.
2345 * scripttempl/elf32crx.sc: New file.
2346 * NEWS: Mention new target.
2347
85fbca6a
NC
23482004-07-06 Nick Clifton <nickc@redhat.com>
2349
2350 * Makefile.am: Add eshlsymbian.c.
2351 * Makefile.in: Regenerate.
2352 * configure.tgt: Add sh*-symbian-elf target.
2353 * emulparams/shlsymbian.sh: New file. Configure the
2354 sh-symbian-elf linker scripts.
2355 * scripttemp/elf32sh-symbian.sc: New file. Linker script
2356 template for the sh-symbian-elf target.
2357
b71a5181
DA
23582004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2359
2360 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
2361 * emulparams/hppalinux.sh: Likewise.
2362 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
2363 data segment and PLT_BEFORE_GOT is defined.
2364
c87db184
CF
23652004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2366
2367 * ld.texinfo (WIN32): Document PE weak symbols.
2368
f6a8ae81
KK
23692004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2370
2371 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
2372
b602c853
L
23732004-07-01 H.J. Lu <hongjiu.lu@intel.com>
2374
2375 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
2376 the section.
2377
1a23a9e6
AM
23782004-06-29 Alan Modra <amodra@bigpond.net.au>
2379
2380 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
2381 size in rawsize.
2382
eea6121a
AM
23832004-06-24 Alan Modra <amodra@bigpond.net.au>
2384
2385 * ldlang.c (print_output_section_statement): Don't print size before
2386 relaxation.
2387 (IGNORE_SECTION): Remove bfd arg. Update all callers.
2388
2389 * ldexp.c (fold_name): .. See below.
2390 * ldlang.c (section_already_linked, print_output_section_statement,
2391 print_input_section, insert_pad, size_input_section,
2392 lang_check_section_addresses, lang_size_sections_1,
2393 lang_size_sections, lang_do_assignments_1, lang_set_startof,
2394 lang_one_common, lang_reset_memory_regions, lang_process,
2395 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
2396 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
2397 * pe-dll.c (process_def_file, generate_reloc): ..
2398 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
2399 gld${EMULATION_NAME}_before_allocation): ..
2400 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
2401 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
2402 sh64_elf_${EMULATION_NAME}_after_allocation): ..
2403 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
2404 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
2405 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
2406 "size" instead of "_raw_size" and "_cooked_size". Expand
2407 bfd_section_size macro invocations.
2408
552f8272
CF
24092004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2410
2411 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
2412 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
2413 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
2414 ___crt_xt_end__.
2415 (.tls): Define ___tls_start__ and ___tls_end__.
2416
aee6f5b4
AO
24172004-06-21 Alexandre Oliva <aoliva@redhat.com>
2418
2419 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
2420
eea6121a 24212004-06-18 Adam Nemet <anemet@lnxw.com>
f234d5fe 2422
eea6121a
AM
2423 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
2424 * configure: Regenerate.
f234d5fe 2425
dfff4fbe
JJ
24262004-06-15 Jakub Jelinek <jakub@redhat.com>
2427
2428 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
2429 .gcc_except_table output sections lost accidentally with
2430 -z relro patch.
2431
a9e0c0c6
AM
24322004-06-15 Alan Modra <amodra@bigpond.net.au>
2433
2434 * ldwrite.c (build_link_order): Use bfd_get_section_size
2435 instead of bfd_get_section_size_before_reloc or _raw_size.
2436 * pe-dll.c (process_def_file): Likewise.
2437
7115639b
AM
24382004-06-14 Alan Modra <amodra@bigpond.net.au>
2439
2440 From Richard Wirth <r.wirth@wirthware.de>
2441 * ldlang.c (lang_finish): Don't free lang_definedness_table.
2442
9ca57817
AM
24432004-05-29 Alan Modra <amodra@bigpond.net.au>
2444
2445 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
2446 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
2447
164e712d
AM
24482004-05-28 Alan Modra <amodra@bigpond.net.au>
2449
6feb9908
AM
2450 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
2451 throughout file.
2452 * lexsup.c: Formatting. Wrap long lines.
2453 * ldwrite.c: Update copyright date.
2454
164e712d
AM
2455 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
2456 (output_section_callback): Nor SEC_KEEP here.
2457 (gc_section_callback): Twiddle SEC_EXCLUDE here.
2458 (lang_gc_wild): Delete. Fold into..
2459 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
2460 collecting.
2461 (lang_process): Always call lang_gc_sections.
2462 (lang_place_orphans): Handle SEC_EXCLUDE sections.
2463 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
2464 SEC_EXCLUDE code.
2465
b3096250
L
24662004-05-26 H.J. Lu <hongjiu.lu@intel.com>
2467
2468 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
2469 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
2470 * ldlang.c (lang_add_section): Likewise.
2471
e49f5022
AM
24722004-05-26 Alan Modra <amodra@bigpond.net.au>
2473
2474 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
2475 sections when doing a final link. Clear SEC_EXCLUDE when doing
2476 a relocable link, except for SEC_DEBUGGING sections.
2477 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
2478 same condition here to drop SEC_EXCLUDE orphan sections.
2479
57ceae94
AM
24802004-05-25 Alan Modra <amodra@bigpond.net.au>
2481
2482 * ldlang.c (lang_process): Call bfd_merge_sections later, and
2483 only when not a relocatable link.
2484 (print_input_section): Handle SEC_EXCLUDE sections.
2485 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
2486 (lang_do_assignments_1): Likewise.
2487 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
2488 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
2489 * emultempl/hppaelf.em (build_section_lists): Likewise.
2490 * emultempl/ppc64elf.em (build_toc_list): Likewise.
2491 (build_section_lists): Likewise.
2492
a85785bc
AS
24932004-05-23 Andreas Schwab <schwab@suse.de>
2494
2495 * ld.texinfo (Options): Fix typo in last change.
2496
2d643429
NC
24972004-05-21 Andy Chittenden <achittenden@bluearc.com>
2498
2499 * ld.h (ld_config_type): Add new field: hash_table_size.
2500 * ldmain.c: Initialise the new field to zero. If it is non-zero
2501 after parsing the linker's command line call
2502 bfd_hash_set_default_size.
2503 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
2504 (ld_options): Add hash-size.
2505 (parse_args): Parse --hash-size option. Allow
2506 --reduce-memory-overheads to set the default hash table size as
2507 well.
2508 * ld.texinfo: Document the new switch. Also mention that
2509 --reduce-memory-overheads can affect the hash table size.
2510 * NEWS: Mention the new feature.
2511
35835446
JR
25122004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
2513
2514 * NEWS: Mention new linker map file generation and the
2515 --reduce-memory-overheads option.
2516 * ld.texinfo: Document --reduce-memory-overheads option.
2517 * ld.h (map_symbol_def): New struct.
2518 (struct user_section_struct, section_userdata_type): Rename to:
2519 (struct lean_user_section_struct, lean_section_userdata_type).
2520 (struct fat_user_section_struct, fat_section_userdata_type): New.
2521 (SECTION_USERDATA_SIZE): Define.
2522 (args_type): New member reduce_memory_overheads.
2523 * ldlang.c (map_obstack): New static variable.
2524 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
2525 (lang_map): Unless command_line.reduce_memory_overheads is set,
2526 initialize lists of defined symbols for each section.
2527 (print_input_section): Unless command_line.reduce_memory_overheads
2528 is set, use print_all_symbols.
2529 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
2530 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
2531 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
2532 (ld_options): Add entry for --reduce-memory-overheads.
2533 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
2534
0841712e
JJ
25352004-05-19 Jakub Jelinek <jakub@redhat.com>
2536
2537 * ldgram.y (sect_constraint): New.
2538 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2539 (section): Add sect_constraint. Pass additional argument
2540 to lang_enter_output_section_statement.
2541 * mri.c (mri_draw_tree): Pass additional argument to
2542 lang_enter_output_section_statement.
2543 * emultempl/pe.em (place_orphan): Likewise.
2544 (output_prev_sec_find): Disregard output section statements with
2545 constraint == -1.
2546 * emultempl/mmo.em (output_prev_sec_find): Likewise.
2547 (mmo_place_orphan): Pass additional argument to
2548 lang_enter_output_section_statement.
2549 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
2550 statements with constraint == -1.
2551 (place_orphan): Pass additional argument to
2552 lang_enter_output_section_statement.
2553 * ldlang.c (lang_enter_overlay_section): Likewise.
2554 (lang_output_section_find_1): New.
2555 (lang_output_section_find): Use it.
2556 (lang_output_section_statement_lookup_1): New.
2557 (lang_output_section_statement_lookup): Use it.
2558 (check_section_callback, check_input_sections): New.
2559 (map_input_to_output_sections): Check if all input sections
2560 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
2561 (strip_excluded_output_sections): Disregard output section statements
2562 with constraint == -1.
2563 (lang_record_phdrs): Likewise.
2564 (lang_enter_output_section_statement): Add constraint argument.
2565 Use lang_output_section_statement_lookup_1.
2566 * ldlang.h (lang_output_section_statement_type): Add constraint
2567 and all_input_readonly fields.
2568 (lang_enter_output_section_statement): Adjust prototype.
2569 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2570 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
2571 segment if all input sections are readonly.
2572
eea6121a 25732004-05-19 Adam Nemet <anemet@lnxw.com>
f2c50328
NC
2574
2575 * scripttempl/i386lynx.sc: Remove file.
2576
2a16d82a
BW
25772004-05-17 Bob Wilson <bob.wilson@acm.org>
2578
2579 * ld.texinfo (Output Section Address): Correct subsection name.
2580
eea6121a 25812004-05-17 Adam Nemet <anemet@lnxw.com>
b2d65c0b
NC
2582
2583 * configure.tgt (powerpc-*-lynxos* case): New case.
2584 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
2585 * emulparams/ppclynx.sh: New file.
2586 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
2587 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
2588 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
2589 (eppclynx.c): New rule.
2590 * Makefile.in: Regenerate.
2591
4b363073
NC
25922004-05-13 Joel Sherrill <joel@oarcorp.com>
2593
2594 * configure.tgt (or32-*-rtems*): Switch to elf and
2595 support versioned targets.
2596
9598fbe5
NC
25972004-05-13 Nick Clifton <nickc@redhat.com>
2598
2599 * po/fr.po: Updated French translation.
2600
8c37241b
JJ
26012004-05-11 Jakub Jelinek <jakub@redhat.com>
2602
2603 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
2604 for binaries, -shared and -pie.
2605 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
2606 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
2607 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
2608 (OTHER_RELRO_SECTIONS): ... this.
2609 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
2610 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
2611 -z relro and -z norelro.
2612 (gld${EMULATION_NAME}_list_options): Add it to usage.
2613 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
2614 -z relro scripts when appropriate.
2615 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
2616 Create separate .got.plt section if SEPARATE_GOTPLT.
2617 Move sections which are only written during relocation handling
2618 to the beginning of RW segment. If NO_SMALL_DATA, move .got
2619 before .data. Add DATA_SEGMENT_RELRO_END directive.
2620 Include OTHER_RELRO_SECTIONS.
2621 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
2622 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
2623 (fold_unary): Likewise.
2624 (fold_binary): Handle -z relro.
2625 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
2626 exp_dataseg_relro_adjust phases. Add relro_end field.
2627 * ldmain.c (main): Initialize link_info.relro to FALSE.
2628 * ldlang.c (lang_size_sections): Handle -z relro.
2629
e21059f2
MM
26302004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
2631
2632 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
2633
5f9b8920
JR
26342004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
2635
2636 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
2637 before printing it with %W.
2638
26d2d8a2 26392004-05-07 Brian Ford <ford@vss.fsi.com>
eea6121a 2640 DJ Delorie <dj@redhat.com>
26d2d8a2
BF
2641
2642 * emultempl/pe.em (real_flags): New static.
2643 (OPTION_LARGE_ADDRESS_AWARE): New define.
2644 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
2645 (gld_${EMULATION_NAME}_list_options): Likewise.
2646 (gld${EMULATION_NAME}_handle_option): Likewise.
2647 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
2648 * ld.texinfo: Document it.
2649 * NEWS: Mention it.
2650
1b169501
BF
26512004-05-07 Brian Ford <ford@vss.fsi.com>
2652
2653 * NEWS: Mention DWARF 2 support for i386pe.
2654
41cf0c62
AO
26552004-05-05 Alexandre Oliva <aoliva@redhat.com>
2656
2657 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
2658 elf32-frvfdpic.
2659
d0d6a25b
AM
26602004-04-30 Alan Modra <amodra@bigpond.net.au>
2661
2662 * ldlang.c (unique_section_p): Pass section parm, return true on
2663 group sections.
2664 (output_section_callback): Adjust.
2665 * ldlang.h (unique_section_p): Update prototype.
2666 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
2667
755306be
EB
26682004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
2669
eea6121a 2670 * ld.texinfo (--gc-sections): Remove restriction for
755306be
EB
2671 dynamic linking.
2672
8a7140c3
NC
26732004-04-29 Brian Ford <ford@vss.fsi.com>
2674
2675 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
2676 for DWARF 2/3. Update stab section's syntax.
2677
2f9636ba
AM
26782004-04-29 Alan Modra <amodra@bigpond.net.au>
2679
2680 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
2681 (fill_edata): Correct pointer arithmetic.
2682
23867d67
CD
26832004-04-21 Chris Demetriou <cgd@broadcom.com>
2684
2685 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
2686 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
2687 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
2688 (EXTRA_EM_FILE): Use mipsecoff.em
2689 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
2690 (EXTRA_EM_FILE): Use mipsecoff.em
2691 * emultempl/mipsecoff.em: Restructure to be included as an
2692 extra emulation file.
2693 (check_sections, gld${EMULATION_NAME}_after_open)
2694 (gld${EMULATION_NAME}_after_allocation)
2695 (gld${EMULATION_NAME}_get_script)
2696 (ld_${EMULATION_NAME}_emulation): Remove
2697 (gld${EMULATION_NAME}_before_parse): Rename to...
2698 (mipsecoff_before_parse): This.
2699 (LDEMUL_BEFORE_PARSE): Define.
2700 * emultempl/mipself.em: Remove file.
2701 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
2702 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
2703 these symbols.
2704 * Makefile.am: Remove dependencies on emultempl/mipself.em.
2705 * Makefile.in: Regenerate.
2706
1502569c
NC
27072004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
2708
2709 * ld.texinfo (synthesizing on H8/300): Information about linker
2710 relaxation support for bit manipulation instructions and system
2711 control instructions is added.
2712
c894ddfb
HPN
27132004-04-21 Hans-Peter Nilsson <hp@axis.com>
2714
2715 * NEWS: Mention change in DEFINED semantics.
2716
a85bf78e
EB
27172004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
2718
2719 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
2720 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
2721 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
2722
58434bc1
BE
27232004-04-21 Ben Elliston <bje@au.ibm.com>
2724
2725 * ld.texinfo (Simple Example): Add missing punctuation.
2726
7a7f4e42
CD
27272004-04-20 Chris Demetriou <cgd@broadcom.com>
2728
2729 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
2730
3737f867
JJ
27312004-04-19 Jakub Jelinek <jakub@redhat.com>
2732
2733 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
2734 specially.
2735
3c17e4f7
DS
27362004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
2737
2738 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
2739 with default priority. Likewise for dtors.
2740
279500de
TS
27412004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2742
2743 * configure.host: Remove mips*-dec-bsd* target.
2744 * configure.tgt: Likewise.
2745
52f89c0a
RS
27462004-04-08 Richard Sandiford <rsandifo@redhat.com>
2747
2748 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
2749 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
2750 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
2751 * emultempl/irix.em: New file.
2752 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
2753 dependencies.
2754 * Makefile.in: Regenerate.
2755
e489d0ae
PB
27562004-04-01 Paul Brook <paul@codesourcery.com>
2757
2758 * emultempl/armelf.em (byteswap_code): Add.
2759 (arm_elf_before_allocation): Pass extra parameter.
2760 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
2761 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
2762 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
2763 * emultempl/armelf_oabi.em: Pass extra parameter.
2764 * ld.texinfo: Document --be8.
2765
7cc8057a
SS
27662004-03-30 Stan Shebs <shebs@apple.com>
2767
2768 Remove long-obsolete MPW support.
2769 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
2770 * Makefile.am (mpw): Remove file-presynthesizing actions.
2771 * Makefile.in: Likewise.
2772 * ldfile.c (slash): Remove MPW case.
2773 * ldlex.l [MPW]: Remove unused definition.
2774
0949843d
NC
27752004-03-30 Galit Heller <Galit.Heller@nsc.com>
2776
2777 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
2778 (eelf32cr16c.c): New target.
2779 * Makefile.in: Regenerate.
2780 * configure.tgt: Handle cr16c-*-elf*.
2781 * emulparams/elf32cr16c.sh: New file.
2782 * scripttempl/elfcr16c.sc: Likewise
2783 * NEWS: Mention support for new target.
2784
0a159ef8
NC
27852004-03-30 Nick Clifton <nickc@redhat.com>
2786
2787 * po/sv.po: Updated Swedish translation.
2788
7a945db6
AM
27892004-03-27 Alan Modra <amodra@bigpond.net.au>
2790
2791 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
2792 * emultempl/hppaelf.em: Likewise.
2793 * emultempl/ppc64elf.em: Likewise.
2794 * emultempl/sh64elf.em: Likewise.
2795
5a580b3a
AM
27962004-03-25 Alan Modra <amodra@bigpond.net.au>
2797
2798 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
2799 size_dynamic_sections call.
2800
b9cf773d
AM
28012004-03-23 Alan Modra <amodra@bigpond.net.au>
2802
2803 PR 51.
2804 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
2805 link_info.wrap_char.
2806
59c2e50f
L
28072004-03-20 H.J. Lu <hongjiu.lu@intel.com>
2808
2809 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
2810 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
2811
44349745
AO
28122004-03-20 Alexandre Oliva <aoliva@redhat.com>
2813
2814 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
2815
81359a70
AM
28162004-03-19 Alan Modra <amodra@bigpond.net.au>
2817
2818 * config.in: Regenerate.
2819 * po/ld.pot: Regenerate.
2820
4a43e768
AM
28212004-03-18 Alan Modra <amodra@bigpond.net.au>
2822
2823 * ld.texinfo: Add --as-needed doco.
2824 * ldmain.c (as_needed): New global var.
2825 * ldmain.h (as_needed): Declare.
2826 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
2827 OPTION_NO_AS_NEEDED.
2828 (ld_options): Likewise.
2829 (parse_args): Handle them.
2830 * ldlang.h (lang_input_statement_type): Add as_needed field.
2831 * ldlang.c (new_afile): Set p->as_needed.
2832 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
2833 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
2834 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
2835
2836 * ldlang.c (open_input_bfds): Remove useless cast.
2837 (lang_do_assignments_1): Likewise.
2838 (lang_for_each_input_section): Delete.
2839
9183ed4b
AM
28402004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2841
2842 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
2843
ee31fbd0
NC
28442004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
2845
2846 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
2847 private when building implib.
2848
e5caec89
NS
28492004-03-05 Nathan Sidwell <nathan@codesourcery.com>
2850
2851 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
2852 SEC_THREAD_LOCAL.
2853 (IGNORE_SECTION): Ignore .tbss sections too.
2854 (lang_size_sections_1): .tbss sections do not advance dot.
2855
cc2f008e
AS
28562004-03-01 Andreas Schwab <schwab@suse.de>
2857
2858 * ld.texinfo (Options): Fix example for --wrap.
2859
f5a95868
DS
28602004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2861
2862 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
2863 not NULL.
2864
177b729b
ILT
28652004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
2866
2867 * ldlang.c (lang_check): Use %P, not %E, in error message.
2868
1b493742
NS
28692004-02-23 Nathan Sidwell <nathan@codesourcery.com>
2870
2871 * ldlang.h (struct lang_output_section_state): Change processed
2872 field's type.
2873 * ldexp.c (check, invalid): Remove.
2874 (fold_name): Move valid_p assignments. Create undefined symbol
2875 when needed. Directly exampine section's processd flag.
2876 * ldlang.c (lang_output_section_statement_lookup): Adjust
2877 processed field init.
2878 (lang_size_sections_1): Allow LOADADDR when determining section's
2879 VMA. Adjust error message. Fold data statement's expr.
2880 (lang_size_sections): Correctly increment lang_statement_iteration.
2881
28822004-02-23 Alan Modra <amodra@bigpond.net.au>
2883
2884 * ldexp.c (fold_tree): Follow indirect symbols.
b9cf773d 2885
876f4090
NS
28862004-02-20 Nathan Sidwell <nathan@codesourcery.com>
2887
2888 * ldgram.y (exp): Add two operand ALIGN.
2889 * ldexp.c (fold_binary): Add ALIGN_K case.
2890 * ld.texinfo (ALIGN): Document two operand version.
2891
384d938f
NS
28922004-02-19 Nathan Sidwell <nathan@codesourcery.com>
2893
2894 * ldlang.c (map_input_to_output_sections): Initialize sections
2895 mentioned in a data statement expression.
2896 (lang_do_assignments_1): Add data statement's expression's
2897 section's vma.
2898
b6ca8815
NS
28992004-02-18 Nathan Sidwell <nathan@codesourcery.com>
2900
2901 * ldgram.y (statement_anywhere): Add assert rule.
2902 * ldlang.c (exp_init_os): Add assert case.
2903
c92c35e7
AC
29042004-02-14 Andrew Cagney <cagney@redhat.com>
2905
2906 * ldmain.c (remove_output): Call bfd_cache_close.
2907
9bf78c99
RS
29082004-02-14 Richard Sandiford <rsandifo@redhat.com>
2909
2910 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
2911 .MIPS.content* and .MIPS.events* sections.
2912
f3806916
DJ
29132004-02-09 Daniel Jacobowitz <drow@mvista.com>
2914
2915 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
2916 .note.gnu.arm.ident to after allocated sections. Mark its
2917 address as 0.
2918
4c8e70d7
DJ
29192004-02-09 Daniel Jacobowitz <drow@mvista.com>
2920
2921 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
2922 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
2923 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
2924 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
2925 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
2926
ff71f4f7
NC
29272004-02-05 Nick Clifton <nickc@redhat.com>
2928
2929 * emultempl/pe.em (_after_open): Fix typo in previous delta.
2930
07a68a80
NC
29312004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
2932
2933 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
2934
1dd3bf68
AM
29352004-01-28 Alan Modra <amodra@bigpond.net.au>
2936
586196d5
AM
2937 * genscripts.sh: Fix typo.
2938
1dd3bf68
AM
2939 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
2940
13d9421f
JJ
29412004-01-24 Jakub Jelinek <jakub@redhat.com>
2942
2943 * emulparams/elf64_ia64.sh: Put .rela.opd into
2944 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
2945
4d8907ac
DS
29462004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
2947
2948 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
2949 * ld.texinfo (--omagic): Note that writable text section
2950 does not conform to published PE-COFF specs.
2951 (--enable-auto-import): Likewise.
2952
e5c60db5
AM
29532004-01-15 Alan Modra <amodra@bigpond.net.au>
2954
2955 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
2956
6bdafbeb
NC
29572004-01-13 Nick Clifton <nickc@redhat.com>
2958
2959 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
2960 which if true will prevent the LMA region being used as a
2961 replacement for a default VMA region.
586196d5
AM
2962 (lang_leave_output_section_statement): Pass extra parameter.
2963 (lang_leave_overlay): Likewise.
2964 * ld.texinfo (Output Section LMA): Document that the LMA
6bdafbeb
NC
2965 region can be set to the VMA region if no VMA has been set.
2966 * ldlang.h (struct lang_output_section_phdr_list): Create a
2967 typedef for this type. Minor formatting fixes.
586196d5 2968
9dfc8ab2
NC
29692004-01-13 Nick Clifton <nickc@redhat.com>
2970
2971 * ldlang.c (lang_size_sections_1): If dot is advanced, then
2972 assume that the section should be allocated.
2973
8325c4dd
AM
29742004-01-13 Alan Modra <amodra@bigpond.net.au>
2975
2976 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
2977 sections. Do ignore SEC_NEVER_LOAD sections.
2978 (lang_size_sections_1): Remove test made redundant with the above.
2979
83490352
AM
29802004-01-09 Alan Modra <amodra@bigpond.net.au>
2981
2982 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
2983 program_header_size.
2984
005e1118
AO
29852004-01-06 Alexandre Oliva <aoliva@redhat.com>
2986
2987 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
2988 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
2989 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
2990 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
2991 (MAXPAGESIZE): Set to 64Kb.
2992 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
2993 __ROFIXUP_END__. Don't map .rofixup.got any more.
2994 * emulparams/elf32frv.sh (NOP): Set.
2995 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
2996 * configure.tgt: Add frv-*-*linux*.
2997 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
2998 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
2999 (eelf32frvfd.c): New.
3000 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
3001 * emulparams/elf32frv.sh: Reverted previous two patches.
3002 * emulparams/elf32frvfd.sh: New.
3003 * Makefile.in: Rebuilt.
3004 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
3005 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
3006 .rofixup.got to .rofixup.
3007 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
3008 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
3009 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
3010
060feee5
JJ
30112004-01-05 Jakub Jelinek <jakub@redhat.com>
3012
3013 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
3014 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
3015
5e2f1575
AM
30162004-01-03 Alan Modra <amodra@bigpond.net.au>
3017
e5caa5e0
AM
3018 * ldexp.c (align_n): Make static.
3019 * ldexp.h (align_n): Delete declaration.
3020 * ldlang.h (lang_enter_output_section_statement): Remove
3021 block_value param.
3022 * ldlang.c (lang_enter_output_section_statement): Likewise.
3023 (TO_ADDR, TO_SIZE): Define.
c2df3ea5 3024 (opb_shift): New var.
e5caa5e0
AM
3025 (init_opb): New function.
3026 (print_input_section): Call init_opb and use TO_ADDR.
3027 (print_data_statement, print_reloc_statement): Likewise.
3028 (print_padding_statement): Likewise.
c2df3ea5 3029 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
e5caa5e0
AM
3030 (lang_check_section_addresses): Likewise.
3031 (lang_size_sections_1): Likewise.
3032 (lang_do_assignments_1): Likewise.
3033 (lang_set_startof): Likewise.
c2df3ea5 3034 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
e5caa5e0 3035 (lang_process): Call init_opb.
c2df3ea5 3036 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
e5caa5e0
AM
3037 (lang_enter_overlay_section): Adjust
3038 lang_enter_output_section_statement call.
3039 * ldgram.y: Likewise.
3040 * mri.c (mri_draw_tree): Likewise.
3041 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
3042 * emultempl/mmo.em (mmo_place_orphan): Likewise.
3043 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
3044
5e2f1575
AM
3045 * ldfile.c (ldfile_set_output_arch): Add defarch param.
3046 * ldfile.h (ldfile_set_output_arch): Ditto.
3047 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
3048 ldfile_set_output_arch.
3049 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
3050 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
3051 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
3052 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3053 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
3054 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
3055 * ldgram.y: Adjust ldfile_set_output_arch call.
3056 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3057 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
3058 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
3059 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
3060 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
3061 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3062 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3063
b50c15dc
NC
30642004-01-02 Bernardo Innocenti <bernie@develer.com>
3065
3066 * configure.tgt: Add m68k-uClinux target.
6edf0760 3067
c9e214e5 3068For older changes see ChangeLog-0203
252b5132
RH
3069\f
3070Local Variables:
3071mode: change-log
3072left-margin: 8
3073fill-column: 74
3074version-control: never
3075End:
This page took 0.546941 seconds and 4 git commands to generate.