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