* doc/binutils.texi: Include config.texi and @file documentation
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
dff70155
MM
12005-11-16 Mark Mitchell <mark@codesourcery.com>
2
3 * Makefile.am (configdoc.texi): Set top_srcdir in configdoc.texi..
4 * Makefile.in: Regenerated.
5 * ld.texinfo: Include configdoc.texi and ldver.texi in man pages.
6 Add @file documentation.
7
7b986e99
AM
82005-11-17 Alan Modra <amodra@bigpond.net.au>
9
10 * ldlang.h (lang_input_section_type): Remove "ifile" field.
11 (lang_insert_orphan, lang_add_section): Update prototypes.
12 * ldlang.c (lang_insert_orphan): Remove "file" param.
13 (lang_add_section): Likewise. Update all callers.
14 (wild_sort): Get an input section's bfd via "section->owner".
15 (size_input_section): Access just_syms_flag via bfd usrdata.
16 (lang_place_orphans): Update ldemul_place_orphan call.
17 * ldemul.h (ldemul_place_orphan): Remove input_statement param.
18 (struct ld_emulation_xfer_struct <place_orphan>): Likewise.
19 * ldemul.c (ldemul_place_orphan): Likewise.
20 * ldwrite.c (build_link_order): Access just_syms_flag via bfd usrdata.
21 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
22 * emultempl/beos.em (sort_by_file_name): Access bfd by section->owner.
23 (sort_sections): Likewise.
24 (place_orphan): Remove "file" param. Adjust lang_add_section call.
25 * emultempl/elf32.em (place_orphan): Remove "file" param. Adjust
26 lang_add_section and lang_insert_orphan calls.
27 * emultempl/hppaelf.em (hppaelf_add_stub_section): Adjust
28 lang_add_section call.
29 (build_section_lists): Access just_syms_flag via bfd usrdata.
30 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Adjust
31 lang_add_section call.
32 * emultempl/mmo.em (mmo_place_orphan): Remove "file" param. Adjust
33 lang_add_section and lang_insert_orphan calls.
34 * emultempl/pe.em (place_orphan): Likewise. Access bfd via section
35 owner.
36 * emultempl/ppc64elf.em (ppc_add_stub_section): Adjust
37 lang_add_section call.
38 (build_toc_list): Access just_syms_flag via bfd usrdata.
39 (build_section_lists): Likewise.
40 * emultempl/xtensaelf.em (elf_xtensa_place_orphan): Remove "file"
41 param. Adjust place_orphan call.
42 (ld_build_required_section_dependence): Access bfd via section owner.
43
bd4d42c1
AM
442005-11-16 Alan Modra <amodra@bigpond.net.au>
45
46 * ldlang.h (lang_output_section_statement_type): Add prev.
47 * ldlang.c (new_afile): Always init header.type.
48 (output_statement_newfunc): Set os.prev.
49 (output_prev_sec_find): Use os.prev.
50 (lang_enter_output_section_statement): Formatting.
51 (lang_final, lang_add_target, lang_add_fill): Likewise.
52 (lang_add_data, lang_add_reloc): Likewise.
53 (lang_add_attribute): Only alloc the header.
54
7270c5ed
AM
552005-11-16 Alan Modra <amodra@bigpond.net.au>
56
57 * ld.texinfo (Forced Output Alignment): Specify that this is an
58 alignment increase, not an override.
59 * ldlang.c (init_os): Set output section alignment here..
60 (lang_add_section): ..rather than here.
61 (lang_size_sections_1): Consolidate alignment code. Warn if section
62 alignment affects start address when explicit address given.
63
a541e3ce
SE
642005-11-07 Steve Ellcey <sje@cup.hp.com>
65
66 * configure: Regenerate after modifying bfd/warning.m4.
67
70487fb2
AM
682005-11-07 Olaf Hering <olh@suse.de>
69
70 * ldmain.c (main): Add \n to error message.
71
384a9dda
AM
722005-11-04 Alan Modra <amodra@bigpond.net.au>
73
74 * ldlang.c (struct output_statement_hash_entry): Don't indirect to os.
75 (output_statement_newfunc): Rewrite.
76 (lang_output_section_find_1): Merge into..
77 (lang_output_section_find): ..here.
78 (lang_output_section_statement_lookup_1): Rewrite to handle
79 multiple sections with the same name.
80 (output_statement_table_init): Commonise error message.
81 (lang_init, open_output): Likewise.
82
6f2942ed
PB
832005-11-03 Paul Brook <paul@codesourcery.com>
84
85 * scripttempl/elf.sc: Add .init_array.* and .fini_array.*.
86 * scripttempl/armbpabi.sc: Make init/fini array consistent with
87 elf.sc.
88 * scripttempl/elf32sh-symbian.sc: Ditto.
89 * scripttempl/elfxtensa.sc: Ditto.
90
7fabd029
AM
912005-11-03 Alan Modra <amodra@bigpond.net.au>
92
93 * ldlang.h (lang_output_section_statement_type): Rearrange. Remove
94 memspec. Make "processed" a bitfield.
95 (lang_data_statement_type, lang_reloc_statement_type): Rename
96 output_vma to output_offset.
97 * ldlang.c (lang_output_section_statement_lookup_1): Init
98 all_input_readonly. Don't init memspec.
99 (init_os): Remove incorrect comment.
100 (print_data_statement, print_reloc_statement): Adjust for
101 lang_data_statement_type and lang_reloc_statement_type change.
102 (lang_size_sections_1, lang_add_reloc): Likewise.
103 * ldwrite.c (build_link_order): Likewise.
104
a55ff675
MM
1052005-10-30 Mark Mitchell <mark@codesourcery.com>
106
107 * lexsup.c (help): Document "@FILE".
108
9e5169a8
L
1092005-10-30 H.J. Lu <hongjiu.lu@intel.com>
110
111 * Makefile.am: Run "make dep-am".
112 * Makefile.in: Regenerated.
113
114 * dep-in.sed: Replace " ./" with " ".
115
3c9b82ba
NC
1162005-10-25 Arnold Metselaar <arnold.metselaar@planet.nl>
117
118 * Makefile.am: Add support for Z80
119 * Makefile.in: Regenerated
120 * configure.tgt: Add z80-*-coff
121 * emulparams/z80.sh: New file.
122 * emultempl/z80.em: New file.
123 * scripttempl/z80.sc New file.
124 * NEWS: Mention this new support.
125
3caac5b8
AM
1262005-10-25 Alan Modra <amodra@bigpond.net.au>
127
128 * po/ld.pot: Regenerate.
129
4f9c04f7
AM
1302005-10-25 Chris Metcalf <cdmetcalf@comcast.net>
131
132 * ld.texinfo (--reduce-memory-overheads): Fix typo.
133
ccd2ec6a
L
1342005-10-23 H.J. Lu <hongjiu.lu@intel.com>
135
136 PR ld/1487
137 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
138 bfd_match_sections_by_type to match section types.
139
140 * ldlang.c (init_os): Take the input section. Call
141 bfd_init_private_section_data if the input section isn't NULL.
142 (exp_init_os): Pass NULL to init_os.
143 (map_input_to_output_sections): Likewise.
144 (lang_add_section): Pass the input section to init_os.
145
3242b11e
PB
1462005-10-19 Paul Brook <paul@codesourcery.com>
147
148 * emulparams/armelf.sh: Add .ARM.attributes to OTHER_SECTIONS.
149
ecca9871
L
1502005-10-15 H.J. Lu <hongjiu.lu@intel.com>
151
152 PR ld/1467
153 * emultempl/elf32.em: Include "elf-bfd.h".
154 (gld${EMULATION_NAME}_place_orphan): Check section type and
155 don't use section name for ELF input sections.
156
157 * ld.texinfo: Document orphan section processing.
158
159 * ldlang.c (lang_output_section_find_by_flags): Match section
160 types by calling bfd_match_sections_by_type.
161
86043bbb
MM
1622005-10-13 Mark Mitchell <mark@codesourcery.com>
163
164 * ld.texino: Describe double-quoted string syntax for version
165 nodes.
166 * ldlang.h (lang_new_vers_pattern): Add literal_p parameter.
167 * ldgram.y (vers_defns): Allow NAME as well as VERS_IDENTIFIER.
168 Adjust calls to lang_new_vers_pattern to pass literal_p argument.
169 * ldlang.c (lang_vers_match): Fix indentation. Do not glob-match
170 version nodes without a pattern.
171 (lang_new_vers_pattern): Add literal_p parameter.
172 (lang_do_version_exports_section): Pass it.
173
3e8a519c
MM
1742005-10-12 Mark Mitchell <mark@codesourcery.com>
175
176 * NEWS: Mention @file.
177
f0e0fb23
L
1782005-10-05 H.J. Lu <hongjiu.lu@intel.com>
179
180 PR ld/1396
181 * ldcref.c (check_refs): Accept bfd_boolean.
182 (check_local_sym_xref): Pass FALSE to check_refs.
183 (check_nocrossref): Pass TRUE to check_refs.
184 (check_refs_info): Add bfd_boolean.
185 (check_refs): Add bfd_boolean to check_refs_info.
186 (check_reloc_refs): Match relocations with proper symbols.
187
188 * ldmisc.c (vfinfo): Don't add extra ":\n".
189
e60cc415
DS
1902005-10-05 Danny Smith <dannysmith@users.sourceforge.net>
191
192 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set
193 default entry symbol to ENTRY here.
194 * scripttempl/pe.sc: Not here.
195
4520f868
JW
1962005-09-30 James E Wilson <wilson@specifix.com>
197
198 * ldlang.c (lang_startup): Add missing ": " to einfo call.
199
b898a385
L
2002005-09-30 H.J. Lu <hongjiu.lu@intel.com>
201
202 * Makefile.am: Run "make dep-am".
203 * Makefile.in: Regenerated.
204 * aclocal.m4: Likewise.
205
750877ba
L
2062005-09-30 H.J. Lu <hongjiu.lu@intel.com>
207
208 * ldlang.c (output_statement_hash_entry): New type.
209 (output_statement_table): New variable for hash table.
210 (output_statement_newfunc): New function.
211 (output_statement_table_init): Likewise.
212 (output_statement_table_free): Likewise.
213 (lang_init): Call output_statement_table_init.
214 (lang_finish): Renamed to ...
215 (lang_end): This.
216 (lang_process): Updated.
217 (lang_finish): New function.
218 (lang_output_section_find_1): Use hash table.
219 (lang_output_section_statement_lookup_1): Likewise.
220
221 * ldlang.h (lang_finish): New.
222
223 * ldmain.c (main): Call lang_finish.
224
869b9d07
MM
2252005-09-30 Mark Mitchell <mark@codesourcery.com>
226
227 * ldmain.c (main): Use expandargv.
228
95f4309b 2292005-09-30 Catherine Moore <clm@cm00re.com>
384a9dda 230
95f4309b
CM
231 * Makefile.am: Bfin support.
232 * Makefile.in: Regenerated.
233 * aclocal.m4: Regenerated.
234 * configure.tgt: Bfin support.
235 * emulparams/bfin.sh: New file.
236 * emultempl/bfin.em: New file.
237
a70c2403
NC
2382005-09-30 Matthias Kurz <mk@baerlap.north.de>
239
240 * ld.h: Prevent the inclusion of <libintl.h> from the Solaris
241 version of <locale.h> when ENABLE_NLS is not defined.
242
bbf115d3
L
2432005-09-27 H.J. Lu <hongjiu.lu@intel.com>
244
245 * ld.texinfo (ALIGN): Document it as forcing output section
246 alignment.
247
248 * ldgram.y (ALIGN): Support it for forcing output section
249 alignment.
250
a5df8c84
AM
2512005-09-20 Alan Modra <amodra@bigpond.net.au>
252
f68d3f78
AM
253 * ldlang.h (lang_output_section_statement_struct): Change type of
254 "processed" to bfd_boolean.
255 * ldexp.c (fold_name): Update references to os->processed.
256 * ldlang.c (lang_output_section_statement_lookup_1): Likewise.
257 (lang_size_sections_1): Likewise.
258 (lang_reset_memory_regions): Likewise.
259
a5df8c84
AM
260 PR ld/1353
261 * ldlang.c (lang_size_sections_1): Process addr_tree earlier,
262 so that unused output section statements affect dot.
263
6aa29e7b
JJ
2642005-09-08 Jakub Jelinek <jakub@redhat.com>
265
266 * ld.texinfo: Document -z {no,}execstack, -z {no,}relro
267 and --eh-frame-hdr options.
268
5397b1fe
AM
2692005-09-07 Alan Modra <amodra@bigpond.net.au>
270
271 * ldexp.c (fold_name <SIZEOF>): Return 0 for non-existent section.
272 (exp_fold_tree_1): Print assert message only in final stage of
273 linking. Trigger assertion failure if expression cannot be
274 evaluated.
275
12b9ff6c
L
2762005-09-06 H.J. Lu <hongjiu.lu@intel.com>
277
278 PR ld/1263
279 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Check
280 --just-symbols on DSO.
281
2caf1300
AM
2822005-08-18 Alan Modra <amodra@bigpond.net.au>
283
284 * scripttempl/elf.sc: Remove commented out defines.
285
c17ae8a2
AM
2862005-08-18 Alan Modra <amodra@bigpond.net.au>
287
848cf006
AM
288 * emulparams/a29k.sh: Delete.
289 * emulparams/ebmon29k.sh: Delete.
290 * emulparams/sa29200.sh: Delete.
c17ae8a2
AM
291 * Makefile.am: Remove a29k support.
292 * configure.tgt: Likewise.
293 * ld.texinfo: Likewise.
294 * Makefile.in: Regenerate.
295
96f8ade5
JJ
2962005-08-17 Jakub Jelinek <jakub@redhat.com>
297
298 * ldgram.y (vers_defns): Don't lose pattern list before
299 extern NAME {}. Handle global, local and extern symbol names.
300
24dc748d
KK
3012005-08-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
302
303 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
304 Don't increment rel_count of .cranges here. Set rawsize of .cranges.
305
38975f9e
NC
3062005-08-10 Nick Clifton <nickc@redhat.com>
307
308 * pe-dll.c (pe_exe_fill_sections): Call lang_reset_memory_regions
309 before lang_size_sections.
310
66bcaf1f
AM
3112005-08-09 Alan Modra <amodra@bigpond.net.au>
312
313 * emulparams/hppa64linux.sh (LARGE_SECTIONS): Remove .tbss.
314
3152005-08-08 Eric Doenges <Eric.Doenges@betty-tv.com>
44c86e8c
NC
316
317 * Makefile.am (ALL_EMULATIONS): Add msp430x21xx variants.
318 Add rules to build these emulations.
319 * Makefile.in: Regenerate.
320 * configure.tgt (msp430): Add the new variants to the
321 targ_extra_emuls list.
322 * emulparams/msp430all.sh: Add entries for the msp430x21xx
323 variants.
324
7af8e998
L
3252005-08-05 H.J. Lu <hongjiu.lu@intel.com>
326
327 * ld.texinfo: Document PROVIDE_HIDDEN.
328
329 * ldexp.c (exp_fold_tree_1): Hide a provided symbol if asked.
330 (exp_provide): Add and set hidden.
331
332 * ldexp.h (etree_type): Add hidden to assign.
333
334 * ldgram.y (PROVIDE_HIDDEN): New.
335 * ldlex.l (PROVIDE_HIDDEN): Likewise.
336
337 * scripttempl/elf.sc: Use PROVIDE_HIDDEN on array bound
338 symbols.
339
9599dfb1
AM
3402005-08-05 Alan Modra <amodra@bigpond.net.au>
341
342 * emulparams/elf_x86_64.sh: Revert last change.
343 * scripttempl/elf.sc (REL_LARGE, LARGE_SECTIONS): Define here.
344
827a1c67
AM
3452005-08-05 Alan Modra <amodra@bigpond.net.au>
346
347 * emulparams/armelf.sh (OTHER_BSS_END_SYMBOLS): Split out from
348 OTHER_END_SYMBOLS.
349 * emulparams/armelf_linux.sh: Likewise.
350 * emulparams/armnto.sh: Likewise.
351 * emulparams/criself.sh: Likewise.
352 * emulparams/elf32mcore.sh: Likewise.
353 * emulparams/criself.sh (OTHER_SYMBOLS): Define.
354 * emulparams/crislinux.sh (OTHER_SYMBOLS): Define.
355 (OTHER_END_SYMBOLS): Don't define.
356 * emulparams/elf32fr30.sh: Likewise.
357 * emulparams/elf64mmix.sh: Likewise.
358 * emulparams/hppa64linux.sh: Likewise.
359 * emulparams/m32relf.sh: Likewise.
360 * emulparams/vxworks.sh: Likewise.
361 * scripttempl/armbpabi.sc (OTHER_BSS_SECTIONS): Delete.
362 (OTHER_BSS_END_SYMBOLS): Add.
363 (OTHER_END_SYMBOLS): Move before current end sym definitions.
364 (OTHER_SYMBOLS): Replace OTHER_END_SYMBOLS near end of script.
365 * scripttempl/elf.sc: Likewise.
366 * scripttempl/elf32sh-symbian.sc: Likewise.
367 * scripttempl/elf_chaos.sc: Likewise.
368 * scripttempl/elfxtensa.sc: Likewise.
369 * scripttempl/iq2000.sc: Likewise.
370 * scripttempl/xstormy16.sc: Likewise.
371
372 * scripttempl/elf.sc (LBSS, LARGE_SECTIONS): Delete.
373 (REL_LDATA, REL_LBSS, REL_LRODATA): Delete.
374 (REL_LARGE, LARGE_SECTIONS): Add.
375 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): Define as script text.
376 (REL_LARGE): Define.
377 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
378 (LARGE_SECTIONS): Define.
379 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
380 (LARGE_SECTIONS): Define.
381
046183de
AM
3822005-08-04 Alan Modra <amodra@bigpond.net.au>
383
384 * ldemul.c (ldemul_do_assignments, do_assignments_default): Delete.
385 * ldemul.h (ldemul_do_assignments, do_assignments_default): Delete.
386 (struct ld_emulation_xfer_struct): Remove do_assignments field.
387 * ldlang.c (lang_do_assignments): Don't call ldemul_do_assignments.
388 * emulparams/elf32ppc.sh (SDATA_START_SYMBOLS): New.
389 (SDATA2_START_SYMBOLS, SBSS_START_SYMBOLS, SBSS_END_SYMBOLS): New.
390 * emultempl/aix.em (ld_*_emulation): Delete do_assignments init.
391 * emultempl/armcoff.em: Likewise.
392 * emultempl/beos.em: Likewise.
393 * emultempl/generic.em: Likewise.
394 * emultempl/gld960.em: Likewise.
395 * emultempl/gld960c.em: Likewise.
396 * emultempl/linux.em: Likewise.
397 * emultempl/lnk960.em: Likewise.
398 * emultempl/m68kcoff.em: Likewise.
399 * emultempl/pe.em: Likewise.
400 * emultempl/sunos.em: Likewise.
401 * emultempl/ticoff.em: Likewise.
402 * emultempl/vanilla.em: Likewise.
403 * emultempl/elf32.em: Likewise.
404 (gld*_provide_bound_symbols): Delete.
405 (gld*_provide_init_fini_syms): Delete.
406 (gld*_before_allocation): Don't call ldemul_do_assignments.
407 * emultempl/ppc32elf.em (ppc_do_assignments): Delete.
408 (LDEMUL_DO_ASSIGNMENTS): Delete.
409 * scripttempl/elf.sc: Provide init/fini syms. Add SBSS_START_SYMBOLS,
410 SBSS_END_SYMBOLS, SDATA2_START_SYMBOLS.
411
fa498e09
AM
4122005-08-04 Alan Modra <amodra@bigpond.net.au>
413
414 * Makefile.am (eelf32m32c.c): Fix dependencies.
415 * Makefile.in: Regenerate.
416
1e035701
AM
4172005-08-04 Alan Modra <amodra@bigpond.net.au>
418
419 * ldemul.c (ldemul_finish): Call ld_emulation->finish unconditionally.
420 (finish_default): New function.
421 * ldemul.h (finish_default): Declare.
422 * emultempl/aix.em (gld*_before_allocation): Call
423 before_allocation_default rather than strip_excluded_output_sections.
424 (ld_*_emulation): Init finish field to finish_default.
425 * emultempl/armcoff.em: Likewise.
426 * emultempl/beos.em: Likewise.
427 * emultempl/elf32.em: Likewise.
428 * emultempl/generic.em: Likewise.
429 * emultempl/gld960.em: Likewise.
430 * emultempl/gld960c.em: Likewise.
431 * emultempl/hppaelf.em: Likewise.
432 * emultempl/linux.em: Likewise.
433 * emultempl/lnk960.em: Likewise.
434 * emultempl/m68kcoff.em: Likewise.
435 * emultempl/mmo.em: Likewise.
436 * emultempl/pe.em: Likewise.
437 * emultempl/ppc64elf.em: Likewise.
438 * emultempl/sunos.em: Likewise.
439 * emultempl/ticoff.em: Likewise.
440 * emultempl/vanilla.em: Likewise.
441
9f4fb502
AM
4422005-08-03 Alan Modra <amodra@bigpond.net.au>
443
444 * ldlang.c (exp_init_os): Handle etree_provide.
445 * emulparams/armelf.sh (OTHER_END_SYMBOLS): Rename from..
446 (OTHER_BSS_END_SYMBOLS): ..this.
447 * emulparams/armelf_linux.sh: Likewise.
448 * emulparams/armnto.sh: Likewise.
449 * emulparams/criself.sh: Likewise.
450 * emulparams/crislinux.sh: Likewise.
451 * emulparams/elf32frv.sh: Likewise.
452 * emulparams/elf32mcore.sh: Likewise.
453 * emulparams/elf32ppc.sh: Likewise.
454 * emulparams/elf32ppclinux.sh: Likewise.
455 * emulparams/hppa64linux.sh: Likewise.
456 * scripttempl/armbpabi.sc: Substitute $OTHER_END_SYMBOLS, not
457 $OTHER_BSS_END_SYMBOLS.
458 * scripttempl/elf32sh-symbian.sc: Likewise.
459 * scripttempl/elf_chaos.sc: Likewise.
460 * scripttempl/iq2000.sc: Likewise.
461 * scripttempl/xstormy16.sc: Likewise.
462 * scripttempl/elf.sc: Likewise. Delete __bss_start comment.
463 * scripttempl/elfxtensa.sc: Likewise.
464
e9156f74
NC
4652005-07-29 Nick Clifton <nickc@redhat.com>
466
467 * ldmain.c (main): Allow -shared and -static to be used together.
468 * ld.texinfo (-static): Mention that it is allowed with -shared.
469
89806866
DD
4702005-07-28 DJ Delorie <dj@redhat.com>
471
472 * ldlang.c (lang_output_section_statement_lookup_1): Don't cast a
473 unary & address operator, as that breaks GCC's strict aliasing
474 rules.
475
3b22753a
L
4762005-07-25 Jan Hubicka <jh@suse.cz>
477 H.J. Lu <hongjiu.lu@intel.com>
478
479 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): New.
480
481 * scripttempl/elf.sc: Updated for large section support.
482
9f971fcb
NC
4832005-07-21 Ralf Corsepius <ralf.corsepius@rtems.org>
484
485 * configure.tgt: Remove i[3-7]86-*-rtemself*.
486 Remove sparc-*-rtemself*.
487
71f51525
BE
4882005-07-21 Ben Elliston <bje@gnu.org>
489
490 * ldgram.y (ldgram_want_filename): Remove unused static.
491
fe773494
DD
4922005-07-20 DJ Delorie <dj@redhat.com>
493
494 * emulparams/elf32m32c.sh (TEMPLATE_NAME): New.
495 (EXTRA_EM_FILE): New.
496
0e1b44ba
L
4972005-07-19 H.J. Lu <hongjiu.lu@intel.com>
498
499 * ldmain.c (main): Reindent.
500
a3540342
PB
5012005-07-19 Paul Brook <paul@codesourcery.com>
502
503 * configure.host (HOSTING_CRT0): Parse output of gcc --help --verbose
504 to determine dynamic linker name.
505
85da3a56
NC
5062005-07-18 Nick Clifton <nickc@redhat.com>
507
508 * configure.tgt: Restore alpha ordering to list of arches.
509
42fa7765
AM
5102005-07-16 Alan Modra <amodra@bigpond.net.au>
511
512 * emultempl/elf32.em (gld*_provide_init_fini_syms): Prototype.
513 (gld*_before_allocation): Call ldemul_do_assignments rather than
514 gld*_provide_init_fini_syms directly.
515 * emultempl/ppc32elf.em (gld*_after_allocation): Delete.
516 (ppc_do_assignments): New function.
517 (LDEMUL_AFTER_ALLOCATION): Don't define.
518 (LDEMUL_DO_ASSIGNMENTS): Define.
519
0f82ff91
AM
5202005-07-16 Alan Modra <amodra@bigpond.net.au>
521
522 * Makefile.am: Run "make dep-am".
523 (emipsidt.c, emipsidtl.c): Depend on generic.em.
524 * Makefile.in: Regenerate.
525
5e797c2c
AM
5262005-07-15 Alan Modra <amodra@bigpond.net.au>
527
528 * ldemul.c (ldemul_do_assignments): New function.
529 (do_assignments_default): New function.
530 * ldemul.h (ldemul_do_assignments): Declare.
531 (do_assignments_default): Declare.
532 (struct ld_emulation_xfer_struct): Add do_assignments.
533 * ldlang.c (lang_do_assignments) Call ldemul_do_assignments.
534 * emultempl/aix.em (ld_*_emulation): Init do_assignments field.
535 * emultempl/armcoff.em: Likewise.
536 * emultempl/beos.em: Likewise.
537 * emultempl/generic.em: Likewise.
538 * emultempl/gld960.em: Likewise.
539 * emultempl/gld960c.em: Likewise.
540 * emultempl/linux.em: Likewise.
541 * emultempl/lnk960.em: Likewise.
542 * emultempl/m68kcoff.em: Likewise.
543 * emultempl/pe.em: Likewise.
544 * emultempl/sunos.em: Likewise.
545 * emultempl/ticoff.em: Likewise.
546 * emultempl/vanilla.em: Likewise.
547 * emultempl/elf32.em: Likewise, to call gld*_provide_init_fini_syms.
548 (gld*_find_exp_assignment): Adjust bfd_elf_record_link_assignment call.
549
49f58d10
JB
5502005-07-14 Jim Blandy <jimb@redhat.com>
551
552 Add support for the Renesas M32C and M16C.
553 * Makefile.am (ALL_EMULATIONS): Add eelf32m32c.o.
554 (eelf32m32c.c): New target.
555 * Makefile.in: Regenerated.
556 * configure.tgt: Add case for m32c-*-elf.
557 * emulparams/elf32m32c.sh: New file.
558
a3c2b96a
AM
5592005-07-14 Alan Modra <amodra@bigpond.net.au>
560
561 * ldlang.c (strip_excluded_output_sections): Don't call
562 bfd_gc_sections.
563 * emultempl/elf32.em (gld*_provide_bound_symbols): Move.
564 (gld*_provide_init_fini_syms): Move.
565 (gld*_before_allocation): Call the above from here..
566 (gld*_finish): ..not here. Call _bfd_elf_fix_excluded_sec_syms.
567 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
568 * emultempl/ppc64elf.em (ppc_finish): Likewise.
569
438361cd
NC
5702005-07-10 Ralf Corsepius <ralf.corsepius@rtems.org>
571
572 * configure.tgt: Remove sparc*-*-rtemsaout*, i[3-7]86-go32-rtems*,
573 i[3-7]86-*-rtemscoff*, hppa*-*-rtems*, mips*el-*-rtems*,
574 powerpcle-*-rtems*.
575
2c7fd14a
CF
5762005-07-09 Christopher Faylor <cgf@timesys.com>
577
578 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Enable runtime
579 relocation by default.
580 (compute_dll_image_base): Avoid linking into cygwin dll address space.
581
32124d5b
AM
5822005-07-08 Alan Modra <amodra@bigpond.net.au>
583
584 * ldlang.c (wild_sort): Formatting.
585 (strip_excluded_output_sections): Strip zero size sections here.
586 * emultempl/elf32.em (gld*_strip_empty_sections): Delete.
587 (gld*_finish): Don't call the above.
588 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
589 * emultempl/ppc64elf.em (ppc_finish): Likewise.
590
4cd5aacc 5912005-07-05 Paul Brook <paul@codesourcery.com>
9d8504b1
PB
592
593 * Makefile.am (ALL_EMULATIONS): Add eelf32ppcvxworks.o.
594 (eelf32ppcvxworks.o): Add dependencies.
595 * Makefile.in: Regenerate.
596 * configure.tgt: Add entry for powerpc-vxworks.
597 * emulparams/elf32-ppc.c: Mention elf32ppcvxworks.sh in comment.
598 * emulparams/elf32ppcvxworks.sh: New file.
599 * emultempl/ppc32elf.em (bfd_elf32_powerpc_vxworks_vec): Declare.
600 (is_ppc_elf32_vec): New function.
601 (ppc_after_open, ppc_before_allocation,
602 gld${EMULATION_NAME}_after_allocation): Use it.
603
35eb9fb6
NC
6042005-07-05 Peter S. Mazinger" <ps.m@gmx.net>
605
606 * emulparams/elf32bmip.sh (GENERATE_PIE_SCRIPT): Define as "yes".
607 * emulparams/elf32bmipn32-defs.sh (GENERATE_PIE_SCRIPT): Define as "yes".
608
5b5a4ec7
NC
6092005-07-04 Mike Frysinger <vapier@gentoo.org>
610
611 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Fix typo in
612 name.
613
80447b21
NC
6142005-07-04 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
615
616 * emulparams/m32relf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
617
711c0baa
AM
6182005-07-04 Aurelien Jarno <aurel32@debian.org>
619
620 * emultempl/elf32.em: Enable use of ld.so.conf for *-*-k*bsd-*.
621
c8c9c297
AM
6222005-07-01 Alan Modra <amodra@bigpond.net.au>
623
624 * scripttempl/elf.sc (.gcc_except_table): Don't KEEP.
625
b753922c
BE
6262005-06-30 Ben Elliston <bje@gnu.org>
627
628 * Makefile.am (check-DEJAGNU): Don't search for expect.
629 * Makefile.in: Regenerate.
630
c3298874
BE
6312005-06-30 Ben Elliston <bje@gnu.org>
632
633 * Makefile.am (EXPECT): Set to expect.
634 (RUNTEST): Likewise, set to runtest.
635 * Makefile.in: Regenerate.
636
a82644e2
NC
6372005-06-16 Alexander Klimov <alserkli@inbox.ru>
638
639 * emultempl/armelf.em: Add quotes to avoid a null test
640 expression.
641
e185dd51
DJ
6422005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
643
644 * ld.texinfo (Command Line Options): Add @item for --hash-size.
645
9d12f64c
AM
6462005-06-10 Alan Modra <amodra@bigpond.net.au>
647
648 * scripttempt/elf.sc (.bss): Align tail in a way that allows
649 empty section pruning.
650
502bdb00
JW
6512005-06-09 Steve Ellcey <sje@cup.hp.com>
652
653 * configure.in (AM_BINUTILS_WARNINGS): Add.
654 (BFD_NEED_DECLARATION) Replace with AC_CHECK_DECLS.
655 * config.in: Regenerate.
656 * configure: Regenerate.
657 * sysdep.h (NEED_DECLARATION_*): Replace with HAVE_DECL_*
658 * ldmain.c: Ditto.
659
dea2f0a8
AM
6602005-06-09 Alan Modra <amodra@bigpond.net.au>
661
662 * ldexp.c (fold_unary <ALIGN_K>): Revert last change.
663
e9ee469a
AM
6642005-06-09 Alan Modra <amodra@bigpond.net.au>
665
666 * ld.h (lang_phase_type): Move to..
667 * ldexp.h: ..here. Add lang_mark_phase_enum.
668 (node_type): Remove etree_undef and etree_unspec.
669 (exp_data_seg): Delete.
670 (struct ldexp_control, expld): New.
671 (invalid, exp_mark_used_section): Delete.
672 (exp_fold_tree, exp_get_vma, exp_get_value_int, exp_get_fill,
673 exp_get_abs_int): Update prototypes.
674 * ldexp.c (assigning_to_dot): Delete.
675 (expld): Define.
676 (make_abs): Operate directly on expld.result. Update all callers.
677 (new_abs): Likewise. Return void.
678 (new_rel_from_abs): Rename from new_rel_from_section.
679 (new_rel, new_rel_from_abs): Operate on expld.result and return void.
680 Update all callers.
681 (fold_unary): Operate on expld.result and return void. Remove
682 "current_section", "allocation_done", "dot", "dotp" and "mark_used"
683 params. Update all callers.
684 (fold_binary, fold_trinary, fold_name, exp_fold_tree_1): Likewise.
685 (fold_unary <ALIGN_K>): Ensure alignment is absolute.
686 (fold_unary <ABSOLUTE>): Use make_abs.
687 (fold_unary <DATA_SEGMENT_END>): Evaluate mark_phase as for
688 allocating_phase.
689 (fold_binary <DATA_SEGMENT_ALIGN, DATA_SEGMENT_RELRO_END, >): Ditto.
690 (fold_binary <'%','/'>): Don't error if marking.
691 (fold_name <SIZEOF_HEADERS>): Don't call bfd_sizeof_headers when
692 marking.
693 (fold_name <NAME>): Remove FIXME; -R is handled correctly. Don't
694 error when marking.
695 (fold_name <ADDR, LOADADDR, SIZEOF>): Don't set SEC_KEEP.
696 (exp_fold_tree_1): Don't error when marking.
697 (exp_fold_tree_1 <etree_rel>): Evaluate in all phases except first.
698 (exp_fold_tree_1 <etree_assign to dot>): Don't check for NULL
699 current section, instead check for NULL dotp.
700 (exp_fold_tree_1 <etree_provide>): Don't evaluate the assignment
701 source unless the symbol is referenced and undefined.
702 (exp_fold_tree): Remove "allocation_done" and "dot" params. Save
703 params to expld.
704 (exp_fold_tree_no_dot): Remove "current_section", "allocation_done
705 and "mark_used" params. Save params to expld. Update all callers.
706 (exp_assop): Do without temp var.
707 (exp_print_tree <etree_undef>): Delete code.
708 (exp_get_vma): Remove "allocation_done" param. Correct error return.
709 (exp_get_fill, exp_get_abs_int): Likewise.
710 (exp_get_value_int): Remove "allocation_done" param.
711 (exp_mark_used_section): Delete.
712 * ldgram.y (fill_exp): Update exp_get_fill call.
713 (origin_spec, length_spec): Update exp_get_vma call.
714 * ldlang.c (lang_init): Don't bother clearing lang_statement_iteration.
715 (lang_mark_used_section_1, lang_mark_used_section): Delete.
716 (strip_excluded_output_sections): Call one_lang_size_sections_pass in
717 marking mode. Merge old lang_mark_used_section code. Correct handling
718 of output sections with excluded input sections and data statements.
719 Don't drop non-zero sized sections. Don't zap os->bfd_section.
720 Do set SEC_EXCLUDE when appropriate.
721 (print_output_section_statement): Update for changed ldexp.c
722 interface.
723 (print_assignment, lang_size_sections_1): Likewise.
724 (lang_do_assignments_1, lang_enter_output_section_statement): Likewise.
725 (lang_new_phdr, lang_record_phdrs): Likewise.
726 (lang_size_sections): Likewise.
727 (insert_pad): Use following statement if it is a pad, rather than
728 creating a new one.
729 (lang_size_sections_1 <lang_output_section_statement_enum>): Do
730 process ignored output section to set vma and lma, but don't
731 update dot for these sections. Don't error if marking.
732 (lang_size_sections_1 <lang_assignment_statement_enum>): Don't
733 update dot for ignored sections.
734 (lang_size_sections_1 <lang_data_statement_enum>): Don't mark absolute
735 section with SEC_ALLOC.
736 (one_lang_size_sections_pass): New function.
737 (lang_size_sections): Remove first five params. Set expld.phase on
738 entry and exit. Use one_lang_size_sections_pass.
739 (lang_do_assignments): Remove all params. Update all callers.
740 (lang_reset_memory_regions): Clear os->processed for all output
741 section statements.
742 * ldlang.h (lang_do_assignments): Update prototype.
743 (lang_size_sections): Likewise.
744 (one_lang_size_sections_pass): Declare.
745 * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
746 lang_size_sections and lang_do_assignments calls.
747 * emultempl/elf32.em (layout_sections_again): Likewise.
748 * emultempl/ppc64elf.em (ppc_before_allocation): Use
749 one_lang_size_sections_pass.
750
b2be2013
AH
7512005-06-08 Aldy Hernandez <aldyh@redhat.com>
752
753 * emulparams/elf32ms1.sh: New.
754
a34e3ecb
EC
7552005-06-07 Eric Christopher <echristo@redhat.com>
756
757 * Makefile.am (eelf32ms1.c): Use tab.
758 * Makefile.in: Regenerate.
759
9e1f170f
AH
7602005-06-07 Aldy Hernandez <aldyh@redhat.com>
761 Michael Snyder <msnyder@redhat.com>
762 Stan Cox <scox@redhat.com>
763
764 * configure.tgt: Same.
765
766 * Makefile.am (ALL_EMULATIONS): Depend on eelf32ms1.o.
767 (eelf32ms1.c): Add eelf32ms1.c rule.
768
769 * Makefile.in: Regenerate.
770
b4f4e59f
AM
7712005-06-06 Alan Modra <amodra@bigpond.net.au>
772
773 * emultempl/ppc64elf.em (ppc_before_allocation): Always run
774 ppc64_elf_edit_opd.
775
18b79829
L
7762005-06-05 H.J. Lu <hongjiu.lu@intel.com>
777
778 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
779 section only if the symbol will be defined.
780
079f985c
L
7812005-06-04 H.J. Lu <hongjiu.lu@intel.com>
782
783 PR 992
784 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
785 section for etree_assign, etree_provide and etree_provided.
786 Call fold_binary on etree_binary.
787
788 * ldlang.c (lang_mark_used_section_1): Handle load base.
789
e1fffbe6
AM
7902005-06-03 Alan Modra <amodra@bigpond.net.au>
791
792 * ldmain.c (link_callbacks): Add einfo.
793 (add_archive_element): Use passed info, not link_info.
794 (constructor_callback): Likewise.
795 (reloc_overflow): Don't handle null bfd specially.
796 (reloc_dangerous, unattached_reloc): Likewise.
797 * ldmisc.c (vfinfo <B>): Print "ld generated" for null bfd.
798 (vfinfo <C, D, G>): Handle null bfd. Wrap comments.
799
408082ec
AM
8002005-06-02 Alan Modra <amodra@bigpond.net.au>
801
802 * ldexp.h (etree_value_type): Use "asection *" in place of
803 "struct lang_output_section_statement_struct *" for "section".
804 (exp_fold_tree): Likewise.
805 (exp_mark_used_section): Likewise.
806 * ldexp.c (new_rel, new_rel_from_section, fold_unary, fold_binary,
807 fold_trinary, fold_name, exp_fold_tree_1, exp_fold_tree,
808 exp_mark_used_section): Likewise for "current_section" param.
809 (make_abs, new_abs, exp_binop, exp_unop, exp_get_vma, exp_get_fill,
810 exp_get_abs_int): Adjust for above changes.
811 * ldlang.c (lang_mark_used_section_1, print_assignment,
812 lang_size_sections_1, lang_do_assignments_1): Likewise.
813 * ldexp.c (fold_name): Init entire result struct.
814
d0d3b2e8
MR
8152005-06-01 Maciej W. Rozycki <macro@linux-mips.org>
816
817 * emulparams/elf32btsmip.sh: Unset DATA_ADDR.
818
a359509e
ZW
8192005-05-31 Zack Weinberg <zack@codesourcery.com>
820
821 * ldlang.c (entry_symbol_default): New file-scope global.
822 (lang_finish): Use it, not a hardwired "start".
823 (lang_default_entry): Set it.
824 * ldlang.h: Declare lang_default_entry.
825 * emultempl/beos.em, emultempl/pe.em: Use lang_default_entry,
826 not lang_add_entry, to override default entry point symbol.
827
8d6d53d4
RH
8282005-05-29 Richard Henderson <rth@redhat.com>
829
830 * emulparams/elf64alpha.sh (PLT): New.
831 (TEXT_PLT): New.
832 * emultempl/alphaelf.em (disable_relaxation): New.
833 (limit_32bit): Rename from elf64alpha_32bit; update all users.
834 (elf64_alpha_use_secureplt): Declare.
835 (bfd_elf64_alpha_vec, bfd_elf64_alpha_freebsd_vec): Declare.
836 (alpha_after_open): New.
837 (alpha_before_allocation): New.
838 (OPTION_NO_RELAX, OPTION_SECUREPLT, OPTION_NO_SECUREPLT): New.
839 (PARSE_AND_LIST_LONGOPTS): Include them.
840 (PARSE_AND_LIST_OPTIONS): Likewise.
841 (PARSE_AND_LIST_ARGS_CASES): Likewise.
842 (LDEMUL_AFTER_OPEN, LDEMUL_BEFORE_ALLOCATION): New.
843 * scripttempl/elf.sc (TEXT_PLT): New.
844 (PLT): Use it.
845
f93e81d6
AS
8462005-05-27 Andreas Schwab <schwab@suse.de>
847
848 * configure.host (HOSTING_LIBS): Add libunwind.a if it exists.
849
61f8ebf2
AM
8502005-05-24 Alan Modra <amodra@bigpond.net.au>
851
852 * emultempl/ppc32elf.em (after_allocation): Don't call
853 ppc_elf_set_sdata_syms when relocatable.
854
8b803601
L
8552005-05-21 H.J. Lu <hongjiu.lu@intel.com>
856
857 * Makefile.am (ld.1): Revert the last 2 changes.
858 (info-recursive): Depend on ld.1.
859 * Makefile.in: Regenerated.
860
e366efef
L
8612005-05-21 H.J. Lu <hongjiu.lu@intel.com>
862
863 * Makefile.am (ld.1): Depend on "info" instead of
864 "configdoc.texi ldver.texi".
865 * Makefile.in: Regenerated.
866
abf32a89
L
8672005-05-21 H.J. Lu <hongjiu.lu@intel.com>
868
869 * Makefile.am (ld.1): Depend on "info".
870 * Makefile.in: Regenerated.
871
e3e71e27
ZW
8722005-05-19 Zack Weinberg <zack@codesourcery.com>
873
874 * Makefile.am: Have 'all' depend on 'info' and 'ld.1'.
875 * Makefile.in: Regenerate.
876
c19d1205
ZW
8772005-05-17 Zack Weinberg <zack@codesourcery.com>
878
879 * ld-arm/mixed-app.d: Adjust expected disassembly a little.
880
970c3dbc
DJ
8812005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
882
883 * Makefile.am (ldver.texi): Don't use $<.
884 * Makefile.in: Regenerated.
885
6e1b59d2
DJ
8862005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
887
888 * Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
889 $(srcdir) before $(BFDDIR)/doc.
890 * Makefile.in: Regenerated.
891
75ff4589
L
8922005-05-17 H.J. Lu <hongjiu.lu@intel.com>
893
894 PR 797
895 * ldexp.c (exp_fold_tree_1): Renamed from exp_fold_tree and
896 take take a bfd_boolean, mark_used. Ignore assert failure if
897 mark_used is TRUE.
898 (exp_fold_tree) Call exp_fold_tree_1 with mark_used == FALSE.
899 (exp_fold_tree_no_dot): Updated to take a bfd_boolean,
900 mark_used and pass down.
901 (fold_unary): Likewise.
902 (fold_binary): Likewise.
903 (fold_trinary): Likewise.
904 (exp_binop): Add FALSE to call to exp_fold_tree_no_dot.
905 (exp_trinop): Likewise.
906 (exp_unop): Likewise.
907 (exp_nameop): Likewise.
908 (exp_get_vma): Likewise.
909 (exp_get_fill): Likewise.
910 (exp_get_abs_int): Likewise.
911 (fold_name): Likewise. Set SEC_KEEP in output section flags.
912 (exp_mark_used_section): New.
913
914 * ldexp.h (exp_mark_used_section): New.
915
916 * ldlang.c (lang_output_section_statement_lookup_1): Set the
917 ignored field to FALSE.
918 (lang_mark_used_section_1): New.
919 (lang_mark_used_section): Call lang_mark_used_section_1.
920 (strip_excluded_output_sections): Call lang_mark_used_section
921 and check for unused sections.
922 (lang_size_sections_1): Skip an output section if it should
923 be ignored.
924 (lang_do_assignments_1): Likewise.
925 (lang_process): Don't call lang_mark_used_section here.
926
927 * ldlang.h (lang_output_section_statement_type): Change
928 all_input_readonly to bitfield. Add ignored.
929
25ba8e7b
NC
9302005-05-17 Lennert Buytenhek <buytenh@wantstofly.org>
931 Peter S. Mazinger" <ps.m@gmx.net>
932
c19d1205
ZW
933 * emulparams/armelf_linux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
934 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
25ba8e7b 935
10dbd1f3
NC
9362005-05-17 Julian Brown <julian@codesourcery.com>
937
938 * ldlang.c (print_assignment): Do not rely upon a valid result
939 having a section associated with it.
940
3b83e13a
NC
9412005-05-17 Nick Clifton <nickc@redhat.com>
942
943 * ldlang.c (Scan_for_self_assignment): Check an assignment tree to
944 see if the same value is being used on the rhs as on the lhs.
945 (print_assignment): Call scan_for_self_assignment and if it
946 returns true, do no display the result of the computation but
947 instead just the final value of the symbol on the lhs.
948 * ld.texinfo: Document this behaviour and provide an example of
949 when it will happen.
950
42ecbf5e
DJ
9512005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
952
953 * Makefile.am (AM_MAKEINFOFLAGS): Define.
954 (TEXI2DVI): Define.
955 (ldver.texi): Depend on distributed files instead of built files.
956 (ld.info): Include $(srcdir) in the rule target. Remove actions.
957 (ld.dvi): Remove actions.
958 (MAINTAINERCLEANFILES): Add configdoc.texi.
959 (CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in.
960 (install-data-local): Renamed from install.
961 (Makefile): Remove explicit dependency.
962 * acinclude.m4: Remove obsolete code.
963 * configure.in: Update AC_PREREQ. Remove extra $CONFIG_SHELL.
964 * Makefile.in, aclocal.m4, config.in, configure: Regenerated.
965
be2c2e39
BW
9662005-05-11 Bob Wilson <bob.wilson@acm.org>
967
968 * scripttempl/elfxtensa.sc: Sync up with elf.sc.
969 * emulparams/elf32xtensa.sh (PLT, GOT): Define.
970
0cf7d72c
AM
9712005-05-11 Alan Modra <amodra@bigpond.net.au>
972
973 * ldgram.y: Add SPECIAL token.
974 (sect_constraint): Handle SPECIAL.
975 * ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
976 (map_input_to_output_sections): Likewise.
977 * ldlex.l (SPECIAL): Define.
978 * emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
979 GOT, PLT, GOTPLT): Define.
980 * emultempl/ppc32elf.em (old_plt, old_got): New static vars.
981 (ppc_after_open): New function.
982 (PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
983 (PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
984 (PARSE_AND_LIST_OPTIONS): Document them.
985 (PARSE_AND_LIST_ARGS_CASES): Handle them.
986 (LDEMUL_AFTER_OPEN): Define.
987 * scripttempl/elf.sc (PLT): Don't override existing define.
988 (DATA_GOT, SDATA_GOT): Define and use to enable alternate got
989 placement rather than using NO_SMALL_DATA. Emit GOTPLT for RELRO_NOW.
990
4ca02259
AM
9912005-05-10 Alan Modra <amodra@bigpond.net.au>
992
993 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
994 (DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
995 (GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END. Place after
996 DATA_SEGMENT_RELRO_END in script.
997
baf6e97f
L
9982005-05-09 H.J. Lu <hongjiu.lu@intel.com>
999
1000 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1001 Don't use a removed section.
1002
a6e1b90f
L
10032005-05-09 H.J. Lu <hongjiu.lu@intel.com>
1004
1005 * ldmain.c (reloc_overflow): Use output_bfd if the symbol
1006 is defined in the ABS section.
1007
c18bae34
L
10082005-05-06 H.J. Lu <hongjiu.lu@intel.com>
1009
1010 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
1011 Put back !link_info.relocatable.
1012
4ef24a2e
L
10132005-05-06 H.J. Lu <hongjiu.lu@intel.com>
1014
3f693ed5 1015 PR 878
4ef24a2e
L
1016 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
1017 Just check link_info.executable.
1018
e06fb9c3
NC
10192005-05-06 Nick Clifton <nickc@redhat.com>
1020
1021 * Update the address and phone number of the FSF organization in
1022 the GPL notices in the following files:
1023 aclocal.m4, deffile.h, deffilep.y, fdl.texi, ld.h, ldcref.c,
1024 ldctor.c, ldctor.h, ldemul.c, ldexp.c, ldexp.h, ldfile.c,
1025 ldfile.h, 20ldgram.y, ldint.texinfo, ldlang.c, ldlang.h, ldlex.h,
1026 ldlex.l, ldmain.c, ldmain.h, ldmisc.c, ldmisc.h, ldver.c, ldver.h,
1027 ldwrite.c, ldwrite.h, lexsup.c, mri.c, mri.h, pe-dll.c, pe-dll.h,
1028 sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
1029 emultempl/armcoff.em, emultempl/armelf.em, emultempl/beos.em,
1030 emultempl/crxelf.em, emultempl/elf32.em, emultempl/generic.em,
1031 emultempl/gld960.em, emultempl/gld960c.em, emultempl/hppaelf.em,
1032 emultempl/ia64elf.em, emultempl/irix.em, emultempl/linux.em,
1033 emultempl/lnk960.em, emultempl/m68hc1xelf.em,
1034 emultempl/m68kcoff.em, emultempl/m68kelf.em,
1035 emultempl/mipsecoff.em, emultempl/mmix-elfnmmo.em,
1036 emultempl/mmixelf.em, emultempl/mmo.em, emultempl/needrelax.em,
1037 emultempl/pe.em, emultempl/ppc32elf.em, emultempl/ppc64elf.em,
1038 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em,
1039 emultempl/vanilla.em, emultempl/xtensaelf.em
1040
01d9ad14
L
10412005-05-05 H.J. Lu <hongjiu.lu@intel.com>
1042
1043 * scripttempl/elf.sc: Document the usage of __bss_start.
1044
eac338cf
PB
10452005-05-05 Paul Brook <paul@codesourcery.com>
1046
1047 * Makefile.am: Add eelf_i386_vxworks.
1048 * Makefile.in: Regenerate.
1049 * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
1050 * emulparams/elf_i386_vxworks.sh: New file.
1051 * emulparams/vxworks.sh: New file.
1052 * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
1053
f652615e
L
10542005-05-04 H.J. Lu <hongjiu.lu@intel.com>
1055
1056 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1057 Call _bfd_elf_provide_section_bound_symbols.
1058
8423293d
AM
10592005-05-04 Alan Modra <amodra@bigpond.net.au>
1060
1061 * ldemul.c: Include bfdlink.h.
1062 (ldemul_before_allocation): Assume before_allocation is non-zero.
1063 (before_allocation_default): Call strip_excluded_output_sections.
1064 * ldlang.c (stripped_excluded_sections): New variable.
1065 (lang_add_section): Build input section list for each output
1066 section, attached via map_head and map_tail pointers.
1067 (strip_excluded_output_sections): Make global. Traverse the
1068 input section lists to find which output sections can go. Clear
1069 link_order pointers and set stripped_excluded_sections.
1070 (lang_process): Call strip_excluded_output_sections.
1071 * ldlang.h (strip_excluded_output_sections): Declare.
1072 * ldwrite.c: Update throuhout for link_order_head -> map_head change.
1073 * emultempl/aix.em (before_allocation): Call
1074 strip_excluded_output_sections.
1075 * emultempl/armcoff.em (before_allocation): Likewise.
1076 * emultempl/beos.em (before_allocation): Likewise.
1077 * emultempl/linux.em (before_allocation): Likewise.
1078 * emultempl/pe.em (before_allocation): Likewise.
1079 * emultempl/sunos.em (before_allocation): Likewise.
1080 * emultempl/elf32.em (before_allocation): Likewise. Call
1081 bfd_elf_size_dynsym_hash_dynstr too.
1082 * emultempl/lnk960.em (lnk960_before_allocation): Delete.
1083 (ld_lnk960): Use before_allocation_default.
1084
5daa8fe7
L
10852005-05-02 H.J. Lu <hongjiu.lu@intel.com>
1086
1087 * emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
1088 Updated for bfd_section_list_remove change.
1089 * ldlang.c (lang_insert_orphan): Likewise.
1090 (strip_excluded_output_sections): Likewise.
1091 (sort_sections_by_lma): New.
1092 (lang_check_section_addresses): Sort the sections before
1093 checking addresses.
1094
009b6a7a
DJ
10952005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
1096
1097 * configure.tgt: Add h8300*-*-rtemscoff.
1098 Switch h8300*-*-rtems* to elf.
1099
279e75dc
BE
11002005-04-29 Ben Elliston <bje@au.ibm.com>
1101
1102 * ldgram.y (lang_memory_region_type): Make static.
1103 (ldgram_want_filename): Likewise.
1104 * ldemul.c (ld_emulation): Make static.
1105 * ldfile.h (ldfile_find_command_file): Remove extern.
1106 * ldfile.c (ldfile_find_command_file): Make static.
1107 * ldlang.h (unique_section_list): Remove extern declaration.
1108 * ldlang.c (unique_section_list): Make static.
1109 * mri.h (symbol_truncate): Remove extern declaration.
1110 * mri.c (symbol_truncate): Make static.
1111 (order, only_load, address, alias): Likewise.
1112 (alignment, subalignment): Likewise.
1113
4a2afbc1
L
11142005-04-27 H.J. Lu <hongjiu.lu@intel.com>
1115
1116 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1117 Use the first SEC_ALLOC section which isn't SEC_READONLY or the
1118 last SEC_ALLOC section if such a section doesn't exist.
1119
fd9719b1
MK
11202005-04-24 Mark Kettenis <kettenis@gnu.org>
1121
1122 * configure.host: Add *-*-openbsd support.
1123
33bfe774
JB
11242005-04-15 Julian Brown <julian@codesourcery.com>
1125
1126 * ld.texinfo: Document --use-blx.
1127 * emultempl/armelf.em (use_blx): New variable.
1128 (arm_elf_create_output_section_statements): Communicate value of
1129 use_blx to bfd.
1130 (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
1131 (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
1132 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
1133
9e9b66a9
AM
11342005-04-14 Alan Modra <amodra@bigpond.net.au>
1135
1136 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
1137 * configure.in: Include ../bfd/warning.m4 contents.
1138 * Makefile.in: Regenerate.
1139 * configure: Regenerate.
1140
ceae3e33
AM
11412005-04-12 Alan Modra <amodra@bigpond.net.au>
1142
1143 * Makefile.am: Run "make dep-am".
1144 (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
1145 * Makefile.in: Regenerate.
1146 * config.in: Regenerate.
1147
7cedef86
AM
11482005-04-11 Alan Modra <amodra@bigpond.net.au>
1149
1150 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
1151 as_needed libs that were not needed.
1152 (gld${EMULATION_NAME}_check_needed): Likewise.
1153
187ffe95
NC
11542005-04-07 Nick Clifton <nickc@redhat.com>
1155
1156 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
0cf7d72c 1157 ldfile.h can use the lang_input_statement type.
187ffe95 1158
72223188
JJ
11592005-04-06 Jakub Jelinek <jakub@redhat.com>
1160
1161 * ldlang.c: Formatting.
1162 (walk_wild_consider_section): Remember return value from wildcardp.
1163 (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
1164 (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
1165
11662005-04-06 Robert O'Callahan <rocallahan@novell.com>
1167
1168 * ld.h (lean_section_userdata_type): Remove.
1169 (fat_section_userdata_type): Remove file field.
1170 (SECTION_USERDATA_SIZE): Remove.
1171 * ldlang.c (init_os): Eliminate initialization of unused
1172 lean_section_userdata_type.
1173
1174 * ldlang.h (callback_t, walk_wild_section_handler_t): New
1175 typedefs.
1176 (struct lang_wild_statement_struct): Add walk_wild_section_handler
1177 and handler_data fields.
1178 * ldlang.c (callback_t): Removed.
1179 (walk_wild_consider_section, walk_wild_section_general,
1180 section_iterator_callback, find_section, is_simple_wild,
1181 match_simple_wild, walk_wild_section_specs1_wild0,
1182 walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
1183 walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
1184 wild_spec_can_overlap, analyze_walk_wild_section_handler): New
1185 functions.
1186 (lang_add_wild): Call analyze_walk_wild_section_handler.
1187 (walk_wild_section): Renamed to walk_wild_section_general and
1188 created a wrapper function.
1189 (section_iterator_callback_data): New typedef.
1190
34875e64
NC
11912005-04-04 Nick Clifton <nickc@redhat.com>
1192
1193 * configure.in: Add a check for <unistd.h> providing a prototype
1194 for getopt() which is compatible with the one in
1195 include/getopt.h. If so then define HAVE_DECL_GETOPT.
1196 * configure: Regenerate.
1197 * config.in (HAVE_DECL_GETOPT): Add.
1198 * ldemul.c: Include config.h
1199 * lexsup.c: Likewise.
1200 * emultempl/elf32.sc: Likewise.
1201
deb04cdb
AM
12022005-03-29 Alan Modra <amodra@bigpond.net.au>
1203
1204 * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
1205 New function, extracted from static void gld${EMULATION_NAME}_finish.
1206 (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
1207 (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
1208 * emultempl/ppc64elf.em: Revert last change.
1209 (ppc_layout_sections_again): Use
1210 gld${EMULATION_NAME}_layout_sections_again.
1211 (ppc_finish): Don't call gld${EMULATION_NAME}_finish. Instead call
1212 gld${EMULATION_NAME}_strip_empty_sections and
1213 gld${EMULATION_NAME}_provide_init_fini_syms.
1214 * emultempl/hppaelf.em: Similarly.
1215
8b4e5e28
AM
12162005-03-29 Alan Modra <amodra@bigpond.net.au>
1217
1218 * emultempl/ppc64elf.em (need_laying_out): Delete. Remove all refs.
1219 (ppc_finish): Don't call bfd_elf_discard_info.
1220 * emultempl/hppaelf.em: Similarly.
1221
510a939b
NC
12222005-03-24 Nick Clifton <nickc@redhat.com>
1223
1224 * po/fr.po: Updated French translation.
1225
ed84e695
NC
12262005-03-23 Mike Frysinger <vapier@gentoo.org>
1227 Nick Clifton <nickc@redhat.com>
1228
1229 * configure.host: Accept any C library to accompany a GNU Linux
1230 implementation, not just the GNU C library.
1231 * configure.tgt: Likewise.
1232 * emultempl/elf32.em: Likewise.
deb04cdb 1233
81e1b023
L
12342005-03-22 H.J. Lu <hongjiu.lu@intel.com>
1235
1236 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
1237 (gld${EMULATION_NAME}_finish): Call
1238 gld${EMULATION_NAME}_provide_bound_symbols to provide
1239 __preinit_array_start, __preinit_array_end, __init_array_start,
1240 __init_array_end, __fini_array_start and __fini_array_end.
1241
1242 * scripttempl/elf.sc: Don't provide __preinit_array_start,
1243 __preinit_array_end, __init_array_start, __init_array_end,
1244 __fini_array_start nor __fini_array_end.
1245
11d2f718
AM
12462005-03-23 Alan Modra <amodra@bigpond.net.au>
1247
1248 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
1249 SEC_EXCLUDE on .gnu.warning sections.
1250
644285ef
AM
12512005-03-22 Alan Modra <amodra@bigpond.net.au>
1252
1253 * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
1254
c9a2f333
AM
12552005-03-21 Alan Modra <amodra@bigpond.net.au>
1256
1257 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
1258 function.
1259 (LDEMUL_AFTER_ALLOCATION): Define.
1260
b1ab9777
AM
12612005-03-21 Alan Modra <amodra@bigpond.net.au>
1262
1263 * emultempl/ppc64elf.em (ppc_finish): Rename from
1264 gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
1265 (LDEMUL_FINISH): Update.
1266 * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
1267 * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
1268
2a2a7c94
JB
12692005-03-18 Julian Brown <julian@codesourcery.com>
1270
1271 * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
1272 .rel.fini_array.
1273 (.rela.dyn): Add .rela.init_array, .rela.fini_array.
1274 (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
1275
98720c64
L
12762005-03-18 H.J. Lu <hongjiu.lu@intel.com>
1277
1278 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
1279 bfd_section when removing unused empty output sections for
1280 non-relocatable link.
1281
41c7ba7c
AM
12822005-03-19 Alan Modra <amodra@bigpond.net.au>
1283
1284 * ldlang.c (lang_insert_orphan): Use old section_tail rather than
1285 traversing the bfd section list to find pointer to new section.
1286
0fb53118
AM
12872005-03-18 Alan Modra <amodra@bigpond.net.au>
1288
1289 * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
1290 input sections into .sdata and .sbss output respectively.
1291
de7f8cc8
BW
12922005-03-16 David Heine <dlheine@tensilica.com>
1293 Bob Wilson <bob.wilson@acm.org>
1294
1295 * ldlang.c (IGNORE_SECTION): Remove check for zero size.
1296 (lang_check_section_addresses): Ignore zero size sections here.
1297
57316bff
L
12982005-03-16 H.J. Lu <hongjiu.lu@intel.com>
1299
1300 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
1301 unused empty output sections for non-relocatable link.
1302
1303 * ld.h (args_type): Remove gc_sections.
1304
1305 * ldlang.c (lang_mark_used_section): New.
1306 (lang_gc_sections): Use link_info.gc_sections instead of
1307 command_line.gc_sections.
1308 * ldmain.c (main): Likewise.
1309 * lexsup.c (parse_args): Likewise.
1310 * ldlang.c (lang_process): Call lang_mark_used_section.
1311
1312 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
1313
1ad12f97
NC
13142005-03-16 Nick Clifton <nickc@redhat.com>
1315 Ben Elliston <bje@au.ibm.com>
1316
569acd2c 1317 * configure.in (werror): New switch: Add -Werror to the
1ad12f97 1318 compiler command line. Enabled by default. Disable via
569acd2c 1319 --disable-werror.
1ad12f97
NC
1320 * configure: Regenerate.
1321
cb2d1ef2
AM
13222005-03-16 Alan Modra <amodra@bigpond.net.au>
1323
1324 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
1325 (OTHER_RELRO_SECTIONS): Set this instead.
1326
957d91c1
NC
13272005-03-15 Nick Clifton <nickc@redhat.com>
1328
1329 * NEWS: Add cutoff for changes in 2.16 release.
1330
34723071
NC
13312005-03-15 Mikkel Krautz <krautz@gmail.com>
1332
1333 * configure.tgt (x86_64-elf): Add target.
1334
729ae8d2
AM
13352005-03-15 Alan Modra <amodra@bigpond.net.au>
1336
1337 * po/es.po: Commit new Spanish translation.
1338
8b3d8fa8
AM
13392005-03-14 Alan Modra <amodra@bigpond.net.au>
1340
1341 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
1342 Tidy etree_assert case.
1343
882cb63e
AM
13442005-03-14 Alan Modra <amodra@bigpond.net.au>
1345
1346 * po/tr.po: Commit new Turkish translation.
1347
61c84b48
DJ
13482005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
1349
1350 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
1351 * Makefile.in: Regenerated.
1352 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
1353
41c9e29d
NC
13542005-03-07 Nick Clifton <nickc@redhat.com>
1355
1356 * po/fr.po: Updated translation.
1357
06647dfd
AM
13582005-03-05 Alan Modra <amodra@bigpond.net.au>
1359
1360 * po/ld.pot: Regenerate.
1361
bb14f524
JB
13622005-03-02 Jan Beulich <jbeulich@novell.com>
1363
1364 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
1365 * pe-dll.c (pe_dll_generate_implib): Likewise.
1366
0ef622cb
BE
13672005-02-24 Ben Elliston <bje@au.ibm.com>
1368
1369 * ldfile.c: Remove GNU960 conditional code.
1370 * emultempl/gld960.em: Likewise.
1371 * emultempl/gld960c.em: Likewise.
1372 * emultempl/lnk960.em: Likewise.
1373
f3f4bcca
NC
13742005-02-24 Nick Clifton <nickc@redhat.com>
1375
1376 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
1377 empty string from calls to concat.
1378
13792005-02-23 Nick Clifton <nickc@redhat.com>
1380
1381 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
1382 arguments passed to concat() with a NULL.
1383
1384 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
1385 define types needed by ldfile.h
1386
47639182
AM
13872005-02-23 Alan Modra <amodra@bigpond.net.au>
1388
1389 * pe-dll.c: Warning fixes.
1390 * emultempl/sunos.em: Likewise.
1391
ace66bb2
DJ
13922005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
1393
1394 * ldlang.c (section_already_linked): Don't call
1395 bfd_section_already_linked for dynamic objects.
1396
5718918d
AM
13972005-02-22 Alan Modra <amodra@bigpond.net.au>
1398
1399 * ldexp.c: Warning fixes.
1400 * ldwrite.c: Likewise.
1401 * emultempl/elf32.em: Likewise.
1402
ebe372c1
L
14032005-02-21 H.J. Lu <hongjiu.lu@intel.com>
1404
1405 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
1406 tic54x input only.
1407 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
1408 and ECOFF output only.
1409
0ca2f5d5
AM
14102005-02-21 Alan Modra <amodra@bigpond.net.au>
1411
1412 * config.in: Regenerate.
1413 * configure: Regenerate.
1414
fbbb9ac5
ZW
14152005-02-17 Zack Weinberg <zack@codesourcery.com>
1416
1417 * ldexp.c (assigning_to_dot): New global flag.
1418 (fold_name): If assigning_to_dot is true, object immediately to
1419 an undefined symbol.
1420 (exp_fold_tree): Set and clear assigning_to_dot around the
1421 recursive call to exp_fold_tree to process the right-hand side
1422 of an assignment to the location counter.
1423
c68dac40
PB
14242005-02-17 Paul Brook <paul@codesourcery.com>
1425
1426 * scripttempl/armbpabi.sc: Add dummy name to version block.
1427
20c2cbe3
AM
14282005-02-17 Alan Modra <amodra@bigpond.net.au>
1429
1430 * ldexp.c (new_abs): Init new.str.
1431
0b48acfe
MM
14322005-02-15 Mark Mitchell <mark@codesourcery.com>
1433
1434 * configure.in (AC_CHECK_FUNCS): Add glob.
1435 * configure: Regenerated.
1436 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
1437 not defined.
1438 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
1439 if HAVE_GLOB is not defined.
fbbb9ac5 1440
ff925e69
KK
14412005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1442
1443 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
1444 lib_path if NATIVE is yes.
1445
92b7a70f
AM
14462005-02-16 Alan Modra <amodra@bigpond.net.au>
1447
1448 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
1449 an error creating fake bfd fatal.
1450 (ppc_before_allocation): Continue on after errors.
1451 (gld${EMULATION_NAME}_finish): Likewise.
1452
297ba367
NC
14532005-02-15 Nick Clifton <nickc@redhat.com>
1454
1455 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
1456 not declared. It is not used and its presence causes a compile
1457 time warning.
fbbb9ac5 1458
9eabd475
ZW
14592005-02-11 Zack Weinberg <zack@codesourcery.com>
1460
1461 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
1462 If st.st_ino is zero, do not treat the library as a duplicate.
1463
d457dcf6
JJ
14642005-02-10 Jakub Jelinek <jakub@redhat.com>
1465
1466 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1467 Set BFD_LINKER_CREATED on the stubs bfd.
1468 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
1469 Likewise.
1470
4e5db43b
MM
14712005-02-08 Mark Mitchell <mark@codesourcery.com>
1472
1473 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
9eabd475 1474 local.
4e5db43b
MM
1475 (Image$$ER_RO$$Base): Define whenever RELOCATING.
1476 (Image$$ER_RO$$Limit): Likewise.
1477 (SHT$$INIT_ARRAY$$Base): Likewise.
1478 (SHT$$INIT_ARRAY$$Limit): Likeise.
1479
4297f9f1
BE
14802005-02-10 Ben Elliston <bje@au.ibm.com>
1481
1482 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
1483
1c7c5e5b
RS
14842005-02-08 Richard Sandiford <rsandifo@redhat.com>
1485
1486 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
1487 to include o32 and n64 emulations.
1488 (mips64*-*-linux-gnu*): Likewise.
1489
300475fe
HPN
14902005-02-08 Hans-Peter Nilsson <hp@axis.com>
1491
1492 * ldmain.c (warning_callback, warning_find_reloc): Prepend
1493 "warning: " to warning messages.
1494
4ea42fb7
AM
14952005-02-04 Alan Modra <amodra@bigpond.net.au>
1496
1497 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
1498 look up symbol for etree_provide here.
1499
161f49a3
DJ
15002005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
1501
1502 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
1503
73ae6183
NC
15042005-02-01 Edward Welbourne <eddy@opera.com>
1505 Nick Clifton <nickc@redhat.com>
1506
1507 * ld.texinfo (Source Code Reference): New node describing how to
1508 access linker script defined variables from source code.
1509
77cfaee6
AM
15102005-02-01 Alan Modra <amodra@bigpond.net.au>
1511
1512 * ld.texinfo: Clarify --as-needed operation.
1513
c46f8c51
AC
15142005-01-31 Andrew Cagney <cagney@gnu.org>
1515
1516 * configure: Regenerate to track ../gettext.m4.
1517
d342277e
NC
15182005-01-31 Nick Clifton <nickc@redhat.com>
1519
1520 * ldver.c (ldversion): Bump reported copyright date to 2005.
1521
d6486796
NC
15222005-01-31 Nick Clifton <nickc@redhat.com>
1523
1524 * configure.tgt: Remove obsolete targets m68k-lynxos and
1525 sparc-lynxos.
1526
319850b4
JB
15272005-01-28 Julian Brown <julian@codesourcery.com>
1528
1529 * emultempl/armelf.em (fix_v4bx): New variable.
1530 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
1531 value to bfd.
1532 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
1533 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
1534 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
9eabd475 1535 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
319850b4
JB
1536 * NEWS: Mention --fix-v4bx.
1537 * ld.texinfo: Document --fix-v4bx.
1538
dc4c9c19
MM
15392005-01-25 Mark Mitchell <mark@codesourcery.com>
1540
1541 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
1542 as to include .ARM.exidx$${Base,Limit}.
1543 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
1544 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
1545 Put .init_array, .fini_array, etc. into the read-only data
9eabd475
ZW
1546 segment.
1547
7e9f0867
AM
15482005-01-25 Alan Modra <amodra@bigpond.net.au>
1549
1550 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
1551 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
1552 only needed by an as-needed lib that didn't get linked.
1553
7e69709c
AM
15542005-01-23 Alan Modra <amodra@bigpond.net.au>
1555
1556 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
1557 __DTOR_LIST__ description.
1558
b5666f2f
AM
15592005-01-23 Alan Modra <amodra@bigpond.net.au>
1560
1561 * ld.texinfo (Location Counter <dot outside sections>): Document
1562 effects of orphan section placement, and ". = ." workaround.
1563 * Makefile.in: Regenerate.
1564
4e25343c
RS
15652005-01-22 Richard Sandiford <rsandifo@redhat.com>
1566
1567 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
1568 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
1569
b717d30e
JJ
15702005-01-21 Jakub Jelinek <jakub@redhat.com>
1571
1572 * ldgram.y (AS_NEEDED): New token.
1573 (input_list): Handle AS_NEEDED ( input_list ).
1574 * ldlex.l (AS_NEEDED): Add.
1575 * ld.texinfo: Document AS_NEEDED ().
1576 * NEWS: Mention AS_NEEDED ().
1577
7a64f7b8
BE
15782005-01-21 Ben Elliston <bje@au.ibm.com>
1579
1580 * ldlang.c (lang_reasonable_defaults): Remove.
1581 (lang_process): Don't call lang_reasonable_defaults.
1582
1583 * ldexp.c (exp_assop): Remove #if 0'd code.
1584 (exp_print_tree): Likewise.
1585 * ldlang.c (lang_memory_region_lookup): Likewise.
1586 (open_output): Likewise.
1587 (lang_do_assignments_1): Likewise.
1588 (lang_place_orphans): Likewise.
1589 (lang_enter_output_section_statement): Likewise.
1590 (lang_reasonable_defaults): Likewise.
1591 * ldlang.h (struct lang_input_statement_struct): Likewise.
1592 * mri.c (mri_draw_tree): Likewise.
1593 (mri_load): Likewise.
1594 * pe-dll.c (generate_reloc): Likewise.
1595 (make_import_fixup_entry): Likewise.
1596 (pe_as16): Likewise.
1597 * emultempl/beos.em (set_pe_subsystem): Likewise.
1598 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
1599 * emultempl/pe.em: Likewise.
1600 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
1601
a154a8ad
MM
16022005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1603
1604 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
1605 (earmelfb_linux_eabi.c): New target.
1606 * Makefile.in: Regenerated.
1607 * configure.tgt (arm*b-*-linux-gnueabi): New target.
1608 * emulparams/armelfb_linux_eabi.sh: New file.
1609
9c183183
AM
16102005-01-20 Nick Hudson <skrll@netbsd.org>
1611
1612 PR ld/676
1613 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1614 Handle bfd_elf32_hppa_nbsd_vec.
1615
e2243057
RS
16162005-01-19 Richard Sandiford <rsandifo@redhat.com>
1617
1618 * ldmain.h (ld_sysroot): Change type to a constant string.
1619 * ldmain.c (ld_sysroot): Likewise.
1620 (get_relative_sysroot, get_sysroot): New functions, adding command-line
1621 support for changing the sysroot.
1622 (main): Call the new functions.
1623 * lexsup.c (OPTION_SYSROOT): New.
1624 (ld_options): Add --sysroot.
1625 (parse_args): Add a dummy handler for it.
1626 * ld.texinfo (--sysroot): Document.
1627 * NEWS: Mention the new --sysroot option.
1628
1449d79b
AM
16292005-01-18 Alan Modra <amodra@bigpond.net.au>
1630
1631 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
1632 (lang_place_orphans): Don't abort on just_syms_flag, instead call
1633 bfd_link_just_syms.
1634
a880c748
DS
16352005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
1636
1637 * defilep.y (def_name, def_library): Combine into...
1638 (def_image_name): New function. Strip name to basename,
1639 with warning.
1640
07baa8ee
MK
16412005-01-12 Mark Kettenis <kettenis@gnu.org>
1642
1643 * configure.in: Be sure to invoke config.sub using the shell.
1644 * configure: Regenerate.
1645
e9b181b8
AM
16462005-01-11 Alan Modra <amodra@bigpond.net.au>
1647
1648 * configure.host: Correct sed patterns for last change.
1649
59ef2528
NC
16502005-01-10 Nick Clifton <nickc@redhat.com>
1651
1652 PR binutils/609
1653 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
1654 to determine whether config.make_executable should be set to FALSE in
1655 conjunction with config.fatal_warnings.
1656 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
1657 (einfo): Pass TRUE as the extra argument.
1658
71a2d53a
NC
16592005-01-10 Greg Schaffer <gschafer@zip.com.au>
1660
1661 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
1662 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
1663 (ia64-*-aix): Delete - this target is obsolete, and would be
1664 broken by this patch.
1665
d6d0b336
EB
16662005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1667
1668 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
1669 (sparc64-sun-solaris2*): New host.
1670
4e7fd91e
PB
16712005-01-06 Paul Brook <paul@codesourcery.com>
1672
1673 * Makefie.am: Add earmelf_vxworks.
1674 * Makefile.in: Regenerate.
1675 * configure.tgt: Make arm-*-vxworks a separate case.
1676 * emulparams/armelf_vxworks.sh: New function.
1677
4c52953f
AM
16782005-01-06 Alan Modra <amodra@bigpond.net.au>
1679
1680 * emultempl/ppc64elf.em (no_multi_toc): New var.
1681 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
1682 (OPTION_NO_MULTI_TOC): Define.
1683 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
1684 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
1685
98d87ee7
NC
16862005-01-05 Nick Clifton <nickc@redhat.com>
1687
1688 PR binutils/614
1689 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
4c52953f 1690 Standard's specification for parsable error messages.
98d87ee7 1691
5f81b918
PB
16922005-01-04 Paul Brook <paul@codesourcery.com>
1693
1694 * Makefile.am: Correct dependency for earmsymbian.c.
1695 * Makefile.in: Regenerate.
1696
2af59bab
DS
16972004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
1698
1699 * emultempl/pe.em (set_pe_subsystem): Change second arg to
1700 lang_add_entry to FALSE.
1701
c38f024c
NC
17022004-12-23 Nick Clifton <nickc@redhat.com>
1703
1704 PR 600
1705 * emulparams/shelf.sh (.stack): Increase stack start address to
1706 0x300000.
1707
550bdea6
NC
17082004-12-20 Nick Clifton <nickc@redhat.com>
1709
1710 * ldmain.c (main): Issue an error message if -static and -shared
1711 are used together.
1712
e3070fef
JJ
17132004-12-17 Jakub Jelinek <jakub@redhat.com>
1714
1715 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
1716 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
1717 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
1718 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
1719 PT_GNU_RELRO segment end.
1720
2fbd2a87
NC
17212004-12-14 P.J. Darcy <darcypj@us.ibm.com>
1722
1723 * configure.tgt: Add s390x-ibm-tpf support.
1724
f2763b01
NC
17252004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
1726
1727 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
1728 BFD.
1729
cb9faf63
BE
17302004-12-07 Ben Elliston <bje@gnu.org>
1731
1732 * ldemul.h: Forward declare struct option.
1733
02f80eef
DS
17342004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
1735
1736 * scripttempl/pe.sc (.data): Add .jcr subsection.
1737
dea514f5
PB
17382004-11-30 Paul Brook <paul@codesourcery.com>
1739
1740 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
1741
32118081
NC
17422004-11-30 Tero Niemela <tero_niemela@yahoo.com>
1743
1744 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
1745 * Makefile.in: Regenerate.
1746
33f362e1
NC
17472004-11-26 Melissa Mears <asterisk@graces.dricas.com>
1748
1749 * emultempl/pe.em: Add --subsystem:xbox as well as
1750 --subsystem:%d.
1751 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
1752 and numeric subsystems.
1753
3eda52aa
AM
17542004-11-24 Alan Modra <amodra@bigpond.net.au>
1755
1756 * ldexp.c (fold_name): Correct PR 338 fix.
1757
6b3221b4
MM
17582004-11-19 Mark Mitchell <mark@codesourcery.com>
1759
1760 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
1761 (earmelf_linux_eabi.c): New target.
1762 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
1763 * emulparams/armelf_linux_eabi.sh: New file.
1764 * Makefile.in: Regenerated.
1765
9cd6d51a
NC
17662004-11-19 Nick Clifton <nickc@redhat.com>
1767
1768 PR 518
1769 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
1770 LENGTH fields in the MEMORY command, to explicitly state that
1771 symbols cannot be used in their expressions.
1772
3ec57632
NC
17732004-11-19 Jon Beniston <jon@beniston.com>
1774
1775 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
1776 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
4c52953f 1777 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
3ec57632
NC
1778 which return the length and origin of a memory.
1779 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
1780 * NEWS: Mention support for ORIGIN and LENGTH operators.
1781
b7693d02
DJ
17822004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
1783
1784 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
1785 a dynamic object for stubs.
1786
fc0e6df6
PB
17872004-11-04 Paul Brook <paul@codesourcery.com>
1788
1789 * ld.texinfo: Document --default-imported-symver.
1790 * ldmain.c (main): Set link_info.default_imported_symver.
1791 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
1792 (ld_options): Add --default-imported-symver.
1793 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
1794
7499d566
NC
17952004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
1796 Vineet Sharma <vineets@noida.hcltech.com>
1797
1798 * Makefile.am: Add entries for new maxq-coff target.
1799 * Makefile.in: Regenerate.
1800 * configure.tgt: Add support for maxq.
1801 * emulparams/maxqcoff.sh: New File.
1802 * scripttempl/maxqcoff.sc: New linker script for target maxq.
1803 * NEWS: Mention the new target.
1804
7f266840
DJ
18052004-11-04 Daniel Jacobowitz <dan@debian.org>
1806
1807 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
1808 (earmelf_oabi.c): Remove rule.
1809 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
1810 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
1811 * Makefile.in: Regenerated.
1812
a0055007
HPN
18132004-11-04 Hans-Peter Nilsson <hp@axis.com>
1814
1815 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
1816 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
1817 (FINI_START): Ditto.
1818 (INIT_END): Remove emitted "jump [sp+]".
1819 (FINI_END): Ditto.
1820
c5614fa4
AM
18212004-11-04 Alan Modra <amodra@bigpond.net.au>
1822
1823 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
1824 (no_opd_opt, no_toc_opt): New static vars.
1825 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
1826 ppc64_elf_edit_toc.
1827 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
1828 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
1829 (PARSE_AND_LIST_OPTIONS): Describe new options.
1830 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1831
7a5df8d0
NC
18322004-10-27 Nick Clifton <nickc@redhat.com>
1833
1834 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
1835 parameter to invocation of lang_section_start.
1836 * emultempl/aix.em (_handle_option): Likewise.
c5614fa4 1837
7a5df8d0
NC
1838 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
1839 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
1840 * Makefile.in: Regenerate.
1841
6f372e19
MM
18422004-10-26 Mark Mitchell <mark@codesourcery.com>
1843
1844 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
1845 __exidx_{start,end} when not relocating.
1846
ba916c8a
MM
18472004-10-25 Mark Mitchell <mark@codesourcery.com>
1848
1849 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
1850 * ldexp.h (segment_type): New type.
1851 (segments): New variable.
1852 * ldexp.c (segments): New variable.
1853 (exp_print_token): Handle SEGMENT_START.
1854 (fold_binary): Likewise.
1855 * ldgram.y (SEGMENT_START): Declare it as a token.
1856 (exp): Handle SEGMENT_START.
1857 * ldlang.h (lang_address_statement_type): Add segment field.
1858 (lang_section_start): Change prototype.
1859 * ldlang.c (map_input_to_output_sections): Do not process section
1860 assignments if a corresponding SEGMENT_START has already been
1861 seen.
1862 (lang_section_start): Add segment parameter.
1863 * ldlex.l (SEGMENT_START): Add it.
1864 * lexsup.c (seg_segment_start): New function.
1865 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
1866 * ld.texinfo (SEGMENT_START): Document it.
1867 * emulparams/armsymbian.sh (EMBEDDED): Set it.
1868 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
1869 base addresses. Do not map relocations.
1870 * NEWS: Mention SEGMENT_START.
1871
3e3b46e5
PB
18722004-10-26 Paul Brook <paul@codesourcery.com>
1873
1874 * ld.texinfo: Document --default-symver.
1875 * ldmain.c (main): Set link_info.create_default_symver.
1876 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
1877 (ld_options): Add default-symver.
1878 (parse_args): Handle OPTION_DEFAULT_SYMVER.
1879
7b0eaa22
DS
18802004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
1881
1882 * pe-dll.c (process_def_file): Don't export all symbols by default if
1883 building a position-independent executable.
1884
dfeffb9f
L
18852004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1886
1887 PR 463
1888 * ldmain.c (reloc_overflow): Accept a pointer to struct
1889 bfd_link_hash_entry. Report symbol location for relocation
1890 overflow.
1891
dc4f76f8
L
18922004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1893
1894 * genscripts.sh (libpath.exp): Really generate for first
1895 emulation only.
1896
2a08daf3
DS
18972004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
1898
1899 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
1900 comparison and replacement of filenames.
1901
532345f2
L
19022004-10-19 H.J. Lu <hongjiu.lu@intel.com>
1903
1904 PR 459
1905 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
1906 option on linker script as the one for linker script.
1907
b58f81ae
DJ
19082004-10-16 Daniel Jacobowitz <dan@debian.org>
1909
1910 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
1911 (check_excluded_libs): New.
1912 (load_symbols): Call check_excluded_libs.
1913 * ldlang.h (add_excluded_libs): New prototype.
1914 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
1915 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
1916 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
1917 * ld.texinfo (Command Line Variables): Document --exclude-libs.
1918 (Options Specific to i386 PE Targets): Remove --exclude-libs.
1919
95c148b4
AM
19202004-10-15 Alan Modra <amodra@bigpond.net.au>
1921
c468c8bc
AM
1922 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
1923 failing link script assert.
1924
95c148b4
AM
1925 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
1926
951e9133
L
19272004-10-14 H.J. Lu <hongjiu.lu@intel.com>
1928
1929 PR 445
1930 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
1931 (SMALL_DATA_DTOR): Set.
1932 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
1933 (SMALL_DATA_DTOR): Unset.
1934 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
1935 after .data. If SMALL_DATA_DTOR is set, move .dtors after
1936 .data.
1937
afd7a018
AM
19382004-10-14 Alan Modra <amodra@bigpond.net.au>
1939
1940 PR 63
1941 * ldlang.h (lang_output_section_statement_type): Make "next" a
1942 struct lang_output_section_statement_struct *.
1943 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
1944 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
1945 * ldlang.c (lang_output_section_find_1): Adjust for changed
1946 output_section_statement "next".
1947 (strip_excluded_output_sections): Likewise.
1948 (lang_record_phdrs): Likewise.
1949 (lang_output_section_find_by_flags): New function.
1950 (output_prev_sec_find): Move from pe.em. Adjust iterator.
1951 (lang_insert_orphan): New function. Tail end of elf32.em's
1952 place_orphan merged with that from pe.em. Allow bfd_section to
1953 be placed first. New heuristic for placing new output section
1954 statement in existing script, and accompanying split of __start
1955 symbol alignment into a separate assignment to dot.
1956 (lang_add_section): Consistently use output->bfd_section rather than
1957 an alias, section->output_section.
1958 (map_input_to_output_sections): Rename overly long arg. Move
1959 initialization of data_statement output section to here..
1960 (lang_check_section_addresses): ..from here.
1961 (print_assignment): Correct printing of etree_assert.
1962 (print_all_symbols): Don't bomb if userdata is NULL.
1963 (IGNORE_SECTION): Rearrange.
1964 * emultempl/elf32.em (output_rel_find): Adjust interator.
1965 (output_prev_sec_find): Delete.
1966 (struct orphan_save): Delete.
1967 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
1968 flags without creating a duplicate output section statement.
1969 Revise code holding history of various orphan section placements.
1970 Allow orphan sections to place before script specified output
1971 sections. Call lang_output_section_find_by_flags when placement
1972 by name fails. Use lang_insert_orphan.
1973 * emultempl/mmo.em (output_prev_sec_find): Delete.
1974 (struct orphan_save): Delete.
1975 (mmo_place_orphan): Revise code holding history of orphan placement.
1976 Allow orphans to place before existing output sections. Use
1977 lang_insert_orphan.
1978 * emultempl/pe.em (output_prev_sec_find): Delete.
1979 (struct orphan_save): Delete.
1980 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
1981 lang_insert_orphan.
1982
c0042f5d
MM
19832004-10-13 Mark Mitchell <mark@codesourcery.com>
1984
1985 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
1986 loadable segment.
1987
1af699f4
AM
19882004-10-13 Alan Modra <amodra@bigpond.net.au>
1989
1990 PR 44
09c112da
AM
1991 * ldcref.c (check_section_sym_xref): Delete.
1992 (check_local_sym_xref): New function.
1993 (check_nocrossrefs): Adjust call.
1af699f4
AM
1994 * emultempl/pe.em (struct orphan_save): Add os_tail.
1995 (place_orphan): Backport assorted fixes from elf32.em.
1996
7fa3d080
BW
19972004-10-12 Bob Wilson <bob.wilson@acm.org>
1998
1999 * emultempl/xtensaelf.em: Use ISO C90 formatting.
2000
d3989512
JJ
20012004-10-11 Jakub Jelinek <jakub@redhat.com>
2002
563f4125
JJ
2003 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
2004 getline for portability.
2005
d3989512
JJ
2006 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
2007 (gld${EMULATION_NAME}_parse_ld_so_conf,
2008 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
2009 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
2010
6c0c5b1e
AM
20112004-10-11 Alan Modra <amodra@bigpond.net.au>
2012
2013 PR 423
2014 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
2015 rejected when linking statically.
2016
d2b2c203
DJ
20172004-10-08 Daniel Jacobowitz <dan@debian.org>
2018
2019 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
2020
43cd72b9
BW
20212004-10-07 Bob Wilson <bob.wilson@acm.org>
2022
2023 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
2024 assembler-generated longcall sequences. Describe new --size-opt
2025 option.
2026 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
2027 * emultempl/xtensaelf.em (remove_section,
2028 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
2029 elf_xtensa_after_open): New.
2030 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
2031 OPTION_NO_LITERAL_MOVEMENT): Define.
2032 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
2033 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
2034 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
2035 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
2036 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
2037 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
2038 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
2039 * Makefile.am (eelf32xtensa.c): Update dependencies.
2040 * Makefile.in: Regenerate.
2041
8fdd7217 20422004-10-07 Jeff Baker <jbaker@qnx.com>
6c0c5b1e 2043
8fdd7217
NC
2044 * lexsup.c: Handle --warn-shared-textrel option.
2045 (ld_options): Restore alpha sorting of options.
2046 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
2047 * ld.texinfo: Add documentation for --warn-shared-textrel.
2048 * NEWS: Added mention of --warn-shared-textrel option.
2049
339207f8 20502004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
6c0c5b1e 2051
339207f8 2052 * emultempl/crxelf.em (disable_relaxation): Add.
6c0c5b1e 2053 (crxelf_before_allocation): Enable --relax option by default.
339207f8
TL
2054 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
2055 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
2056 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
2057
bcaa7b3e
L
20582004-10-04 H.J. Lu <hongjiu.lu@intel.com>
2059
2060 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
2061 --sort-section name|alignment.
2062
2063 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
2064 --sort-section name|alignment.
2065
2066 * ld.h (sort_type): New enum.
2067 (wildcard_spec): Change the type of `sorted' to sort_type.
2068
2069 * ldgram.y (SORT): Removed.
2070 (SORT_BY_NAME): Added.
2071 (SORT_BY_ALIGNMENT): Added.
2072 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
2073 SORT_BY_ALIGNMENT.
2074 (input_section_spec_no_keep): Updated `sorted'.
2075 (statement): Replace SORT with SORT_BY_NAME.
2076
2077 * ldlang.c (compare_section): New function to compare 2
2078 sections with different sorting schemes.
2079 (wild_sort): Updated. Use compare_section.
2080 (update_wild_statements): New function.
2081 (lang_process): Call update_wild_statements before
2082 map_input_to_output_sections.
2083
2084 * ldlex.l (SORT_BY_NAME): New.
2085 (SORT_BY_ALIGNMENT): New.
2086 (SORT): Return SORT_BY_NAME.
2087
2088 * ldmain.c (sort_section): New. Defined.
2089 (main): Initialize it to none.
2090
2091 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
2092 (ld_options): Add an entry for OPTION_SORT_SECTION.
2093 (parse_args): Handle OPTION_SORT_SECTION.
2094
2095 * mri.c (mri_draw_tree): Updated `sorted'.
2096
a4f5ad88
JJ
20972004-10-04 Jakub Jelinek <jakub@redhat.com>
2098
2099 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
2100 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
2101 argument.
2102 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
2103 and . as second argument.
2104 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
2105 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
2106 (fold_binary): Add it here. Insert padding to make relro_end
2107 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
2108 exp_dataseg_relro_adjust phase just use previously computed
2109 exp_data_seg.base.
2110 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
2111 relro_adjust here. Call lang_size_sections_1 once more if there
2112 was too big padding at DATA_SEGMENT_RELRO_END.
2113 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
2114
40a18ebd
NC
21152004-10-01 Paul Brook <paul@codesourcery.com>
2116
2117 * emulparams/armelf.sh: Add unwinding table sections.
2118
db8acf26
NC
21192004-09-30 Filip Navara <navaraf@reactos.com>
2120
2121 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
2122 correct base address for position independant executables.
2123 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
2124 executables as DLLs.
2125
eeac373a
PB
21262004-09-30 Paul Brook <paul@codesourcery.com>
2127
2128 * ld.texinfo: Document --target2=abs.
2129 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
2130
1ee7cf4c
NC
21312004-09-29 Nick Clifton <nickc@redhat.com>
2132
2133 * scripttempl/xstormy16.sc: Only perform the assignments to the
2134 ROM region when not performing a relocatable link. The ROM region
2135 does not start at address 0, but the sections will.
2136 * Makefile.am: Fix linker script dependency for the generation of
2137 eelf32xstormy16.c.
2138 * Makefile.in: Regenerate.
2139
03098a9a
CF
21402004-09-18 Filip Navara <navaraf@reactos.com>
2141
2142 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
2143 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
2144 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
2145 TARGET_PAGE_SIZE.
2146 * scripttempl/pe.sc: Make the virtual address and file offset synced if
2147 the alignment is lower than the target page size.
2148
f2d3750d
CF
21492004-09-27 Filip Navara <navaraf@reactos.com>
2150
2151 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
2152 def_file_parse to handle pe_def_file if NULL and prevent crash with
2153 invalid .def files.
2154
a23d8409
AM
21552004-09-27 Alan Modra <amodra@bigpond.net.au>
2156
2157 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
2158 --emit-stub-syms automatically when --emit-relocs.
2159
7b89fa29
PB
21602004-09-24 Paul Brook <paul@codeosurcery.com>
2161
2162 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
2163 .fini_array sections.
2164
e2a68bcc
AS
21652004-09-19 Andreas Schwab <schwab@suse.de>
2166
2167 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
2168 base so that relro end is suitably aligned.
2169
3674e28a
PB
21702004-09-17 Paul Brook <paul@codesourcery.com>
2171
2172 * ld.texinfo: Rename arm-specific section. Document --target*
2173 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
2174 * emulparams/armelf_linux.sh: Ditto.
2175 * emulparams/armelf_nbsd.sh: Ditto.
2176 * emultempl/armelf.em: Set default for TARGET2_TYPE.
2177 (target2_type): New variable.
2178 (arm_elf_before_allocation): Don't pass target1_type.
2179 (arm_elf_create_output_section_statements): New function.
2180 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
2181 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
2182 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
2183 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
2184 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
2185 argument to bfd_elf32_arm_process_before_allocation.
2186
f6e332e6
AM
21872004-09-17 Alan Modra <amodra@bigpond.net.au>
2188
2189 * ldexp.c (fold_name): Update u.undef.next refs.
2190 * emultempl/pe.em: Likewise.
2191 * emultempl/sunos.em: Likewise.
2192
9c933e04
AM
21932004-09-17 Alan Modra <amodra@bigpond.net.au>
2194
2195 * Makefile.am: Run "make dep-am".
2196 * Makefile.in: Regenerate.
2197 * config.in: Regenerate.
2198 * configure: Regenerate.
2199 * aclocal.m4: Regenerate.
2200 * po/ld.pot: Regenerate.
2201
1fa32646
TL
22022004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
2203
9c933e04
AM
2204 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
2205 (.fini): Likewise.
2206 (.jcr): Likewise.
1fa32646 2207
b6ee372a
AM
22082004-09-16 Alan Modra <amodra@bigpond.net.au>
2209
2210 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
2211 to bfd_elf32_arm_process_before_allocation call.
2212
9c504268
PB
22132004-09-13 Paul Brook <paul@codesourcery.com>
2214
2215 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
2216 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
2217
d15b04bd
L
22182004-09-07 H.J. Lu <hongjiu.lu@intel.com>
2219
2220 * configure: Regenerated with autconfig 2.13.
2221
875c4330
AS
22222004-09-07 Andreas Schwab <schwab@suse.de>
2223
2224 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
2225 alignment before adjusting DATA_SEGMENT_RELRO_END.
2226
229fcec5
MM
22272004-09-06 Mark Mitchell <mark@codesourcery.com>
2228
2229 * emulparams/armsymbian.sh: Use armbpabi script.
2230 * scripttempl/armbpabi.sc: New script.
2231
e5a52504
MM
22322004-09-02 Mark Mitchell <mark@codesourcery.com>
2233
2234 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
2235 (earmsymbian.c): New target.
2236 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
2237 * Makefile.in: Regenerated.
2238 * aclocal.m4: Likewise.
2239 * configure: Likewise.
2240 * emulparams/armsymbian.sh: New file.
2241
42851540
NC
22422004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
2243
2244 * scripttempl/elf32crx.sc: Edit file with comments.
2245 (.init): Add new section.
2246 (.fini): Likewise.
2247 (.ctor): Control the linkage order.
2248 (.dtor): Likewise.
2249
c034e3e0
NC
22502004-08-27 Nick Clifton <nickc@redhat.com>
2251
2252 * emultempl/pe.em (after_open): Do not assume that either bfd is
9c933e04 2253 an archive.
c034e3e0 2254
688c58f3
AM
22552004-08-26 Alan Modra <amodra@bigpond.net.au>
2256
2257 * ldlang.c (lang_init): Don't compare with TRUE.
2258
b18c562e
NC
22592004-08-25 Dmitry Diky <diwil@spec.ru>
2260
2261 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
2262 * scripttempl/elf32msp430.sc: Add .profiler section definition.
2263
61f5d054
L
22642004-08-24 H.J. Lu <hongjiu.lu@intel.com>
2265
2266 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
2267
e77d3d77
MM
22682004-08-19 Mark Mitchell <mark@codesourcery.com>
2269
2270 * configure.tgt (arm*-*-symbianelf*): New target.
2271 (arm*-*-eabi*): Likewise.
2272
3f764659
JJ
22732004-08-19 Jakub Jelinek <jakub@redhat.com>
2274
2275 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
2276 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
2277 (OPTION_NON_OVERLAPPING_OPD): Define.
2278 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
2279 --non-overlapping-opd option.
2280
a010d60f
AM
22812004-08-18 Alan Modra <amodra@bigpond.net.au>
2282
2283 PR 338
2284 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
2285 was already on the undefs list.
2286
c4e33880
AM
22872004-08-17 Alan Modra <amodra@bigpond.net.au>
2288
2289 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
2290 prefix the symbol field too.
2291
d003868e
AM
22922004-08-13 Alan Modra <amodra@bigpond.net.au>
2293
2294 * ldmain.c (link_callbacks): Remove "error_handler".
2295 * ldmisc.c: Include elf-bfd.h.
2296 (vfinfo): Sort comment. Handle %A. Use %A instead of
2297 bfd_get_section_indent.
2298 (error_handler): Delete.
2299 * ldmisc.h (error_handler): Delete declaration.
2300
99877b66
AM
23012004-08-10 Alan Modra <amodra@bigpond.net.au>
2302
2303 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
2304 ppc64_elf_restore_symbols.
2305
40e45c8b
AM
23062004-08-09 Alan Modra <amodra@bigpond.net.au>
2307
2308 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
2309 .toc is too large on relocatable linking.
2310
ccfa59ea
AM
23112004-08-09 Alan Modra <amodra@bigpond.net.au>
2312
2313 * emultempl/ppc64elf.em (ppc_after_open): Delete.
2314 (LDEMUL_AFTER_OPEN): Don't define.
2315
93fd0973
SC
23162004-08-02 Stephane Carrez <stcarrez@nerim.fr>
2317
2318 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
2319
f1b123db
SC
23202004-08-01 Stephane Carrez <stcarrez@nerim.fr>
2321
2322 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
2323 on power of 2.
2324
e7fbc2bf
JT
23252004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
2326
2327 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
2328
c05e9f04
NC
23292004-07-26 Dmitry Diky <diwil@spec.ru>
2330
2331 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
2332 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
2333 msp430xG439.
2334 * configure.tgt: Likewise.
2335 * emulparams/msp430all.sh: Likewise.
2336 * Makefile.in: Regenerate.
2337
9f61903d
NC
23382004-07-23 Nick Clifton <nickc@redhat.com>
2339
2340 * emultempl/elf32.em (_place_orphan): Use an already existing
2341 section name if that section does not have any flags set.
2342
082b7297
L
23432004-07-21 H.J. Lu <hongjiu.lu@intel.com>
2344
2345 * ldlang.c (already_linked_hash_entry): Removed.
2346 (already_linked): Likewise.
2347 (already_linked_table): Likewise.
2348 (section_already_linked): Call bfd_section_already_linked.
2349 (lang_process): Replace already_linked_table_init with
2350 bfd_section_already_linked_table_init and check return. Replace
2351 already_linked_table_free with bfd_section_already_linked_table_free.
2352
76d7af2d
NC
23532004-07-21 Nick Clifton <nickc@redhat.com>
2354
2355 * ldlang.c (init_os): Make sure that the newly allocated userdata
2356 structure is zeroed out.
2357
14b3c463
L
23582004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2359
2360 * NEWS: Mention the new --add-needed/--no-add-needed and
2361 --as-needed/--no-as-needed options.
2362
e56f61be
L
23632004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2364
2365 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
2366 check the add_needed field.
2367 (dt_needed): New struct.
2368 (gld${EMULATION_NAME}_try_needed): Change the first argument
2369 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
2370 bit in the file where the DT_NEEDED entry comes from.
2371 (gld${EMULATION_NAME}_search_needed): Change the second
2372 argument to a pointer to struct dt_needed.
2373 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
2374 (gld${EMULATION_NAME}_after_open): Likewise.
2375
2376 * ld.texinfo: Add --add-needed document.
2377 * ldlang.c (new_afile): Set p->add_needed.
2378 * ldlang.h (lang_input_statement_type): Add add_needed field.
2379 * ldmain.h (add_needed): Declare.
2380 * ldmain.c (add_needed): New global var.
2381 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
2382 OPTION_NO_ADD_NEEDED.
2383 (ld_options): Likewise.
2384 (parse_args): Handle them.
2385
c99b8138
NC
23862004-07-13 Christof Petig <christof@petig-baender.de>
2387
2388 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
2389 for endian-ness of extracted addend.
2390
13ed4151
NC
23912004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
2392
2393 * pe-dll.c (auto_export): Filter on just the import prefix,
2394 "_imp_", not "_imp__".
2395
1a320fbb
NC
23962004-07-09 Nick Clifton <nickc@redhat.com>
2397
2398 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
2399
1fe1f39c
NC
24002004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
2401
2402 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
2403 (eelf32crx.c): New target.
2404 * Makefile.in: Regenerate.
2405 * configure.tgt: Handle crx-*-elf*.
2406 * emulparams/elf32crx.sh: New file.
2407 * emultempl/crxelf.em: New file.
2408 * scripttempl/elf32crx.sc: New file.
2409 * NEWS: Mention new target.
2410
85fbca6a
NC
24112004-07-06 Nick Clifton <nickc@redhat.com>
2412
2413 * Makefile.am: Add eshlsymbian.c.
2414 * Makefile.in: Regenerate.
2415 * configure.tgt: Add sh*-symbian-elf target.
2416 * emulparams/shlsymbian.sh: New file. Configure the
2417 sh-symbian-elf linker scripts.
2418 * scripttemp/elf32sh-symbian.sc: New file. Linker script
2419 template for the sh-symbian-elf target.
2420
b71a5181
DA
24212004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2422
2423 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
2424 * emulparams/hppalinux.sh: Likewise.
2425 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
2426 data segment and PLT_BEFORE_GOT is defined.
2427
c87db184
CF
24282004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2429
2430 * ld.texinfo (WIN32): Document PE weak symbols.
2431
f6a8ae81
KK
24322004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2433
2434 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
2435
b602c853
L
24362004-07-01 H.J. Lu <hongjiu.lu@intel.com>
2437
2438 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
2439 the section.
2440
1a23a9e6
AM
24412004-06-29 Alan Modra <amodra@bigpond.net.au>
2442
2443 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
2444 size in rawsize.
2445
eea6121a
AM
24462004-06-24 Alan Modra <amodra@bigpond.net.au>
2447
2448 * ldlang.c (print_output_section_statement): Don't print size before
2449 relaxation.
2450 (IGNORE_SECTION): Remove bfd arg. Update all callers.
2451
2452 * ldexp.c (fold_name): .. See below.
2453 * ldlang.c (section_already_linked, print_output_section_statement,
2454 print_input_section, insert_pad, size_input_section,
2455 lang_check_section_addresses, lang_size_sections_1,
2456 lang_size_sections, lang_do_assignments_1, lang_set_startof,
2457 lang_one_common, lang_reset_memory_regions, lang_process,
2458 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
2459 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
2460 * pe-dll.c (process_def_file, generate_reloc): ..
2461 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
2462 gld${EMULATION_NAME}_before_allocation): ..
2463 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
2464 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
2465 sh64_elf_${EMULATION_NAME}_after_allocation): ..
2466 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
2467 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
2468 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
2469 "size" instead of "_raw_size" and "_cooked_size". Expand
2470 bfd_section_size macro invocations.
2471
552f8272
CF
24722004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2473
2474 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
2475 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
2476 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
2477 ___crt_xt_end__.
2478 (.tls): Define ___tls_start__ and ___tls_end__.
2479
aee6f5b4
AO
24802004-06-21 Alexandre Oliva <aoliva@redhat.com>
2481
2482 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
2483
eea6121a 24842004-06-18 Adam Nemet <anemet@lnxw.com>
f234d5fe 2485
eea6121a
AM
2486 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
2487 * configure: Regenerate.
f234d5fe 2488
dfff4fbe
JJ
24892004-06-15 Jakub Jelinek <jakub@redhat.com>
2490
2491 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
2492 .gcc_except_table output sections lost accidentally with
2493 -z relro patch.
2494
a9e0c0c6
AM
24952004-06-15 Alan Modra <amodra@bigpond.net.au>
2496
2497 * ldwrite.c (build_link_order): Use bfd_get_section_size
2498 instead of bfd_get_section_size_before_reloc or _raw_size.
2499 * pe-dll.c (process_def_file): Likewise.
2500
7115639b
AM
25012004-06-14 Alan Modra <amodra@bigpond.net.au>
2502
2503 From Richard Wirth <r.wirth@wirthware.de>
2504 * ldlang.c (lang_finish): Don't free lang_definedness_table.
2505
9ca57817
AM
25062004-05-29 Alan Modra <amodra@bigpond.net.au>
2507
2508 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
2509 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
2510
164e712d
AM
25112004-05-28 Alan Modra <amodra@bigpond.net.au>
2512
6feb9908
AM
2513 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
2514 throughout file.
2515 * lexsup.c: Formatting. Wrap long lines.
2516 * ldwrite.c: Update copyright date.
2517
164e712d
AM
2518 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
2519 (output_section_callback): Nor SEC_KEEP here.
2520 (gc_section_callback): Twiddle SEC_EXCLUDE here.
2521 (lang_gc_wild): Delete. Fold into..
2522 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
2523 collecting.
2524 (lang_process): Always call lang_gc_sections.
2525 (lang_place_orphans): Handle SEC_EXCLUDE sections.
2526 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
2527 SEC_EXCLUDE code.
2528
b3096250
L
25292004-05-26 H.J. Lu <hongjiu.lu@intel.com>
2530
2531 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
2532 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
2533 * ldlang.c (lang_add_section): Likewise.
2534
e49f5022
AM
25352004-05-26 Alan Modra <amodra@bigpond.net.au>
2536
2537 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
2538 sections when doing a final link. Clear SEC_EXCLUDE when doing
2539 a relocable link, except for SEC_DEBUGGING sections.
2540 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
2541 same condition here to drop SEC_EXCLUDE orphan sections.
2542
57ceae94
AM
25432004-05-25 Alan Modra <amodra@bigpond.net.au>
2544
2545 * ldlang.c (lang_process): Call bfd_merge_sections later, and
2546 only when not a relocatable link.
2547 (print_input_section): Handle SEC_EXCLUDE sections.
2548 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
2549 (lang_do_assignments_1): Likewise.
2550 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
2551 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
2552 * emultempl/hppaelf.em (build_section_lists): Likewise.
2553 * emultempl/ppc64elf.em (build_toc_list): Likewise.
2554 (build_section_lists): Likewise.
2555
a85785bc
AS
25562004-05-23 Andreas Schwab <schwab@suse.de>
2557
2558 * ld.texinfo (Options): Fix typo in last change.
2559
2d643429
NC
25602004-05-21 Andy Chittenden <achittenden@bluearc.com>
2561
2562 * ld.h (ld_config_type): Add new field: hash_table_size.
2563 * ldmain.c: Initialise the new field to zero. If it is non-zero
2564 after parsing the linker's command line call
2565 bfd_hash_set_default_size.
2566 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
2567 (ld_options): Add hash-size.
2568 (parse_args): Parse --hash-size option. Allow
2569 --reduce-memory-overheads to set the default hash table size as
2570 well.
2571 * ld.texinfo: Document the new switch. Also mention that
2572 --reduce-memory-overheads can affect the hash table size.
2573 * NEWS: Mention the new feature.
2574
35835446
JR
25752004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
2576
2577 * NEWS: Mention new linker map file generation and the
2578 --reduce-memory-overheads option.
2579 * ld.texinfo: Document --reduce-memory-overheads option.
2580 * ld.h (map_symbol_def): New struct.
2581 (struct user_section_struct, section_userdata_type): Rename to:
2582 (struct lean_user_section_struct, lean_section_userdata_type).
2583 (struct fat_user_section_struct, fat_section_userdata_type): New.
2584 (SECTION_USERDATA_SIZE): Define.
2585 (args_type): New member reduce_memory_overheads.
2586 * ldlang.c (map_obstack): New static variable.
2587 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
2588 (lang_map): Unless command_line.reduce_memory_overheads is set,
2589 initialize lists of defined symbols for each section.
2590 (print_input_section): Unless command_line.reduce_memory_overheads
2591 is set, use print_all_symbols.
2592 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
2593 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
2594 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
2595 (ld_options): Add entry for --reduce-memory-overheads.
2596 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
2597
0841712e
JJ
25982004-05-19 Jakub Jelinek <jakub@redhat.com>
2599
2600 * ldgram.y (sect_constraint): New.
2601 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2602 (section): Add sect_constraint. Pass additional argument
2603 to lang_enter_output_section_statement.
2604 * mri.c (mri_draw_tree): Pass additional argument to
2605 lang_enter_output_section_statement.
2606 * emultempl/pe.em (place_orphan): Likewise.
2607 (output_prev_sec_find): Disregard output section statements with
2608 constraint == -1.
2609 * emultempl/mmo.em (output_prev_sec_find): Likewise.
2610 (mmo_place_orphan): Pass additional argument to
2611 lang_enter_output_section_statement.
2612 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
2613 statements with constraint == -1.
2614 (place_orphan): Pass additional argument to
2615 lang_enter_output_section_statement.
2616 * ldlang.c (lang_enter_overlay_section): Likewise.
2617 (lang_output_section_find_1): New.
2618 (lang_output_section_find): Use it.
2619 (lang_output_section_statement_lookup_1): New.
2620 (lang_output_section_statement_lookup): Use it.
2621 (check_section_callback, check_input_sections): New.
2622 (map_input_to_output_sections): Check if all input sections
2623 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
2624 (strip_excluded_output_sections): Disregard output section statements
2625 with constraint == -1.
2626 (lang_record_phdrs): Likewise.
2627 (lang_enter_output_section_statement): Add constraint argument.
2628 Use lang_output_section_statement_lookup_1.
2629 * ldlang.h (lang_output_section_statement_type): Add constraint
2630 and all_input_readonly fields.
2631 (lang_enter_output_section_statement): Adjust prototype.
2632 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2633 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
2634 segment if all input sections are readonly.
2635
eea6121a 26362004-05-19 Adam Nemet <anemet@lnxw.com>
f2c50328
NC
2637
2638 * scripttempl/i386lynx.sc: Remove file.
2639
2a16d82a
BW
26402004-05-17 Bob Wilson <bob.wilson@acm.org>
2641
2642 * ld.texinfo (Output Section Address): Correct subsection name.
2643
eea6121a 26442004-05-17 Adam Nemet <anemet@lnxw.com>
b2d65c0b
NC
2645
2646 * configure.tgt (powerpc-*-lynxos* case): New case.
2647 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
2648 * emulparams/ppclynx.sh: New file.
2649 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
2650 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
2651 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
2652 (eppclynx.c): New rule.
2653 * Makefile.in: Regenerate.
2654
4b363073
NC
26552004-05-13 Joel Sherrill <joel@oarcorp.com>
2656
2657 * configure.tgt (or32-*-rtems*): Switch to elf and
2658 support versioned targets.
2659
9598fbe5
NC
26602004-05-13 Nick Clifton <nickc@redhat.com>
2661
2662 * po/fr.po: Updated French translation.
2663
8c37241b
JJ
26642004-05-11 Jakub Jelinek <jakub@redhat.com>
2665
2666 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
2667 for binaries, -shared and -pie.
2668 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
2669 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
2670 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
2671 (OTHER_RELRO_SECTIONS): ... this.
2672 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
2673 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
2674 -z relro and -z norelro.
2675 (gld${EMULATION_NAME}_list_options): Add it to usage.
2676 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
2677 -z relro scripts when appropriate.
2678 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
2679 Create separate .got.plt section if SEPARATE_GOTPLT.
2680 Move sections which are only written during relocation handling
2681 to the beginning of RW segment. If NO_SMALL_DATA, move .got
2682 before .data. Add DATA_SEGMENT_RELRO_END directive.
2683 Include OTHER_RELRO_SECTIONS.
2684 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
2685 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
2686 (fold_unary): Likewise.
2687 (fold_binary): Handle -z relro.
2688 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
2689 exp_dataseg_relro_adjust phases. Add relro_end field.
2690 * ldmain.c (main): Initialize link_info.relro to FALSE.
2691 * ldlang.c (lang_size_sections): Handle -z relro.
2692
e21059f2
MM
26932004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
2694
2695 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
2696
5f9b8920
JR
26972004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
2698
2699 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
2700 before printing it with %W.
2701
26d2d8a2 27022004-05-07 Brian Ford <ford@vss.fsi.com>
eea6121a 2703 DJ Delorie <dj@redhat.com>
26d2d8a2
BF
2704
2705 * emultempl/pe.em (real_flags): New static.
2706 (OPTION_LARGE_ADDRESS_AWARE): New define.
2707 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
2708 (gld_${EMULATION_NAME}_list_options): Likewise.
2709 (gld${EMULATION_NAME}_handle_option): Likewise.
2710 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
2711 * ld.texinfo: Document it.
2712 * NEWS: Mention it.
2713
1b169501
BF
27142004-05-07 Brian Ford <ford@vss.fsi.com>
2715
2716 * NEWS: Mention DWARF 2 support for i386pe.
2717
41cf0c62
AO
27182004-05-05 Alexandre Oliva <aoliva@redhat.com>
2719
2720 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
2721 elf32-frvfdpic.
2722
d0d6a25b
AM
27232004-04-30 Alan Modra <amodra@bigpond.net.au>
2724
2725 * ldlang.c (unique_section_p): Pass section parm, return true on
2726 group sections.
2727 (output_section_callback): Adjust.
2728 * ldlang.h (unique_section_p): Update prototype.
2729 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
2730
755306be
EB
27312004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
2732
eea6121a 2733 * ld.texinfo (--gc-sections): Remove restriction for
755306be
EB
2734 dynamic linking.
2735
8a7140c3
NC
27362004-04-29 Brian Ford <ford@vss.fsi.com>
2737
2738 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
2739 for DWARF 2/3. Update stab section's syntax.
2740
2f9636ba
AM
27412004-04-29 Alan Modra <amodra@bigpond.net.au>
2742
2743 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
2744 (fill_edata): Correct pointer arithmetic.
2745
23867d67
CD
27462004-04-21 Chris Demetriou <cgd@broadcom.com>
2747
2748 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
2749 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
2750 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
2751 (EXTRA_EM_FILE): Use mipsecoff.em
2752 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
2753 (EXTRA_EM_FILE): Use mipsecoff.em
2754 * emultempl/mipsecoff.em: Restructure to be included as an
2755 extra emulation file.
2756 (check_sections, gld${EMULATION_NAME}_after_open)
2757 (gld${EMULATION_NAME}_after_allocation)
2758 (gld${EMULATION_NAME}_get_script)
2759 (ld_${EMULATION_NAME}_emulation): Remove
2760 (gld${EMULATION_NAME}_before_parse): Rename to...
2761 (mipsecoff_before_parse): This.
2762 (LDEMUL_BEFORE_PARSE): Define.
2763 * emultempl/mipself.em: Remove file.
2764 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
2765 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
2766 these symbols.
2767 * Makefile.am: Remove dependencies on emultempl/mipself.em.
2768 * Makefile.in: Regenerate.
2769
1502569c
NC
27702004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
2771
2772 * ld.texinfo (synthesizing on H8/300): Information about linker
2773 relaxation support for bit manipulation instructions and system
2774 control instructions is added.
2775
c894ddfb
HPN
27762004-04-21 Hans-Peter Nilsson <hp@axis.com>
2777
2778 * NEWS: Mention change in DEFINED semantics.
2779
a85bf78e
EB
27802004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
2781
2782 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
2783 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
2784 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
2785
58434bc1
BE
27862004-04-21 Ben Elliston <bje@au.ibm.com>
2787
2788 * ld.texinfo (Simple Example): Add missing punctuation.
2789
7a7f4e42
CD
27902004-04-20 Chris Demetriou <cgd@broadcom.com>
2791
2792 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
2793
3737f867
JJ
27942004-04-19 Jakub Jelinek <jakub@redhat.com>
2795
2796 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
2797 specially.
2798
3c17e4f7
DS
27992004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
2800
2801 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
2802 with default priority. Likewise for dtors.
2803
279500de
TS
28042004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2805
2806 * configure.host: Remove mips*-dec-bsd* target.
2807 * configure.tgt: Likewise.
2808
52f89c0a
RS
28092004-04-08 Richard Sandiford <rsandifo@redhat.com>
2810
2811 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
2812 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
2813 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
2814 * emultempl/irix.em: New file.
2815 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
2816 dependencies.
2817 * Makefile.in: Regenerate.
2818
e489d0ae
PB
28192004-04-01 Paul Brook <paul@codesourcery.com>
2820
2821 * emultempl/armelf.em (byteswap_code): Add.
2822 (arm_elf_before_allocation): Pass extra parameter.
2823 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
2824 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
2825 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
2826 * emultempl/armelf_oabi.em: Pass extra parameter.
2827 * ld.texinfo: Document --be8.
2828
7cc8057a
SS
28292004-03-30 Stan Shebs <shebs@apple.com>
2830
2831 Remove long-obsolete MPW support.
2832 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
2833 * Makefile.am (mpw): Remove file-presynthesizing actions.
2834 * Makefile.in: Likewise.
2835 * ldfile.c (slash): Remove MPW case.
2836 * ldlex.l [MPW]: Remove unused definition.
2837
0949843d
NC
28382004-03-30 Galit Heller <Galit.Heller@nsc.com>
2839
2840 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
2841 (eelf32cr16c.c): New target.
2842 * Makefile.in: Regenerate.
2843 * configure.tgt: Handle cr16c-*-elf*.
2844 * emulparams/elf32cr16c.sh: New file.
2845 * scripttempl/elfcr16c.sc: Likewise
2846 * NEWS: Mention support for new target.
2847
0a159ef8
NC
28482004-03-30 Nick Clifton <nickc@redhat.com>
2849
2850 * po/sv.po: Updated Swedish translation.
2851
7a945db6
AM
28522004-03-27 Alan Modra <amodra@bigpond.net.au>
2853
2854 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
2855 * emultempl/hppaelf.em: Likewise.
2856 * emultempl/ppc64elf.em: Likewise.
2857 * emultempl/sh64elf.em: Likewise.
2858
5a580b3a
AM
28592004-03-25 Alan Modra <amodra@bigpond.net.au>
2860
2861 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
2862 size_dynamic_sections call.
2863
b9cf773d
AM
28642004-03-23 Alan Modra <amodra@bigpond.net.au>
2865
2866 PR 51.
2867 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
2868 link_info.wrap_char.
2869
59c2e50f
L
28702004-03-20 H.J. Lu <hongjiu.lu@intel.com>
2871
2872 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
2873 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
2874
44349745
AO
28752004-03-20 Alexandre Oliva <aoliva@redhat.com>
2876
2877 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
2878
81359a70
AM
28792004-03-19 Alan Modra <amodra@bigpond.net.au>
2880
2881 * config.in: Regenerate.
2882 * po/ld.pot: Regenerate.
2883
4a43e768
AM
28842004-03-18 Alan Modra <amodra@bigpond.net.au>
2885
2886 * ld.texinfo: Add --as-needed doco.
2887 * ldmain.c (as_needed): New global var.
2888 * ldmain.h (as_needed): Declare.
2889 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
2890 OPTION_NO_AS_NEEDED.
2891 (ld_options): Likewise.
2892 (parse_args): Handle them.
2893 * ldlang.h (lang_input_statement_type): Add as_needed field.
2894 * ldlang.c (new_afile): Set p->as_needed.
2895 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
2896 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
2897 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
2898
2899 * ldlang.c (open_input_bfds): Remove useless cast.
2900 (lang_do_assignments_1): Likewise.
2901 (lang_for_each_input_section): Delete.
2902
9183ed4b
AM
29032004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2904
2905 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
2906
ee31fbd0
NC
29072004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
2908
2909 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
2910 private when building implib.
2911
e5caec89
NS
29122004-03-05 Nathan Sidwell <nathan@codesourcery.com>
2913
2914 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
2915 SEC_THREAD_LOCAL.
2916 (IGNORE_SECTION): Ignore .tbss sections too.
2917 (lang_size_sections_1): .tbss sections do not advance dot.
2918
cc2f008e
AS
29192004-03-01 Andreas Schwab <schwab@suse.de>
2920
2921 * ld.texinfo (Options): Fix example for --wrap.
2922
f5a95868
DS
29232004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2924
2925 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
2926 not NULL.
2927
177b729b
ILT
29282004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
2929
2930 * ldlang.c (lang_check): Use %P, not %E, in error message.
2931
1b493742
NS
29322004-02-23 Nathan Sidwell <nathan@codesourcery.com>
2933
2934 * ldlang.h (struct lang_output_section_state): Change processed
2935 field's type.
2936 * ldexp.c (check, invalid): Remove.
2937 (fold_name): Move valid_p assignments. Create undefined symbol
2938 when needed. Directly exampine section's processd flag.
2939 * ldlang.c (lang_output_section_statement_lookup): Adjust
2940 processed field init.
2941 (lang_size_sections_1): Allow LOADADDR when determining section's
2942 VMA. Adjust error message. Fold data statement's expr.
2943 (lang_size_sections): Correctly increment lang_statement_iteration.
2944
29452004-02-23 Alan Modra <amodra@bigpond.net.au>
2946
2947 * ldexp.c (fold_tree): Follow indirect symbols.
b9cf773d 2948
876f4090
NS
29492004-02-20 Nathan Sidwell <nathan@codesourcery.com>
2950
2951 * ldgram.y (exp): Add two operand ALIGN.
2952 * ldexp.c (fold_binary): Add ALIGN_K case.
2953 * ld.texinfo (ALIGN): Document two operand version.
2954
384d938f
NS
29552004-02-19 Nathan Sidwell <nathan@codesourcery.com>
2956
2957 * ldlang.c (map_input_to_output_sections): Initialize sections
2958 mentioned in a data statement expression.
2959 (lang_do_assignments_1): Add data statement's expression's
2960 section's vma.
2961
b6ca8815
NS
29622004-02-18 Nathan Sidwell <nathan@codesourcery.com>
2963
2964 * ldgram.y (statement_anywhere): Add assert rule.
2965 * ldlang.c (exp_init_os): Add assert case.
2966
c92c35e7
AC
29672004-02-14 Andrew Cagney <cagney@redhat.com>
2968
2969 * ldmain.c (remove_output): Call bfd_cache_close.
2970
9bf78c99
RS
29712004-02-14 Richard Sandiford <rsandifo@redhat.com>
2972
2973 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
2974 .MIPS.content* and .MIPS.events* sections.
2975
f3806916
DJ
29762004-02-09 Daniel Jacobowitz <drow@mvista.com>
2977
2978 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
2979 .note.gnu.arm.ident to after allocated sections. Mark its
2980 address as 0.
2981
4c8e70d7
DJ
29822004-02-09 Daniel Jacobowitz <drow@mvista.com>
2983
2984 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
2985 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
2986 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
2987 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
2988 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
2989
ff71f4f7
NC
29902004-02-05 Nick Clifton <nickc@redhat.com>
2991
2992 * emultempl/pe.em (_after_open): Fix typo in previous delta.
2993
07a68a80
NC
29942004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
2995
2996 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
2997
1dd3bf68
AM
29982004-01-28 Alan Modra <amodra@bigpond.net.au>
2999
586196d5
AM
3000 * genscripts.sh: Fix typo.
3001
1dd3bf68
AM
3002 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
3003
13d9421f
JJ
30042004-01-24 Jakub Jelinek <jakub@redhat.com>
3005
3006 * emulparams/elf64_ia64.sh: Put .rela.opd into
3007 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
3008
4d8907ac
DS
30092004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
3010
3011 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
3012 * ld.texinfo (--omagic): Note that writable text section
3013 does not conform to published PE-COFF specs.
3014 (--enable-auto-import): Likewise.
3015
e5c60db5
AM
30162004-01-15 Alan Modra <amodra@bigpond.net.au>
3017
3018 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
3019
6bdafbeb
NC
30202004-01-13 Nick Clifton <nickc@redhat.com>
3021
3022 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
3023 which if true will prevent the LMA region being used as a
3024 replacement for a default VMA region.
586196d5
AM
3025 (lang_leave_output_section_statement): Pass extra parameter.
3026 (lang_leave_overlay): Likewise.
3027 * ld.texinfo (Output Section LMA): Document that the LMA
6bdafbeb
NC
3028 region can be set to the VMA region if no VMA has been set.
3029 * ldlang.h (struct lang_output_section_phdr_list): Create a
3030 typedef for this type. Minor formatting fixes.
586196d5 3031
9dfc8ab2
NC
30322004-01-13 Nick Clifton <nickc@redhat.com>
3033
3034 * ldlang.c (lang_size_sections_1): If dot is advanced, then
3035 assume that the section should be allocated.
3036
8325c4dd
AM
30372004-01-13 Alan Modra <amodra@bigpond.net.au>
3038
3039 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
3040 sections. Do ignore SEC_NEVER_LOAD sections.
3041 (lang_size_sections_1): Remove test made redundant with the above.
3042
83490352
AM
30432004-01-09 Alan Modra <amodra@bigpond.net.au>
3044
3045 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
3046 program_header_size.
3047
005e1118
AO
30482004-01-06 Alexandre Oliva <aoliva@redhat.com>
3049
3050 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
3051 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
3052 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
3053 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
3054 (MAXPAGESIZE): Set to 64Kb.
3055 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
3056 __ROFIXUP_END__. Don't map .rofixup.got any more.
3057 * emulparams/elf32frv.sh (NOP): Set.
3058 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
3059 * configure.tgt: Add frv-*-*linux*.
3060 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
3061 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
3062 (eelf32frvfd.c): New.
3063 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
3064 * emulparams/elf32frv.sh: Reverted previous two patches.
3065 * emulparams/elf32frvfd.sh: New.
3066 * Makefile.in: Rebuilt.
3067 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
3068 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
3069 .rofixup.got to .rofixup.
3070 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
3071 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
3072 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
3073
060feee5
JJ
30742004-01-05 Jakub Jelinek <jakub@redhat.com>
3075
3076 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
3077 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
3078
5e2f1575
AM
30792004-01-03 Alan Modra <amodra@bigpond.net.au>
3080
e5caa5e0
AM
3081 * ldexp.c (align_n): Make static.
3082 * ldexp.h (align_n): Delete declaration.
3083 * ldlang.h (lang_enter_output_section_statement): Remove
3084 block_value param.
3085 * ldlang.c (lang_enter_output_section_statement): Likewise.
3086 (TO_ADDR, TO_SIZE): Define.
c2df3ea5 3087 (opb_shift): New var.
e5caa5e0
AM
3088 (init_opb): New function.
3089 (print_input_section): Call init_opb and use TO_ADDR.
3090 (print_data_statement, print_reloc_statement): Likewise.
3091 (print_padding_statement): Likewise.
c2df3ea5 3092 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
e5caa5e0
AM
3093 (lang_check_section_addresses): Likewise.
3094 (lang_size_sections_1): Likewise.
3095 (lang_do_assignments_1): Likewise.
3096 (lang_set_startof): Likewise.
c2df3ea5 3097 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
e5caa5e0 3098 (lang_process): Call init_opb.
c2df3ea5 3099 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
e5caa5e0
AM
3100 (lang_enter_overlay_section): Adjust
3101 lang_enter_output_section_statement call.
3102 * ldgram.y: Likewise.
3103 * mri.c (mri_draw_tree): Likewise.
3104 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
3105 * emultempl/mmo.em (mmo_place_orphan): Likewise.
3106 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
3107
5e2f1575
AM
3108 * ldfile.c (ldfile_set_output_arch): Add defarch param.
3109 * ldfile.h (ldfile_set_output_arch): Ditto.
3110 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
3111 ldfile_set_output_arch.
3112 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
3113 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
3114 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
3115 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3116 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
3117 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
3118 * ldgram.y: Adjust ldfile_set_output_arch call.
3119 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3120 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
3121 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
3122 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
3123 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
3124 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3125 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3126
b50c15dc
NC
31272004-01-02 Bernardo Innocenti <bernie@develer.com>
3128
3129 * configure.tgt: Add m68k-uClinux target.
6edf0760 3130
c9e214e5 3131For older changes see ChangeLog-0203
252b5132
RH
3132\f
3133Local Variables:
3134mode: change-log
3135left-margin: 8
3136fill-column: 74
3137version-control: never
3138End:
This page took 0.4724 seconds and 4 git commands to generate.