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