* mt-tdep.c (enum mt_gdb_regnums): Add MT_COPRO_PSEUDOREG_ARRAY,
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
cdc34721
JZ
12005-12-28 Jie Zhang <jie.zhang@analog.com>
2
3 * emulparams/bfin.sh: Define DATA_END_SYMBOLS and END_SYMBOLS.
4 And add a prefix '_' to ENTRY.
5 * scripttempl/elf.sc: Add END_SYMBOLS.
6
01b5a19e
BW
72005-12-27 H.J. Lu <hongjiu.lu@intel.com>
8
9 * emultempl/xtensaelf.em (elf_xtensa_place_orphan): Delete.
10 (LDEMUL_PLACE_ORPHAN): Delete.
11
b59bea8a
NC
122005-12-27 Leif Ekblad <leif@rdos.net>
13
14 * configure.tgt: Add support for RDOS targets.
15
590f1972
NC
162005-12-27 Nick Clifton <nickc@redhat.com>
17
18 * po/vi.po: New Vietnamese translation.
19 * configure.in (ALL_LINGUAS): Add vi.
20 * configure: Regenerate.
21
1763d3d8
AM
222005-12-27 Alan Modra <amodra@bigpond.net.au>
23
24 * Makefile.am: Run "make dep-am".
25 * Makefile.in: Regenerate.
26
218868ba
AM
272005-12-24 Alan Modra <amodra@bigpond.net.au>
28
29 * ldlang.h (lang_output_section_statement_type): Add prev.
30 * ldlang.c (output_statement_newfunc): Set os.prev.
31 (lang_insert_orphan): Likewise.
32 (output_prev_sec_find): Use os.prev.
33
ecc49060
NC
342005-12-22 Santosh Raktawan <santoshr2@kpitcummins.com>
35
36 * ld/emulparms/h8300helf.sh (TINY_READONLY_SECTION,
37 TINY_DATA_SECTION, TINY_BSS_SECTION): Define.
38 * ld/emulparms/h8300self.sh: Likewise.
39 * ld/emulparms/h8300sxelf.sh: Likewise.
40 * ld/scripttempl/elf.sc: Add TINY_READONLY_SECTION,
41 TINY_DATA_SECTION, TINY_BSS_SECTION.
42
15445c8e
L
432005-12-19 H.J. Lu <hongjiu.lu@intel.com>
44
45 PR ld/2065
46 * ldlang.c (output_statement_newfunc): Revert the change made on
47 2005-11-16.
b43bf343
BW
48 (output_prev_sec_find): Likewise.
49 * ldlang.h (lang_statement_list_type): Likewise.
15445c8e 50
d031aafb
NS
512005-12-16 Nathan Sidwell <nathan@codesourcery.com>
52
53 Second part of ms1 to mt renaming.
54 * emulparams/elf32mt.sh (ARCH, OUTPUT_FORMAT): Adjust.
55
4e8aba04
JJ
562005-12-14 Jakub Jelinek <jakub@redhat.com>
57
58 * scripttempl/elf.sc: Put .gnu.linkonce.d.rel.ro.* sections into
59 .data.rel.ro output section. Fix a pasto for -z nocombreloc
60 .rela.data.rel.ro section content.
61
4970f871
NS
622005-12-12 Nathan Sidwell <nathan@codesourcery.com>
63
64 * Makefile.am (ALL_EMULATIONS): Replace ms1 files with mt files.
65 (eelf32mt.c): Update target name and dependencies.
66 * Makefile.in: Rebuilt.
67 * configure.tgt: Replace ms1 arch with mt arch.
68 * emulparams/elf32mt.sh: Renamed from elf32ms1.sh. Update
69 comment.
70
bd6791bc
HPN
712005-12-11 Bernhard Fischer <aldot@gcc.gnu.org>
72
73 * scripttempl/armbpabi.sc: Fix typo in comment for .ctors.
74 * scripttempl/elf.sc: Ditto.
75 * scripttempl/elf32sh-symbian.sc: Ditto.
76 * scripttempl/elf_chaos.sc: Ditto.
77 * scripttempl/elfd10v.sc: Ditto.
78 * scripttempl/elfd30v.sc: Ditto.
79 * scripttempl/elfxtensa.sc: Ditto.
80 * scripttempl/iq2000.sc: Ditto.
81 * scripttempl/xstormy16.sc: Ditto.
82
0ba07910
AM
832005-12-08 Alan Modra <amodra@bigpond.net.au>
84
85 * emultempl/ppc32elf.em (emit_stub_syms): New var.
86 (ppc_after_open): Pass it to ppc_elf_select_plt_layout.
87 (PARSE_AND_LIST_PROLOGUE <OPTION_STUBSYMS>): Define.
88 (PARSE_AND_LIST_LONGOPTS): Add emit-stub-syms.
89 (PARSE_AND_LIST_OPTIONS): Describe emit-stub-syms.
90 (PARSE_AND_LIST_OPTIONS): Handle it.
91
36230712
AM
922005-12-08 Alan Modra <amodra@bigpond.net.au>
93
94 * pe-dll.c (build_filler_bfd): Conform error message to standard.
95 (pe_dll_generate_implib): Use %E in error message.
96 (add_bfd_to_link): Likewise.
97 (pe_implied_import_dll): Likewise.
98
fe21a8fc
L
992005-12-07 Thiemo Seufer <ths@networkno.de>
100 H.J. Lu <hongjiu.lu@intel.com>
101
102 PR ld/1932
103 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
104 Adjust bfd_elf_record_link_assignment call.
105
106 * ldexp.c (exp_fold_tree_1): Remove call to bfd_hide_symbol.
107
b251bf6f
JB
1082005-11-25 Jan Beulich <jbeulich@novell.com>
109
110 * Makefile.am: Make configdoc.texi writeable before trying
111 to write to it.
112 * Makefile.in: Refresh.
113
390fbbf1
AM
1142005-11-24 Alan Modra <amodra@bigpond.net.au>
115
116 * ldlang.c (lang_output_section_find_by_flags): Add match_type param.
117 Run two passes, first using match_type, second without.
118 * ldlang.h (lang_match_sec_type_func): New typedef.
119 (lang_output_section_find_by_flags): Update prototype.
120 bfd_match_sections_by_type and lang_output_section_find_by_flags.
121 * emultempl/pe.em (place_orphan): Likewise.
122
be529132
AM
1232005-11-24 Alan Modra <amodra@bigpond.net.au>
124
125 * ldlang.c (lang_insert_orphan): Skip first assignment to dot
126 in script when looking for place to insert orphan statements.
127
e87deb82
AM
1282005-11-18 Alan Modra <amodra@bigpond.net.au>
129
130 * emulparams/elf64ppc.sh (.tocbss): Use new section alignment scheme.
131 (.got, .toc1, .opd): Likewise.
132
94b50910
AM
1332005-11-18 Alan Modra <amodra@bigpond.net.au>
134
135 * ldlang.c (lang_size_sections_1): Revert 2005-11-16 functional
136 changes to section alignment.
137 * ldmisc.c (vfinfo): Handle %ld and %lu.
138
dff70155
MM
1392005-11-16 Mark Mitchell <mark@codesourcery.com>
140
141 * Makefile.am (configdoc.texi): Set top_srcdir in configdoc.texi..
142 * Makefile.in: Regenerated.
143 * ld.texinfo: Include configdoc.texi and ldver.texi in man pages.
144 Add @file documentation.
be529132 145
7b986e99
AM
1462005-11-17 Alan Modra <amodra@bigpond.net.au>
147
148 * ldlang.h (lang_input_section_type): Remove "ifile" field.
149 (lang_insert_orphan, lang_add_section): Update prototypes.
150 * ldlang.c (lang_insert_orphan): Remove "file" param.
151 (lang_add_section): Likewise. Update all callers.
152 (wild_sort): Get an input section's bfd via "section->owner".
153 (size_input_section): Access just_syms_flag via bfd usrdata.
154 (lang_place_orphans): Update ldemul_place_orphan call.
155 * ldemul.h (ldemul_place_orphan): Remove input_statement param.
156 (struct ld_emulation_xfer_struct <place_orphan>): Likewise.
157 * ldemul.c (ldemul_place_orphan): Likewise.
158 * ldwrite.c (build_link_order): Access just_syms_flag via bfd usrdata.
159 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
160 * emultempl/beos.em (sort_by_file_name): Access bfd by section->owner.
161 (sort_sections): Likewise.
162 (place_orphan): Remove "file" param. Adjust lang_add_section call.
163 * emultempl/elf32.em (place_orphan): Remove "file" param. Adjust
164 lang_add_section and lang_insert_orphan calls.
165 * emultempl/hppaelf.em (hppaelf_add_stub_section): Adjust
166 lang_add_section call.
167 (build_section_lists): Access just_syms_flag via bfd usrdata.
168 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Adjust
169 lang_add_section call.
170 * emultempl/mmo.em (mmo_place_orphan): Remove "file" param. Adjust
171 lang_add_section and lang_insert_orphan calls.
172 * emultempl/pe.em (place_orphan): Likewise. Access bfd via section
173 owner.
174 * emultempl/ppc64elf.em (ppc_add_stub_section): Adjust
175 lang_add_section call.
176 (build_toc_list): Access just_syms_flag via bfd usrdata.
177 (build_section_lists): Likewise.
178 * emultempl/xtensaelf.em (elf_xtensa_place_orphan): Remove "file"
179 param. Adjust place_orphan call.
180 (ld_build_required_section_dependence): Access bfd via section owner.
181
bd4d42c1
AM
1822005-11-16 Alan Modra <amodra@bigpond.net.au>
183
184 * ldlang.h (lang_output_section_statement_type): Add prev.
185 * ldlang.c (new_afile): Always init header.type.
186 (output_statement_newfunc): Set os.prev.
187 (output_prev_sec_find): Use os.prev.
188 (lang_enter_output_section_statement): Formatting.
189 (lang_final, lang_add_target, lang_add_fill): Likewise.
190 (lang_add_data, lang_add_reloc): Likewise.
191 (lang_add_attribute): Only alloc the header.
192
7270c5ed
AM
1932005-11-16 Alan Modra <amodra@bigpond.net.au>
194
195 * ld.texinfo (Forced Output Alignment): Specify that this is an
196 alignment increase, not an override.
197 * ldlang.c (init_os): Set output section alignment here..
198 (lang_add_section): ..rather than here.
199 (lang_size_sections_1): Consolidate alignment code. Warn if section
200 alignment affects start address when explicit address given.
201
a541e3ce
SE
2022005-11-07 Steve Ellcey <sje@cup.hp.com>
203
204 * configure: Regenerate after modifying bfd/warning.m4.
205
70487fb2
AM
2062005-11-07 Olaf Hering <olh@suse.de>
207
208 * ldmain.c (main): Add \n to error message.
209
384a9dda
AM
2102005-11-04 Alan Modra <amodra@bigpond.net.au>
211
212 * ldlang.c (struct output_statement_hash_entry): Don't indirect to os.
213 (output_statement_newfunc): Rewrite.
214 (lang_output_section_find_1): Merge into..
215 (lang_output_section_find): ..here.
216 (lang_output_section_statement_lookup_1): Rewrite to handle
217 multiple sections with the same name.
218 (output_statement_table_init): Commonise error message.
219 (lang_init, open_output): Likewise.
220
6f2942ed
PB
2212005-11-03 Paul Brook <paul@codesourcery.com>
222
223 * scripttempl/elf.sc: Add .init_array.* and .fini_array.*.
224 * scripttempl/armbpabi.sc: Make init/fini array consistent with
225 elf.sc.
226 * scripttempl/elf32sh-symbian.sc: Ditto.
227 * scripttempl/elfxtensa.sc: Ditto.
228
7fabd029
AM
2292005-11-03 Alan Modra <amodra@bigpond.net.au>
230
231 * ldlang.h (lang_output_section_statement_type): Rearrange. Remove
232 memspec. Make "processed" a bitfield.
233 (lang_data_statement_type, lang_reloc_statement_type): Rename
234 output_vma to output_offset.
235 * ldlang.c (lang_output_section_statement_lookup_1): Init
236 all_input_readonly. Don't init memspec.
237 (init_os): Remove incorrect comment.
238 (print_data_statement, print_reloc_statement): Adjust for
239 lang_data_statement_type and lang_reloc_statement_type change.
240 (lang_size_sections_1, lang_add_reloc): Likewise.
241 * ldwrite.c (build_link_order): Likewise.
242
a55ff675
MM
2432005-10-30 Mark Mitchell <mark@codesourcery.com>
244
245 * lexsup.c (help): Document "@FILE".
246
9e5169a8
L
2472005-10-30 H.J. Lu <hongjiu.lu@intel.com>
248
249 * Makefile.am: Run "make dep-am".
250 * Makefile.in: Regenerated.
251
252 * dep-in.sed: Replace " ./" with " ".
253
3c9b82ba
NC
2542005-10-25 Arnold Metselaar <arnold.metselaar@planet.nl>
255
256 * Makefile.am: Add support for Z80
257 * Makefile.in: Regenerated
258 * configure.tgt: Add z80-*-coff
259 * emulparams/z80.sh: New file.
260 * emultempl/z80.em: New file.
261 * scripttempl/z80.sc New file.
262 * NEWS: Mention this new support.
263
3caac5b8
AM
2642005-10-25 Alan Modra <amodra@bigpond.net.au>
265
266 * po/ld.pot: Regenerate.
267
4f9c04f7
AM
2682005-10-25 Chris Metcalf <cdmetcalf@comcast.net>
269
270 * ld.texinfo (--reduce-memory-overheads): Fix typo.
271
ccd2ec6a
L
2722005-10-23 H.J. Lu <hongjiu.lu@intel.com>
273
274 PR ld/1487
275 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
276 bfd_match_sections_by_type to match section types.
277
278 * ldlang.c (init_os): Take the input section. Call
279 bfd_init_private_section_data if the input section isn't NULL.
280 (exp_init_os): Pass NULL to init_os.
281 (map_input_to_output_sections): Likewise.
282 (lang_add_section): Pass the input section to init_os.
283
3242b11e
PB
2842005-10-19 Paul Brook <paul@codesourcery.com>
285
286 * emulparams/armelf.sh: Add .ARM.attributes to OTHER_SECTIONS.
287
ecca9871
L
2882005-10-15 H.J. Lu <hongjiu.lu@intel.com>
289
290 PR ld/1467
291 * emultempl/elf32.em: Include "elf-bfd.h".
292 (gld${EMULATION_NAME}_place_orphan): Check section type and
293 don't use section name for ELF input sections.
294
295 * ld.texinfo: Document orphan section processing.
296
297 * ldlang.c (lang_output_section_find_by_flags): Match section
298 types by calling bfd_match_sections_by_type.
299
86043bbb
MM
3002005-10-13 Mark Mitchell <mark@codesourcery.com>
301
302 * ld.texino: Describe double-quoted string syntax for version
303 nodes.
304 * ldlang.h (lang_new_vers_pattern): Add literal_p parameter.
305 * ldgram.y (vers_defns): Allow NAME as well as VERS_IDENTIFIER.
306 Adjust calls to lang_new_vers_pattern to pass literal_p argument.
307 * ldlang.c (lang_vers_match): Fix indentation. Do not glob-match
308 version nodes without a pattern.
309 (lang_new_vers_pattern): Add literal_p parameter.
310 (lang_do_version_exports_section): Pass it.
311
3e8a519c
MM
3122005-10-12 Mark Mitchell <mark@codesourcery.com>
313
314 * NEWS: Mention @file.
315
f0e0fb23
L
3162005-10-05 H.J. Lu <hongjiu.lu@intel.com>
317
318 PR ld/1396
319 * ldcref.c (check_refs): Accept bfd_boolean.
320 (check_local_sym_xref): Pass FALSE to check_refs.
321 (check_nocrossref): Pass TRUE to check_refs.
322 (check_refs_info): Add bfd_boolean.
323 (check_refs): Add bfd_boolean to check_refs_info.
324 (check_reloc_refs): Match relocations with proper symbols.
325
326 * ldmisc.c (vfinfo): Don't add extra ":\n".
327
e60cc415
DS
3282005-10-05 Danny Smith <dannysmith@users.sourceforge.net>
329
330 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set
331 default entry symbol to ENTRY here.
332 * scripttempl/pe.sc: Not here.
333
4520f868
JW
3342005-09-30 James E Wilson <wilson@specifix.com>
335
336 * ldlang.c (lang_startup): Add missing ": " to einfo call.
337
b898a385
L
3382005-09-30 H.J. Lu <hongjiu.lu@intel.com>
339
340 * Makefile.am: Run "make dep-am".
341 * Makefile.in: Regenerated.
342 * aclocal.m4: Likewise.
343
750877ba
L
3442005-09-30 H.J. Lu <hongjiu.lu@intel.com>
345
346 * ldlang.c (output_statement_hash_entry): New type.
347 (output_statement_table): New variable for hash table.
348 (output_statement_newfunc): New function.
349 (output_statement_table_init): Likewise.
350 (output_statement_table_free): Likewise.
351 (lang_init): Call output_statement_table_init.
352 (lang_finish): Renamed to ...
353 (lang_end): This.
354 (lang_process): Updated.
355 (lang_finish): New function.
356 (lang_output_section_find_1): Use hash table.
357 (lang_output_section_statement_lookup_1): Likewise.
358
359 * ldlang.h (lang_finish): New.
360
361 * ldmain.c (main): Call lang_finish.
362
869b9d07
MM
3632005-09-30 Mark Mitchell <mark@codesourcery.com>
364
365 * ldmain.c (main): Use expandargv.
366
95f4309b 3672005-09-30 Catherine Moore <clm@cm00re.com>
384a9dda 368
95f4309b
CM
369 * Makefile.am: Bfin support.
370 * Makefile.in: Regenerated.
371 * aclocal.m4: Regenerated.
372 * configure.tgt: Bfin support.
373 * emulparams/bfin.sh: New file.
374 * emultempl/bfin.em: New file.
375
a70c2403
NC
3762005-09-30 Matthias Kurz <mk@baerlap.north.de>
377
378 * ld.h: Prevent the inclusion of <libintl.h> from the Solaris
379 version of <locale.h> when ENABLE_NLS is not defined.
380
bbf115d3
L
3812005-09-27 H.J. Lu <hongjiu.lu@intel.com>
382
383 * ld.texinfo (ALIGN): Document it as forcing output section
384 alignment.
385
386 * ldgram.y (ALIGN): Support it for forcing output section
387 alignment.
388
a5df8c84
AM
3892005-09-20 Alan Modra <amodra@bigpond.net.au>
390
f68d3f78
AM
391 * ldlang.h (lang_output_section_statement_struct): Change type of
392 "processed" to bfd_boolean.
393 * ldexp.c (fold_name): Update references to os->processed.
394 * ldlang.c (lang_output_section_statement_lookup_1): Likewise.
395 (lang_size_sections_1): Likewise.
396 (lang_reset_memory_regions): Likewise.
397
a5df8c84
AM
398 PR ld/1353
399 * ldlang.c (lang_size_sections_1): Process addr_tree earlier,
400 so that unused output section statements affect dot.
401
6aa29e7b
JJ
4022005-09-08 Jakub Jelinek <jakub@redhat.com>
403
404 * ld.texinfo: Document -z {no,}execstack, -z {no,}relro
405 and --eh-frame-hdr options.
406
5397b1fe
AM
4072005-09-07 Alan Modra <amodra@bigpond.net.au>
408
409 * ldexp.c (fold_name <SIZEOF>): Return 0 for non-existent section.
410 (exp_fold_tree_1): Print assert message only in final stage of
411 linking. Trigger assertion failure if expression cannot be
412 evaluated.
413
12b9ff6c
L
4142005-09-06 H.J. Lu <hongjiu.lu@intel.com>
415
416 PR ld/1263
417 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Check
418 --just-symbols on DSO.
419
2caf1300
AM
4202005-08-18 Alan Modra <amodra@bigpond.net.au>
421
422 * scripttempl/elf.sc: Remove commented out defines.
423
c17ae8a2
AM
4242005-08-18 Alan Modra <amodra@bigpond.net.au>
425
848cf006
AM
426 * emulparams/a29k.sh: Delete.
427 * emulparams/ebmon29k.sh: Delete.
428 * emulparams/sa29200.sh: Delete.
c17ae8a2
AM
429 * Makefile.am: Remove a29k support.
430 * configure.tgt: Likewise.
431 * ld.texinfo: Likewise.
432 * Makefile.in: Regenerate.
433
96f8ade5
JJ
4342005-08-17 Jakub Jelinek <jakub@redhat.com>
435
436 * ldgram.y (vers_defns): Don't lose pattern list before
437 extern NAME {}. Handle global, local and extern symbol names.
438
24dc748d
KK
4392005-08-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
440
441 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
442 Don't increment rel_count of .cranges here. Set rawsize of .cranges.
443
38975f9e
NC
4442005-08-10 Nick Clifton <nickc@redhat.com>
445
446 * pe-dll.c (pe_exe_fill_sections): Call lang_reset_memory_regions
447 before lang_size_sections.
448
66bcaf1f
AM
4492005-08-09 Alan Modra <amodra@bigpond.net.au>
450
451 * emulparams/hppa64linux.sh (LARGE_SECTIONS): Remove .tbss.
452
4532005-08-08 Eric Doenges <Eric.Doenges@betty-tv.com>
44c86e8c
NC
454
455 * Makefile.am (ALL_EMULATIONS): Add msp430x21xx variants.
456 Add rules to build these emulations.
457 * Makefile.in: Regenerate.
458 * configure.tgt (msp430): Add the new variants to the
459 targ_extra_emuls list.
460 * emulparams/msp430all.sh: Add entries for the msp430x21xx
461 variants.
462
7af8e998
L
4632005-08-05 H.J. Lu <hongjiu.lu@intel.com>
464
465 * ld.texinfo: Document PROVIDE_HIDDEN.
466
467 * ldexp.c (exp_fold_tree_1): Hide a provided symbol if asked.
468 (exp_provide): Add and set hidden.
469
470 * ldexp.h (etree_type): Add hidden to assign.
471
472 * ldgram.y (PROVIDE_HIDDEN): New.
473 * ldlex.l (PROVIDE_HIDDEN): Likewise.
474
475 * scripttempl/elf.sc: Use PROVIDE_HIDDEN on array bound
476 symbols.
477
9599dfb1
AM
4782005-08-05 Alan Modra <amodra@bigpond.net.au>
479
480 * emulparams/elf_x86_64.sh: Revert last change.
481 * scripttempl/elf.sc (REL_LARGE, LARGE_SECTIONS): Define here.
482
827a1c67
AM
4832005-08-05 Alan Modra <amodra@bigpond.net.au>
484
485 * emulparams/armelf.sh (OTHER_BSS_END_SYMBOLS): Split out from
486 OTHER_END_SYMBOLS.
487 * emulparams/armelf_linux.sh: Likewise.
488 * emulparams/armnto.sh: Likewise.
489 * emulparams/criself.sh: Likewise.
490 * emulparams/elf32mcore.sh: Likewise.
491 * emulparams/criself.sh (OTHER_SYMBOLS): Define.
492 * emulparams/crislinux.sh (OTHER_SYMBOLS): Define.
493 (OTHER_END_SYMBOLS): Don't define.
494 * emulparams/elf32fr30.sh: Likewise.
495 * emulparams/elf64mmix.sh: Likewise.
496 * emulparams/hppa64linux.sh: Likewise.
497 * emulparams/m32relf.sh: Likewise.
498 * emulparams/vxworks.sh: Likewise.
499 * scripttempl/armbpabi.sc (OTHER_BSS_SECTIONS): Delete.
500 (OTHER_BSS_END_SYMBOLS): Add.
501 (OTHER_END_SYMBOLS): Move before current end sym definitions.
502 (OTHER_SYMBOLS): Replace OTHER_END_SYMBOLS near end of script.
503 * scripttempl/elf.sc: Likewise.
504 * scripttempl/elf32sh-symbian.sc: Likewise.
505 * scripttempl/elf_chaos.sc: Likewise.
506 * scripttempl/elfxtensa.sc: Likewise.
507 * scripttempl/iq2000.sc: Likewise.
508 * scripttempl/xstormy16.sc: Likewise.
509
510 * scripttempl/elf.sc (LBSS, LARGE_SECTIONS): Delete.
511 (REL_LDATA, REL_LBSS, REL_LRODATA): Delete.
512 (REL_LARGE, LARGE_SECTIONS): Add.
513 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): Define as script text.
514 (REL_LARGE): Define.
515 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
516 (LARGE_SECTIONS): Define.
517 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
518 (LARGE_SECTIONS): Define.
519
046183de
AM
5202005-08-04 Alan Modra <amodra@bigpond.net.au>
521
522 * ldemul.c (ldemul_do_assignments, do_assignments_default): Delete.
523 * ldemul.h (ldemul_do_assignments, do_assignments_default): Delete.
524 (struct ld_emulation_xfer_struct): Remove do_assignments field.
525 * ldlang.c (lang_do_assignments): Don't call ldemul_do_assignments.
526 * emulparams/elf32ppc.sh (SDATA_START_SYMBOLS): New.
527 (SDATA2_START_SYMBOLS, SBSS_START_SYMBOLS, SBSS_END_SYMBOLS): New.
528 * emultempl/aix.em (ld_*_emulation): Delete do_assignments init.
529 * emultempl/armcoff.em: Likewise.
530 * emultempl/beos.em: Likewise.
531 * emultempl/generic.em: Likewise.
532 * emultempl/gld960.em: Likewise.
533 * emultempl/gld960c.em: Likewise.
534 * emultempl/linux.em: Likewise.
535 * emultempl/lnk960.em: Likewise.
536 * emultempl/m68kcoff.em: Likewise.
537 * emultempl/pe.em: Likewise.
538 * emultempl/sunos.em: Likewise.
539 * emultempl/ticoff.em: Likewise.
540 * emultempl/vanilla.em: Likewise.
541 * emultempl/elf32.em: Likewise.
542 (gld*_provide_bound_symbols): Delete.
543 (gld*_provide_init_fini_syms): Delete.
544 (gld*_before_allocation): Don't call ldemul_do_assignments.
545 * emultempl/ppc32elf.em (ppc_do_assignments): Delete.
546 (LDEMUL_DO_ASSIGNMENTS): Delete.
547 * scripttempl/elf.sc: Provide init/fini syms. Add SBSS_START_SYMBOLS,
548 SBSS_END_SYMBOLS, SDATA2_START_SYMBOLS.
549
fa498e09
AM
5502005-08-04 Alan Modra <amodra@bigpond.net.au>
551
552 * Makefile.am (eelf32m32c.c): Fix dependencies.
553 * Makefile.in: Regenerate.
554
1e035701
AM
5552005-08-04 Alan Modra <amodra@bigpond.net.au>
556
557 * ldemul.c (ldemul_finish): Call ld_emulation->finish unconditionally.
558 (finish_default): New function.
559 * ldemul.h (finish_default): Declare.
560 * emultempl/aix.em (gld*_before_allocation): Call
561 before_allocation_default rather than strip_excluded_output_sections.
562 (ld_*_emulation): Init finish field to finish_default.
563 * emultempl/armcoff.em: Likewise.
564 * emultempl/beos.em: Likewise.
565 * emultempl/elf32.em: Likewise.
566 * emultempl/generic.em: Likewise.
567 * emultempl/gld960.em: Likewise.
568 * emultempl/gld960c.em: Likewise.
569 * emultempl/hppaelf.em: Likewise.
570 * emultempl/linux.em: Likewise.
571 * emultempl/lnk960.em: Likewise.
572 * emultempl/m68kcoff.em: Likewise.
573 * emultempl/mmo.em: Likewise.
574 * emultempl/pe.em: Likewise.
575 * emultempl/ppc64elf.em: Likewise.
576 * emultempl/sunos.em: Likewise.
577 * emultempl/ticoff.em: Likewise.
578 * emultempl/vanilla.em: Likewise.
579
9f4fb502
AM
5802005-08-03 Alan Modra <amodra@bigpond.net.au>
581
582 * ldlang.c (exp_init_os): Handle etree_provide.
583 * emulparams/armelf.sh (OTHER_END_SYMBOLS): Rename from..
584 (OTHER_BSS_END_SYMBOLS): ..this.
585 * emulparams/armelf_linux.sh: Likewise.
586 * emulparams/armnto.sh: Likewise.
587 * emulparams/criself.sh: Likewise.
588 * emulparams/crislinux.sh: Likewise.
589 * emulparams/elf32frv.sh: Likewise.
590 * emulparams/elf32mcore.sh: Likewise.
591 * emulparams/elf32ppc.sh: Likewise.
592 * emulparams/elf32ppclinux.sh: Likewise.
593 * emulparams/hppa64linux.sh: Likewise.
594 * scripttempl/armbpabi.sc: Substitute $OTHER_END_SYMBOLS, not
595 $OTHER_BSS_END_SYMBOLS.
596 * scripttempl/elf32sh-symbian.sc: Likewise.
597 * scripttempl/elf_chaos.sc: Likewise.
598 * scripttempl/iq2000.sc: Likewise.
599 * scripttempl/xstormy16.sc: Likewise.
600 * scripttempl/elf.sc: Likewise. Delete __bss_start comment.
601 * scripttempl/elfxtensa.sc: Likewise.
602
e9156f74
NC
6032005-07-29 Nick Clifton <nickc@redhat.com>
604
605 * ldmain.c (main): Allow -shared and -static to be used together.
606 * ld.texinfo (-static): Mention that it is allowed with -shared.
607
89806866
DD
6082005-07-28 DJ Delorie <dj@redhat.com>
609
610 * ldlang.c (lang_output_section_statement_lookup_1): Don't cast a
611 unary & address operator, as that breaks GCC's strict aliasing
612 rules.
613
3b22753a
L
6142005-07-25 Jan Hubicka <jh@suse.cz>
615 H.J. Lu <hongjiu.lu@intel.com>
616
617 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): New.
618
619 * scripttempl/elf.sc: Updated for large section support.
620
9f971fcb
NC
6212005-07-21 Ralf Corsepius <ralf.corsepius@rtems.org>
622
623 * configure.tgt: Remove i[3-7]86-*-rtemself*.
624 Remove sparc-*-rtemself*.
625
71f51525
BE
6262005-07-21 Ben Elliston <bje@gnu.org>
627
628 * ldgram.y (ldgram_want_filename): Remove unused static.
629
fe773494
DD
6302005-07-20 DJ Delorie <dj@redhat.com>
631
632 * emulparams/elf32m32c.sh (TEMPLATE_NAME): New.
633 (EXTRA_EM_FILE): New.
634
0e1b44ba
L
6352005-07-19 H.J. Lu <hongjiu.lu@intel.com>
636
637 * ldmain.c (main): Reindent.
638
a3540342
PB
6392005-07-19 Paul Brook <paul@codesourcery.com>
640
641 * configure.host (HOSTING_CRT0): Parse output of gcc --help --verbose
642 to determine dynamic linker name.
643
85da3a56
NC
6442005-07-18 Nick Clifton <nickc@redhat.com>
645
646 * configure.tgt: Restore alpha ordering to list of arches.
647
42fa7765
AM
6482005-07-16 Alan Modra <amodra@bigpond.net.au>
649
650 * emultempl/elf32.em (gld*_provide_init_fini_syms): Prototype.
651 (gld*_before_allocation): Call ldemul_do_assignments rather than
652 gld*_provide_init_fini_syms directly.
653 * emultempl/ppc32elf.em (gld*_after_allocation): Delete.
654 (ppc_do_assignments): New function.
655 (LDEMUL_AFTER_ALLOCATION): Don't define.
656 (LDEMUL_DO_ASSIGNMENTS): Define.
657
0f82ff91
AM
6582005-07-16 Alan Modra <amodra@bigpond.net.au>
659
660 * Makefile.am: Run "make dep-am".
661 (emipsidt.c, emipsidtl.c): Depend on generic.em.
662 * Makefile.in: Regenerate.
663
5e797c2c
AM
6642005-07-15 Alan Modra <amodra@bigpond.net.au>
665
666 * ldemul.c (ldemul_do_assignments): New function.
667 (do_assignments_default): New function.
668 * ldemul.h (ldemul_do_assignments): Declare.
669 (do_assignments_default): Declare.
670 (struct ld_emulation_xfer_struct): Add do_assignments.
671 * ldlang.c (lang_do_assignments) Call ldemul_do_assignments.
672 * emultempl/aix.em (ld_*_emulation): Init do_assignments field.
673 * emultempl/armcoff.em: Likewise.
674 * emultempl/beos.em: Likewise.
675 * emultempl/generic.em: Likewise.
676 * emultempl/gld960.em: Likewise.
677 * emultempl/gld960c.em: Likewise.
678 * emultempl/linux.em: Likewise.
679 * emultempl/lnk960.em: Likewise.
680 * emultempl/m68kcoff.em: Likewise.
681 * emultempl/pe.em: Likewise.
682 * emultempl/sunos.em: Likewise.
683 * emultempl/ticoff.em: Likewise.
684 * emultempl/vanilla.em: Likewise.
685 * emultempl/elf32.em: Likewise, to call gld*_provide_init_fini_syms.
686 (gld*_find_exp_assignment): Adjust bfd_elf_record_link_assignment call.
687
49f58d10
JB
6882005-07-14 Jim Blandy <jimb@redhat.com>
689
690 Add support for the Renesas M32C and M16C.
691 * Makefile.am (ALL_EMULATIONS): Add eelf32m32c.o.
692 (eelf32m32c.c): New target.
693 * Makefile.in: Regenerated.
694 * configure.tgt: Add case for m32c-*-elf.
695 * emulparams/elf32m32c.sh: New file.
696
a3c2b96a
AM
6972005-07-14 Alan Modra <amodra@bigpond.net.au>
698
699 * ldlang.c (strip_excluded_output_sections): Don't call
700 bfd_gc_sections.
701 * emultempl/elf32.em (gld*_provide_bound_symbols): Move.
702 (gld*_provide_init_fini_syms): Move.
703 (gld*_before_allocation): Call the above from here..
704 (gld*_finish): ..not here. Call _bfd_elf_fix_excluded_sec_syms.
705 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
706 * emultempl/ppc64elf.em (ppc_finish): Likewise.
707
438361cd
NC
7082005-07-10 Ralf Corsepius <ralf.corsepius@rtems.org>
709
710 * configure.tgt: Remove sparc*-*-rtemsaout*, i[3-7]86-go32-rtems*,
711 i[3-7]86-*-rtemscoff*, hppa*-*-rtems*, mips*el-*-rtems*,
712 powerpcle-*-rtems*.
713
2c7fd14a
CF
7142005-07-09 Christopher Faylor <cgf@timesys.com>
715
716 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Enable runtime
717 relocation by default.
718 (compute_dll_image_base): Avoid linking into cygwin dll address space.
719
32124d5b
AM
7202005-07-08 Alan Modra <amodra@bigpond.net.au>
721
722 * ldlang.c (wild_sort): Formatting.
723 (strip_excluded_output_sections): Strip zero size sections here.
724 * emultempl/elf32.em (gld*_strip_empty_sections): Delete.
725 (gld*_finish): Don't call the above.
726 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
727 * emultempl/ppc64elf.em (ppc_finish): Likewise.
728
4cd5aacc 7292005-07-05 Paul Brook <paul@codesourcery.com>
9d8504b1
PB
730
731 * Makefile.am (ALL_EMULATIONS): Add eelf32ppcvxworks.o.
732 (eelf32ppcvxworks.o): Add dependencies.
733 * Makefile.in: Regenerate.
734 * configure.tgt: Add entry for powerpc-vxworks.
735 * emulparams/elf32-ppc.c: Mention elf32ppcvxworks.sh in comment.
736 * emulparams/elf32ppcvxworks.sh: New file.
737 * emultempl/ppc32elf.em (bfd_elf32_powerpc_vxworks_vec): Declare.
738 (is_ppc_elf32_vec): New function.
739 (ppc_after_open, ppc_before_allocation,
740 gld${EMULATION_NAME}_after_allocation): Use it.
741
35eb9fb6
NC
7422005-07-05 Peter S. Mazinger" <ps.m@gmx.net>
743
744 * emulparams/elf32bmip.sh (GENERATE_PIE_SCRIPT): Define as "yes".
745 * emulparams/elf32bmipn32-defs.sh (GENERATE_PIE_SCRIPT): Define as "yes".
746
5b5a4ec7
NC
7472005-07-04 Mike Frysinger <vapier@gentoo.org>
748
749 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Fix typo in
750 name.
751
80447b21
NC
7522005-07-04 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
753
754 * emulparams/m32relf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
755
711c0baa
AM
7562005-07-04 Aurelien Jarno <aurel32@debian.org>
757
758 * emultempl/elf32.em: Enable use of ld.so.conf for *-*-k*bsd-*.
759
c8c9c297
AM
7602005-07-01 Alan Modra <amodra@bigpond.net.au>
761
762 * scripttempl/elf.sc (.gcc_except_table): Don't KEEP.
763
b753922c
BE
7642005-06-30 Ben Elliston <bje@gnu.org>
765
766 * Makefile.am (check-DEJAGNU): Don't search for expect.
767 * Makefile.in: Regenerate.
768
c3298874
BE
7692005-06-30 Ben Elliston <bje@gnu.org>
770
771 * Makefile.am (EXPECT): Set to expect.
772 (RUNTEST): Likewise, set to runtest.
773 * Makefile.in: Regenerate.
774
a82644e2
NC
7752005-06-16 Alexander Klimov <alserkli@inbox.ru>
776
777 * emultempl/armelf.em: Add quotes to avoid a null test
778 expression.
779
e185dd51
DJ
7802005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
781
782 * ld.texinfo (Command Line Options): Add @item for --hash-size.
783
9d12f64c
AM
7842005-06-10 Alan Modra <amodra@bigpond.net.au>
785
786 * scripttempt/elf.sc (.bss): Align tail in a way that allows
787 empty section pruning.
788
502bdb00
JW
7892005-06-09 Steve Ellcey <sje@cup.hp.com>
790
791 * configure.in (AM_BINUTILS_WARNINGS): Add.
792 (BFD_NEED_DECLARATION) Replace with AC_CHECK_DECLS.
793 * config.in: Regenerate.
794 * configure: Regenerate.
795 * sysdep.h (NEED_DECLARATION_*): Replace with HAVE_DECL_*
796 * ldmain.c: Ditto.
797
dea2f0a8
AM
7982005-06-09 Alan Modra <amodra@bigpond.net.au>
799
800 * ldexp.c (fold_unary <ALIGN_K>): Revert last change.
801
e9ee469a
AM
8022005-06-09 Alan Modra <amodra@bigpond.net.au>
803
804 * ld.h (lang_phase_type): Move to..
805 * ldexp.h: ..here. Add lang_mark_phase_enum.
806 (node_type): Remove etree_undef and etree_unspec.
807 (exp_data_seg): Delete.
808 (struct ldexp_control, expld): New.
809 (invalid, exp_mark_used_section): Delete.
810 (exp_fold_tree, exp_get_vma, exp_get_value_int, exp_get_fill,
811 exp_get_abs_int): Update prototypes.
812 * ldexp.c (assigning_to_dot): Delete.
813 (expld): Define.
814 (make_abs): Operate directly on expld.result. Update all callers.
815 (new_abs): Likewise. Return void.
816 (new_rel_from_abs): Rename from new_rel_from_section.
817 (new_rel, new_rel_from_abs): Operate on expld.result and return void.
818 Update all callers.
819 (fold_unary): Operate on expld.result and return void. Remove
820 "current_section", "allocation_done", "dot", "dotp" and "mark_used"
821 params. Update all callers.
822 (fold_binary, fold_trinary, fold_name, exp_fold_tree_1): Likewise.
823 (fold_unary <ALIGN_K>): Ensure alignment is absolute.
824 (fold_unary <ABSOLUTE>): Use make_abs.
825 (fold_unary <DATA_SEGMENT_END>): Evaluate mark_phase as for
826 allocating_phase.
827 (fold_binary <DATA_SEGMENT_ALIGN, DATA_SEGMENT_RELRO_END, >): Ditto.
828 (fold_binary <'%','/'>): Don't error if marking.
829 (fold_name <SIZEOF_HEADERS>): Don't call bfd_sizeof_headers when
830 marking.
831 (fold_name <NAME>): Remove FIXME; -R is handled correctly. Don't
832 error when marking.
833 (fold_name <ADDR, LOADADDR, SIZEOF>): Don't set SEC_KEEP.
834 (exp_fold_tree_1): Don't error when marking.
835 (exp_fold_tree_1 <etree_rel>): Evaluate in all phases except first.
836 (exp_fold_tree_1 <etree_assign to dot>): Don't check for NULL
837 current section, instead check for NULL dotp.
838 (exp_fold_tree_1 <etree_provide>): Don't evaluate the assignment
839 source unless the symbol is referenced and undefined.
840 (exp_fold_tree): Remove "allocation_done" and "dot" params. Save
841 params to expld.
842 (exp_fold_tree_no_dot): Remove "current_section", "allocation_done
843 and "mark_used" params. Save params to expld. Update all callers.
844 (exp_assop): Do without temp var.
845 (exp_print_tree <etree_undef>): Delete code.
846 (exp_get_vma): Remove "allocation_done" param. Correct error return.
847 (exp_get_fill, exp_get_abs_int): Likewise.
848 (exp_get_value_int): Remove "allocation_done" param.
849 (exp_mark_used_section): Delete.
850 * ldgram.y (fill_exp): Update exp_get_fill call.
851 (origin_spec, length_spec): Update exp_get_vma call.
852 * ldlang.c (lang_init): Don't bother clearing lang_statement_iteration.
853 (lang_mark_used_section_1, lang_mark_used_section): Delete.
854 (strip_excluded_output_sections): Call one_lang_size_sections_pass in
855 marking mode. Merge old lang_mark_used_section code. Correct handling
856 of output sections with excluded input sections and data statements.
857 Don't drop non-zero sized sections. Don't zap os->bfd_section.
858 Do set SEC_EXCLUDE when appropriate.
859 (print_output_section_statement): Update for changed ldexp.c
860 interface.
861 (print_assignment, lang_size_sections_1): Likewise.
862 (lang_do_assignments_1, lang_enter_output_section_statement): Likewise.
863 (lang_new_phdr, lang_record_phdrs): Likewise.
864 (lang_size_sections): Likewise.
865 (insert_pad): Use following statement if it is a pad, rather than
866 creating a new one.
867 (lang_size_sections_1 <lang_output_section_statement_enum>): Do
868 process ignored output section to set vma and lma, but don't
869 update dot for these sections. Don't error if marking.
870 (lang_size_sections_1 <lang_assignment_statement_enum>): Don't
871 update dot for ignored sections.
872 (lang_size_sections_1 <lang_data_statement_enum>): Don't mark absolute
873 section with SEC_ALLOC.
874 (one_lang_size_sections_pass): New function.
875 (lang_size_sections): Remove first five params. Set expld.phase on
876 entry and exit. Use one_lang_size_sections_pass.
877 (lang_do_assignments): Remove all params. Update all callers.
878 (lang_reset_memory_regions): Clear os->processed for all output
879 section statements.
880 * ldlang.h (lang_do_assignments): Update prototype.
881 (lang_size_sections): Likewise.
882 (one_lang_size_sections_pass): Declare.
883 * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
884 lang_size_sections and lang_do_assignments calls.
885 * emultempl/elf32.em (layout_sections_again): Likewise.
886 * emultempl/ppc64elf.em (ppc_before_allocation): Use
887 one_lang_size_sections_pass.
888
b2be2013
AH
8892005-06-08 Aldy Hernandez <aldyh@redhat.com>
890
891 * emulparams/elf32ms1.sh: New.
892
a34e3ecb
EC
8932005-06-07 Eric Christopher <echristo@redhat.com>
894
895 * Makefile.am (eelf32ms1.c): Use tab.
896 * Makefile.in: Regenerate.
897
9e1f170f
AH
8982005-06-07 Aldy Hernandez <aldyh@redhat.com>
899 Michael Snyder <msnyder@redhat.com>
900 Stan Cox <scox@redhat.com>
901
902 * configure.tgt: Same.
903
904 * Makefile.am (ALL_EMULATIONS): Depend on eelf32ms1.o.
905 (eelf32ms1.c): Add eelf32ms1.c rule.
906
907 * Makefile.in: Regenerate.
908
b4f4e59f
AM
9092005-06-06 Alan Modra <amodra@bigpond.net.au>
910
911 * emultempl/ppc64elf.em (ppc_before_allocation): Always run
912 ppc64_elf_edit_opd.
913
18b79829
L
9142005-06-05 H.J. Lu <hongjiu.lu@intel.com>
915
916 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
917 section only if the symbol will be defined.
918
079f985c
L
9192005-06-04 H.J. Lu <hongjiu.lu@intel.com>
920
921 PR 992
922 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
923 section for etree_assign, etree_provide and etree_provided.
924 Call fold_binary on etree_binary.
925
926 * ldlang.c (lang_mark_used_section_1): Handle load base.
927
e1fffbe6
AM
9282005-06-03 Alan Modra <amodra@bigpond.net.au>
929
930 * ldmain.c (link_callbacks): Add einfo.
931 (add_archive_element): Use passed info, not link_info.
932 (constructor_callback): Likewise.
933 (reloc_overflow): Don't handle null bfd specially.
934 (reloc_dangerous, unattached_reloc): Likewise.
935 * ldmisc.c (vfinfo <B>): Print "ld generated" for null bfd.
936 (vfinfo <C, D, G>): Handle null bfd. Wrap comments.
937
408082ec
AM
9382005-06-02 Alan Modra <amodra@bigpond.net.au>
939
940 * ldexp.h (etree_value_type): Use "asection *" in place of
941 "struct lang_output_section_statement_struct *" for "section".
942 (exp_fold_tree): Likewise.
943 (exp_mark_used_section): Likewise.
944 * ldexp.c (new_rel, new_rel_from_section, fold_unary, fold_binary,
945 fold_trinary, fold_name, exp_fold_tree_1, exp_fold_tree,
946 exp_mark_used_section): Likewise for "current_section" param.
947 (make_abs, new_abs, exp_binop, exp_unop, exp_get_vma, exp_get_fill,
948 exp_get_abs_int): Adjust for above changes.
949 * ldlang.c (lang_mark_used_section_1, print_assignment,
950 lang_size_sections_1, lang_do_assignments_1): Likewise.
951 * ldexp.c (fold_name): Init entire result struct.
952
d0d3b2e8
MR
9532005-06-01 Maciej W. Rozycki <macro@linux-mips.org>
954
955 * emulparams/elf32btsmip.sh: Unset DATA_ADDR.
956
a359509e
ZW
9572005-05-31 Zack Weinberg <zack@codesourcery.com>
958
959 * ldlang.c (entry_symbol_default): New file-scope global.
960 (lang_finish): Use it, not a hardwired "start".
961 (lang_default_entry): Set it.
962 * ldlang.h: Declare lang_default_entry.
963 * emultempl/beos.em, emultempl/pe.em: Use lang_default_entry,
964 not lang_add_entry, to override default entry point symbol.
965
8d6d53d4
RH
9662005-05-29 Richard Henderson <rth@redhat.com>
967
968 * emulparams/elf64alpha.sh (PLT): New.
969 (TEXT_PLT): New.
970 * emultempl/alphaelf.em (disable_relaxation): New.
971 (limit_32bit): Rename from elf64alpha_32bit; update all users.
972 (elf64_alpha_use_secureplt): Declare.
973 (bfd_elf64_alpha_vec, bfd_elf64_alpha_freebsd_vec): Declare.
974 (alpha_after_open): New.
975 (alpha_before_allocation): New.
976 (OPTION_NO_RELAX, OPTION_SECUREPLT, OPTION_NO_SECUREPLT): New.
977 (PARSE_AND_LIST_LONGOPTS): Include them.
978 (PARSE_AND_LIST_OPTIONS): Likewise.
979 (PARSE_AND_LIST_ARGS_CASES): Likewise.
980 (LDEMUL_AFTER_OPEN, LDEMUL_BEFORE_ALLOCATION): New.
981 * scripttempl/elf.sc (TEXT_PLT): New.
982 (PLT): Use it.
983
f93e81d6
AS
9842005-05-27 Andreas Schwab <schwab@suse.de>
985
986 * configure.host (HOSTING_LIBS): Add libunwind.a if it exists.
987
61f8ebf2
AM
9882005-05-24 Alan Modra <amodra@bigpond.net.au>
989
990 * emultempl/ppc32elf.em (after_allocation): Don't call
991 ppc_elf_set_sdata_syms when relocatable.
992
8b803601
L
9932005-05-21 H.J. Lu <hongjiu.lu@intel.com>
994
995 * Makefile.am (ld.1): Revert the last 2 changes.
996 (info-recursive): Depend on ld.1.
997 * Makefile.in: Regenerated.
998
e366efef
L
9992005-05-21 H.J. Lu <hongjiu.lu@intel.com>
1000
1001 * Makefile.am (ld.1): Depend on "info" instead of
1002 "configdoc.texi ldver.texi".
1003 * Makefile.in: Regenerated.
1004
abf32a89
L
10052005-05-21 H.J. Lu <hongjiu.lu@intel.com>
1006
1007 * Makefile.am (ld.1): Depend on "info".
1008 * Makefile.in: Regenerated.
1009
e3e71e27
ZW
10102005-05-19 Zack Weinberg <zack@codesourcery.com>
1011
1012 * Makefile.am: Have 'all' depend on 'info' and 'ld.1'.
1013 * Makefile.in: Regenerate.
1014
c19d1205
ZW
10152005-05-17 Zack Weinberg <zack@codesourcery.com>
1016
1017 * ld-arm/mixed-app.d: Adjust expected disassembly a little.
1018
970c3dbc
DJ
10192005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
1020
1021 * Makefile.am (ldver.texi): Don't use $<.
1022 * Makefile.in: Regenerated.
1023
6e1b59d2
DJ
10242005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
1025
1026 * Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
1027 $(srcdir) before $(BFDDIR)/doc.
1028 * Makefile.in: Regenerated.
1029
75ff4589
L
10302005-05-17 H.J. Lu <hongjiu.lu@intel.com>
1031
1032 PR 797
1033 * ldexp.c (exp_fold_tree_1): Renamed from exp_fold_tree and
1034 take take a bfd_boolean, mark_used. Ignore assert failure if
1035 mark_used is TRUE.
1036 (exp_fold_tree) Call exp_fold_tree_1 with mark_used == FALSE.
1037 (exp_fold_tree_no_dot): Updated to take a bfd_boolean,
1038 mark_used and pass down.
1039 (fold_unary): Likewise.
1040 (fold_binary): Likewise.
1041 (fold_trinary): Likewise.
1042 (exp_binop): Add FALSE to call to exp_fold_tree_no_dot.
1043 (exp_trinop): Likewise.
1044 (exp_unop): Likewise.
1045 (exp_nameop): Likewise.
1046 (exp_get_vma): Likewise.
1047 (exp_get_fill): Likewise.
1048 (exp_get_abs_int): Likewise.
1049 (fold_name): Likewise. Set SEC_KEEP in output section flags.
1050 (exp_mark_used_section): New.
1051
1052 * ldexp.h (exp_mark_used_section): New.
1053
1054 * ldlang.c (lang_output_section_statement_lookup_1): Set the
1055 ignored field to FALSE.
1056 (lang_mark_used_section_1): New.
1057 (lang_mark_used_section): Call lang_mark_used_section_1.
1058 (strip_excluded_output_sections): Call lang_mark_used_section
1059 and check for unused sections.
1060 (lang_size_sections_1): Skip an output section if it should
1061 be ignored.
1062 (lang_do_assignments_1): Likewise.
1063 (lang_process): Don't call lang_mark_used_section here.
1064
1065 * ldlang.h (lang_output_section_statement_type): Change
1066 all_input_readonly to bitfield. Add ignored.
1067
25ba8e7b
NC
10682005-05-17 Lennert Buytenhek <buytenh@wantstofly.org>
1069 Peter S. Mazinger" <ps.m@gmx.net>
1070
c19d1205
ZW
1071 * emulparams/armelf_linux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
1072 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
25ba8e7b 1073
10dbd1f3
NC
10742005-05-17 Julian Brown <julian@codesourcery.com>
1075
1076 * ldlang.c (print_assignment): Do not rely upon a valid result
1077 having a section associated with it.
1078
3b83e13a
NC
10792005-05-17 Nick Clifton <nickc@redhat.com>
1080
1081 * ldlang.c (Scan_for_self_assignment): Check an assignment tree to
1082 see if the same value is being used on the rhs as on the lhs.
1083 (print_assignment): Call scan_for_self_assignment and if it
1084 returns true, do no display the result of the computation but
1085 instead just the final value of the symbol on the lhs.
1086 * ld.texinfo: Document this behaviour and provide an example of
1087 when it will happen.
1088
42ecbf5e
DJ
10892005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
1090
1091 * Makefile.am (AM_MAKEINFOFLAGS): Define.
1092 (TEXI2DVI): Define.
1093 (ldver.texi): Depend on distributed files instead of built files.
1094 (ld.info): Include $(srcdir) in the rule target. Remove actions.
1095 (ld.dvi): Remove actions.
1096 (MAINTAINERCLEANFILES): Add configdoc.texi.
1097 (CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in.
1098 (install-data-local): Renamed from install.
1099 (Makefile): Remove explicit dependency.
1100 * acinclude.m4: Remove obsolete code.
1101 * configure.in: Update AC_PREREQ. Remove extra $CONFIG_SHELL.
1102 * Makefile.in, aclocal.m4, config.in, configure: Regenerated.
1103
be2c2e39
BW
11042005-05-11 Bob Wilson <bob.wilson@acm.org>
1105
1106 * scripttempl/elfxtensa.sc: Sync up with elf.sc.
1107 * emulparams/elf32xtensa.sh (PLT, GOT): Define.
1108
0cf7d72c
AM
11092005-05-11 Alan Modra <amodra@bigpond.net.au>
1110
1111 * ldgram.y: Add SPECIAL token.
1112 (sect_constraint): Handle SPECIAL.
1113 * ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
1114 (map_input_to_output_sections): Likewise.
1115 * ldlex.l (SPECIAL): Define.
1116 * emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
1117 GOT, PLT, GOTPLT): Define.
1118 * emultempl/ppc32elf.em (old_plt, old_got): New static vars.
1119 (ppc_after_open): New function.
1120 (PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
1121 (PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
1122 (PARSE_AND_LIST_OPTIONS): Document them.
1123 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1124 (LDEMUL_AFTER_OPEN): Define.
1125 * scripttempl/elf.sc (PLT): Don't override existing define.
1126 (DATA_GOT, SDATA_GOT): Define and use to enable alternate got
1127 placement rather than using NO_SMALL_DATA. Emit GOTPLT for RELRO_NOW.
1128
4ca02259
AM
11292005-05-10 Alan Modra <amodra@bigpond.net.au>
1130
1131 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
1132 (DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
1133 (GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END. Place after
1134 DATA_SEGMENT_RELRO_END in script.
1135
baf6e97f
L
11362005-05-09 H.J. Lu <hongjiu.lu@intel.com>
1137
1138 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1139 Don't use a removed section.
1140
a6e1b90f
L
11412005-05-09 H.J. Lu <hongjiu.lu@intel.com>
1142
1143 * ldmain.c (reloc_overflow): Use output_bfd if the symbol
1144 is defined in the ABS section.
1145
c18bae34
L
11462005-05-06 H.J. Lu <hongjiu.lu@intel.com>
1147
1148 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
1149 Put back !link_info.relocatable.
1150
4ef24a2e
L
11512005-05-06 H.J. Lu <hongjiu.lu@intel.com>
1152
3f693ed5 1153 PR 878
4ef24a2e
L
1154 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
1155 Just check link_info.executable.
1156
e06fb9c3
NC
11572005-05-06 Nick Clifton <nickc@redhat.com>
1158
1159 * Update the address and phone number of the FSF organization in
1160 the GPL notices in the following files:
1161 aclocal.m4, deffile.h, deffilep.y, fdl.texi, ld.h, ldcref.c,
1162 ldctor.c, ldctor.h, ldemul.c, ldexp.c, ldexp.h, ldfile.c,
1163 ldfile.h, 20ldgram.y, ldint.texinfo, ldlang.c, ldlang.h, ldlex.h,
1164 ldlex.l, ldmain.c, ldmain.h, ldmisc.c, ldmisc.h, ldver.c, ldver.h,
1165 ldwrite.c, ldwrite.h, lexsup.c, mri.c, mri.h, pe-dll.c, pe-dll.h,
1166 sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
1167 emultempl/armcoff.em, emultempl/armelf.em, emultempl/beos.em,
1168 emultempl/crxelf.em, emultempl/elf32.em, emultempl/generic.em,
1169 emultempl/gld960.em, emultempl/gld960c.em, emultempl/hppaelf.em,
1170 emultempl/ia64elf.em, emultempl/irix.em, emultempl/linux.em,
1171 emultempl/lnk960.em, emultempl/m68hc1xelf.em,
1172 emultempl/m68kcoff.em, emultempl/m68kelf.em,
1173 emultempl/mipsecoff.em, emultempl/mmix-elfnmmo.em,
1174 emultempl/mmixelf.em, emultempl/mmo.em, emultempl/needrelax.em,
1175 emultempl/pe.em, emultempl/ppc32elf.em, emultempl/ppc64elf.em,
1176 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em,
1177 emultempl/vanilla.em, emultempl/xtensaelf.em
1178
01d9ad14
L
11792005-05-05 H.J. Lu <hongjiu.lu@intel.com>
1180
1181 * scripttempl/elf.sc: Document the usage of __bss_start.
1182
eac338cf
PB
11832005-05-05 Paul Brook <paul@codesourcery.com>
1184
1185 * Makefile.am: Add eelf_i386_vxworks.
1186 * Makefile.in: Regenerate.
1187 * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
1188 * emulparams/elf_i386_vxworks.sh: New file.
1189 * emulparams/vxworks.sh: New file.
1190 * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
1191
f652615e
L
11922005-05-04 H.J. Lu <hongjiu.lu@intel.com>
1193
1194 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1195 Call _bfd_elf_provide_section_bound_symbols.
1196
8423293d
AM
11972005-05-04 Alan Modra <amodra@bigpond.net.au>
1198
1199 * ldemul.c: Include bfdlink.h.
1200 (ldemul_before_allocation): Assume before_allocation is non-zero.
1201 (before_allocation_default): Call strip_excluded_output_sections.
1202 * ldlang.c (stripped_excluded_sections): New variable.
1203 (lang_add_section): Build input section list for each output
1204 section, attached via map_head and map_tail pointers.
1205 (strip_excluded_output_sections): Make global. Traverse the
1206 input section lists to find which output sections can go. Clear
1207 link_order pointers and set stripped_excluded_sections.
1208 (lang_process): Call strip_excluded_output_sections.
1209 * ldlang.h (strip_excluded_output_sections): Declare.
1210 * ldwrite.c: Update throuhout for link_order_head -> map_head change.
1211 * emultempl/aix.em (before_allocation): Call
1212 strip_excluded_output_sections.
1213 * emultempl/armcoff.em (before_allocation): Likewise.
1214 * emultempl/beos.em (before_allocation): Likewise.
1215 * emultempl/linux.em (before_allocation): Likewise.
1216 * emultempl/pe.em (before_allocation): Likewise.
1217 * emultempl/sunos.em (before_allocation): Likewise.
1218 * emultempl/elf32.em (before_allocation): Likewise. Call
1219 bfd_elf_size_dynsym_hash_dynstr too.
1220 * emultempl/lnk960.em (lnk960_before_allocation): Delete.
1221 (ld_lnk960): Use before_allocation_default.
1222
5daa8fe7
L
12232005-05-02 H.J. Lu <hongjiu.lu@intel.com>
1224
1225 * emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
1226 Updated for bfd_section_list_remove change.
1227 * ldlang.c (lang_insert_orphan): Likewise.
1228 (strip_excluded_output_sections): Likewise.
1229 (sort_sections_by_lma): New.
1230 (lang_check_section_addresses): Sort the sections before
1231 checking addresses.
1232
009b6a7a
DJ
12332005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
1234
1235 * configure.tgt: Add h8300*-*-rtemscoff.
1236 Switch h8300*-*-rtems* to elf.
1237
279e75dc
BE
12382005-04-29 Ben Elliston <bje@au.ibm.com>
1239
1240 * ldgram.y (lang_memory_region_type): Make static.
1241 (ldgram_want_filename): Likewise.
1242 * ldemul.c (ld_emulation): Make static.
1243 * ldfile.h (ldfile_find_command_file): Remove extern.
1244 * ldfile.c (ldfile_find_command_file): Make static.
1245 * ldlang.h (unique_section_list): Remove extern declaration.
1246 * ldlang.c (unique_section_list): Make static.
1247 * mri.h (symbol_truncate): Remove extern declaration.
1248 * mri.c (symbol_truncate): Make static.
1249 (order, only_load, address, alias): Likewise.
1250 (alignment, subalignment): Likewise.
1251
4a2afbc1
L
12522005-04-27 H.J. Lu <hongjiu.lu@intel.com>
1253
1254 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1255 Use the first SEC_ALLOC section which isn't SEC_READONLY or the
1256 last SEC_ALLOC section if such a section doesn't exist.
1257
fd9719b1
MK
12582005-04-24 Mark Kettenis <kettenis@gnu.org>
1259
1260 * configure.host: Add *-*-openbsd support.
1261
33bfe774
JB
12622005-04-15 Julian Brown <julian@codesourcery.com>
1263
1264 * ld.texinfo: Document --use-blx.
1265 * emultempl/armelf.em (use_blx): New variable.
1266 (arm_elf_create_output_section_statements): Communicate value of
1267 use_blx to bfd.
1268 (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
1269 (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
1270 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
1271
9e9b66a9
AM
12722005-04-14 Alan Modra <amodra@bigpond.net.au>
1273
1274 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
1275 * configure.in: Include ../bfd/warning.m4 contents.
1276 * Makefile.in: Regenerate.
1277 * configure: Regenerate.
1278
ceae3e33
AM
12792005-04-12 Alan Modra <amodra@bigpond.net.au>
1280
1281 * Makefile.am: Run "make dep-am".
1282 (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
1283 * Makefile.in: Regenerate.
1284 * config.in: Regenerate.
1285
7cedef86
AM
12862005-04-11 Alan Modra <amodra@bigpond.net.au>
1287
1288 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
1289 as_needed libs that were not needed.
1290 (gld${EMULATION_NAME}_check_needed): Likewise.
1291
187ffe95
NC
12922005-04-07 Nick Clifton <nickc@redhat.com>
1293
1294 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
0cf7d72c 1295 ldfile.h can use the lang_input_statement type.
187ffe95 1296
72223188
JJ
12972005-04-06 Jakub Jelinek <jakub@redhat.com>
1298
1299 * ldlang.c: Formatting.
1300 (walk_wild_consider_section): Remember return value from wildcardp.
1301 (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
1302 (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
1303
13042005-04-06 Robert O'Callahan <rocallahan@novell.com>
1305
1306 * ld.h (lean_section_userdata_type): Remove.
1307 (fat_section_userdata_type): Remove file field.
1308 (SECTION_USERDATA_SIZE): Remove.
1309 * ldlang.c (init_os): Eliminate initialization of unused
1310 lean_section_userdata_type.
1311
1312 * ldlang.h (callback_t, walk_wild_section_handler_t): New
1313 typedefs.
1314 (struct lang_wild_statement_struct): Add walk_wild_section_handler
1315 and handler_data fields.
1316 * ldlang.c (callback_t): Removed.
1317 (walk_wild_consider_section, walk_wild_section_general,
1318 section_iterator_callback, find_section, is_simple_wild,
1319 match_simple_wild, walk_wild_section_specs1_wild0,
1320 walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
1321 walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
1322 wild_spec_can_overlap, analyze_walk_wild_section_handler): New
1323 functions.
1324 (lang_add_wild): Call analyze_walk_wild_section_handler.
1325 (walk_wild_section): Renamed to walk_wild_section_general and
1326 created a wrapper function.
1327 (section_iterator_callback_data): New typedef.
1328
34875e64
NC
13292005-04-04 Nick Clifton <nickc@redhat.com>
1330
1331 * configure.in: Add a check for <unistd.h> providing a prototype
1332 for getopt() which is compatible with the one in
1333 include/getopt.h. If so then define HAVE_DECL_GETOPT.
1334 * configure: Regenerate.
1335 * config.in (HAVE_DECL_GETOPT): Add.
1336 * ldemul.c: Include config.h
1337 * lexsup.c: Likewise.
1338 * emultempl/elf32.sc: Likewise.
1339
deb04cdb
AM
13402005-03-29 Alan Modra <amodra@bigpond.net.au>
1341
1342 * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
1343 New function, extracted from static void gld${EMULATION_NAME}_finish.
1344 (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
1345 (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
1346 * emultempl/ppc64elf.em: Revert last change.
1347 (ppc_layout_sections_again): Use
1348 gld${EMULATION_NAME}_layout_sections_again.
1349 (ppc_finish): Don't call gld${EMULATION_NAME}_finish. Instead call
1350 gld${EMULATION_NAME}_strip_empty_sections and
1351 gld${EMULATION_NAME}_provide_init_fini_syms.
1352 * emultempl/hppaelf.em: Similarly.
1353
8b4e5e28
AM
13542005-03-29 Alan Modra <amodra@bigpond.net.au>
1355
1356 * emultempl/ppc64elf.em (need_laying_out): Delete. Remove all refs.
1357 (ppc_finish): Don't call bfd_elf_discard_info.
1358 * emultempl/hppaelf.em: Similarly.
1359
510a939b
NC
13602005-03-24 Nick Clifton <nickc@redhat.com>
1361
1362 * po/fr.po: Updated French translation.
1363
ed84e695
NC
13642005-03-23 Mike Frysinger <vapier@gentoo.org>
1365 Nick Clifton <nickc@redhat.com>
1366
1367 * configure.host: Accept any C library to accompany a GNU Linux
1368 implementation, not just the GNU C library.
1369 * configure.tgt: Likewise.
1370 * emultempl/elf32.em: Likewise.
deb04cdb 1371
81e1b023
L
13722005-03-22 H.J. Lu <hongjiu.lu@intel.com>
1373
1374 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
1375 (gld${EMULATION_NAME}_finish): Call
1376 gld${EMULATION_NAME}_provide_bound_symbols to provide
1377 __preinit_array_start, __preinit_array_end, __init_array_start,
1378 __init_array_end, __fini_array_start and __fini_array_end.
1379
1380 * scripttempl/elf.sc: Don't provide __preinit_array_start,
1381 __preinit_array_end, __init_array_start, __init_array_end,
1382 __fini_array_start nor __fini_array_end.
1383
11d2f718
AM
13842005-03-23 Alan Modra <amodra@bigpond.net.au>
1385
1386 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
1387 SEC_EXCLUDE on .gnu.warning sections.
1388
644285ef
AM
13892005-03-22 Alan Modra <amodra@bigpond.net.au>
1390
1391 * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
1392
c9a2f333
AM
13932005-03-21 Alan Modra <amodra@bigpond.net.au>
1394
1395 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
1396 function.
1397 (LDEMUL_AFTER_ALLOCATION): Define.
1398
b1ab9777
AM
13992005-03-21 Alan Modra <amodra@bigpond.net.au>
1400
1401 * emultempl/ppc64elf.em (ppc_finish): Rename from
1402 gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
1403 (LDEMUL_FINISH): Update.
1404 * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
1405 * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
1406
2a2a7c94
JB
14072005-03-18 Julian Brown <julian@codesourcery.com>
1408
1409 * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
1410 .rel.fini_array.
1411 (.rela.dyn): Add .rela.init_array, .rela.fini_array.
1412 (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
1413
98720c64
L
14142005-03-18 H.J. Lu <hongjiu.lu@intel.com>
1415
1416 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
1417 bfd_section when removing unused empty output sections for
1418 non-relocatable link.
1419
41c7ba7c
AM
14202005-03-19 Alan Modra <amodra@bigpond.net.au>
1421
1422 * ldlang.c (lang_insert_orphan): Use old section_tail rather than
1423 traversing the bfd section list to find pointer to new section.
1424
0fb53118
AM
14252005-03-18 Alan Modra <amodra@bigpond.net.au>
1426
1427 * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
1428 input sections into .sdata and .sbss output respectively.
1429
de7f8cc8
BW
14302005-03-16 David Heine <dlheine@tensilica.com>
1431 Bob Wilson <bob.wilson@acm.org>
1432
1433 * ldlang.c (IGNORE_SECTION): Remove check for zero size.
1434 (lang_check_section_addresses): Ignore zero size sections here.
1435
57316bff
L
14362005-03-16 H.J. Lu <hongjiu.lu@intel.com>
1437
1438 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
1439 unused empty output sections for non-relocatable link.
1440
1441 * ld.h (args_type): Remove gc_sections.
1442
1443 * ldlang.c (lang_mark_used_section): New.
1444 (lang_gc_sections): Use link_info.gc_sections instead of
1445 command_line.gc_sections.
1446 * ldmain.c (main): Likewise.
1447 * lexsup.c (parse_args): Likewise.
1448 * ldlang.c (lang_process): Call lang_mark_used_section.
1449
1450 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
1451
1ad12f97
NC
14522005-03-16 Nick Clifton <nickc@redhat.com>
1453 Ben Elliston <bje@au.ibm.com>
1454
569acd2c 1455 * configure.in (werror): New switch: Add -Werror to the
1ad12f97 1456 compiler command line. Enabled by default. Disable via
569acd2c 1457 --disable-werror.
1ad12f97
NC
1458 * configure: Regenerate.
1459
cb2d1ef2
AM
14602005-03-16 Alan Modra <amodra@bigpond.net.au>
1461
1462 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
1463 (OTHER_RELRO_SECTIONS): Set this instead.
1464
957d91c1
NC
14652005-03-15 Nick Clifton <nickc@redhat.com>
1466
1467 * NEWS: Add cutoff for changes in 2.16 release.
1468
34723071
NC
14692005-03-15 Mikkel Krautz <krautz@gmail.com>
1470
1471 * configure.tgt (x86_64-elf): Add target.
1472
729ae8d2
AM
14732005-03-15 Alan Modra <amodra@bigpond.net.au>
1474
1475 * po/es.po: Commit new Spanish translation.
1476
8b3d8fa8
AM
14772005-03-14 Alan Modra <amodra@bigpond.net.au>
1478
1479 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
1480 Tidy etree_assert case.
1481
882cb63e
AM
14822005-03-14 Alan Modra <amodra@bigpond.net.au>
1483
1484 * po/tr.po: Commit new Turkish translation.
1485
61c84b48
DJ
14862005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
1487
1488 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
1489 * Makefile.in: Regenerated.
1490 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
1491
41c9e29d
NC
14922005-03-07 Nick Clifton <nickc@redhat.com>
1493
1494 * po/fr.po: Updated translation.
1495
06647dfd
AM
14962005-03-05 Alan Modra <amodra@bigpond.net.au>
1497
1498 * po/ld.pot: Regenerate.
1499
bb14f524
JB
15002005-03-02 Jan Beulich <jbeulich@novell.com>
1501
1502 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
1503 * pe-dll.c (pe_dll_generate_implib): Likewise.
1504
0ef622cb
BE
15052005-02-24 Ben Elliston <bje@au.ibm.com>
1506
1507 * ldfile.c: Remove GNU960 conditional code.
1508 * emultempl/gld960.em: Likewise.
1509 * emultempl/gld960c.em: Likewise.
1510 * emultempl/lnk960.em: Likewise.
1511
f3f4bcca
NC
15122005-02-24 Nick Clifton <nickc@redhat.com>
1513
1514 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
1515 empty string from calls to concat.
1516
15172005-02-23 Nick Clifton <nickc@redhat.com>
1518
1519 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
1520 arguments passed to concat() with a NULL.
1521
1522 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
1523 define types needed by ldfile.h
1524
47639182
AM
15252005-02-23 Alan Modra <amodra@bigpond.net.au>
1526
1527 * pe-dll.c: Warning fixes.
1528 * emultempl/sunos.em: Likewise.
1529
ace66bb2
DJ
15302005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
1531
1532 * ldlang.c (section_already_linked): Don't call
1533 bfd_section_already_linked for dynamic objects.
1534
5718918d
AM
15352005-02-22 Alan Modra <amodra@bigpond.net.au>
1536
1537 * ldexp.c: Warning fixes.
1538 * ldwrite.c: Likewise.
1539 * emultempl/elf32.em: Likewise.
1540
ebe372c1
L
15412005-02-21 H.J. Lu <hongjiu.lu@intel.com>
1542
1543 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
1544 tic54x input only.
1545 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
1546 and ECOFF output only.
1547
0ca2f5d5
AM
15482005-02-21 Alan Modra <amodra@bigpond.net.au>
1549
1550 * config.in: Regenerate.
1551 * configure: Regenerate.
1552
fbbb9ac5
ZW
15532005-02-17 Zack Weinberg <zack@codesourcery.com>
1554
1555 * ldexp.c (assigning_to_dot): New global flag.
1556 (fold_name): If assigning_to_dot is true, object immediately to
1557 an undefined symbol.
1558 (exp_fold_tree): Set and clear assigning_to_dot around the
1559 recursive call to exp_fold_tree to process the right-hand side
1560 of an assignment to the location counter.
1561
c68dac40
PB
15622005-02-17 Paul Brook <paul@codesourcery.com>
1563
1564 * scripttempl/armbpabi.sc: Add dummy name to version block.
1565
20c2cbe3
AM
15662005-02-17 Alan Modra <amodra@bigpond.net.au>
1567
1568 * ldexp.c (new_abs): Init new.str.
1569
0b48acfe
MM
15702005-02-15 Mark Mitchell <mark@codesourcery.com>
1571
1572 * configure.in (AC_CHECK_FUNCS): Add glob.
1573 * configure: Regenerated.
1574 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
1575 not defined.
1576 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
1577 if HAVE_GLOB is not defined.
fbbb9ac5 1578
ff925e69
KK
15792005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1580
1581 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
1582 lib_path if NATIVE is yes.
1583
92b7a70f
AM
15842005-02-16 Alan Modra <amodra@bigpond.net.au>
1585
1586 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
1587 an error creating fake bfd fatal.
1588 (ppc_before_allocation): Continue on after errors.
1589 (gld${EMULATION_NAME}_finish): Likewise.
1590
297ba367
NC
15912005-02-15 Nick Clifton <nickc@redhat.com>
1592
1593 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
1594 not declared. It is not used and its presence causes a compile
1595 time warning.
fbbb9ac5 1596
9eabd475
ZW
15972005-02-11 Zack Weinberg <zack@codesourcery.com>
1598
1599 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
1600 If st.st_ino is zero, do not treat the library as a duplicate.
1601
d457dcf6
JJ
16022005-02-10 Jakub Jelinek <jakub@redhat.com>
1603
1604 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1605 Set BFD_LINKER_CREATED on the stubs bfd.
1606 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
1607 Likewise.
1608
4e5db43b
MM
16092005-02-08 Mark Mitchell <mark@codesourcery.com>
1610
1611 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
9eabd475 1612 local.
4e5db43b
MM
1613 (Image$$ER_RO$$Base): Define whenever RELOCATING.
1614 (Image$$ER_RO$$Limit): Likewise.
1615 (SHT$$INIT_ARRAY$$Base): Likewise.
1616 (SHT$$INIT_ARRAY$$Limit): Likeise.
1617
4297f9f1
BE
16182005-02-10 Ben Elliston <bje@au.ibm.com>
1619
1620 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
1621
1c7c5e5b
RS
16222005-02-08 Richard Sandiford <rsandifo@redhat.com>
1623
1624 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
1625 to include o32 and n64 emulations.
1626 (mips64*-*-linux-gnu*): Likewise.
1627
300475fe
HPN
16282005-02-08 Hans-Peter Nilsson <hp@axis.com>
1629
1630 * ldmain.c (warning_callback, warning_find_reloc): Prepend
1631 "warning: " to warning messages.
1632
4ea42fb7
AM
16332005-02-04 Alan Modra <amodra@bigpond.net.au>
1634
1635 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
1636 look up symbol for etree_provide here.
1637
161f49a3
DJ
16382005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
1639
1640 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
1641
73ae6183
NC
16422005-02-01 Edward Welbourne <eddy@opera.com>
1643 Nick Clifton <nickc@redhat.com>
1644
1645 * ld.texinfo (Source Code Reference): New node describing how to
1646 access linker script defined variables from source code.
1647
77cfaee6
AM
16482005-02-01 Alan Modra <amodra@bigpond.net.au>
1649
1650 * ld.texinfo: Clarify --as-needed operation.
1651
c46f8c51
AC
16522005-01-31 Andrew Cagney <cagney@gnu.org>
1653
1654 * configure: Regenerate to track ../gettext.m4.
1655
d342277e
NC
16562005-01-31 Nick Clifton <nickc@redhat.com>
1657
1658 * ldver.c (ldversion): Bump reported copyright date to 2005.
1659
d6486796
NC
16602005-01-31 Nick Clifton <nickc@redhat.com>
1661
1662 * configure.tgt: Remove obsolete targets m68k-lynxos and
1663 sparc-lynxos.
1664
319850b4
JB
16652005-01-28 Julian Brown <julian@codesourcery.com>
1666
1667 * emultempl/armelf.em (fix_v4bx): New variable.
1668 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
1669 value to bfd.
1670 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
1671 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
1672 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
9eabd475 1673 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
319850b4
JB
1674 * NEWS: Mention --fix-v4bx.
1675 * ld.texinfo: Document --fix-v4bx.
1676
dc4c9c19
MM
16772005-01-25 Mark Mitchell <mark@codesourcery.com>
1678
1679 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
1680 as to include .ARM.exidx$${Base,Limit}.
1681 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
1682 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
1683 Put .init_array, .fini_array, etc. into the read-only data
9eabd475
ZW
1684 segment.
1685
7e9f0867
AM
16862005-01-25 Alan Modra <amodra@bigpond.net.au>
1687
1688 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
1689 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
1690 only needed by an as-needed lib that didn't get linked.
1691
7e69709c
AM
16922005-01-23 Alan Modra <amodra@bigpond.net.au>
1693
1694 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
1695 __DTOR_LIST__ description.
1696
b5666f2f
AM
16972005-01-23 Alan Modra <amodra@bigpond.net.au>
1698
1699 * ld.texinfo (Location Counter <dot outside sections>): Document
1700 effects of orphan section placement, and ". = ." workaround.
1701 * Makefile.in: Regenerate.
1702
4e25343c
RS
17032005-01-22 Richard Sandiford <rsandifo@redhat.com>
1704
1705 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
1706 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
1707
b717d30e
JJ
17082005-01-21 Jakub Jelinek <jakub@redhat.com>
1709
1710 * ldgram.y (AS_NEEDED): New token.
1711 (input_list): Handle AS_NEEDED ( input_list ).
1712 * ldlex.l (AS_NEEDED): Add.
1713 * ld.texinfo: Document AS_NEEDED ().
1714 * NEWS: Mention AS_NEEDED ().
1715
7a64f7b8
BE
17162005-01-21 Ben Elliston <bje@au.ibm.com>
1717
1718 * ldlang.c (lang_reasonable_defaults): Remove.
1719 (lang_process): Don't call lang_reasonable_defaults.
1720
1721 * ldexp.c (exp_assop): Remove #if 0'd code.
1722 (exp_print_tree): Likewise.
1723 * ldlang.c (lang_memory_region_lookup): Likewise.
1724 (open_output): Likewise.
1725 (lang_do_assignments_1): Likewise.
1726 (lang_place_orphans): Likewise.
1727 (lang_enter_output_section_statement): Likewise.
1728 (lang_reasonable_defaults): Likewise.
1729 * ldlang.h (struct lang_input_statement_struct): Likewise.
1730 * mri.c (mri_draw_tree): Likewise.
1731 (mri_load): Likewise.
1732 * pe-dll.c (generate_reloc): Likewise.
1733 (make_import_fixup_entry): Likewise.
1734 (pe_as16): Likewise.
1735 * emultempl/beos.em (set_pe_subsystem): Likewise.
1736 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
1737 * emultempl/pe.em: Likewise.
1738 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
1739
a154a8ad
MM
17402005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1741
1742 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
1743 (earmelfb_linux_eabi.c): New target.
1744 * Makefile.in: Regenerated.
1745 * configure.tgt (arm*b-*-linux-gnueabi): New target.
1746 * emulparams/armelfb_linux_eabi.sh: New file.
1747
9c183183
AM
17482005-01-20 Nick Hudson <skrll@netbsd.org>
1749
1750 PR ld/676
1751 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1752 Handle bfd_elf32_hppa_nbsd_vec.
1753
e2243057
RS
17542005-01-19 Richard Sandiford <rsandifo@redhat.com>
1755
1756 * ldmain.h (ld_sysroot): Change type to a constant string.
1757 * ldmain.c (ld_sysroot): Likewise.
1758 (get_relative_sysroot, get_sysroot): New functions, adding command-line
1759 support for changing the sysroot.
1760 (main): Call the new functions.
1761 * lexsup.c (OPTION_SYSROOT): New.
1762 (ld_options): Add --sysroot.
1763 (parse_args): Add a dummy handler for it.
1764 * ld.texinfo (--sysroot): Document.
1765 * NEWS: Mention the new --sysroot option.
1766
1449d79b
AM
17672005-01-18 Alan Modra <amodra@bigpond.net.au>
1768
1769 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
1770 (lang_place_orphans): Don't abort on just_syms_flag, instead call
1771 bfd_link_just_syms.
1772
a880c748
DS
17732005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
1774
1775 * defilep.y (def_name, def_library): Combine into...
1776 (def_image_name): New function. Strip name to basename,
1777 with warning.
1778
07baa8ee
MK
17792005-01-12 Mark Kettenis <kettenis@gnu.org>
1780
1781 * configure.in: Be sure to invoke config.sub using the shell.
1782 * configure: Regenerate.
1783
e9b181b8
AM
17842005-01-11 Alan Modra <amodra@bigpond.net.au>
1785
1786 * configure.host: Correct sed patterns for last change.
1787
59ef2528
NC
17882005-01-10 Nick Clifton <nickc@redhat.com>
1789
1790 PR binutils/609
1791 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
1792 to determine whether config.make_executable should be set to FALSE in
1793 conjunction with config.fatal_warnings.
1794 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
1795 (einfo): Pass TRUE as the extra argument.
1796
71a2d53a
NC
17972005-01-10 Greg Schaffer <gschafer@zip.com.au>
1798
1799 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
1800 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
1801 (ia64-*-aix): Delete - this target is obsolete, and would be
1802 broken by this patch.
1803
d6d0b336
EB
18042005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1805
1806 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
1807 (sparc64-sun-solaris2*): New host.
1808
4e7fd91e
PB
18092005-01-06 Paul Brook <paul@codesourcery.com>
1810
1811 * Makefie.am: Add earmelf_vxworks.
1812 * Makefile.in: Regenerate.
1813 * configure.tgt: Make arm-*-vxworks a separate case.
1814 * emulparams/armelf_vxworks.sh: New function.
1815
4c52953f
AM
18162005-01-06 Alan Modra <amodra@bigpond.net.au>
1817
1818 * emultempl/ppc64elf.em (no_multi_toc): New var.
1819 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
1820 (OPTION_NO_MULTI_TOC): Define.
1821 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
1822 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
1823
98d87ee7
NC
18242005-01-05 Nick Clifton <nickc@redhat.com>
1825
1826 PR binutils/614
1827 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
4c52953f 1828 Standard's specification for parsable error messages.
98d87ee7 1829
5f81b918
PB
18302005-01-04 Paul Brook <paul@codesourcery.com>
1831
1832 * Makefile.am: Correct dependency for earmsymbian.c.
1833 * Makefile.in: Regenerate.
1834
2af59bab
DS
18352004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
1836
1837 * emultempl/pe.em (set_pe_subsystem): Change second arg to
1838 lang_add_entry to FALSE.
1839
c38f024c
NC
18402004-12-23 Nick Clifton <nickc@redhat.com>
1841
1842 PR 600
1843 * emulparams/shelf.sh (.stack): Increase stack start address to
1844 0x300000.
1845
550bdea6
NC
18462004-12-20 Nick Clifton <nickc@redhat.com>
1847
1848 * ldmain.c (main): Issue an error message if -static and -shared
1849 are used together.
1850
e3070fef
JJ
18512004-12-17 Jakub Jelinek <jakub@redhat.com>
1852
1853 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
1854 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
1855 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
1856 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
1857 PT_GNU_RELRO segment end.
1858
2fbd2a87
NC
18592004-12-14 P.J. Darcy <darcypj@us.ibm.com>
1860
1861 * configure.tgt: Add s390x-ibm-tpf support.
1862
f2763b01
NC
18632004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
1864
1865 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
1866 BFD.
1867
cb9faf63
BE
18682004-12-07 Ben Elliston <bje@gnu.org>
1869
1870 * ldemul.h: Forward declare struct option.
1871
02f80eef
DS
18722004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
1873
1874 * scripttempl/pe.sc (.data): Add .jcr subsection.
1875
dea514f5
PB
18762004-11-30 Paul Brook <paul@codesourcery.com>
1877
1878 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
1879
32118081
NC
18802004-11-30 Tero Niemela <tero_niemela@yahoo.com>
1881
1882 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
1883 * Makefile.in: Regenerate.
1884
33f362e1
NC
18852004-11-26 Melissa Mears <asterisk@graces.dricas.com>
1886
1887 * emultempl/pe.em: Add --subsystem:xbox as well as
1888 --subsystem:%d.
1889 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
1890 and numeric subsystems.
1891
3eda52aa
AM
18922004-11-24 Alan Modra <amodra@bigpond.net.au>
1893
1894 * ldexp.c (fold_name): Correct PR 338 fix.
1895
6b3221b4
MM
18962004-11-19 Mark Mitchell <mark@codesourcery.com>
1897
1898 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
1899 (earmelf_linux_eabi.c): New target.
1900 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
1901 * emulparams/armelf_linux_eabi.sh: New file.
1902 * Makefile.in: Regenerated.
1903
9cd6d51a
NC
19042004-11-19 Nick Clifton <nickc@redhat.com>
1905
1906 PR 518
1907 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
1908 LENGTH fields in the MEMORY command, to explicitly state that
1909 symbols cannot be used in their expressions.
1910
3ec57632
NC
19112004-11-19 Jon Beniston <jon@beniston.com>
1912
1913 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
1914 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
4c52953f 1915 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
3ec57632
NC
1916 which return the length and origin of a memory.
1917 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
1918 * NEWS: Mention support for ORIGIN and LENGTH operators.
1919
b7693d02
DJ
19202004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
1921
1922 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
1923 a dynamic object for stubs.
1924
fc0e6df6
PB
19252004-11-04 Paul Brook <paul@codesourcery.com>
1926
1927 * ld.texinfo: Document --default-imported-symver.
1928 * ldmain.c (main): Set link_info.default_imported_symver.
1929 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
1930 (ld_options): Add --default-imported-symver.
1931 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
1932
7499d566
NC
19332004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
1934 Vineet Sharma <vineets@noida.hcltech.com>
1935
1936 * Makefile.am: Add entries for new maxq-coff target.
1937 * Makefile.in: Regenerate.
1938 * configure.tgt: Add support for maxq.
1939 * emulparams/maxqcoff.sh: New File.
1940 * scripttempl/maxqcoff.sc: New linker script for target maxq.
1941 * NEWS: Mention the new target.
1942
7f266840
DJ
19432004-11-04 Daniel Jacobowitz <dan@debian.org>
1944
1945 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
1946 (earmelf_oabi.c): Remove rule.
1947 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
1948 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
1949 * Makefile.in: Regenerated.
1950
a0055007
HPN
19512004-11-04 Hans-Peter Nilsson <hp@axis.com>
1952
1953 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
1954 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
1955 (FINI_START): Ditto.
1956 (INIT_END): Remove emitted "jump [sp+]".
1957 (FINI_END): Ditto.
1958
c5614fa4
AM
19592004-11-04 Alan Modra <amodra@bigpond.net.au>
1960
1961 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
1962 (no_opd_opt, no_toc_opt): New static vars.
1963 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
1964 ppc64_elf_edit_toc.
1965 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
1966 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
1967 (PARSE_AND_LIST_OPTIONS): Describe new options.
1968 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1969
7a5df8d0
NC
19702004-10-27 Nick Clifton <nickc@redhat.com>
1971
1972 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
1973 parameter to invocation of lang_section_start.
1974 * emultempl/aix.em (_handle_option): Likewise.
c5614fa4 1975
7a5df8d0
NC
1976 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
1977 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
1978 * Makefile.in: Regenerate.
1979
6f372e19
MM
19802004-10-26 Mark Mitchell <mark@codesourcery.com>
1981
1982 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
1983 __exidx_{start,end} when not relocating.
1984
ba916c8a
MM
19852004-10-25 Mark Mitchell <mark@codesourcery.com>
1986
1987 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
1988 * ldexp.h (segment_type): New type.
1989 (segments): New variable.
1990 * ldexp.c (segments): New variable.
1991 (exp_print_token): Handle SEGMENT_START.
1992 (fold_binary): Likewise.
1993 * ldgram.y (SEGMENT_START): Declare it as a token.
1994 (exp): Handle SEGMENT_START.
1995 * ldlang.h (lang_address_statement_type): Add segment field.
1996 (lang_section_start): Change prototype.
1997 * ldlang.c (map_input_to_output_sections): Do not process section
1998 assignments if a corresponding SEGMENT_START has already been
1999 seen.
2000 (lang_section_start): Add segment parameter.
2001 * ldlex.l (SEGMENT_START): Add it.
2002 * lexsup.c (seg_segment_start): New function.
2003 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
2004 * ld.texinfo (SEGMENT_START): Document it.
2005 * emulparams/armsymbian.sh (EMBEDDED): Set it.
2006 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
2007 base addresses. Do not map relocations.
2008 * NEWS: Mention SEGMENT_START.
2009
3e3b46e5
PB
20102004-10-26 Paul Brook <paul@codesourcery.com>
2011
2012 * ld.texinfo: Document --default-symver.
2013 * ldmain.c (main): Set link_info.create_default_symver.
2014 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
2015 (ld_options): Add default-symver.
2016 (parse_args): Handle OPTION_DEFAULT_SYMVER.
2017
7b0eaa22
DS
20182004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
2019
2020 * pe-dll.c (process_def_file): Don't export all symbols by default if
2021 building a position-independent executable.
2022
dfeffb9f
L
20232004-10-21 H.J. Lu <hongjiu.lu@intel.com>
2024
2025 PR 463
2026 * ldmain.c (reloc_overflow): Accept a pointer to struct
2027 bfd_link_hash_entry. Report symbol location for relocation
2028 overflow.
2029
dc4f76f8
L
20302004-10-21 H.J. Lu <hongjiu.lu@intel.com>
2031
2032 * genscripts.sh (libpath.exp): Really generate for first
2033 emulation only.
2034
2a08daf3
DS
20352004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
2036
2037 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
2038 comparison and replacement of filenames.
2039
532345f2
L
20402004-10-19 H.J. Lu <hongjiu.lu@intel.com>
2041
2042 PR 459
2043 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
2044 option on linker script as the one for linker script.
2045
b58f81ae
DJ
20462004-10-16 Daniel Jacobowitz <dan@debian.org>
2047
2048 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
2049 (check_excluded_libs): New.
2050 (load_symbols): Call check_excluded_libs.
2051 * ldlang.h (add_excluded_libs): New prototype.
2052 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
2053 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
2054 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
2055 * ld.texinfo (Command Line Variables): Document --exclude-libs.
2056 (Options Specific to i386 PE Targets): Remove --exclude-libs.
2057
95c148b4
AM
20582004-10-15 Alan Modra <amodra@bigpond.net.au>
2059
c468c8bc
AM
2060 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
2061 failing link script assert.
2062
95c148b4
AM
2063 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
2064
951e9133
L
20652004-10-14 H.J. Lu <hongjiu.lu@intel.com>
2066
2067 PR 445
2068 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
2069 (SMALL_DATA_DTOR): Set.
2070 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
2071 (SMALL_DATA_DTOR): Unset.
2072 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
2073 after .data. If SMALL_DATA_DTOR is set, move .dtors after
2074 .data.
2075
afd7a018
AM
20762004-10-14 Alan Modra <amodra@bigpond.net.au>
2077
2078 PR 63
2079 * ldlang.h (lang_output_section_statement_type): Make "next" a
2080 struct lang_output_section_statement_struct *.
2081 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
2082 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
2083 * ldlang.c (lang_output_section_find_1): Adjust for changed
2084 output_section_statement "next".
2085 (strip_excluded_output_sections): Likewise.
2086 (lang_record_phdrs): Likewise.
2087 (lang_output_section_find_by_flags): New function.
2088 (output_prev_sec_find): Move from pe.em. Adjust iterator.
2089 (lang_insert_orphan): New function. Tail end of elf32.em's
2090 place_orphan merged with that from pe.em. Allow bfd_section to
2091 be placed first. New heuristic for placing new output section
2092 statement in existing script, and accompanying split of __start
2093 symbol alignment into a separate assignment to dot.
2094 (lang_add_section): Consistently use output->bfd_section rather than
2095 an alias, section->output_section.
2096 (map_input_to_output_sections): Rename overly long arg. Move
2097 initialization of data_statement output section to here..
2098 (lang_check_section_addresses): ..from here.
2099 (print_assignment): Correct printing of etree_assert.
2100 (print_all_symbols): Don't bomb if userdata is NULL.
2101 (IGNORE_SECTION): Rearrange.
2102 * emultempl/elf32.em (output_rel_find): Adjust interator.
2103 (output_prev_sec_find): Delete.
2104 (struct orphan_save): Delete.
2105 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
2106 flags without creating a duplicate output section statement.
2107 Revise code holding history of various orphan section placements.
2108 Allow orphan sections to place before script specified output
2109 sections. Call lang_output_section_find_by_flags when placement
2110 by name fails. Use lang_insert_orphan.
2111 * emultempl/mmo.em (output_prev_sec_find): Delete.
2112 (struct orphan_save): Delete.
2113 (mmo_place_orphan): Revise code holding history of orphan placement.
2114 Allow orphans to place before existing output sections. Use
2115 lang_insert_orphan.
2116 * emultempl/pe.em (output_prev_sec_find): Delete.
2117 (struct orphan_save): Delete.
2118 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
2119 lang_insert_orphan.
2120
c0042f5d
MM
21212004-10-13 Mark Mitchell <mark@codesourcery.com>
2122
2123 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
2124 loadable segment.
2125
1af699f4
AM
21262004-10-13 Alan Modra <amodra@bigpond.net.au>
2127
2128 PR 44
09c112da
AM
2129 * ldcref.c (check_section_sym_xref): Delete.
2130 (check_local_sym_xref): New function.
2131 (check_nocrossrefs): Adjust call.
1af699f4
AM
2132 * emultempl/pe.em (struct orphan_save): Add os_tail.
2133 (place_orphan): Backport assorted fixes from elf32.em.
2134
7fa3d080
BW
21352004-10-12 Bob Wilson <bob.wilson@acm.org>
2136
2137 * emultempl/xtensaelf.em: Use ISO C90 formatting.
2138
d3989512
JJ
21392004-10-11 Jakub Jelinek <jakub@redhat.com>
2140
563f4125
JJ
2141 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
2142 getline for portability.
2143
d3989512
JJ
2144 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
2145 (gld${EMULATION_NAME}_parse_ld_so_conf,
2146 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
2147 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
2148
6c0c5b1e
AM
21492004-10-11 Alan Modra <amodra@bigpond.net.au>
2150
2151 PR 423
2152 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
2153 rejected when linking statically.
2154
d2b2c203
DJ
21552004-10-08 Daniel Jacobowitz <dan@debian.org>
2156
2157 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
2158
43cd72b9
BW
21592004-10-07 Bob Wilson <bob.wilson@acm.org>
2160
2161 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
2162 assembler-generated longcall sequences. Describe new --size-opt
2163 option.
2164 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
2165 * emultempl/xtensaelf.em (remove_section,
2166 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
2167 elf_xtensa_after_open): New.
2168 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
2169 OPTION_NO_LITERAL_MOVEMENT): Define.
2170 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
2171 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
2172 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
2173 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
2174 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
2175 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
2176 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
2177 * Makefile.am (eelf32xtensa.c): Update dependencies.
2178 * Makefile.in: Regenerate.
2179
8fdd7217 21802004-10-07 Jeff Baker <jbaker@qnx.com>
6c0c5b1e 2181
8fdd7217
NC
2182 * lexsup.c: Handle --warn-shared-textrel option.
2183 (ld_options): Restore alpha sorting of options.
2184 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
2185 * ld.texinfo: Add documentation for --warn-shared-textrel.
2186 * NEWS: Added mention of --warn-shared-textrel option.
2187
339207f8 21882004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
6c0c5b1e 2189
339207f8 2190 * emultempl/crxelf.em (disable_relaxation): Add.
6c0c5b1e 2191 (crxelf_before_allocation): Enable --relax option by default.
339207f8
TL
2192 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
2193 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
2194 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
2195
bcaa7b3e
L
21962004-10-04 H.J. Lu <hongjiu.lu@intel.com>
2197
2198 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
2199 --sort-section name|alignment.
2200
2201 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
2202 --sort-section name|alignment.
2203
2204 * ld.h (sort_type): New enum.
2205 (wildcard_spec): Change the type of `sorted' to sort_type.
2206
2207 * ldgram.y (SORT): Removed.
2208 (SORT_BY_NAME): Added.
2209 (SORT_BY_ALIGNMENT): Added.
2210 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
2211 SORT_BY_ALIGNMENT.
2212 (input_section_spec_no_keep): Updated `sorted'.
2213 (statement): Replace SORT with SORT_BY_NAME.
2214
2215 * ldlang.c (compare_section): New function to compare 2
2216 sections with different sorting schemes.
2217 (wild_sort): Updated. Use compare_section.
2218 (update_wild_statements): New function.
2219 (lang_process): Call update_wild_statements before
2220 map_input_to_output_sections.
2221
2222 * ldlex.l (SORT_BY_NAME): New.
2223 (SORT_BY_ALIGNMENT): New.
2224 (SORT): Return SORT_BY_NAME.
2225
2226 * ldmain.c (sort_section): New. Defined.
2227 (main): Initialize it to none.
2228
2229 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
2230 (ld_options): Add an entry for OPTION_SORT_SECTION.
2231 (parse_args): Handle OPTION_SORT_SECTION.
2232
2233 * mri.c (mri_draw_tree): Updated `sorted'.
2234
a4f5ad88
JJ
22352004-10-04 Jakub Jelinek <jakub@redhat.com>
2236
2237 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
2238 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
2239 argument.
2240 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
2241 and . as second argument.
2242 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
2243 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
2244 (fold_binary): Add it here. Insert padding to make relro_end
2245 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
2246 exp_dataseg_relro_adjust phase just use previously computed
2247 exp_data_seg.base.
2248 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
2249 relro_adjust here. Call lang_size_sections_1 once more if there
2250 was too big padding at DATA_SEGMENT_RELRO_END.
2251 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
2252
40a18ebd
NC
22532004-10-01 Paul Brook <paul@codesourcery.com>
2254
2255 * emulparams/armelf.sh: Add unwinding table sections.
2256
db8acf26
NC
22572004-09-30 Filip Navara <navaraf@reactos.com>
2258
2259 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
2260 correct base address for position independant executables.
2261 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
2262 executables as DLLs.
2263
eeac373a
PB
22642004-09-30 Paul Brook <paul@codesourcery.com>
2265
2266 * ld.texinfo: Document --target2=abs.
2267 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
2268
1ee7cf4c
NC
22692004-09-29 Nick Clifton <nickc@redhat.com>
2270
2271 * scripttempl/xstormy16.sc: Only perform the assignments to the
2272 ROM region when not performing a relocatable link. The ROM region
2273 does not start at address 0, but the sections will.
2274 * Makefile.am: Fix linker script dependency for the generation of
2275 eelf32xstormy16.c.
2276 * Makefile.in: Regenerate.
2277
03098a9a
CF
22782004-09-18 Filip Navara <navaraf@reactos.com>
2279
2280 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
2281 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
2282 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
2283 TARGET_PAGE_SIZE.
2284 * scripttempl/pe.sc: Make the virtual address and file offset synced if
2285 the alignment is lower than the target page size.
2286
f2d3750d
CF
22872004-09-27 Filip Navara <navaraf@reactos.com>
2288
2289 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
2290 def_file_parse to handle pe_def_file if NULL and prevent crash with
2291 invalid .def files.
2292
a23d8409
AM
22932004-09-27 Alan Modra <amodra@bigpond.net.au>
2294
2295 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
2296 --emit-stub-syms automatically when --emit-relocs.
2297
7b89fa29
PB
22982004-09-24 Paul Brook <paul@codeosurcery.com>
2299
2300 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
2301 .fini_array sections.
2302
e2a68bcc
AS
23032004-09-19 Andreas Schwab <schwab@suse.de>
2304
2305 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
2306 base so that relro end is suitably aligned.
2307
3674e28a
PB
23082004-09-17 Paul Brook <paul@codesourcery.com>
2309
2310 * ld.texinfo: Rename arm-specific section. Document --target*
2311 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
2312 * emulparams/armelf_linux.sh: Ditto.
2313 * emulparams/armelf_nbsd.sh: Ditto.
2314 * emultempl/armelf.em: Set default for TARGET2_TYPE.
2315 (target2_type): New variable.
2316 (arm_elf_before_allocation): Don't pass target1_type.
2317 (arm_elf_create_output_section_statements): New function.
2318 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
2319 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
2320 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
2321 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
2322 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
2323 argument to bfd_elf32_arm_process_before_allocation.
2324
f6e332e6
AM
23252004-09-17 Alan Modra <amodra@bigpond.net.au>
2326
2327 * ldexp.c (fold_name): Update u.undef.next refs.
2328 * emultempl/pe.em: Likewise.
2329 * emultempl/sunos.em: Likewise.
2330
9c933e04
AM
23312004-09-17 Alan Modra <amodra@bigpond.net.au>
2332
2333 * Makefile.am: Run "make dep-am".
2334 * Makefile.in: Regenerate.
2335 * config.in: Regenerate.
2336 * configure: Regenerate.
2337 * aclocal.m4: Regenerate.
2338 * po/ld.pot: Regenerate.
2339
1fa32646
TL
23402004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
2341
9c933e04
AM
2342 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
2343 (.fini): Likewise.
2344 (.jcr): Likewise.
1fa32646 2345
b6ee372a
AM
23462004-09-16 Alan Modra <amodra@bigpond.net.au>
2347
2348 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
2349 to bfd_elf32_arm_process_before_allocation call.
2350
9c504268
PB
23512004-09-13 Paul Brook <paul@codesourcery.com>
2352
2353 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
2354 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
2355
d15b04bd
L
23562004-09-07 H.J. Lu <hongjiu.lu@intel.com>
2357
2358 * configure: Regenerated with autconfig 2.13.
2359
875c4330
AS
23602004-09-07 Andreas Schwab <schwab@suse.de>
2361
2362 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
2363 alignment before adjusting DATA_SEGMENT_RELRO_END.
2364
229fcec5
MM
23652004-09-06 Mark Mitchell <mark@codesourcery.com>
2366
2367 * emulparams/armsymbian.sh: Use armbpabi script.
2368 * scripttempl/armbpabi.sc: New script.
2369
e5a52504
MM
23702004-09-02 Mark Mitchell <mark@codesourcery.com>
2371
2372 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
2373 (earmsymbian.c): New target.
2374 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
2375 * Makefile.in: Regenerated.
2376 * aclocal.m4: Likewise.
2377 * configure: Likewise.
2378 * emulparams/armsymbian.sh: New file.
2379
42851540
NC
23802004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
2381
2382 * scripttempl/elf32crx.sc: Edit file with comments.
2383 (.init): Add new section.
2384 (.fini): Likewise.
2385 (.ctor): Control the linkage order.
2386 (.dtor): Likewise.
2387
c034e3e0
NC
23882004-08-27 Nick Clifton <nickc@redhat.com>
2389
2390 * emultempl/pe.em (after_open): Do not assume that either bfd is
9c933e04 2391 an archive.
c034e3e0 2392
688c58f3
AM
23932004-08-26 Alan Modra <amodra@bigpond.net.au>
2394
2395 * ldlang.c (lang_init): Don't compare with TRUE.
2396
b18c562e
NC
23972004-08-25 Dmitry Diky <diwil@spec.ru>
2398
2399 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
2400 * scripttempl/elf32msp430.sc: Add .profiler section definition.
2401
61f5d054
L
24022004-08-24 H.J. Lu <hongjiu.lu@intel.com>
2403
2404 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
2405
e77d3d77
MM
24062004-08-19 Mark Mitchell <mark@codesourcery.com>
2407
2408 * configure.tgt (arm*-*-symbianelf*): New target.
2409 (arm*-*-eabi*): Likewise.
2410
3f764659
JJ
24112004-08-19 Jakub Jelinek <jakub@redhat.com>
2412
2413 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
2414 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
2415 (OPTION_NON_OVERLAPPING_OPD): Define.
2416 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
2417 --non-overlapping-opd option.
2418
a010d60f
AM
24192004-08-18 Alan Modra <amodra@bigpond.net.au>
2420
2421 PR 338
2422 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
2423 was already on the undefs list.
2424
c4e33880
AM
24252004-08-17 Alan Modra <amodra@bigpond.net.au>
2426
2427 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
2428 prefix the symbol field too.
2429
d003868e
AM
24302004-08-13 Alan Modra <amodra@bigpond.net.au>
2431
2432 * ldmain.c (link_callbacks): Remove "error_handler".
2433 * ldmisc.c: Include elf-bfd.h.
2434 (vfinfo): Sort comment. Handle %A. Use %A instead of
2435 bfd_get_section_indent.
2436 (error_handler): Delete.
2437 * ldmisc.h (error_handler): Delete declaration.
2438
99877b66
AM
24392004-08-10 Alan Modra <amodra@bigpond.net.au>
2440
2441 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
2442 ppc64_elf_restore_symbols.
2443
40e45c8b
AM
24442004-08-09 Alan Modra <amodra@bigpond.net.au>
2445
2446 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
2447 .toc is too large on relocatable linking.
2448
ccfa59ea
AM
24492004-08-09 Alan Modra <amodra@bigpond.net.au>
2450
2451 * emultempl/ppc64elf.em (ppc_after_open): Delete.
2452 (LDEMUL_AFTER_OPEN): Don't define.
2453
93fd0973
SC
24542004-08-02 Stephane Carrez <stcarrez@nerim.fr>
2455
2456 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
2457
f1b123db
SC
24582004-08-01 Stephane Carrez <stcarrez@nerim.fr>
2459
2460 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
2461 on power of 2.
2462
e7fbc2bf
JT
24632004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
2464
2465 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
2466
c05e9f04
NC
24672004-07-26 Dmitry Diky <diwil@spec.ru>
2468
2469 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
2470 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
2471 msp430xG439.
2472 * configure.tgt: Likewise.
2473 * emulparams/msp430all.sh: Likewise.
2474 * Makefile.in: Regenerate.
2475
9f61903d
NC
24762004-07-23 Nick Clifton <nickc@redhat.com>
2477
2478 * emultempl/elf32.em (_place_orphan): Use an already existing
2479 section name if that section does not have any flags set.
2480
082b7297
L
24812004-07-21 H.J. Lu <hongjiu.lu@intel.com>
2482
2483 * ldlang.c (already_linked_hash_entry): Removed.
2484 (already_linked): Likewise.
2485 (already_linked_table): Likewise.
2486 (section_already_linked): Call bfd_section_already_linked.
2487 (lang_process): Replace already_linked_table_init with
2488 bfd_section_already_linked_table_init and check return. Replace
2489 already_linked_table_free with bfd_section_already_linked_table_free.
2490
76d7af2d
NC
24912004-07-21 Nick Clifton <nickc@redhat.com>
2492
2493 * ldlang.c (init_os): Make sure that the newly allocated userdata
2494 structure is zeroed out.
2495
14b3c463
L
24962004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2497
2498 * NEWS: Mention the new --add-needed/--no-add-needed and
2499 --as-needed/--no-as-needed options.
2500
e56f61be
L
25012004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2502
2503 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
2504 check the add_needed field.
2505 (dt_needed): New struct.
2506 (gld${EMULATION_NAME}_try_needed): Change the first argument
2507 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
2508 bit in the file where the DT_NEEDED entry comes from.
2509 (gld${EMULATION_NAME}_search_needed): Change the second
2510 argument to a pointer to struct dt_needed.
2511 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
2512 (gld${EMULATION_NAME}_after_open): Likewise.
2513
2514 * ld.texinfo: Add --add-needed document.
2515 * ldlang.c (new_afile): Set p->add_needed.
2516 * ldlang.h (lang_input_statement_type): Add add_needed field.
2517 * ldmain.h (add_needed): Declare.
2518 * ldmain.c (add_needed): New global var.
2519 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
2520 OPTION_NO_ADD_NEEDED.
2521 (ld_options): Likewise.
2522 (parse_args): Handle them.
2523
c99b8138
NC
25242004-07-13 Christof Petig <christof@petig-baender.de>
2525
2526 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
2527 for endian-ness of extracted addend.
2528
13ed4151
NC
25292004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
2530
2531 * pe-dll.c (auto_export): Filter on just the import prefix,
2532 "_imp_", not "_imp__".
2533
1a320fbb
NC
25342004-07-09 Nick Clifton <nickc@redhat.com>
2535
2536 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
2537
1fe1f39c
NC
25382004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
2539
2540 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
2541 (eelf32crx.c): New target.
2542 * Makefile.in: Regenerate.
2543 * configure.tgt: Handle crx-*-elf*.
2544 * emulparams/elf32crx.sh: New file.
2545 * emultempl/crxelf.em: New file.
2546 * scripttempl/elf32crx.sc: New file.
2547 * NEWS: Mention new target.
2548
85fbca6a
NC
25492004-07-06 Nick Clifton <nickc@redhat.com>
2550
2551 * Makefile.am: Add eshlsymbian.c.
2552 * Makefile.in: Regenerate.
2553 * configure.tgt: Add sh*-symbian-elf target.
2554 * emulparams/shlsymbian.sh: New file. Configure the
2555 sh-symbian-elf linker scripts.
2556 * scripttemp/elf32sh-symbian.sc: New file. Linker script
2557 template for the sh-symbian-elf target.
2558
b71a5181
DA
25592004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2560
2561 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
2562 * emulparams/hppalinux.sh: Likewise.
2563 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
2564 data segment and PLT_BEFORE_GOT is defined.
2565
c87db184
CF
25662004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2567
2568 * ld.texinfo (WIN32): Document PE weak symbols.
2569
f6a8ae81
KK
25702004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2571
2572 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
2573
b602c853
L
25742004-07-01 H.J. Lu <hongjiu.lu@intel.com>
2575
2576 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
2577 the section.
2578
1a23a9e6
AM
25792004-06-29 Alan Modra <amodra@bigpond.net.au>
2580
2581 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
2582 size in rawsize.
2583
eea6121a
AM
25842004-06-24 Alan Modra <amodra@bigpond.net.au>
2585
2586 * ldlang.c (print_output_section_statement): Don't print size before
2587 relaxation.
2588 (IGNORE_SECTION): Remove bfd arg. Update all callers.
2589
2590 * ldexp.c (fold_name): .. See below.
2591 * ldlang.c (section_already_linked, print_output_section_statement,
2592 print_input_section, insert_pad, size_input_section,
2593 lang_check_section_addresses, lang_size_sections_1,
2594 lang_size_sections, lang_do_assignments_1, lang_set_startof,
2595 lang_one_common, lang_reset_memory_regions, lang_process,
2596 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
2597 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
2598 * pe-dll.c (process_def_file, generate_reloc): ..
2599 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
2600 gld${EMULATION_NAME}_before_allocation): ..
2601 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
2602 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
2603 sh64_elf_${EMULATION_NAME}_after_allocation): ..
2604 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
2605 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
2606 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
2607 "size" instead of "_raw_size" and "_cooked_size". Expand
2608 bfd_section_size macro invocations.
2609
552f8272
CF
26102004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2611
2612 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
2613 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
2614 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
2615 ___crt_xt_end__.
2616 (.tls): Define ___tls_start__ and ___tls_end__.
2617
aee6f5b4
AO
26182004-06-21 Alexandre Oliva <aoliva@redhat.com>
2619
2620 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
2621
eea6121a 26222004-06-18 Adam Nemet <anemet@lnxw.com>
f234d5fe 2623
eea6121a
AM
2624 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
2625 * configure: Regenerate.
f234d5fe 2626
dfff4fbe
JJ
26272004-06-15 Jakub Jelinek <jakub@redhat.com>
2628
2629 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
2630 .gcc_except_table output sections lost accidentally with
2631 -z relro patch.
2632
a9e0c0c6
AM
26332004-06-15 Alan Modra <amodra@bigpond.net.au>
2634
2635 * ldwrite.c (build_link_order): Use bfd_get_section_size
2636 instead of bfd_get_section_size_before_reloc or _raw_size.
2637 * pe-dll.c (process_def_file): Likewise.
2638
7115639b
AM
26392004-06-14 Alan Modra <amodra@bigpond.net.au>
2640
2641 From Richard Wirth <r.wirth@wirthware.de>
2642 * ldlang.c (lang_finish): Don't free lang_definedness_table.
2643
9ca57817
AM
26442004-05-29 Alan Modra <amodra@bigpond.net.au>
2645
2646 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
2647 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
2648
164e712d
AM
26492004-05-28 Alan Modra <amodra@bigpond.net.au>
2650
6feb9908
AM
2651 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
2652 throughout file.
2653 * lexsup.c: Formatting. Wrap long lines.
2654 * ldwrite.c: Update copyright date.
2655
164e712d
AM
2656 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
2657 (output_section_callback): Nor SEC_KEEP here.
2658 (gc_section_callback): Twiddle SEC_EXCLUDE here.
2659 (lang_gc_wild): Delete. Fold into..
2660 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
2661 collecting.
2662 (lang_process): Always call lang_gc_sections.
2663 (lang_place_orphans): Handle SEC_EXCLUDE sections.
2664 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
2665 SEC_EXCLUDE code.
2666
b3096250
L
26672004-05-26 H.J. Lu <hongjiu.lu@intel.com>
2668
2669 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
2670 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
2671 * ldlang.c (lang_add_section): Likewise.
2672
e49f5022
AM
26732004-05-26 Alan Modra <amodra@bigpond.net.au>
2674
2675 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
2676 sections when doing a final link. Clear SEC_EXCLUDE when doing
2677 a relocable link, except for SEC_DEBUGGING sections.
2678 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
2679 same condition here to drop SEC_EXCLUDE orphan sections.
2680
57ceae94
AM
26812004-05-25 Alan Modra <amodra@bigpond.net.au>
2682
2683 * ldlang.c (lang_process): Call bfd_merge_sections later, and
2684 only when not a relocatable link.
2685 (print_input_section): Handle SEC_EXCLUDE sections.
2686 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
2687 (lang_do_assignments_1): Likewise.
2688 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
2689 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
2690 * emultempl/hppaelf.em (build_section_lists): Likewise.
2691 * emultempl/ppc64elf.em (build_toc_list): Likewise.
2692 (build_section_lists): Likewise.
2693
a85785bc
AS
26942004-05-23 Andreas Schwab <schwab@suse.de>
2695
2696 * ld.texinfo (Options): Fix typo in last change.
2697
2d643429
NC
26982004-05-21 Andy Chittenden <achittenden@bluearc.com>
2699
2700 * ld.h (ld_config_type): Add new field: hash_table_size.
2701 * ldmain.c: Initialise the new field to zero. If it is non-zero
2702 after parsing the linker's command line call
2703 bfd_hash_set_default_size.
2704 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
2705 (ld_options): Add hash-size.
2706 (parse_args): Parse --hash-size option. Allow
2707 --reduce-memory-overheads to set the default hash table size as
2708 well.
2709 * ld.texinfo: Document the new switch. Also mention that
2710 --reduce-memory-overheads can affect the hash table size.
2711 * NEWS: Mention the new feature.
2712
35835446
JR
27132004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
2714
2715 * NEWS: Mention new linker map file generation and the
2716 --reduce-memory-overheads option.
2717 * ld.texinfo: Document --reduce-memory-overheads option.
2718 * ld.h (map_symbol_def): New struct.
2719 (struct user_section_struct, section_userdata_type): Rename to:
2720 (struct lean_user_section_struct, lean_section_userdata_type).
2721 (struct fat_user_section_struct, fat_section_userdata_type): New.
2722 (SECTION_USERDATA_SIZE): Define.
2723 (args_type): New member reduce_memory_overheads.
2724 * ldlang.c (map_obstack): New static variable.
2725 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
2726 (lang_map): Unless command_line.reduce_memory_overheads is set,
2727 initialize lists of defined symbols for each section.
2728 (print_input_section): Unless command_line.reduce_memory_overheads
2729 is set, use print_all_symbols.
2730 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
2731 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
2732 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
2733 (ld_options): Add entry for --reduce-memory-overheads.
2734 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
2735
0841712e
JJ
27362004-05-19 Jakub Jelinek <jakub@redhat.com>
2737
2738 * ldgram.y (sect_constraint): New.
2739 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2740 (section): Add sect_constraint. Pass additional argument
2741 to lang_enter_output_section_statement.
2742 * mri.c (mri_draw_tree): Pass additional argument to
2743 lang_enter_output_section_statement.
2744 * emultempl/pe.em (place_orphan): Likewise.
2745 (output_prev_sec_find): Disregard output section statements with
2746 constraint == -1.
2747 * emultempl/mmo.em (output_prev_sec_find): Likewise.
2748 (mmo_place_orphan): Pass additional argument to
2749 lang_enter_output_section_statement.
2750 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
2751 statements with constraint == -1.
2752 (place_orphan): Pass additional argument to
2753 lang_enter_output_section_statement.
2754 * ldlang.c (lang_enter_overlay_section): Likewise.
2755 (lang_output_section_find_1): New.
2756 (lang_output_section_find): Use it.
2757 (lang_output_section_statement_lookup_1): New.
2758 (lang_output_section_statement_lookup): Use it.
2759 (check_section_callback, check_input_sections): New.
2760 (map_input_to_output_sections): Check if all input sections
2761 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
2762 (strip_excluded_output_sections): Disregard output section statements
2763 with constraint == -1.
2764 (lang_record_phdrs): Likewise.
2765 (lang_enter_output_section_statement): Add constraint argument.
2766 Use lang_output_section_statement_lookup_1.
2767 * ldlang.h (lang_output_section_statement_type): Add constraint
2768 and all_input_readonly fields.
2769 (lang_enter_output_section_statement): Adjust prototype.
2770 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2771 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
2772 segment if all input sections are readonly.
2773
eea6121a 27742004-05-19 Adam Nemet <anemet@lnxw.com>
f2c50328
NC
2775
2776 * scripttempl/i386lynx.sc: Remove file.
2777
2a16d82a
BW
27782004-05-17 Bob Wilson <bob.wilson@acm.org>
2779
2780 * ld.texinfo (Output Section Address): Correct subsection name.
2781
eea6121a 27822004-05-17 Adam Nemet <anemet@lnxw.com>
b2d65c0b
NC
2783
2784 * configure.tgt (powerpc-*-lynxos* case): New case.
2785 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
2786 * emulparams/ppclynx.sh: New file.
2787 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
2788 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
2789 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
2790 (eppclynx.c): New rule.
2791 * Makefile.in: Regenerate.
2792
4b363073
NC
27932004-05-13 Joel Sherrill <joel@oarcorp.com>
2794
2795 * configure.tgt (or32-*-rtems*): Switch to elf and
2796 support versioned targets.
2797
9598fbe5
NC
27982004-05-13 Nick Clifton <nickc@redhat.com>
2799
2800 * po/fr.po: Updated French translation.
2801
8c37241b
JJ
28022004-05-11 Jakub Jelinek <jakub@redhat.com>
2803
2804 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
2805 for binaries, -shared and -pie.
2806 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
2807 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
2808 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
2809 (OTHER_RELRO_SECTIONS): ... this.
2810 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
2811 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
2812 -z relro and -z norelro.
2813 (gld${EMULATION_NAME}_list_options): Add it to usage.
2814 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
2815 -z relro scripts when appropriate.
2816 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
2817 Create separate .got.plt section if SEPARATE_GOTPLT.
2818 Move sections which are only written during relocation handling
2819 to the beginning of RW segment. If NO_SMALL_DATA, move .got
2820 before .data. Add DATA_SEGMENT_RELRO_END directive.
2821 Include OTHER_RELRO_SECTIONS.
2822 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
2823 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
2824 (fold_unary): Likewise.
2825 (fold_binary): Handle -z relro.
2826 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
2827 exp_dataseg_relro_adjust phases. Add relro_end field.
2828 * ldmain.c (main): Initialize link_info.relro to FALSE.
2829 * ldlang.c (lang_size_sections): Handle -z relro.
2830
e21059f2
MM
28312004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
2832
2833 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
2834
5f9b8920
JR
28352004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
2836
2837 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
2838 before printing it with %W.
2839
26d2d8a2 28402004-05-07 Brian Ford <ford@vss.fsi.com>
eea6121a 2841 DJ Delorie <dj@redhat.com>
26d2d8a2
BF
2842
2843 * emultempl/pe.em (real_flags): New static.
2844 (OPTION_LARGE_ADDRESS_AWARE): New define.
2845 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
2846 (gld_${EMULATION_NAME}_list_options): Likewise.
2847 (gld${EMULATION_NAME}_handle_option): Likewise.
2848 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
2849 * ld.texinfo: Document it.
2850 * NEWS: Mention it.
2851
1b169501
BF
28522004-05-07 Brian Ford <ford@vss.fsi.com>
2853
2854 * NEWS: Mention DWARF 2 support for i386pe.
2855
41cf0c62
AO
28562004-05-05 Alexandre Oliva <aoliva@redhat.com>
2857
2858 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
2859 elf32-frvfdpic.
2860
d0d6a25b
AM
28612004-04-30 Alan Modra <amodra@bigpond.net.au>
2862
2863 * ldlang.c (unique_section_p): Pass section parm, return true on
2864 group sections.
2865 (output_section_callback): Adjust.
2866 * ldlang.h (unique_section_p): Update prototype.
2867 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
2868
755306be
EB
28692004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
2870
eea6121a 2871 * ld.texinfo (--gc-sections): Remove restriction for
755306be
EB
2872 dynamic linking.
2873
8a7140c3
NC
28742004-04-29 Brian Ford <ford@vss.fsi.com>
2875
2876 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
2877 for DWARF 2/3. Update stab section's syntax.
2878
2f9636ba
AM
28792004-04-29 Alan Modra <amodra@bigpond.net.au>
2880
2881 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
2882 (fill_edata): Correct pointer arithmetic.
2883
23867d67
CD
28842004-04-21 Chris Demetriou <cgd@broadcom.com>
2885
2886 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
2887 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
2888 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
2889 (EXTRA_EM_FILE): Use mipsecoff.em
2890 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
2891 (EXTRA_EM_FILE): Use mipsecoff.em
2892 * emultempl/mipsecoff.em: Restructure to be included as an
2893 extra emulation file.
2894 (check_sections, gld${EMULATION_NAME}_after_open)
2895 (gld${EMULATION_NAME}_after_allocation)
2896 (gld${EMULATION_NAME}_get_script)
2897 (ld_${EMULATION_NAME}_emulation): Remove
2898 (gld${EMULATION_NAME}_before_parse): Rename to...
2899 (mipsecoff_before_parse): This.
2900 (LDEMUL_BEFORE_PARSE): Define.
2901 * emultempl/mipself.em: Remove file.
2902 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
2903 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
2904 these symbols.
2905 * Makefile.am: Remove dependencies on emultempl/mipself.em.
2906 * Makefile.in: Regenerate.
2907
1502569c
NC
29082004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
2909
2910 * ld.texinfo (synthesizing on H8/300): Information about linker
2911 relaxation support for bit manipulation instructions and system
2912 control instructions is added.
2913
c894ddfb
HPN
29142004-04-21 Hans-Peter Nilsson <hp@axis.com>
2915
2916 * NEWS: Mention change in DEFINED semantics.
2917
a85bf78e
EB
29182004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
2919
2920 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
2921 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
2922 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
2923
58434bc1
BE
29242004-04-21 Ben Elliston <bje@au.ibm.com>
2925
2926 * ld.texinfo (Simple Example): Add missing punctuation.
2927
7a7f4e42
CD
29282004-04-20 Chris Demetriou <cgd@broadcom.com>
2929
2930 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
2931
3737f867
JJ
29322004-04-19 Jakub Jelinek <jakub@redhat.com>
2933
2934 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
2935 specially.
2936
3c17e4f7
DS
29372004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
2938
2939 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
2940 with default priority. Likewise for dtors.
2941
279500de
TS
29422004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2943
2944 * configure.host: Remove mips*-dec-bsd* target.
2945 * configure.tgt: Likewise.
2946
52f89c0a
RS
29472004-04-08 Richard Sandiford <rsandifo@redhat.com>
2948
2949 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
2950 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
2951 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
2952 * emultempl/irix.em: New file.
2953 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
2954 dependencies.
2955 * Makefile.in: Regenerate.
2956
e489d0ae
PB
29572004-04-01 Paul Brook <paul@codesourcery.com>
2958
2959 * emultempl/armelf.em (byteswap_code): Add.
2960 (arm_elf_before_allocation): Pass extra parameter.
2961 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
2962 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
2963 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
2964 * emultempl/armelf_oabi.em: Pass extra parameter.
2965 * ld.texinfo: Document --be8.
2966
7cc8057a
SS
29672004-03-30 Stan Shebs <shebs@apple.com>
2968
2969 Remove long-obsolete MPW support.
2970 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
2971 * Makefile.am (mpw): Remove file-presynthesizing actions.
2972 * Makefile.in: Likewise.
2973 * ldfile.c (slash): Remove MPW case.
2974 * ldlex.l [MPW]: Remove unused definition.
2975
0949843d
NC
29762004-03-30 Galit Heller <Galit.Heller@nsc.com>
2977
2978 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
2979 (eelf32cr16c.c): New target.
2980 * Makefile.in: Regenerate.
2981 * configure.tgt: Handle cr16c-*-elf*.
2982 * emulparams/elf32cr16c.sh: New file.
2983 * scripttempl/elfcr16c.sc: Likewise
2984 * NEWS: Mention support for new target.
2985
0a159ef8
NC
29862004-03-30 Nick Clifton <nickc@redhat.com>
2987
2988 * po/sv.po: Updated Swedish translation.
2989
7a945db6
AM
29902004-03-27 Alan Modra <amodra@bigpond.net.au>
2991
2992 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
2993 * emultempl/hppaelf.em: Likewise.
2994 * emultempl/ppc64elf.em: Likewise.
2995 * emultempl/sh64elf.em: Likewise.
2996
5a580b3a
AM
29972004-03-25 Alan Modra <amodra@bigpond.net.au>
2998
2999 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
3000 size_dynamic_sections call.
3001
b9cf773d
AM
30022004-03-23 Alan Modra <amodra@bigpond.net.au>
3003
3004 PR 51.
3005 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
3006 link_info.wrap_char.
3007
59c2e50f
L
30082004-03-20 H.J. Lu <hongjiu.lu@intel.com>
3009
3010 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
3011 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
3012
44349745
AO
30132004-03-20 Alexandre Oliva <aoliva@redhat.com>
3014
3015 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
3016
81359a70
AM
30172004-03-19 Alan Modra <amodra@bigpond.net.au>
3018
3019 * config.in: Regenerate.
3020 * po/ld.pot: Regenerate.
3021
4a43e768
AM
30222004-03-18 Alan Modra <amodra@bigpond.net.au>
3023
3024 * ld.texinfo: Add --as-needed doco.
3025 * ldmain.c (as_needed): New global var.
3026 * ldmain.h (as_needed): Declare.
3027 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
3028 OPTION_NO_AS_NEEDED.
3029 (ld_options): Likewise.
3030 (parse_args): Handle them.
3031 * ldlang.h (lang_input_statement_type): Add as_needed field.
3032 * ldlang.c (new_afile): Set p->as_needed.
3033 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
3034 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
3035 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
3036
3037 * ldlang.c (open_input_bfds): Remove useless cast.
3038 (lang_do_assignments_1): Likewise.
3039 (lang_for_each_input_section): Delete.
3040
9183ed4b
AM
30412004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3042
3043 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
3044
ee31fbd0
NC
30452004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
3046
3047 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
3048 private when building implib.
3049
e5caec89
NS
30502004-03-05 Nathan Sidwell <nathan@codesourcery.com>
3051
3052 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
3053 SEC_THREAD_LOCAL.
3054 (IGNORE_SECTION): Ignore .tbss sections too.
3055 (lang_size_sections_1): .tbss sections do not advance dot.
3056
cc2f008e
AS
30572004-03-01 Andreas Schwab <schwab@suse.de>
3058
3059 * ld.texinfo (Options): Fix example for --wrap.
3060
f5a95868
DS
30612004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3062
3063 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
3064 not NULL.
3065
177b729b
ILT
30662004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
3067
3068 * ldlang.c (lang_check): Use %P, not %E, in error message.
3069
1b493742
NS
30702004-02-23 Nathan Sidwell <nathan@codesourcery.com>
3071
3072 * ldlang.h (struct lang_output_section_state): Change processed
3073 field's type.
3074 * ldexp.c (check, invalid): Remove.
3075 (fold_name): Move valid_p assignments. Create undefined symbol
3076 when needed. Directly exampine section's processd flag.
3077 * ldlang.c (lang_output_section_statement_lookup): Adjust
3078 processed field init.
3079 (lang_size_sections_1): Allow LOADADDR when determining section's
3080 VMA. Adjust error message. Fold data statement's expr.
3081 (lang_size_sections): Correctly increment lang_statement_iteration.
3082
30832004-02-23 Alan Modra <amodra@bigpond.net.au>
3084
3085 * ldexp.c (fold_tree): Follow indirect symbols.
b9cf773d 3086
876f4090
NS
30872004-02-20 Nathan Sidwell <nathan@codesourcery.com>
3088
3089 * ldgram.y (exp): Add two operand ALIGN.
3090 * ldexp.c (fold_binary): Add ALIGN_K case.
3091 * ld.texinfo (ALIGN): Document two operand version.
3092
384d938f
NS
30932004-02-19 Nathan Sidwell <nathan@codesourcery.com>
3094
3095 * ldlang.c (map_input_to_output_sections): Initialize sections
3096 mentioned in a data statement expression.
3097 (lang_do_assignments_1): Add data statement's expression's
3098 section's vma.
3099
b6ca8815
NS
31002004-02-18 Nathan Sidwell <nathan@codesourcery.com>
3101
3102 * ldgram.y (statement_anywhere): Add assert rule.
3103 * ldlang.c (exp_init_os): Add assert case.
3104
c92c35e7
AC
31052004-02-14 Andrew Cagney <cagney@redhat.com>
3106
3107 * ldmain.c (remove_output): Call bfd_cache_close.
3108
9bf78c99
RS
31092004-02-14 Richard Sandiford <rsandifo@redhat.com>
3110
3111 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
3112 .MIPS.content* and .MIPS.events* sections.
3113
f3806916
DJ
31142004-02-09 Daniel Jacobowitz <drow@mvista.com>
3115
3116 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
3117 .note.gnu.arm.ident to after allocated sections. Mark its
3118 address as 0.
3119
4c8e70d7
DJ
31202004-02-09 Daniel Jacobowitz <drow@mvista.com>
3121
3122 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
3123 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
3124 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
3125 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
3126 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
3127
ff71f4f7
NC
31282004-02-05 Nick Clifton <nickc@redhat.com>
3129
3130 * emultempl/pe.em (_after_open): Fix typo in previous delta.
3131
07a68a80
NC
31322004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
3133
3134 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
3135
1dd3bf68
AM
31362004-01-28 Alan Modra <amodra@bigpond.net.au>
3137
586196d5
AM
3138 * genscripts.sh: Fix typo.
3139
1dd3bf68
AM
3140 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
3141
13d9421f
JJ
31422004-01-24 Jakub Jelinek <jakub@redhat.com>
3143
3144 * emulparams/elf64_ia64.sh: Put .rela.opd into
3145 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
3146
4d8907ac
DS
31472004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
3148
3149 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
3150 * ld.texinfo (--omagic): Note that writable text section
3151 does not conform to published PE-COFF specs.
3152 (--enable-auto-import): Likewise.
3153
e5c60db5
AM
31542004-01-15 Alan Modra <amodra@bigpond.net.au>
3155
3156 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
3157
6bdafbeb
NC
31582004-01-13 Nick Clifton <nickc@redhat.com>
3159
3160 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
3161 which if true will prevent the LMA region being used as a
3162 replacement for a default VMA region.
586196d5
AM
3163 (lang_leave_output_section_statement): Pass extra parameter.
3164 (lang_leave_overlay): Likewise.
3165 * ld.texinfo (Output Section LMA): Document that the LMA
6bdafbeb
NC
3166 region can be set to the VMA region if no VMA has been set.
3167 * ldlang.h (struct lang_output_section_phdr_list): Create a
3168 typedef for this type. Minor formatting fixes.
586196d5 3169
9dfc8ab2
NC
31702004-01-13 Nick Clifton <nickc@redhat.com>
3171
3172 * ldlang.c (lang_size_sections_1): If dot is advanced, then
3173 assume that the section should be allocated.
3174
8325c4dd
AM
31752004-01-13 Alan Modra <amodra@bigpond.net.au>
3176
3177 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
3178 sections. Do ignore SEC_NEVER_LOAD sections.
3179 (lang_size_sections_1): Remove test made redundant with the above.
3180
83490352
AM
31812004-01-09 Alan Modra <amodra@bigpond.net.au>
3182
3183 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
3184 program_header_size.
3185
005e1118
AO
31862004-01-06 Alexandre Oliva <aoliva@redhat.com>
3187
3188 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
3189 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
3190 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
3191 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
3192 (MAXPAGESIZE): Set to 64Kb.
3193 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
3194 __ROFIXUP_END__. Don't map .rofixup.got any more.
3195 * emulparams/elf32frv.sh (NOP): Set.
3196 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
3197 * configure.tgt: Add frv-*-*linux*.
3198 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
3199 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
3200 (eelf32frvfd.c): New.
3201 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
3202 * emulparams/elf32frv.sh: Reverted previous two patches.
3203 * emulparams/elf32frvfd.sh: New.
3204 * Makefile.in: Rebuilt.
3205 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
3206 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
3207 .rofixup.got to .rofixup.
3208 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
3209 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
3210 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
3211
060feee5
JJ
32122004-01-05 Jakub Jelinek <jakub@redhat.com>
3213
3214 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
3215 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
3216
5e2f1575
AM
32172004-01-03 Alan Modra <amodra@bigpond.net.au>
3218
e5caa5e0
AM
3219 * ldexp.c (align_n): Make static.
3220 * ldexp.h (align_n): Delete declaration.
3221 * ldlang.h (lang_enter_output_section_statement): Remove
3222 block_value param.
3223 * ldlang.c (lang_enter_output_section_statement): Likewise.
3224 (TO_ADDR, TO_SIZE): Define.
c2df3ea5 3225 (opb_shift): New var.
e5caa5e0
AM
3226 (init_opb): New function.
3227 (print_input_section): Call init_opb and use TO_ADDR.
3228 (print_data_statement, print_reloc_statement): Likewise.
3229 (print_padding_statement): Likewise.
c2df3ea5 3230 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
e5caa5e0
AM
3231 (lang_check_section_addresses): Likewise.
3232 (lang_size_sections_1): Likewise.
3233 (lang_do_assignments_1): Likewise.
3234 (lang_set_startof): Likewise.
c2df3ea5 3235 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
e5caa5e0 3236 (lang_process): Call init_opb.
c2df3ea5 3237 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
e5caa5e0
AM
3238 (lang_enter_overlay_section): Adjust
3239 lang_enter_output_section_statement call.
3240 * ldgram.y: Likewise.
3241 * mri.c (mri_draw_tree): Likewise.
3242 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
3243 * emultempl/mmo.em (mmo_place_orphan): Likewise.
3244 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
3245
5e2f1575
AM
3246 * ldfile.c (ldfile_set_output_arch): Add defarch param.
3247 * ldfile.h (ldfile_set_output_arch): Ditto.
3248 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
3249 ldfile_set_output_arch.
3250 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
3251 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
3252 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
3253 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3254 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
3255 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
3256 * ldgram.y: Adjust ldfile_set_output_arch call.
3257 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3258 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
3259 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
3260 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
3261 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
3262 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3263 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3264
b50c15dc
NC
32652004-01-02 Bernardo Innocenti <bernie@develer.com>
3266
3267 * configure.tgt: Add m68k-uClinux target.
6edf0760 3268
c9e214e5 3269For older changes see ChangeLog-0203
252b5132
RH
3270\f
3271Local Variables:
3272mode: change-log
3273left-margin: 8
3274fill-column: 74
3275version-control: never
3276End:
This page took 0.483234 seconds and 4 git commands to generate.