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