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