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