Second part of ms1 to mt renaming.
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
d031aafb
NS
12005-12-16 Nathan Sidwell <nathan@codesourcery.com>
2
3 Second part of ms1 to mt renaming.
4 * emulparams/elf32mt.sh (ARCH, OUTPUT_FORMAT): Adjust.
5
4e8aba04
JJ
62005-12-14 Jakub Jelinek <jakub@redhat.com>
7
8 * scripttempl/elf.sc: Put .gnu.linkonce.d.rel.ro.* sections into
9 .data.rel.ro output section. Fix a pasto for -z nocombreloc
10 .rela.data.rel.ro section content.
11
4970f871
NS
122005-12-12 Nathan Sidwell <nathan@codesourcery.com>
13
14 * Makefile.am (ALL_EMULATIONS): Replace ms1 files with mt files.
15 (eelf32mt.c): Update target name and dependencies.
16 * Makefile.in: Rebuilt.
17 * configure.tgt: Replace ms1 arch with mt arch.
18 * emulparams/elf32mt.sh: Renamed from elf32ms1.sh. Update
19 comment.
20
bd6791bc
HPN
212005-12-11 Bernhard Fischer <aldot@gcc.gnu.org>
22
23 * scripttempl/armbpabi.sc: Fix typo in comment for .ctors.
24 * scripttempl/elf.sc: Ditto.
25 * scripttempl/elf32sh-symbian.sc: Ditto.
26 * scripttempl/elf_chaos.sc: Ditto.
27 * scripttempl/elfd10v.sc: Ditto.
28 * scripttempl/elfd30v.sc: Ditto.
29 * scripttempl/elfxtensa.sc: Ditto.
30 * scripttempl/iq2000.sc: Ditto.
31 * scripttempl/xstormy16.sc: Ditto.
32
0ba07910
AM
332005-12-08 Alan Modra <amodra@bigpond.net.au>
34
35 * emultempl/ppc32elf.em (emit_stub_syms): New var.
36 (ppc_after_open): Pass it to ppc_elf_select_plt_layout.
37 (PARSE_AND_LIST_PROLOGUE <OPTION_STUBSYMS>): Define.
38 (PARSE_AND_LIST_LONGOPTS): Add emit-stub-syms.
39 (PARSE_AND_LIST_OPTIONS): Describe emit-stub-syms.
40 (PARSE_AND_LIST_OPTIONS): Handle it.
41
36230712
AM
422005-12-08 Alan Modra <amodra@bigpond.net.au>
43
44 * pe-dll.c (build_filler_bfd): Conform error message to standard.
45 (pe_dll_generate_implib): Use %E in error message.
46 (add_bfd_to_link): Likewise.
47 (pe_implied_import_dll): Likewise.
48
fe21a8fc
L
492005-12-07 Thiemo Seufer <ths@networkno.de>
50 H.J. Lu <hongjiu.lu@intel.com>
51
52 PR ld/1932
53 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
54 Adjust bfd_elf_record_link_assignment call.
55
56 * ldexp.c (exp_fold_tree_1): Remove call to bfd_hide_symbol.
57
b251bf6f
JB
582005-11-25 Jan Beulich <jbeulich@novell.com>
59
60 * Makefile.am: Make configdoc.texi writeable before trying
61 to write to it.
62 * Makefile.in: Refresh.
63
390fbbf1
AM
642005-11-24 Alan Modra <amodra@bigpond.net.au>
65
66 * ldlang.c (lang_output_section_find_by_flags): Add match_type param.
67 Run two passes, first using match_type, second without.
68 * ldlang.h (lang_match_sec_type_func): New typedef.
69 (lang_output_section_find_by_flags): Update prototype.
70 bfd_match_sections_by_type and lang_output_section_find_by_flags.
71 * emultempl/pe.em (place_orphan): Likewise.
72
be529132
AM
732005-11-24 Alan Modra <amodra@bigpond.net.au>
74
75 * ldlang.c (lang_insert_orphan): Skip first assignment to dot
76 in script when looking for place to insert orphan statements.
77
e87deb82
AM
782005-11-18 Alan Modra <amodra@bigpond.net.au>
79
80 * emulparams/elf64ppc.sh (.tocbss): Use new section alignment scheme.
81 (.got, .toc1, .opd): Likewise.
82
94b50910
AM
832005-11-18 Alan Modra <amodra@bigpond.net.au>
84
85 * ldlang.c (lang_size_sections_1): Revert 2005-11-16 functional
86 changes to section alignment.
87 * ldmisc.c (vfinfo): Handle %ld and %lu.
88
dff70155
MM
892005-11-16 Mark Mitchell <mark@codesourcery.com>
90
91 * Makefile.am (configdoc.texi): Set top_srcdir in configdoc.texi..
92 * Makefile.in: Regenerated.
93 * ld.texinfo: Include configdoc.texi and ldver.texi in man pages.
94 Add @file documentation.
be529132 95
7b986e99
AM
962005-11-17 Alan Modra <amodra@bigpond.net.au>
97
98 * ldlang.h (lang_input_section_type): Remove "ifile" field.
99 (lang_insert_orphan, lang_add_section): Update prototypes.
100 * ldlang.c (lang_insert_orphan): Remove "file" param.
101 (lang_add_section): Likewise. Update all callers.
102 (wild_sort): Get an input section's bfd via "section->owner".
103 (size_input_section): Access just_syms_flag via bfd usrdata.
104 (lang_place_orphans): Update ldemul_place_orphan call.
105 * ldemul.h (ldemul_place_orphan): Remove input_statement param.
106 (struct ld_emulation_xfer_struct <place_orphan>): Likewise.
107 * ldemul.c (ldemul_place_orphan): Likewise.
108 * ldwrite.c (build_link_order): Access just_syms_flag via bfd usrdata.
109 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
110 * emultempl/beos.em (sort_by_file_name): Access bfd by section->owner.
111 (sort_sections): Likewise.
112 (place_orphan): Remove "file" param. Adjust lang_add_section call.
113 * emultempl/elf32.em (place_orphan): Remove "file" param. Adjust
114 lang_add_section and lang_insert_orphan calls.
115 * emultempl/hppaelf.em (hppaelf_add_stub_section): Adjust
116 lang_add_section call.
117 (build_section_lists): Access just_syms_flag via bfd usrdata.
118 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Adjust
119 lang_add_section call.
120 * emultempl/mmo.em (mmo_place_orphan): Remove "file" param. Adjust
121 lang_add_section and lang_insert_orphan calls.
122 * emultempl/pe.em (place_orphan): Likewise. Access bfd via section
123 owner.
124 * emultempl/ppc64elf.em (ppc_add_stub_section): Adjust
125 lang_add_section call.
126 (build_toc_list): Access just_syms_flag via bfd usrdata.
127 (build_section_lists): Likewise.
128 * emultempl/xtensaelf.em (elf_xtensa_place_orphan): Remove "file"
129 param. Adjust place_orphan call.
130 (ld_build_required_section_dependence): Access bfd via section owner.
131
bd4d42c1
AM
1322005-11-16 Alan Modra <amodra@bigpond.net.au>
133
134 * ldlang.h (lang_output_section_statement_type): Add prev.
135 * ldlang.c (new_afile): Always init header.type.
136 (output_statement_newfunc): Set os.prev.
137 (output_prev_sec_find): Use os.prev.
138 (lang_enter_output_section_statement): Formatting.
139 (lang_final, lang_add_target, lang_add_fill): Likewise.
140 (lang_add_data, lang_add_reloc): Likewise.
141 (lang_add_attribute): Only alloc the header.
142
7270c5ed
AM
1432005-11-16 Alan Modra <amodra@bigpond.net.au>
144
145 * ld.texinfo (Forced Output Alignment): Specify that this is an
146 alignment increase, not an override.
147 * ldlang.c (init_os): Set output section alignment here..
148 (lang_add_section): ..rather than here.
149 (lang_size_sections_1): Consolidate alignment code. Warn if section
150 alignment affects start address when explicit address given.
151
a541e3ce
SE
1522005-11-07 Steve Ellcey <sje@cup.hp.com>
153
154 * configure: Regenerate after modifying bfd/warning.m4.
155
70487fb2
AM
1562005-11-07 Olaf Hering <olh@suse.de>
157
158 * ldmain.c (main): Add \n to error message.
159
384a9dda
AM
1602005-11-04 Alan Modra <amodra@bigpond.net.au>
161
162 * ldlang.c (struct output_statement_hash_entry): Don't indirect to os.
163 (output_statement_newfunc): Rewrite.
164 (lang_output_section_find_1): Merge into..
165 (lang_output_section_find): ..here.
166 (lang_output_section_statement_lookup_1): Rewrite to handle
167 multiple sections with the same name.
168 (output_statement_table_init): Commonise error message.
169 (lang_init, open_output): Likewise.
170
6f2942ed
PB
1712005-11-03 Paul Brook <paul@codesourcery.com>
172
173 * scripttempl/elf.sc: Add .init_array.* and .fini_array.*.
174 * scripttempl/armbpabi.sc: Make init/fini array consistent with
175 elf.sc.
176 * scripttempl/elf32sh-symbian.sc: Ditto.
177 * scripttempl/elfxtensa.sc: Ditto.
178
7fabd029
AM
1792005-11-03 Alan Modra <amodra@bigpond.net.au>
180
181 * ldlang.h (lang_output_section_statement_type): Rearrange. Remove
182 memspec. Make "processed" a bitfield.
183 (lang_data_statement_type, lang_reloc_statement_type): Rename
184 output_vma to output_offset.
185 * ldlang.c (lang_output_section_statement_lookup_1): Init
186 all_input_readonly. Don't init memspec.
187 (init_os): Remove incorrect comment.
188 (print_data_statement, print_reloc_statement): Adjust for
189 lang_data_statement_type and lang_reloc_statement_type change.
190 (lang_size_sections_1, lang_add_reloc): Likewise.
191 * ldwrite.c (build_link_order): Likewise.
192
a55ff675
MM
1932005-10-30 Mark Mitchell <mark@codesourcery.com>
194
195 * lexsup.c (help): Document "@FILE".
196
9e5169a8
L
1972005-10-30 H.J. Lu <hongjiu.lu@intel.com>
198
199 * Makefile.am: Run "make dep-am".
200 * Makefile.in: Regenerated.
201
202 * dep-in.sed: Replace " ./" with " ".
203
3c9b82ba
NC
2042005-10-25 Arnold Metselaar <arnold.metselaar@planet.nl>
205
206 * Makefile.am: Add support for Z80
207 * Makefile.in: Regenerated
208 * configure.tgt: Add z80-*-coff
209 * emulparams/z80.sh: New file.
210 * emultempl/z80.em: New file.
211 * scripttempl/z80.sc New file.
212 * NEWS: Mention this new support.
213
3caac5b8
AM
2142005-10-25 Alan Modra <amodra@bigpond.net.au>
215
216 * po/ld.pot: Regenerate.
217
4f9c04f7
AM
2182005-10-25 Chris Metcalf <cdmetcalf@comcast.net>
219
220 * ld.texinfo (--reduce-memory-overheads): Fix typo.
221
ccd2ec6a
L
2222005-10-23 H.J. Lu <hongjiu.lu@intel.com>
223
224 PR ld/1487
225 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
226 bfd_match_sections_by_type to match section types.
227
228 * ldlang.c (init_os): Take the input section. Call
229 bfd_init_private_section_data if the input section isn't NULL.
230 (exp_init_os): Pass NULL to init_os.
231 (map_input_to_output_sections): Likewise.
232 (lang_add_section): Pass the input section to init_os.
233
3242b11e
PB
2342005-10-19 Paul Brook <paul@codesourcery.com>
235
236 * emulparams/armelf.sh: Add .ARM.attributes to OTHER_SECTIONS.
237
ecca9871
L
2382005-10-15 H.J. Lu <hongjiu.lu@intel.com>
239
240 PR ld/1467
241 * emultempl/elf32.em: Include "elf-bfd.h".
242 (gld${EMULATION_NAME}_place_orphan): Check section type and
243 don't use section name for ELF input sections.
244
245 * ld.texinfo: Document orphan section processing.
246
247 * ldlang.c (lang_output_section_find_by_flags): Match section
248 types by calling bfd_match_sections_by_type.
249
86043bbb
MM
2502005-10-13 Mark Mitchell <mark@codesourcery.com>
251
252 * ld.texino: Describe double-quoted string syntax for version
253 nodes.
254 * ldlang.h (lang_new_vers_pattern): Add literal_p parameter.
255 * ldgram.y (vers_defns): Allow NAME as well as VERS_IDENTIFIER.
256 Adjust calls to lang_new_vers_pattern to pass literal_p argument.
257 * ldlang.c (lang_vers_match): Fix indentation. Do not glob-match
258 version nodes without a pattern.
259 (lang_new_vers_pattern): Add literal_p parameter.
260 (lang_do_version_exports_section): Pass it.
261
3e8a519c
MM
2622005-10-12 Mark Mitchell <mark@codesourcery.com>
263
264 * NEWS: Mention @file.
265
f0e0fb23
L
2662005-10-05 H.J. Lu <hongjiu.lu@intel.com>
267
268 PR ld/1396
269 * ldcref.c (check_refs): Accept bfd_boolean.
270 (check_local_sym_xref): Pass FALSE to check_refs.
271 (check_nocrossref): Pass TRUE to check_refs.
272 (check_refs_info): Add bfd_boolean.
273 (check_refs): Add bfd_boolean to check_refs_info.
274 (check_reloc_refs): Match relocations with proper symbols.
275
276 * ldmisc.c (vfinfo): Don't add extra ":\n".
277
e60cc415
DS
2782005-10-05 Danny Smith <dannysmith@users.sourceforge.net>
279
280 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set
281 default entry symbol to ENTRY here.
282 * scripttempl/pe.sc: Not here.
283
4520f868
JW
2842005-09-30 James E Wilson <wilson@specifix.com>
285
286 * ldlang.c (lang_startup): Add missing ": " to einfo call.
287
b898a385
L
2882005-09-30 H.J. Lu <hongjiu.lu@intel.com>
289
290 * Makefile.am: Run "make dep-am".
291 * Makefile.in: Regenerated.
292 * aclocal.m4: Likewise.
293
750877ba
L
2942005-09-30 H.J. Lu <hongjiu.lu@intel.com>
295
296 * ldlang.c (output_statement_hash_entry): New type.
297 (output_statement_table): New variable for hash table.
298 (output_statement_newfunc): New function.
299 (output_statement_table_init): Likewise.
300 (output_statement_table_free): Likewise.
301 (lang_init): Call output_statement_table_init.
302 (lang_finish): Renamed to ...
303 (lang_end): This.
304 (lang_process): Updated.
305 (lang_finish): New function.
306 (lang_output_section_find_1): Use hash table.
307 (lang_output_section_statement_lookup_1): Likewise.
308
309 * ldlang.h (lang_finish): New.
310
311 * ldmain.c (main): Call lang_finish.
312
869b9d07
MM
3132005-09-30 Mark Mitchell <mark@codesourcery.com>
314
315 * ldmain.c (main): Use expandargv.
316
95f4309b 3172005-09-30 Catherine Moore <clm@cm00re.com>
384a9dda 318
95f4309b
CM
319 * Makefile.am: Bfin support.
320 * Makefile.in: Regenerated.
321 * aclocal.m4: Regenerated.
322 * configure.tgt: Bfin support.
323 * emulparams/bfin.sh: New file.
324 * emultempl/bfin.em: New file.
325
a70c2403
NC
3262005-09-30 Matthias Kurz <mk@baerlap.north.de>
327
328 * ld.h: Prevent the inclusion of <libintl.h> from the Solaris
329 version of <locale.h> when ENABLE_NLS is not defined.
330
bbf115d3
L
3312005-09-27 H.J. Lu <hongjiu.lu@intel.com>
332
333 * ld.texinfo (ALIGN): Document it as forcing output section
334 alignment.
335
336 * ldgram.y (ALIGN): Support it for forcing output section
337 alignment.
338
a5df8c84
AM
3392005-09-20 Alan Modra <amodra@bigpond.net.au>
340
f68d3f78
AM
341 * ldlang.h (lang_output_section_statement_struct): Change type of
342 "processed" to bfd_boolean.
343 * ldexp.c (fold_name): Update references to os->processed.
344 * ldlang.c (lang_output_section_statement_lookup_1): Likewise.
345 (lang_size_sections_1): Likewise.
346 (lang_reset_memory_regions): Likewise.
347
a5df8c84
AM
348 PR ld/1353
349 * ldlang.c (lang_size_sections_1): Process addr_tree earlier,
350 so that unused output section statements affect dot.
351
6aa29e7b
JJ
3522005-09-08 Jakub Jelinek <jakub@redhat.com>
353
354 * ld.texinfo: Document -z {no,}execstack, -z {no,}relro
355 and --eh-frame-hdr options.
356
5397b1fe
AM
3572005-09-07 Alan Modra <amodra@bigpond.net.au>
358
359 * ldexp.c (fold_name <SIZEOF>): Return 0 for non-existent section.
360 (exp_fold_tree_1): Print assert message only in final stage of
361 linking. Trigger assertion failure if expression cannot be
362 evaluated.
363
12b9ff6c
L
3642005-09-06 H.J. Lu <hongjiu.lu@intel.com>
365
366 PR ld/1263
367 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Check
368 --just-symbols on DSO.
369
2caf1300
AM
3702005-08-18 Alan Modra <amodra@bigpond.net.au>
371
372 * scripttempl/elf.sc: Remove commented out defines.
373
c17ae8a2
AM
3742005-08-18 Alan Modra <amodra@bigpond.net.au>
375
848cf006
AM
376 * emulparams/a29k.sh: Delete.
377 * emulparams/ebmon29k.sh: Delete.
378 * emulparams/sa29200.sh: Delete.
c17ae8a2
AM
379 * Makefile.am: Remove a29k support.
380 * configure.tgt: Likewise.
381 * ld.texinfo: Likewise.
382 * Makefile.in: Regenerate.
383
96f8ade5
JJ
3842005-08-17 Jakub Jelinek <jakub@redhat.com>
385
386 * ldgram.y (vers_defns): Don't lose pattern list before
387 extern NAME {}. Handle global, local and extern symbol names.
388
24dc748d
KK
3892005-08-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
390
391 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
392 Don't increment rel_count of .cranges here. Set rawsize of .cranges.
393
38975f9e
NC
3942005-08-10 Nick Clifton <nickc@redhat.com>
395
396 * pe-dll.c (pe_exe_fill_sections): Call lang_reset_memory_regions
397 before lang_size_sections.
398
66bcaf1f
AM
3992005-08-09 Alan Modra <amodra@bigpond.net.au>
400
401 * emulparams/hppa64linux.sh (LARGE_SECTIONS): Remove .tbss.
402
4032005-08-08 Eric Doenges <Eric.Doenges@betty-tv.com>
44c86e8c
NC
404
405 * Makefile.am (ALL_EMULATIONS): Add msp430x21xx variants.
406 Add rules to build these emulations.
407 * Makefile.in: Regenerate.
408 * configure.tgt (msp430): Add the new variants to the
409 targ_extra_emuls list.
410 * emulparams/msp430all.sh: Add entries for the msp430x21xx
411 variants.
412
7af8e998
L
4132005-08-05 H.J. Lu <hongjiu.lu@intel.com>
414
415 * ld.texinfo: Document PROVIDE_HIDDEN.
416
417 * ldexp.c (exp_fold_tree_1): Hide a provided symbol if asked.
418 (exp_provide): Add and set hidden.
419
420 * ldexp.h (etree_type): Add hidden to assign.
421
422 * ldgram.y (PROVIDE_HIDDEN): New.
423 * ldlex.l (PROVIDE_HIDDEN): Likewise.
424
425 * scripttempl/elf.sc: Use PROVIDE_HIDDEN on array bound
426 symbols.
427
9599dfb1
AM
4282005-08-05 Alan Modra <amodra@bigpond.net.au>
429
430 * emulparams/elf_x86_64.sh: Revert last change.
431 * scripttempl/elf.sc (REL_LARGE, LARGE_SECTIONS): Define here.
432
827a1c67
AM
4332005-08-05 Alan Modra <amodra@bigpond.net.au>
434
435 * emulparams/armelf.sh (OTHER_BSS_END_SYMBOLS): Split out from
436 OTHER_END_SYMBOLS.
437 * emulparams/armelf_linux.sh: Likewise.
438 * emulparams/armnto.sh: Likewise.
439 * emulparams/criself.sh: Likewise.
440 * emulparams/elf32mcore.sh: Likewise.
441 * emulparams/criself.sh (OTHER_SYMBOLS): Define.
442 * emulparams/crislinux.sh (OTHER_SYMBOLS): Define.
443 (OTHER_END_SYMBOLS): Don't define.
444 * emulparams/elf32fr30.sh: Likewise.
445 * emulparams/elf64mmix.sh: Likewise.
446 * emulparams/hppa64linux.sh: Likewise.
447 * emulparams/m32relf.sh: Likewise.
448 * emulparams/vxworks.sh: Likewise.
449 * scripttempl/armbpabi.sc (OTHER_BSS_SECTIONS): Delete.
450 (OTHER_BSS_END_SYMBOLS): Add.
451 (OTHER_END_SYMBOLS): Move before current end sym definitions.
452 (OTHER_SYMBOLS): Replace OTHER_END_SYMBOLS near end of script.
453 * scripttempl/elf.sc: Likewise.
454 * scripttempl/elf32sh-symbian.sc: Likewise.
455 * scripttempl/elf_chaos.sc: Likewise.
456 * scripttempl/elfxtensa.sc: Likewise.
457 * scripttempl/iq2000.sc: Likewise.
458 * scripttempl/xstormy16.sc: Likewise.
459
460 * scripttempl/elf.sc (LBSS, LARGE_SECTIONS): Delete.
461 (REL_LDATA, REL_LBSS, REL_LRODATA): Delete.
462 (REL_LARGE, LARGE_SECTIONS): Add.
463 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): Define as script text.
464 (REL_LARGE): Define.
465 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
466 (LARGE_SECTIONS): Define.
467 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
468 (LARGE_SECTIONS): Define.
469
046183de
AM
4702005-08-04 Alan Modra <amodra@bigpond.net.au>
471
472 * ldemul.c (ldemul_do_assignments, do_assignments_default): Delete.
473 * ldemul.h (ldemul_do_assignments, do_assignments_default): Delete.
474 (struct ld_emulation_xfer_struct): Remove do_assignments field.
475 * ldlang.c (lang_do_assignments): Don't call ldemul_do_assignments.
476 * emulparams/elf32ppc.sh (SDATA_START_SYMBOLS): New.
477 (SDATA2_START_SYMBOLS, SBSS_START_SYMBOLS, SBSS_END_SYMBOLS): New.
478 * emultempl/aix.em (ld_*_emulation): Delete do_assignments init.
479 * emultempl/armcoff.em: Likewise.
480 * emultempl/beos.em: Likewise.
481 * emultempl/generic.em: Likewise.
482 * emultempl/gld960.em: Likewise.
483 * emultempl/gld960c.em: Likewise.
484 * emultempl/linux.em: Likewise.
485 * emultempl/lnk960.em: Likewise.
486 * emultempl/m68kcoff.em: Likewise.
487 * emultempl/pe.em: Likewise.
488 * emultempl/sunos.em: Likewise.
489 * emultempl/ticoff.em: Likewise.
490 * emultempl/vanilla.em: Likewise.
491 * emultempl/elf32.em: Likewise.
492 (gld*_provide_bound_symbols): Delete.
493 (gld*_provide_init_fini_syms): Delete.
494 (gld*_before_allocation): Don't call ldemul_do_assignments.
495 * emultempl/ppc32elf.em (ppc_do_assignments): Delete.
496 (LDEMUL_DO_ASSIGNMENTS): Delete.
497 * scripttempl/elf.sc: Provide init/fini syms. Add SBSS_START_SYMBOLS,
498 SBSS_END_SYMBOLS, SDATA2_START_SYMBOLS.
499
fa498e09
AM
5002005-08-04 Alan Modra <amodra@bigpond.net.au>
501
502 * Makefile.am (eelf32m32c.c): Fix dependencies.
503 * Makefile.in: Regenerate.
504
1e035701
AM
5052005-08-04 Alan Modra <amodra@bigpond.net.au>
506
507 * ldemul.c (ldemul_finish): Call ld_emulation->finish unconditionally.
508 (finish_default): New function.
509 * ldemul.h (finish_default): Declare.
510 * emultempl/aix.em (gld*_before_allocation): Call
511 before_allocation_default rather than strip_excluded_output_sections.
512 (ld_*_emulation): Init finish field to finish_default.
513 * emultempl/armcoff.em: Likewise.
514 * emultempl/beos.em: Likewise.
515 * emultempl/elf32.em: Likewise.
516 * emultempl/generic.em: Likewise.
517 * emultempl/gld960.em: Likewise.
518 * emultempl/gld960c.em: Likewise.
519 * emultempl/hppaelf.em: Likewise.
520 * emultempl/linux.em: Likewise.
521 * emultempl/lnk960.em: Likewise.
522 * emultempl/m68kcoff.em: Likewise.
523 * emultempl/mmo.em: Likewise.
524 * emultempl/pe.em: Likewise.
525 * emultempl/ppc64elf.em: Likewise.
526 * emultempl/sunos.em: Likewise.
527 * emultempl/ticoff.em: Likewise.
528 * emultempl/vanilla.em: Likewise.
529
9f4fb502
AM
5302005-08-03 Alan Modra <amodra@bigpond.net.au>
531
532 * ldlang.c (exp_init_os): Handle etree_provide.
533 * emulparams/armelf.sh (OTHER_END_SYMBOLS): Rename from..
534 (OTHER_BSS_END_SYMBOLS): ..this.
535 * emulparams/armelf_linux.sh: Likewise.
536 * emulparams/armnto.sh: Likewise.
537 * emulparams/criself.sh: Likewise.
538 * emulparams/crislinux.sh: Likewise.
539 * emulparams/elf32frv.sh: Likewise.
540 * emulparams/elf32mcore.sh: Likewise.
541 * emulparams/elf32ppc.sh: Likewise.
542 * emulparams/elf32ppclinux.sh: Likewise.
543 * emulparams/hppa64linux.sh: Likewise.
544 * scripttempl/armbpabi.sc: Substitute $OTHER_END_SYMBOLS, not
545 $OTHER_BSS_END_SYMBOLS.
546 * scripttempl/elf32sh-symbian.sc: Likewise.
547 * scripttempl/elf_chaos.sc: Likewise.
548 * scripttempl/iq2000.sc: Likewise.
549 * scripttempl/xstormy16.sc: Likewise.
550 * scripttempl/elf.sc: Likewise. Delete __bss_start comment.
551 * scripttempl/elfxtensa.sc: Likewise.
552
e9156f74
NC
5532005-07-29 Nick Clifton <nickc@redhat.com>
554
555 * ldmain.c (main): Allow -shared and -static to be used together.
556 * ld.texinfo (-static): Mention that it is allowed with -shared.
557
89806866
DD
5582005-07-28 DJ Delorie <dj@redhat.com>
559
560 * ldlang.c (lang_output_section_statement_lookup_1): Don't cast a
561 unary & address operator, as that breaks GCC's strict aliasing
562 rules.
563
3b22753a
L
5642005-07-25 Jan Hubicka <jh@suse.cz>
565 H.J. Lu <hongjiu.lu@intel.com>
566
567 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): New.
568
569 * scripttempl/elf.sc: Updated for large section support.
570
9f971fcb
NC
5712005-07-21 Ralf Corsepius <ralf.corsepius@rtems.org>
572
573 * configure.tgt: Remove i[3-7]86-*-rtemself*.
574 Remove sparc-*-rtemself*.
575
71f51525
BE
5762005-07-21 Ben Elliston <bje@gnu.org>
577
578 * ldgram.y (ldgram_want_filename): Remove unused static.
579
fe773494
DD
5802005-07-20 DJ Delorie <dj@redhat.com>
581
582 * emulparams/elf32m32c.sh (TEMPLATE_NAME): New.
583 (EXTRA_EM_FILE): New.
584
0e1b44ba
L
5852005-07-19 H.J. Lu <hongjiu.lu@intel.com>
586
587 * ldmain.c (main): Reindent.
588
a3540342
PB
5892005-07-19 Paul Brook <paul@codesourcery.com>
590
591 * configure.host (HOSTING_CRT0): Parse output of gcc --help --verbose
592 to determine dynamic linker name.
593
85da3a56
NC
5942005-07-18 Nick Clifton <nickc@redhat.com>
595
596 * configure.tgt: Restore alpha ordering to list of arches.
597
42fa7765
AM
5982005-07-16 Alan Modra <amodra@bigpond.net.au>
599
600 * emultempl/elf32.em (gld*_provide_init_fini_syms): Prototype.
601 (gld*_before_allocation): Call ldemul_do_assignments rather than
602 gld*_provide_init_fini_syms directly.
603 * emultempl/ppc32elf.em (gld*_after_allocation): Delete.
604 (ppc_do_assignments): New function.
605 (LDEMUL_AFTER_ALLOCATION): Don't define.
606 (LDEMUL_DO_ASSIGNMENTS): Define.
607
0f82ff91
AM
6082005-07-16 Alan Modra <amodra@bigpond.net.au>
609
610 * Makefile.am: Run "make dep-am".
611 (emipsidt.c, emipsidtl.c): Depend on generic.em.
612 * Makefile.in: Regenerate.
613
5e797c2c
AM
6142005-07-15 Alan Modra <amodra@bigpond.net.au>
615
616 * ldemul.c (ldemul_do_assignments): New function.
617 (do_assignments_default): New function.
618 * ldemul.h (ldemul_do_assignments): Declare.
619 (do_assignments_default): Declare.
620 (struct ld_emulation_xfer_struct): Add do_assignments.
621 * ldlang.c (lang_do_assignments) Call ldemul_do_assignments.
622 * emultempl/aix.em (ld_*_emulation): Init do_assignments field.
623 * emultempl/armcoff.em: Likewise.
624 * emultempl/beos.em: Likewise.
625 * emultempl/generic.em: Likewise.
626 * emultempl/gld960.em: Likewise.
627 * emultempl/gld960c.em: Likewise.
628 * emultempl/linux.em: Likewise.
629 * emultempl/lnk960.em: Likewise.
630 * emultempl/m68kcoff.em: Likewise.
631 * emultempl/pe.em: Likewise.
632 * emultempl/sunos.em: Likewise.
633 * emultempl/ticoff.em: Likewise.
634 * emultempl/vanilla.em: Likewise.
635 * emultempl/elf32.em: Likewise, to call gld*_provide_init_fini_syms.
636 (gld*_find_exp_assignment): Adjust bfd_elf_record_link_assignment call.
637
49f58d10
JB
6382005-07-14 Jim Blandy <jimb@redhat.com>
639
640 Add support for the Renesas M32C and M16C.
641 * Makefile.am (ALL_EMULATIONS): Add eelf32m32c.o.
642 (eelf32m32c.c): New target.
643 * Makefile.in: Regenerated.
644 * configure.tgt: Add case for m32c-*-elf.
645 * emulparams/elf32m32c.sh: New file.
646
a3c2b96a
AM
6472005-07-14 Alan Modra <amodra@bigpond.net.au>
648
649 * ldlang.c (strip_excluded_output_sections): Don't call
650 bfd_gc_sections.
651 * emultempl/elf32.em (gld*_provide_bound_symbols): Move.
652 (gld*_provide_init_fini_syms): Move.
653 (gld*_before_allocation): Call the above from here..
654 (gld*_finish): ..not here. Call _bfd_elf_fix_excluded_sec_syms.
655 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
656 * emultempl/ppc64elf.em (ppc_finish): Likewise.
657
438361cd
NC
6582005-07-10 Ralf Corsepius <ralf.corsepius@rtems.org>
659
660 * configure.tgt: Remove sparc*-*-rtemsaout*, i[3-7]86-go32-rtems*,
661 i[3-7]86-*-rtemscoff*, hppa*-*-rtems*, mips*el-*-rtems*,
662 powerpcle-*-rtems*.
663
2c7fd14a
CF
6642005-07-09 Christopher Faylor <cgf@timesys.com>
665
666 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Enable runtime
667 relocation by default.
668 (compute_dll_image_base): Avoid linking into cygwin dll address space.
669
32124d5b
AM
6702005-07-08 Alan Modra <amodra@bigpond.net.au>
671
672 * ldlang.c (wild_sort): Formatting.
673 (strip_excluded_output_sections): Strip zero size sections here.
674 * emultempl/elf32.em (gld*_strip_empty_sections): Delete.
675 (gld*_finish): Don't call the above.
676 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
677 * emultempl/ppc64elf.em (ppc_finish): Likewise.
678
4cd5aacc 6792005-07-05 Paul Brook <paul@codesourcery.com>
9d8504b1
PB
680
681 * Makefile.am (ALL_EMULATIONS): Add eelf32ppcvxworks.o.
682 (eelf32ppcvxworks.o): Add dependencies.
683 * Makefile.in: Regenerate.
684 * configure.tgt: Add entry for powerpc-vxworks.
685 * emulparams/elf32-ppc.c: Mention elf32ppcvxworks.sh in comment.
686 * emulparams/elf32ppcvxworks.sh: New file.
687 * emultempl/ppc32elf.em (bfd_elf32_powerpc_vxworks_vec): Declare.
688 (is_ppc_elf32_vec): New function.
689 (ppc_after_open, ppc_before_allocation,
690 gld${EMULATION_NAME}_after_allocation): Use it.
691
35eb9fb6
NC
6922005-07-05 Peter S. Mazinger" <ps.m@gmx.net>
693
694 * emulparams/elf32bmip.sh (GENERATE_PIE_SCRIPT): Define as "yes".
695 * emulparams/elf32bmipn32-defs.sh (GENERATE_PIE_SCRIPT): Define as "yes".
696
5b5a4ec7
NC
6972005-07-04 Mike Frysinger <vapier@gentoo.org>
698
699 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Fix typo in
700 name.
701
80447b21
NC
7022005-07-04 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
703
704 * emulparams/m32relf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
705
711c0baa
AM
7062005-07-04 Aurelien Jarno <aurel32@debian.org>
707
708 * emultempl/elf32.em: Enable use of ld.so.conf for *-*-k*bsd-*.
709
c8c9c297
AM
7102005-07-01 Alan Modra <amodra@bigpond.net.au>
711
712 * scripttempl/elf.sc (.gcc_except_table): Don't KEEP.
713
b753922c
BE
7142005-06-30 Ben Elliston <bje@gnu.org>
715
716 * Makefile.am (check-DEJAGNU): Don't search for expect.
717 * Makefile.in: Regenerate.
718
c3298874
BE
7192005-06-30 Ben Elliston <bje@gnu.org>
720
721 * Makefile.am (EXPECT): Set to expect.
722 (RUNTEST): Likewise, set to runtest.
723 * Makefile.in: Regenerate.
724
a82644e2
NC
7252005-06-16 Alexander Klimov <alserkli@inbox.ru>
726
727 * emultempl/armelf.em: Add quotes to avoid a null test
728 expression.
729
e185dd51
DJ
7302005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
731
732 * ld.texinfo (Command Line Options): Add @item for --hash-size.
733
9d12f64c
AM
7342005-06-10 Alan Modra <amodra@bigpond.net.au>
735
736 * scripttempt/elf.sc (.bss): Align tail in a way that allows
737 empty section pruning.
738
502bdb00
JW
7392005-06-09 Steve Ellcey <sje@cup.hp.com>
740
741 * configure.in (AM_BINUTILS_WARNINGS): Add.
742 (BFD_NEED_DECLARATION) Replace with AC_CHECK_DECLS.
743 * config.in: Regenerate.
744 * configure: Regenerate.
745 * sysdep.h (NEED_DECLARATION_*): Replace with HAVE_DECL_*
746 * ldmain.c: Ditto.
747
dea2f0a8
AM
7482005-06-09 Alan Modra <amodra@bigpond.net.au>
749
750 * ldexp.c (fold_unary <ALIGN_K>): Revert last change.
751
e9ee469a
AM
7522005-06-09 Alan Modra <amodra@bigpond.net.au>
753
754 * ld.h (lang_phase_type): Move to..
755 * ldexp.h: ..here. Add lang_mark_phase_enum.
756 (node_type): Remove etree_undef and etree_unspec.
757 (exp_data_seg): Delete.
758 (struct ldexp_control, expld): New.
759 (invalid, exp_mark_used_section): Delete.
760 (exp_fold_tree, exp_get_vma, exp_get_value_int, exp_get_fill,
761 exp_get_abs_int): Update prototypes.
762 * ldexp.c (assigning_to_dot): Delete.
763 (expld): Define.
764 (make_abs): Operate directly on expld.result. Update all callers.
765 (new_abs): Likewise. Return void.
766 (new_rel_from_abs): Rename from new_rel_from_section.
767 (new_rel, new_rel_from_abs): Operate on expld.result and return void.
768 Update all callers.
769 (fold_unary): Operate on expld.result and return void. Remove
770 "current_section", "allocation_done", "dot", "dotp" and "mark_used"
771 params. Update all callers.
772 (fold_binary, fold_trinary, fold_name, exp_fold_tree_1): Likewise.
773 (fold_unary <ALIGN_K>): Ensure alignment is absolute.
774 (fold_unary <ABSOLUTE>): Use make_abs.
775 (fold_unary <DATA_SEGMENT_END>): Evaluate mark_phase as for
776 allocating_phase.
777 (fold_binary <DATA_SEGMENT_ALIGN, DATA_SEGMENT_RELRO_END, >): Ditto.
778 (fold_binary <'%','/'>): Don't error if marking.
779 (fold_name <SIZEOF_HEADERS>): Don't call bfd_sizeof_headers when
780 marking.
781 (fold_name <NAME>): Remove FIXME; -R is handled correctly. Don't
782 error when marking.
783 (fold_name <ADDR, LOADADDR, SIZEOF>): Don't set SEC_KEEP.
784 (exp_fold_tree_1): Don't error when marking.
785 (exp_fold_tree_1 <etree_rel>): Evaluate in all phases except first.
786 (exp_fold_tree_1 <etree_assign to dot>): Don't check for NULL
787 current section, instead check for NULL dotp.
788 (exp_fold_tree_1 <etree_provide>): Don't evaluate the assignment
789 source unless the symbol is referenced and undefined.
790 (exp_fold_tree): Remove "allocation_done" and "dot" params. Save
791 params to expld.
792 (exp_fold_tree_no_dot): Remove "current_section", "allocation_done
793 and "mark_used" params. Save params to expld. Update all callers.
794 (exp_assop): Do without temp var.
795 (exp_print_tree <etree_undef>): Delete code.
796 (exp_get_vma): Remove "allocation_done" param. Correct error return.
797 (exp_get_fill, exp_get_abs_int): Likewise.
798 (exp_get_value_int): Remove "allocation_done" param.
799 (exp_mark_used_section): Delete.
800 * ldgram.y (fill_exp): Update exp_get_fill call.
801 (origin_spec, length_spec): Update exp_get_vma call.
802 * ldlang.c (lang_init): Don't bother clearing lang_statement_iteration.
803 (lang_mark_used_section_1, lang_mark_used_section): Delete.
804 (strip_excluded_output_sections): Call one_lang_size_sections_pass in
805 marking mode. Merge old lang_mark_used_section code. Correct handling
806 of output sections with excluded input sections and data statements.
807 Don't drop non-zero sized sections. Don't zap os->bfd_section.
808 Do set SEC_EXCLUDE when appropriate.
809 (print_output_section_statement): Update for changed ldexp.c
810 interface.
811 (print_assignment, lang_size_sections_1): Likewise.
812 (lang_do_assignments_1, lang_enter_output_section_statement): Likewise.
813 (lang_new_phdr, lang_record_phdrs): Likewise.
814 (lang_size_sections): Likewise.
815 (insert_pad): Use following statement if it is a pad, rather than
816 creating a new one.
817 (lang_size_sections_1 <lang_output_section_statement_enum>): Do
818 process ignored output section to set vma and lma, but don't
819 update dot for these sections. Don't error if marking.
820 (lang_size_sections_1 <lang_assignment_statement_enum>): Don't
821 update dot for ignored sections.
822 (lang_size_sections_1 <lang_data_statement_enum>): Don't mark absolute
823 section with SEC_ALLOC.
824 (one_lang_size_sections_pass): New function.
825 (lang_size_sections): Remove first five params. Set expld.phase on
826 entry and exit. Use one_lang_size_sections_pass.
827 (lang_do_assignments): Remove all params. Update all callers.
828 (lang_reset_memory_regions): Clear os->processed for all output
829 section statements.
830 * ldlang.h (lang_do_assignments): Update prototype.
831 (lang_size_sections): Likewise.
832 (one_lang_size_sections_pass): Declare.
833 * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
834 lang_size_sections and lang_do_assignments calls.
835 * emultempl/elf32.em (layout_sections_again): Likewise.
836 * emultempl/ppc64elf.em (ppc_before_allocation): Use
837 one_lang_size_sections_pass.
838
b2be2013
AH
8392005-06-08 Aldy Hernandez <aldyh@redhat.com>
840
841 * emulparams/elf32ms1.sh: New.
842
a34e3ecb
EC
8432005-06-07 Eric Christopher <echristo@redhat.com>
844
845 * Makefile.am (eelf32ms1.c): Use tab.
846 * Makefile.in: Regenerate.
847
9e1f170f
AH
8482005-06-07 Aldy Hernandez <aldyh@redhat.com>
849 Michael Snyder <msnyder@redhat.com>
850 Stan Cox <scox@redhat.com>
851
852 * configure.tgt: Same.
853
854 * Makefile.am (ALL_EMULATIONS): Depend on eelf32ms1.o.
855 (eelf32ms1.c): Add eelf32ms1.c rule.
856
857 * Makefile.in: Regenerate.
858
b4f4e59f
AM
8592005-06-06 Alan Modra <amodra@bigpond.net.au>
860
861 * emultempl/ppc64elf.em (ppc_before_allocation): Always run
862 ppc64_elf_edit_opd.
863
18b79829
L
8642005-06-05 H.J. Lu <hongjiu.lu@intel.com>
865
866 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
867 section only if the symbol will be defined.
868
079f985c
L
8692005-06-04 H.J. Lu <hongjiu.lu@intel.com>
870
871 PR 992
872 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
873 section for etree_assign, etree_provide and etree_provided.
874 Call fold_binary on etree_binary.
875
876 * ldlang.c (lang_mark_used_section_1): Handle load base.
877
e1fffbe6
AM
8782005-06-03 Alan Modra <amodra@bigpond.net.au>
879
880 * ldmain.c (link_callbacks): Add einfo.
881 (add_archive_element): Use passed info, not link_info.
882 (constructor_callback): Likewise.
883 (reloc_overflow): Don't handle null bfd specially.
884 (reloc_dangerous, unattached_reloc): Likewise.
885 * ldmisc.c (vfinfo <B>): Print "ld generated" for null bfd.
886 (vfinfo <C, D, G>): Handle null bfd. Wrap comments.
887
408082ec
AM
8882005-06-02 Alan Modra <amodra@bigpond.net.au>
889
890 * ldexp.h (etree_value_type): Use "asection *" in place of
891 "struct lang_output_section_statement_struct *" for "section".
892 (exp_fold_tree): Likewise.
893 (exp_mark_used_section): Likewise.
894 * ldexp.c (new_rel, new_rel_from_section, fold_unary, fold_binary,
895 fold_trinary, fold_name, exp_fold_tree_1, exp_fold_tree,
896 exp_mark_used_section): Likewise for "current_section" param.
897 (make_abs, new_abs, exp_binop, exp_unop, exp_get_vma, exp_get_fill,
898 exp_get_abs_int): Adjust for above changes.
899 * ldlang.c (lang_mark_used_section_1, print_assignment,
900 lang_size_sections_1, lang_do_assignments_1): Likewise.
901 * ldexp.c (fold_name): Init entire result struct.
902
d0d3b2e8
MR
9032005-06-01 Maciej W. Rozycki <macro@linux-mips.org>
904
905 * emulparams/elf32btsmip.sh: Unset DATA_ADDR.
906
a359509e
ZW
9072005-05-31 Zack Weinberg <zack@codesourcery.com>
908
909 * ldlang.c (entry_symbol_default): New file-scope global.
910 (lang_finish): Use it, not a hardwired "start".
911 (lang_default_entry): Set it.
912 * ldlang.h: Declare lang_default_entry.
913 * emultempl/beos.em, emultempl/pe.em: Use lang_default_entry,
914 not lang_add_entry, to override default entry point symbol.
915
8d6d53d4
RH
9162005-05-29 Richard Henderson <rth@redhat.com>
917
918 * emulparams/elf64alpha.sh (PLT): New.
919 (TEXT_PLT): New.
920 * emultempl/alphaelf.em (disable_relaxation): New.
921 (limit_32bit): Rename from elf64alpha_32bit; update all users.
922 (elf64_alpha_use_secureplt): Declare.
923 (bfd_elf64_alpha_vec, bfd_elf64_alpha_freebsd_vec): Declare.
924 (alpha_after_open): New.
925 (alpha_before_allocation): New.
926 (OPTION_NO_RELAX, OPTION_SECUREPLT, OPTION_NO_SECUREPLT): New.
927 (PARSE_AND_LIST_LONGOPTS): Include them.
928 (PARSE_AND_LIST_OPTIONS): Likewise.
929 (PARSE_AND_LIST_ARGS_CASES): Likewise.
930 (LDEMUL_AFTER_OPEN, LDEMUL_BEFORE_ALLOCATION): New.
931 * scripttempl/elf.sc (TEXT_PLT): New.
932 (PLT): Use it.
933
f93e81d6
AS
9342005-05-27 Andreas Schwab <schwab@suse.de>
935
936 * configure.host (HOSTING_LIBS): Add libunwind.a if it exists.
937
61f8ebf2
AM
9382005-05-24 Alan Modra <amodra@bigpond.net.au>
939
940 * emultempl/ppc32elf.em (after_allocation): Don't call
941 ppc_elf_set_sdata_syms when relocatable.
942
8b803601
L
9432005-05-21 H.J. Lu <hongjiu.lu@intel.com>
944
945 * Makefile.am (ld.1): Revert the last 2 changes.
946 (info-recursive): Depend on ld.1.
947 * Makefile.in: Regenerated.
948
e366efef
L
9492005-05-21 H.J. Lu <hongjiu.lu@intel.com>
950
951 * Makefile.am (ld.1): Depend on "info" instead of
952 "configdoc.texi ldver.texi".
953 * Makefile.in: Regenerated.
954
abf32a89
L
9552005-05-21 H.J. Lu <hongjiu.lu@intel.com>
956
957 * Makefile.am (ld.1): Depend on "info".
958 * Makefile.in: Regenerated.
959
e3e71e27
ZW
9602005-05-19 Zack Weinberg <zack@codesourcery.com>
961
962 * Makefile.am: Have 'all' depend on 'info' and 'ld.1'.
963 * Makefile.in: Regenerate.
964
c19d1205
ZW
9652005-05-17 Zack Weinberg <zack@codesourcery.com>
966
967 * ld-arm/mixed-app.d: Adjust expected disassembly a little.
968
970c3dbc
DJ
9692005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
970
971 * Makefile.am (ldver.texi): Don't use $<.
972 * Makefile.in: Regenerated.
973
6e1b59d2
DJ
9742005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
975
976 * Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
977 $(srcdir) before $(BFDDIR)/doc.
978 * Makefile.in: Regenerated.
979
75ff4589
L
9802005-05-17 H.J. Lu <hongjiu.lu@intel.com>
981
982 PR 797
983 * ldexp.c (exp_fold_tree_1): Renamed from exp_fold_tree and
984 take take a bfd_boolean, mark_used. Ignore assert failure if
985 mark_used is TRUE.
986 (exp_fold_tree) Call exp_fold_tree_1 with mark_used == FALSE.
987 (exp_fold_tree_no_dot): Updated to take a bfd_boolean,
988 mark_used and pass down.
989 (fold_unary): Likewise.
990 (fold_binary): Likewise.
991 (fold_trinary): Likewise.
992 (exp_binop): Add FALSE to call to exp_fold_tree_no_dot.
993 (exp_trinop): Likewise.
994 (exp_unop): Likewise.
995 (exp_nameop): Likewise.
996 (exp_get_vma): Likewise.
997 (exp_get_fill): Likewise.
998 (exp_get_abs_int): Likewise.
999 (fold_name): Likewise. Set SEC_KEEP in output section flags.
1000 (exp_mark_used_section): New.
1001
1002 * ldexp.h (exp_mark_used_section): New.
1003
1004 * ldlang.c (lang_output_section_statement_lookup_1): Set the
1005 ignored field to FALSE.
1006 (lang_mark_used_section_1): New.
1007 (lang_mark_used_section): Call lang_mark_used_section_1.
1008 (strip_excluded_output_sections): Call lang_mark_used_section
1009 and check for unused sections.
1010 (lang_size_sections_1): Skip an output section if it should
1011 be ignored.
1012 (lang_do_assignments_1): Likewise.
1013 (lang_process): Don't call lang_mark_used_section here.
1014
1015 * ldlang.h (lang_output_section_statement_type): Change
1016 all_input_readonly to bitfield. Add ignored.
1017
25ba8e7b
NC
10182005-05-17 Lennert Buytenhek <buytenh@wantstofly.org>
1019 Peter S. Mazinger" <ps.m@gmx.net>
1020
c19d1205
ZW
1021 * emulparams/armelf_linux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
1022 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
25ba8e7b 1023
10dbd1f3
NC
10242005-05-17 Julian Brown <julian@codesourcery.com>
1025
1026 * ldlang.c (print_assignment): Do not rely upon a valid result
1027 having a section associated with it.
1028
3b83e13a
NC
10292005-05-17 Nick Clifton <nickc@redhat.com>
1030
1031 * ldlang.c (Scan_for_self_assignment): Check an assignment tree to
1032 see if the same value is being used on the rhs as on the lhs.
1033 (print_assignment): Call scan_for_self_assignment and if it
1034 returns true, do no display the result of the computation but
1035 instead just the final value of the symbol on the lhs.
1036 * ld.texinfo: Document this behaviour and provide an example of
1037 when it will happen.
1038
42ecbf5e
DJ
10392005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
1040
1041 * Makefile.am (AM_MAKEINFOFLAGS): Define.
1042 (TEXI2DVI): Define.
1043 (ldver.texi): Depend on distributed files instead of built files.
1044 (ld.info): Include $(srcdir) in the rule target. Remove actions.
1045 (ld.dvi): Remove actions.
1046 (MAINTAINERCLEANFILES): Add configdoc.texi.
1047 (CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in.
1048 (install-data-local): Renamed from install.
1049 (Makefile): Remove explicit dependency.
1050 * acinclude.m4: Remove obsolete code.
1051 * configure.in: Update AC_PREREQ. Remove extra $CONFIG_SHELL.
1052 * Makefile.in, aclocal.m4, config.in, configure: Regenerated.
1053
be2c2e39
BW
10542005-05-11 Bob Wilson <bob.wilson@acm.org>
1055
1056 * scripttempl/elfxtensa.sc: Sync up with elf.sc.
1057 * emulparams/elf32xtensa.sh (PLT, GOT): Define.
1058
0cf7d72c
AM
10592005-05-11 Alan Modra <amodra@bigpond.net.au>
1060
1061 * ldgram.y: Add SPECIAL token.
1062 (sect_constraint): Handle SPECIAL.
1063 * ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
1064 (map_input_to_output_sections): Likewise.
1065 * ldlex.l (SPECIAL): Define.
1066 * emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
1067 GOT, PLT, GOTPLT): Define.
1068 * emultempl/ppc32elf.em (old_plt, old_got): New static vars.
1069 (ppc_after_open): New function.
1070 (PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
1071 (PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
1072 (PARSE_AND_LIST_OPTIONS): Document them.
1073 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1074 (LDEMUL_AFTER_OPEN): Define.
1075 * scripttempl/elf.sc (PLT): Don't override existing define.
1076 (DATA_GOT, SDATA_GOT): Define and use to enable alternate got
1077 placement rather than using NO_SMALL_DATA. Emit GOTPLT for RELRO_NOW.
1078
4ca02259
AM
10792005-05-10 Alan Modra <amodra@bigpond.net.au>
1080
1081 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
1082 (DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
1083 (GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END. Place after
1084 DATA_SEGMENT_RELRO_END in script.
1085
baf6e97f
L
10862005-05-09 H.J. Lu <hongjiu.lu@intel.com>
1087
1088 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1089 Don't use a removed section.
1090
a6e1b90f
L
10912005-05-09 H.J. Lu <hongjiu.lu@intel.com>
1092
1093 * ldmain.c (reloc_overflow): Use output_bfd if the symbol
1094 is defined in the ABS section.
1095
c18bae34
L
10962005-05-06 H.J. Lu <hongjiu.lu@intel.com>
1097
1098 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
1099 Put back !link_info.relocatable.
1100
4ef24a2e
L
11012005-05-06 H.J. Lu <hongjiu.lu@intel.com>
1102
3f693ed5 1103 PR 878
4ef24a2e
L
1104 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
1105 Just check link_info.executable.
1106
e06fb9c3
NC
11072005-05-06 Nick Clifton <nickc@redhat.com>
1108
1109 * Update the address and phone number of the FSF organization in
1110 the GPL notices in the following files:
1111 aclocal.m4, deffile.h, deffilep.y, fdl.texi, ld.h, ldcref.c,
1112 ldctor.c, ldctor.h, ldemul.c, ldexp.c, ldexp.h, ldfile.c,
1113 ldfile.h, 20ldgram.y, ldint.texinfo, ldlang.c, ldlang.h, ldlex.h,
1114 ldlex.l, ldmain.c, ldmain.h, ldmisc.c, ldmisc.h, ldver.c, ldver.h,
1115 ldwrite.c, ldwrite.h, lexsup.c, mri.c, mri.h, pe-dll.c, pe-dll.h,
1116 sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
1117 emultempl/armcoff.em, emultempl/armelf.em, emultempl/beos.em,
1118 emultempl/crxelf.em, emultempl/elf32.em, emultempl/generic.em,
1119 emultempl/gld960.em, emultempl/gld960c.em, emultempl/hppaelf.em,
1120 emultempl/ia64elf.em, emultempl/irix.em, emultempl/linux.em,
1121 emultempl/lnk960.em, emultempl/m68hc1xelf.em,
1122 emultempl/m68kcoff.em, emultempl/m68kelf.em,
1123 emultempl/mipsecoff.em, emultempl/mmix-elfnmmo.em,
1124 emultempl/mmixelf.em, emultempl/mmo.em, emultempl/needrelax.em,
1125 emultempl/pe.em, emultempl/ppc32elf.em, emultempl/ppc64elf.em,
1126 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em,
1127 emultempl/vanilla.em, emultempl/xtensaelf.em
1128
01d9ad14
L
11292005-05-05 H.J. Lu <hongjiu.lu@intel.com>
1130
1131 * scripttempl/elf.sc: Document the usage of __bss_start.
1132
eac338cf
PB
11332005-05-05 Paul Brook <paul@codesourcery.com>
1134
1135 * Makefile.am: Add eelf_i386_vxworks.
1136 * Makefile.in: Regenerate.
1137 * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
1138 * emulparams/elf_i386_vxworks.sh: New file.
1139 * emulparams/vxworks.sh: New file.
1140 * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
1141
f652615e
L
11422005-05-04 H.J. Lu <hongjiu.lu@intel.com>
1143
1144 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1145 Call _bfd_elf_provide_section_bound_symbols.
1146
8423293d
AM
11472005-05-04 Alan Modra <amodra@bigpond.net.au>
1148
1149 * ldemul.c: Include bfdlink.h.
1150 (ldemul_before_allocation): Assume before_allocation is non-zero.
1151 (before_allocation_default): Call strip_excluded_output_sections.
1152 * ldlang.c (stripped_excluded_sections): New variable.
1153 (lang_add_section): Build input section list for each output
1154 section, attached via map_head and map_tail pointers.
1155 (strip_excluded_output_sections): Make global. Traverse the
1156 input section lists to find which output sections can go. Clear
1157 link_order pointers and set stripped_excluded_sections.
1158 (lang_process): Call strip_excluded_output_sections.
1159 * ldlang.h (strip_excluded_output_sections): Declare.
1160 * ldwrite.c: Update throuhout for link_order_head -> map_head change.
1161 * emultempl/aix.em (before_allocation): Call
1162 strip_excluded_output_sections.
1163 * emultempl/armcoff.em (before_allocation): Likewise.
1164 * emultempl/beos.em (before_allocation): Likewise.
1165 * emultempl/linux.em (before_allocation): Likewise.
1166 * emultempl/pe.em (before_allocation): Likewise.
1167 * emultempl/sunos.em (before_allocation): Likewise.
1168 * emultempl/elf32.em (before_allocation): Likewise. Call
1169 bfd_elf_size_dynsym_hash_dynstr too.
1170 * emultempl/lnk960.em (lnk960_before_allocation): Delete.
1171 (ld_lnk960): Use before_allocation_default.
1172
5daa8fe7
L
11732005-05-02 H.J. Lu <hongjiu.lu@intel.com>
1174
1175 * emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
1176 Updated for bfd_section_list_remove change.
1177 * ldlang.c (lang_insert_orphan): Likewise.
1178 (strip_excluded_output_sections): Likewise.
1179 (sort_sections_by_lma): New.
1180 (lang_check_section_addresses): Sort the sections before
1181 checking addresses.
1182
009b6a7a
DJ
11832005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
1184
1185 * configure.tgt: Add h8300*-*-rtemscoff.
1186 Switch h8300*-*-rtems* to elf.
1187
279e75dc
BE
11882005-04-29 Ben Elliston <bje@au.ibm.com>
1189
1190 * ldgram.y (lang_memory_region_type): Make static.
1191 (ldgram_want_filename): Likewise.
1192 * ldemul.c (ld_emulation): Make static.
1193 * ldfile.h (ldfile_find_command_file): Remove extern.
1194 * ldfile.c (ldfile_find_command_file): Make static.
1195 * ldlang.h (unique_section_list): Remove extern declaration.
1196 * ldlang.c (unique_section_list): Make static.
1197 * mri.h (symbol_truncate): Remove extern declaration.
1198 * mri.c (symbol_truncate): Make static.
1199 (order, only_load, address, alias): Likewise.
1200 (alignment, subalignment): Likewise.
1201
4a2afbc1
L
12022005-04-27 H.J. Lu <hongjiu.lu@intel.com>
1203
1204 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1205 Use the first SEC_ALLOC section which isn't SEC_READONLY or the
1206 last SEC_ALLOC section if such a section doesn't exist.
1207
fd9719b1
MK
12082005-04-24 Mark Kettenis <kettenis@gnu.org>
1209
1210 * configure.host: Add *-*-openbsd support.
1211
33bfe774
JB
12122005-04-15 Julian Brown <julian@codesourcery.com>
1213
1214 * ld.texinfo: Document --use-blx.
1215 * emultempl/armelf.em (use_blx): New variable.
1216 (arm_elf_create_output_section_statements): Communicate value of
1217 use_blx to bfd.
1218 (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
1219 (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
1220 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
1221
9e9b66a9
AM
12222005-04-14 Alan Modra <amodra@bigpond.net.au>
1223
1224 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
1225 * configure.in: Include ../bfd/warning.m4 contents.
1226 * Makefile.in: Regenerate.
1227 * configure: Regenerate.
1228
ceae3e33
AM
12292005-04-12 Alan Modra <amodra@bigpond.net.au>
1230
1231 * Makefile.am: Run "make dep-am".
1232 (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
1233 * Makefile.in: Regenerate.
1234 * config.in: Regenerate.
1235
7cedef86
AM
12362005-04-11 Alan Modra <amodra@bigpond.net.au>
1237
1238 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
1239 as_needed libs that were not needed.
1240 (gld${EMULATION_NAME}_check_needed): Likewise.
1241
187ffe95
NC
12422005-04-07 Nick Clifton <nickc@redhat.com>
1243
1244 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
0cf7d72c 1245 ldfile.h can use the lang_input_statement type.
187ffe95 1246
72223188
JJ
12472005-04-06 Jakub Jelinek <jakub@redhat.com>
1248
1249 * ldlang.c: Formatting.
1250 (walk_wild_consider_section): Remember return value from wildcardp.
1251 (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
1252 (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
1253
12542005-04-06 Robert O'Callahan <rocallahan@novell.com>
1255
1256 * ld.h (lean_section_userdata_type): Remove.
1257 (fat_section_userdata_type): Remove file field.
1258 (SECTION_USERDATA_SIZE): Remove.
1259 * ldlang.c (init_os): Eliminate initialization of unused
1260 lean_section_userdata_type.
1261
1262 * ldlang.h (callback_t, walk_wild_section_handler_t): New
1263 typedefs.
1264 (struct lang_wild_statement_struct): Add walk_wild_section_handler
1265 and handler_data fields.
1266 * ldlang.c (callback_t): Removed.
1267 (walk_wild_consider_section, walk_wild_section_general,
1268 section_iterator_callback, find_section, is_simple_wild,
1269 match_simple_wild, walk_wild_section_specs1_wild0,
1270 walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
1271 walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
1272 wild_spec_can_overlap, analyze_walk_wild_section_handler): New
1273 functions.
1274 (lang_add_wild): Call analyze_walk_wild_section_handler.
1275 (walk_wild_section): Renamed to walk_wild_section_general and
1276 created a wrapper function.
1277 (section_iterator_callback_data): New typedef.
1278
34875e64
NC
12792005-04-04 Nick Clifton <nickc@redhat.com>
1280
1281 * configure.in: Add a check for <unistd.h> providing a prototype
1282 for getopt() which is compatible with the one in
1283 include/getopt.h. If so then define HAVE_DECL_GETOPT.
1284 * configure: Regenerate.
1285 * config.in (HAVE_DECL_GETOPT): Add.
1286 * ldemul.c: Include config.h
1287 * lexsup.c: Likewise.
1288 * emultempl/elf32.sc: Likewise.
1289
deb04cdb
AM
12902005-03-29 Alan Modra <amodra@bigpond.net.au>
1291
1292 * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
1293 New function, extracted from static void gld${EMULATION_NAME}_finish.
1294 (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
1295 (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
1296 * emultempl/ppc64elf.em: Revert last change.
1297 (ppc_layout_sections_again): Use
1298 gld${EMULATION_NAME}_layout_sections_again.
1299 (ppc_finish): Don't call gld${EMULATION_NAME}_finish. Instead call
1300 gld${EMULATION_NAME}_strip_empty_sections and
1301 gld${EMULATION_NAME}_provide_init_fini_syms.
1302 * emultempl/hppaelf.em: Similarly.
1303
8b4e5e28
AM
13042005-03-29 Alan Modra <amodra@bigpond.net.au>
1305
1306 * emultempl/ppc64elf.em (need_laying_out): Delete. Remove all refs.
1307 (ppc_finish): Don't call bfd_elf_discard_info.
1308 * emultempl/hppaelf.em: Similarly.
1309
510a939b
NC
13102005-03-24 Nick Clifton <nickc@redhat.com>
1311
1312 * po/fr.po: Updated French translation.
1313
ed84e695
NC
13142005-03-23 Mike Frysinger <vapier@gentoo.org>
1315 Nick Clifton <nickc@redhat.com>
1316
1317 * configure.host: Accept any C library to accompany a GNU Linux
1318 implementation, not just the GNU C library.
1319 * configure.tgt: Likewise.
1320 * emultempl/elf32.em: Likewise.
deb04cdb 1321
81e1b023
L
13222005-03-22 H.J. Lu <hongjiu.lu@intel.com>
1323
1324 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
1325 (gld${EMULATION_NAME}_finish): Call
1326 gld${EMULATION_NAME}_provide_bound_symbols to provide
1327 __preinit_array_start, __preinit_array_end, __init_array_start,
1328 __init_array_end, __fini_array_start and __fini_array_end.
1329
1330 * scripttempl/elf.sc: Don't provide __preinit_array_start,
1331 __preinit_array_end, __init_array_start, __init_array_end,
1332 __fini_array_start nor __fini_array_end.
1333
11d2f718
AM
13342005-03-23 Alan Modra <amodra@bigpond.net.au>
1335
1336 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
1337 SEC_EXCLUDE on .gnu.warning sections.
1338
644285ef
AM
13392005-03-22 Alan Modra <amodra@bigpond.net.au>
1340
1341 * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
1342
c9a2f333
AM
13432005-03-21 Alan Modra <amodra@bigpond.net.au>
1344
1345 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
1346 function.
1347 (LDEMUL_AFTER_ALLOCATION): Define.
1348
b1ab9777
AM
13492005-03-21 Alan Modra <amodra@bigpond.net.au>
1350
1351 * emultempl/ppc64elf.em (ppc_finish): Rename from
1352 gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
1353 (LDEMUL_FINISH): Update.
1354 * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
1355 * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
1356
2a2a7c94
JB
13572005-03-18 Julian Brown <julian@codesourcery.com>
1358
1359 * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
1360 .rel.fini_array.
1361 (.rela.dyn): Add .rela.init_array, .rela.fini_array.
1362 (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
1363
98720c64
L
13642005-03-18 H.J. Lu <hongjiu.lu@intel.com>
1365
1366 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
1367 bfd_section when removing unused empty output sections for
1368 non-relocatable link.
1369
41c7ba7c
AM
13702005-03-19 Alan Modra <amodra@bigpond.net.au>
1371
1372 * ldlang.c (lang_insert_orphan): Use old section_tail rather than
1373 traversing the bfd section list to find pointer to new section.
1374
0fb53118
AM
13752005-03-18 Alan Modra <amodra@bigpond.net.au>
1376
1377 * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
1378 input sections into .sdata and .sbss output respectively.
1379
de7f8cc8
BW
13802005-03-16 David Heine <dlheine@tensilica.com>
1381 Bob Wilson <bob.wilson@acm.org>
1382
1383 * ldlang.c (IGNORE_SECTION): Remove check for zero size.
1384 (lang_check_section_addresses): Ignore zero size sections here.
1385
57316bff
L
13862005-03-16 H.J. Lu <hongjiu.lu@intel.com>
1387
1388 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
1389 unused empty output sections for non-relocatable link.
1390
1391 * ld.h (args_type): Remove gc_sections.
1392
1393 * ldlang.c (lang_mark_used_section): New.
1394 (lang_gc_sections): Use link_info.gc_sections instead of
1395 command_line.gc_sections.
1396 * ldmain.c (main): Likewise.
1397 * lexsup.c (parse_args): Likewise.
1398 * ldlang.c (lang_process): Call lang_mark_used_section.
1399
1400 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
1401
1ad12f97
NC
14022005-03-16 Nick Clifton <nickc@redhat.com>
1403 Ben Elliston <bje@au.ibm.com>
1404
569acd2c 1405 * configure.in (werror): New switch: Add -Werror to the
1ad12f97 1406 compiler command line. Enabled by default. Disable via
569acd2c 1407 --disable-werror.
1ad12f97
NC
1408 * configure: Regenerate.
1409
cb2d1ef2
AM
14102005-03-16 Alan Modra <amodra@bigpond.net.au>
1411
1412 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
1413 (OTHER_RELRO_SECTIONS): Set this instead.
1414
957d91c1
NC
14152005-03-15 Nick Clifton <nickc@redhat.com>
1416
1417 * NEWS: Add cutoff for changes in 2.16 release.
1418
34723071
NC
14192005-03-15 Mikkel Krautz <krautz@gmail.com>
1420
1421 * configure.tgt (x86_64-elf): Add target.
1422
729ae8d2
AM
14232005-03-15 Alan Modra <amodra@bigpond.net.au>
1424
1425 * po/es.po: Commit new Spanish translation.
1426
8b3d8fa8
AM
14272005-03-14 Alan Modra <amodra@bigpond.net.au>
1428
1429 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
1430 Tidy etree_assert case.
1431
882cb63e
AM
14322005-03-14 Alan Modra <amodra@bigpond.net.au>
1433
1434 * po/tr.po: Commit new Turkish translation.
1435
61c84b48
DJ
14362005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
1437
1438 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
1439 * Makefile.in: Regenerated.
1440 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
1441
41c9e29d
NC
14422005-03-07 Nick Clifton <nickc@redhat.com>
1443
1444 * po/fr.po: Updated translation.
1445
06647dfd
AM
14462005-03-05 Alan Modra <amodra@bigpond.net.au>
1447
1448 * po/ld.pot: Regenerate.
1449
bb14f524
JB
14502005-03-02 Jan Beulich <jbeulich@novell.com>
1451
1452 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
1453 * pe-dll.c (pe_dll_generate_implib): Likewise.
1454
0ef622cb
BE
14552005-02-24 Ben Elliston <bje@au.ibm.com>
1456
1457 * ldfile.c: Remove GNU960 conditional code.
1458 * emultempl/gld960.em: Likewise.
1459 * emultempl/gld960c.em: Likewise.
1460 * emultempl/lnk960.em: Likewise.
1461
f3f4bcca
NC
14622005-02-24 Nick Clifton <nickc@redhat.com>
1463
1464 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
1465 empty string from calls to concat.
1466
14672005-02-23 Nick Clifton <nickc@redhat.com>
1468
1469 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
1470 arguments passed to concat() with a NULL.
1471
1472 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
1473 define types needed by ldfile.h
1474
47639182
AM
14752005-02-23 Alan Modra <amodra@bigpond.net.au>
1476
1477 * pe-dll.c: Warning fixes.
1478 * emultempl/sunos.em: Likewise.
1479
ace66bb2
DJ
14802005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
1481
1482 * ldlang.c (section_already_linked): Don't call
1483 bfd_section_already_linked for dynamic objects.
1484
5718918d
AM
14852005-02-22 Alan Modra <amodra@bigpond.net.au>
1486
1487 * ldexp.c: Warning fixes.
1488 * ldwrite.c: Likewise.
1489 * emultempl/elf32.em: Likewise.
1490
ebe372c1
L
14912005-02-21 H.J. Lu <hongjiu.lu@intel.com>
1492
1493 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
1494 tic54x input only.
1495 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
1496 and ECOFF output only.
1497
0ca2f5d5
AM
14982005-02-21 Alan Modra <amodra@bigpond.net.au>
1499
1500 * config.in: Regenerate.
1501 * configure: Regenerate.
1502
fbbb9ac5
ZW
15032005-02-17 Zack Weinberg <zack@codesourcery.com>
1504
1505 * ldexp.c (assigning_to_dot): New global flag.
1506 (fold_name): If assigning_to_dot is true, object immediately to
1507 an undefined symbol.
1508 (exp_fold_tree): Set and clear assigning_to_dot around the
1509 recursive call to exp_fold_tree to process the right-hand side
1510 of an assignment to the location counter.
1511
c68dac40
PB
15122005-02-17 Paul Brook <paul@codesourcery.com>
1513
1514 * scripttempl/armbpabi.sc: Add dummy name to version block.
1515
20c2cbe3
AM
15162005-02-17 Alan Modra <amodra@bigpond.net.au>
1517
1518 * ldexp.c (new_abs): Init new.str.
1519
0b48acfe
MM
15202005-02-15 Mark Mitchell <mark@codesourcery.com>
1521
1522 * configure.in (AC_CHECK_FUNCS): Add glob.
1523 * configure: Regenerated.
1524 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
1525 not defined.
1526 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
1527 if HAVE_GLOB is not defined.
fbbb9ac5 1528
ff925e69
KK
15292005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1530
1531 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
1532 lib_path if NATIVE is yes.
1533
92b7a70f
AM
15342005-02-16 Alan Modra <amodra@bigpond.net.au>
1535
1536 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
1537 an error creating fake bfd fatal.
1538 (ppc_before_allocation): Continue on after errors.
1539 (gld${EMULATION_NAME}_finish): Likewise.
1540
297ba367
NC
15412005-02-15 Nick Clifton <nickc@redhat.com>
1542
1543 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
1544 not declared. It is not used and its presence causes a compile
1545 time warning.
fbbb9ac5 1546
9eabd475
ZW
15472005-02-11 Zack Weinberg <zack@codesourcery.com>
1548
1549 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
1550 If st.st_ino is zero, do not treat the library as a duplicate.
1551
d457dcf6
JJ
15522005-02-10 Jakub Jelinek <jakub@redhat.com>
1553
1554 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1555 Set BFD_LINKER_CREATED on the stubs bfd.
1556 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
1557 Likewise.
1558
4e5db43b
MM
15592005-02-08 Mark Mitchell <mark@codesourcery.com>
1560
1561 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
9eabd475 1562 local.
4e5db43b
MM
1563 (Image$$ER_RO$$Base): Define whenever RELOCATING.
1564 (Image$$ER_RO$$Limit): Likewise.
1565 (SHT$$INIT_ARRAY$$Base): Likewise.
1566 (SHT$$INIT_ARRAY$$Limit): Likeise.
1567
4297f9f1
BE
15682005-02-10 Ben Elliston <bje@au.ibm.com>
1569
1570 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
1571
1c7c5e5b
RS
15722005-02-08 Richard Sandiford <rsandifo@redhat.com>
1573
1574 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
1575 to include o32 and n64 emulations.
1576 (mips64*-*-linux-gnu*): Likewise.
1577
300475fe
HPN
15782005-02-08 Hans-Peter Nilsson <hp@axis.com>
1579
1580 * ldmain.c (warning_callback, warning_find_reloc): Prepend
1581 "warning: " to warning messages.
1582
4ea42fb7
AM
15832005-02-04 Alan Modra <amodra@bigpond.net.au>
1584
1585 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
1586 look up symbol for etree_provide here.
1587
161f49a3
DJ
15882005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
1589
1590 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
1591
73ae6183
NC
15922005-02-01 Edward Welbourne <eddy@opera.com>
1593 Nick Clifton <nickc@redhat.com>
1594
1595 * ld.texinfo (Source Code Reference): New node describing how to
1596 access linker script defined variables from source code.
1597
77cfaee6
AM
15982005-02-01 Alan Modra <amodra@bigpond.net.au>
1599
1600 * ld.texinfo: Clarify --as-needed operation.
1601
c46f8c51
AC
16022005-01-31 Andrew Cagney <cagney@gnu.org>
1603
1604 * configure: Regenerate to track ../gettext.m4.
1605
d342277e
NC
16062005-01-31 Nick Clifton <nickc@redhat.com>
1607
1608 * ldver.c (ldversion): Bump reported copyright date to 2005.
1609
d6486796
NC
16102005-01-31 Nick Clifton <nickc@redhat.com>
1611
1612 * configure.tgt: Remove obsolete targets m68k-lynxos and
1613 sparc-lynxos.
1614
319850b4
JB
16152005-01-28 Julian Brown <julian@codesourcery.com>
1616
1617 * emultempl/armelf.em (fix_v4bx): New variable.
1618 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
1619 value to bfd.
1620 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
1621 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
1622 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
9eabd475 1623 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
319850b4
JB
1624 * NEWS: Mention --fix-v4bx.
1625 * ld.texinfo: Document --fix-v4bx.
1626
dc4c9c19
MM
16272005-01-25 Mark Mitchell <mark@codesourcery.com>
1628
1629 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
1630 as to include .ARM.exidx$${Base,Limit}.
1631 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
1632 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
1633 Put .init_array, .fini_array, etc. into the read-only data
9eabd475
ZW
1634 segment.
1635
7e9f0867
AM
16362005-01-25 Alan Modra <amodra@bigpond.net.au>
1637
1638 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
1639 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
1640 only needed by an as-needed lib that didn't get linked.
1641
7e69709c
AM
16422005-01-23 Alan Modra <amodra@bigpond.net.au>
1643
1644 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
1645 __DTOR_LIST__ description.
1646
b5666f2f
AM
16472005-01-23 Alan Modra <amodra@bigpond.net.au>
1648
1649 * ld.texinfo (Location Counter <dot outside sections>): Document
1650 effects of orphan section placement, and ". = ." workaround.
1651 * Makefile.in: Regenerate.
1652
4e25343c
RS
16532005-01-22 Richard Sandiford <rsandifo@redhat.com>
1654
1655 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
1656 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
1657
b717d30e
JJ
16582005-01-21 Jakub Jelinek <jakub@redhat.com>
1659
1660 * ldgram.y (AS_NEEDED): New token.
1661 (input_list): Handle AS_NEEDED ( input_list ).
1662 * ldlex.l (AS_NEEDED): Add.
1663 * ld.texinfo: Document AS_NEEDED ().
1664 * NEWS: Mention AS_NEEDED ().
1665
7a64f7b8
BE
16662005-01-21 Ben Elliston <bje@au.ibm.com>
1667
1668 * ldlang.c (lang_reasonable_defaults): Remove.
1669 (lang_process): Don't call lang_reasonable_defaults.
1670
1671 * ldexp.c (exp_assop): Remove #if 0'd code.
1672 (exp_print_tree): Likewise.
1673 * ldlang.c (lang_memory_region_lookup): Likewise.
1674 (open_output): Likewise.
1675 (lang_do_assignments_1): Likewise.
1676 (lang_place_orphans): Likewise.
1677 (lang_enter_output_section_statement): Likewise.
1678 (lang_reasonable_defaults): Likewise.
1679 * ldlang.h (struct lang_input_statement_struct): Likewise.
1680 * mri.c (mri_draw_tree): Likewise.
1681 (mri_load): Likewise.
1682 * pe-dll.c (generate_reloc): Likewise.
1683 (make_import_fixup_entry): Likewise.
1684 (pe_as16): Likewise.
1685 * emultempl/beos.em (set_pe_subsystem): Likewise.
1686 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
1687 * emultempl/pe.em: Likewise.
1688 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
1689
a154a8ad
MM
16902005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1691
1692 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
1693 (earmelfb_linux_eabi.c): New target.
1694 * Makefile.in: Regenerated.
1695 * configure.tgt (arm*b-*-linux-gnueabi): New target.
1696 * emulparams/armelfb_linux_eabi.sh: New file.
1697
9c183183
AM
16982005-01-20 Nick Hudson <skrll@netbsd.org>
1699
1700 PR ld/676
1701 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1702 Handle bfd_elf32_hppa_nbsd_vec.
1703
e2243057
RS
17042005-01-19 Richard Sandiford <rsandifo@redhat.com>
1705
1706 * ldmain.h (ld_sysroot): Change type to a constant string.
1707 * ldmain.c (ld_sysroot): Likewise.
1708 (get_relative_sysroot, get_sysroot): New functions, adding command-line
1709 support for changing the sysroot.
1710 (main): Call the new functions.
1711 * lexsup.c (OPTION_SYSROOT): New.
1712 (ld_options): Add --sysroot.
1713 (parse_args): Add a dummy handler for it.
1714 * ld.texinfo (--sysroot): Document.
1715 * NEWS: Mention the new --sysroot option.
1716
1449d79b
AM
17172005-01-18 Alan Modra <amodra@bigpond.net.au>
1718
1719 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
1720 (lang_place_orphans): Don't abort on just_syms_flag, instead call
1721 bfd_link_just_syms.
1722
a880c748
DS
17232005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
1724
1725 * defilep.y (def_name, def_library): Combine into...
1726 (def_image_name): New function. Strip name to basename,
1727 with warning.
1728
07baa8ee
MK
17292005-01-12 Mark Kettenis <kettenis@gnu.org>
1730
1731 * configure.in: Be sure to invoke config.sub using the shell.
1732 * configure: Regenerate.
1733
e9b181b8
AM
17342005-01-11 Alan Modra <amodra@bigpond.net.au>
1735
1736 * configure.host: Correct sed patterns for last change.
1737
59ef2528
NC
17382005-01-10 Nick Clifton <nickc@redhat.com>
1739
1740 PR binutils/609
1741 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
1742 to determine whether config.make_executable should be set to FALSE in
1743 conjunction with config.fatal_warnings.
1744 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
1745 (einfo): Pass TRUE as the extra argument.
1746
71a2d53a
NC
17472005-01-10 Greg Schaffer <gschafer@zip.com.au>
1748
1749 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
1750 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
1751 (ia64-*-aix): Delete - this target is obsolete, and would be
1752 broken by this patch.
1753
d6d0b336
EB
17542005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1755
1756 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
1757 (sparc64-sun-solaris2*): New host.
1758
4e7fd91e
PB
17592005-01-06 Paul Brook <paul@codesourcery.com>
1760
1761 * Makefie.am: Add earmelf_vxworks.
1762 * Makefile.in: Regenerate.
1763 * configure.tgt: Make arm-*-vxworks a separate case.
1764 * emulparams/armelf_vxworks.sh: New function.
1765
4c52953f
AM
17662005-01-06 Alan Modra <amodra@bigpond.net.au>
1767
1768 * emultempl/ppc64elf.em (no_multi_toc): New var.
1769 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
1770 (OPTION_NO_MULTI_TOC): Define.
1771 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
1772 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
1773
98d87ee7
NC
17742005-01-05 Nick Clifton <nickc@redhat.com>
1775
1776 PR binutils/614
1777 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
4c52953f 1778 Standard's specification for parsable error messages.
98d87ee7 1779
5f81b918
PB
17802005-01-04 Paul Brook <paul@codesourcery.com>
1781
1782 * Makefile.am: Correct dependency for earmsymbian.c.
1783 * Makefile.in: Regenerate.
1784
2af59bab
DS
17852004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
1786
1787 * emultempl/pe.em (set_pe_subsystem): Change second arg to
1788 lang_add_entry to FALSE.
1789
c38f024c
NC
17902004-12-23 Nick Clifton <nickc@redhat.com>
1791
1792 PR 600
1793 * emulparams/shelf.sh (.stack): Increase stack start address to
1794 0x300000.
1795
550bdea6
NC
17962004-12-20 Nick Clifton <nickc@redhat.com>
1797
1798 * ldmain.c (main): Issue an error message if -static and -shared
1799 are used together.
1800
e3070fef
JJ
18012004-12-17 Jakub Jelinek <jakub@redhat.com>
1802
1803 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
1804 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
1805 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
1806 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
1807 PT_GNU_RELRO segment end.
1808
2fbd2a87
NC
18092004-12-14 P.J. Darcy <darcypj@us.ibm.com>
1810
1811 * configure.tgt: Add s390x-ibm-tpf support.
1812
f2763b01
NC
18132004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
1814
1815 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
1816 BFD.
1817
cb9faf63
BE
18182004-12-07 Ben Elliston <bje@gnu.org>
1819
1820 * ldemul.h: Forward declare struct option.
1821
02f80eef
DS
18222004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
1823
1824 * scripttempl/pe.sc (.data): Add .jcr subsection.
1825
dea514f5
PB
18262004-11-30 Paul Brook <paul@codesourcery.com>
1827
1828 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
1829
32118081
NC
18302004-11-30 Tero Niemela <tero_niemela@yahoo.com>
1831
1832 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
1833 * Makefile.in: Regenerate.
1834
33f362e1
NC
18352004-11-26 Melissa Mears <asterisk@graces.dricas.com>
1836
1837 * emultempl/pe.em: Add --subsystem:xbox as well as
1838 --subsystem:%d.
1839 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
1840 and numeric subsystems.
1841
3eda52aa
AM
18422004-11-24 Alan Modra <amodra@bigpond.net.au>
1843
1844 * ldexp.c (fold_name): Correct PR 338 fix.
1845
6b3221b4
MM
18462004-11-19 Mark Mitchell <mark@codesourcery.com>
1847
1848 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
1849 (earmelf_linux_eabi.c): New target.
1850 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
1851 * emulparams/armelf_linux_eabi.sh: New file.
1852 * Makefile.in: Regenerated.
1853
9cd6d51a
NC
18542004-11-19 Nick Clifton <nickc@redhat.com>
1855
1856 PR 518
1857 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
1858 LENGTH fields in the MEMORY command, to explicitly state that
1859 symbols cannot be used in their expressions.
1860
3ec57632
NC
18612004-11-19 Jon Beniston <jon@beniston.com>
1862
1863 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
1864 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
4c52953f 1865 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
3ec57632
NC
1866 which return the length and origin of a memory.
1867 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
1868 * NEWS: Mention support for ORIGIN and LENGTH operators.
1869
b7693d02
DJ
18702004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
1871
1872 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
1873 a dynamic object for stubs.
1874
fc0e6df6
PB
18752004-11-04 Paul Brook <paul@codesourcery.com>
1876
1877 * ld.texinfo: Document --default-imported-symver.
1878 * ldmain.c (main): Set link_info.default_imported_symver.
1879 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
1880 (ld_options): Add --default-imported-symver.
1881 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
1882
7499d566
NC
18832004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
1884 Vineet Sharma <vineets@noida.hcltech.com>
1885
1886 * Makefile.am: Add entries for new maxq-coff target.
1887 * Makefile.in: Regenerate.
1888 * configure.tgt: Add support for maxq.
1889 * emulparams/maxqcoff.sh: New File.
1890 * scripttempl/maxqcoff.sc: New linker script for target maxq.
1891 * NEWS: Mention the new target.
1892
7f266840
DJ
18932004-11-04 Daniel Jacobowitz <dan@debian.org>
1894
1895 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
1896 (earmelf_oabi.c): Remove rule.
1897 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
1898 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
1899 * Makefile.in: Regenerated.
1900
a0055007
HPN
19012004-11-04 Hans-Peter Nilsson <hp@axis.com>
1902
1903 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
1904 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
1905 (FINI_START): Ditto.
1906 (INIT_END): Remove emitted "jump [sp+]".
1907 (FINI_END): Ditto.
1908
c5614fa4
AM
19092004-11-04 Alan Modra <amodra@bigpond.net.au>
1910
1911 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
1912 (no_opd_opt, no_toc_opt): New static vars.
1913 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
1914 ppc64_elf_edit_toc.
1915 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
1916 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
1917 (PARSE_AND_LIST_OPTIONS): Describe new options.
1918 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1919
7a5df8d0
NC
19202004-10-27 Nick Clifton <nickc@redhat.com>
1921
1922 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
1923 parameter to invocation of lang_section_start.
1924 * emultempl/aix.em (_handle_option): Likewise.
c5614fa4 1925
7a5df8d0
NC
1926 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
1927 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
1928 * Makefile.in: Regenerate.
1929
6f372e19
MM
19302004-10-26 Mark Mitchell <mark@codesourcery.com>
1931
1932 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
1933 __exidx_{start,end} when not relocating.
1934
ba916c8a
MM
19352004-10-25 Mark Mitchell <mark@codesourcery.com>
1936
1937 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
1938 * ldexp.h (segment_type): New type.
1939 (segments): New variable.
1940 * ldexp.c (segments): New variable.
1941 (exp_print_token): Handle SEGMENT_START.
1942 (fold_binary): Likewise.
1943 * ldgram.y (SEGMENT_START): Declare it as a token.
1944 (exp): Handle SEGMENT_START.
1945 * ldlang.h (lang_address_statement_type): Add segment field.
1946 (lang_section_start): Change prototype.
1947 * ldlang.c (map_input_to_output_sections): Do not process section
1948 assignments if a corresponding SEGMENT_START has already been
1949 seen.
1950 (lang_section_start): Add segment parameter.
1951 * ldlex.l (SEGMENT_START): Add it.
1952 * lexsup.c (seg_segment_start): New function.
1953 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
1954 * ld.texinfo (SEGMENT_START): Document it.
1955 * emulparams/armsymbian.sh (EMBEDDED): Set it.
1956 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
1957 base addresses. Do not map relocations.
1958 * NEWS: Mention SEGMENT_START.
1959
3e3b46e5
PB
19602004-10-26 Paul Brook <paul@codesourcery.com>
1961
1962 * ld.texinfo: Document --default-symver.
1963 * ldmain.c (main): Set link_info.create_default_symver.
1964 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
1965 (ld_options): Add default-symver.
1966 (parse_args): Handle OPTION_DEFAULT_SYMVER.
1967
7b0eaa22
DS
19682004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
1969
1970 * pe-dll.c (process_def_file): Don't export all symbols by default if
1971 building a position-independent executable.
1972
dfeffb9f
L
19732004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1974
1975 PR 463
1976 * ldmain.c (reloc_overflow): Accept a pointer to struct
1977 bfd_link_hash_entry. Report symbol location for relocation
1978 overflow.
1979
dc4f76f8
L
19802004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1981
1982 * genscripts.sh (libpath.exp): Really generate for first
1983 emulation only.
1984
2a08daf3
DS
19852004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
1986
1987 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
1988 comparison and replacement of filenames.
1989
532345f2
L
19902004-10-19 H.J. Lu <hongjiu.lu@intel.com>
1991
1992 PR 459
1993 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
1994 option on linker script as the one for linker script.
1995
b58f81ae
DJ
19962004-10-16 Daniel Jacobowitz <dan@debian.org>
1997
1998 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
1999 (check_excluded_libs): New.
2000 (load_symbols): Call check_excluded_libs.
2001 * ldlang.h (add_excluded_libs): New prototype.
2002 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
2003 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
2004 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
2005 * ld.texinfo (Command Line Variables): Document --exclude-libs.
2006 (Options Specific to i386 PE Targets): Remove --exclude-libs.
2007
95c148b4
AM
20082004-10-15 Alan Modra <amodra@bigpond.net.au>
2009
c468c8bc
AM
2010 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
2011 failing link script assert.
2012
95c148b4
AM
2013 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
2014
951e9133
L
20152004-10-14 H.J. Lu <hongjiu.lu@intel.com>
2016
2017 PR 445
2018 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
2019 (SMALL_DATA_DTOR): Set.
2020 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
2021 (SMALL_DATA_DTOR): Unset.
2022 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
2023 after .data. If SMALL_DATA_DTOR is set, move .dtors after
2024 .data.
2025
afd7a018
AM
20262004-10-14 Alan Modra <amodra@bigpond.net.au>
2027
2028 PR 63
2029 * ldlang.h (lang_output_section_statement_type): Make "next" a
2030 struct lang_output_section_statement_struct *.
2031 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
2032 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
2033 * ldlang.c (lang_output_section_find_1): Adjust for changed
2034 output_section_statement "next".
2035 (strip_excluded_output_sections): Likewise.
2036 (lang_record_phdrs): Likewise.
2037 (lang_output_section_find_by_flags): New function.
2038 (output_prev_sec_find): Move from pe.em. Adjust iterator.
2039 (lang_insert_orphan): New function. Tail end of elf32.em's
2040 place_orphan merged with that from pe.em. Allow bfd_section to
2041 be placed first. New heuristic for placing new output section
2042 statement in existing script, and accompanying split of __start
2043 symbol alignment into a separate assignment to dot.
2044 (lang_add_section): Consistently use output->bfd_section rather than
2045 an alias, section->output_section.
2046 (map_input_to_output_sections): Rename overly long arg. Move
2047 initialization of data_statement output section to here..
2048 (lang_check_section_addresses): ..from here.
2049 (print_assignment): Correct printing of etree_assert.
2050 (print_all_symbols): Don't bomb if userdata is NULL.
2051 (IGNORE_SECTION): Rearrange.
2052 * emultempl/elf32.em (output_rel_find): Adjust interator.
2053 (output_prev_sec_find): Delete.
2054 (struct orphan_save): Delete.
2055 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
2056 flags without creating a duplicate output section statement.
2057 Revise code holding history of various orphan section placements.
2058 Allow orphan sections to place before script specified output
2059 sections. Call lang_output_section_find_by_flags when placement
2060 by name fails. Use lang_insert_orphan.
2061 * emultempl/mmo.em (output_prev_sec_find): Delete.
2062 (struct orphan_save): Delete.
2063 (mmo_place_orphan): Revise code holding history of orphan placement.
2064 Allow orphans to place before existing output sections. Use
2065 lang_insert_orphan.
2066 * emultempl/pe.em (output_prev_sec_find): Delete.
2067 (struct orphan_save): Delete.
2068 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
2069 lang_insert_orphan.
2070
c0042f5d
MM
20712004-10-13 Mark Mitchell <mark@codesourcery.com>
2072
2073 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
2074 loadable segment.
2075
1af699f4
AM
20762004-10-13 Alan Modra <amodra@bigpond.net.au>
2077
2078 PR 44
09c112da
AM
2079 * ldcref.c (check_section_sym_xref): Delete.
2080 (check_local_sym_xref): New function.
2081 (check_nocrossrefs): Adjust call.
1af699f4
AM
2082 * emultempl/pe.em (struct orphan_save): Add os_tail.
2083 (place_orphan): Backport assorted fixes from elf32.em.
2084
7fa3d080
BW
20852004-10-12 Bob Wilson <bob.wilson@acm.org>
2086
2087 * emultempl/xtensaelf.em: Use ISO C90 formatting.
2088
d3989512
JJ
20892004-10-11 Jakub Jelinek <jakub@redhat.com>
2090
563f4125
JJ
2091 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
2092 getline for portability.
2093
d3989512
JJ
2094 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
2095 (gld${EMULATION_NAME}_parse_ld_so_conf,
2096 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
2097 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
2098
6c0c5b1e
AM
20992004-10-11 Alan Modra <amodra@bigpond.net.au>
2100
2101 PR 423
2102 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
2103 rejected when linking statically.
2104
d2b2c203
DJ
21052004-10-08 Daniel Jacobowitz <dan@debian.org>
2106
2107 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
2108
43cd72b9
BW
21092004-10-07 Bob Wilson <bob.wilson@acm.org>
2110
2111 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
2112 assembler-generated longcall sequences. Describe new --size-opt
2113 option.
2114 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
2115 * emultempl/xtensaelf.em (remove_section,
2116 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
2117 elf_xtensa_after_open): New.
2118 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
2119 OPTION_NO_LITERAL_MOVEMENT): Define.
2120 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
2121 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
2122 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
2123 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
2124 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
2125 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
2126 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
2127 * Makefile.am (eelf32xtensa.c): Update dependencies.
2128 * Makefile.in: Regenerate.
2129
8fdd7217 21302004-10-07 Jeff Baker <jbaker@qnx.com>
6c0c5b1e 2131
8fdd7217
NC
2132 * lexsup.c: Handle --warn-shared-textrel option.
2133 (ld_options): Restore alpha sorting of options.
2134 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
2135 * ld.texinfo: Add documentation for --warn-shared-textrel.
2136 * NEWS: Added mention of --warn-shared-textrel option.
2137
339207f8 21382004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
6c0c5b1e 2139
339207f8 2140 * emultempl/crxelf.em (disable_relaxation): Add.
6c0c5b1e 2141 (crxelf_before_allocation): Enable --relax option by default.
339207f8
TL
2142 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
2143 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
2144 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
2145
bcaa7b3e
L
21462004-10-04 H.J. Lu <hongjiu.lu@intel.com>
2147
2148 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
2149 --sort-section name|alignment.
2150
2151 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
2152 --sort-section name|alignment.
2153
2154 * ld.h (sort_type): New enum.
2155 (wildcard_spec): Change the type of `sorted' to sort_type.
2156
2157 * ldgram.y (SORT): Removed.
2158 (SORT_BY_NAME): Added.
2159 (SORT_BY_ALIGNMENT): Added.
2160 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
2161 SORT_BY_ALIGNMENT.
2162 (input_section_spec_no_keep): Updated `sorted'.
2163 (statement): Replace SORT with SORT_BY_NAME.
2164
2165 * ldlang.c (compare_section): New function to compare 2
2166 sections with different sorting schemes.
2167 (wild_sort): Updated. Use compare_section.
2168 (update_wild_statements): New function.
2169 (lang_process): Call update_wild_statements before
2170 map_input_to_output_sections.
2171
2172 * ldlex.l (SORT_BY_NAME): New.
2173 (SORT_BY_ALIGNMENT): New.
2174 (SORT): Return SORT_BY_NAME.
2175
2176 * ldmain.c (sort_section): New. Defined.
2177 (main): Initialize it to none.
2178
2179 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
2180 (ld_options): Add an entry for OPTION_SORT_SECTION.
2181 (parse_args): Handle OPTION_SORT_SECTION.
2182
2183 * mri.c (mri_draw_tree): Updated `sorted'.
2184
a4f5ad88
JJ
21852004-10-04 Jakub Jelinek <jakub@redhat.com>
2186
2187 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
2188 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
2189 argument.
2190 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
2191 and . as second argument.
2192 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
2193 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
2194 (fold_binary): Add it here. Insert padding to make relro_end
2195 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
2196 exp_dataseg_relro_adjust phase just use previously computed
2197 exp_data_seg.base.
2198 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
2199 relro_adjust here. Call lang_size_sections_1 once more if there
2200 was too big padding at DATA_SEGMENT_RELRO_END.
2201 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
2202
40a18ebd
NC
22032004-10-01 Paul Brook <paul@codesourcery.com>
2204
2205 * emulparams/armelf.sh: Add unwinding table sections.
2206
db8acf26
NC
22072004-09-30 Filip Navara <navaraf@reactos.com>
2208
2209 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
2210 correct base address for position independant executables.
2211 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
2212 executables as DLLs.
2213
eeac373a
PB
22142004-09-30 Paul Brook <paul@codesourcery.com>
2215
2216 * ld.texinfo: Document --target2=abs.
2217 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
2218
1ee7cf4c
NC
22192004-09-29 Nick Clifton <nickc@redhat.com>
2220
2221 * scripttempl/xstormy16.sc: Only perform the assignments to the
2222 ROM region when not performing a relocatable link. The ROM region
2223 does not start at address 0, but the sections will.
2224 * Makefile.am: Fix linker script dependency for the generation of
2225 eelf32xstormy16.c.
2226 * Makefile.in: Regenerate.
2227
03098a9a
CF
22282004-09-18 Filip Navara <navaraf@reactos.com>
2229
2230 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
2231 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
2232 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
2233 TARGET_PAGE_SIZE.
2234 * scripttempl/pe.sc: Make the virtual address and file offset synced if
2235 the alignment is lower than the target page size.
2236
f2d3750d
CF
22372004-09-27 Filip Navara <navaraf@reactos.com>
2238
2239 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
2240 def_file_parse to handle pe_def_file if NULL and prevent crash with
2241 invalid .def files.
2242
a23d8409
AM
22432004-09-27 Alan Modra <amodra@bigpond.net.au>
2244
2245 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
2246 --emit-stub-syms automatically when --emit-relocs.
2247
7b89fa29
PB
22482004-09-24 Paul Brook <paul@codeosurcery.com>
2249
2250 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
2251 .fini_array sections.
2252
e2a68bcc
AS
22532004-09-19 Andreas Schwab <schwab@suse.de>
2254
2255 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
2256 base so that relro end is suitably aligned.
2257
3674e28a
PB
22582004-09-17 Paul Brook <paul@codesourcery.com>
2259
2260 * ld.texinfo: Rename arm-specific section. Document --target*
2261 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
2262 * emulparams/armelf_linux.sh: Ditto.
2263 * emulparams/armelf_nbsd.sh: Ditto.
2264 * emultempl/armelf.em: Set default for TARGET2_TYPE.
2265 (target2_type): New variable.
2266 (arm_elf_before_allocation): Don't pass target1_type.
2267 (arm_elf_create_output_section_statements): New function.
2268 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
2269 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
2270 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
2271 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
2272 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
2273 argument to bfd_elf32_arm_process_before_allocation.
2274
f6e332e6
AM
22752004-09-17 Alan Modra <amodra@bigpond.net.au>
2276
2277 * ldexp.c (fold_name): Update u.undef.next refs.
2278 * emultempl/pe.em: Likewise.
2279 * emultempl/sunos.em: Likewise.
2280
9c933e04
AM
22812004-09-17 Alan Modra <amodra@bigpond.net.au>
2282
2283 * Makefile.am: Run "make dep-am".
2284 * Makefile.in: Regenerate.
2285 * config.in: Regenerate.
2286 * configure: Regenerate.
2287 * aclocal.m4: Regenerate.
2288 * po/ld.pot: Regenerate.
2289
1fa32646
TL
22902004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
2291
9c933e04
AM
2292 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
2293 (.fini): Likewise.
2294 (.jcr): Likewise.
1fa32646 2295
b6ee372a
AM
22962004-09-16 Alan Modra <amodra@bigpond.net.au>
2297
2298 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
2299 to bfd_elf32_arm_process_before_allocation call.
2300
9c504268
PB
23012004-09-13 Paul Brook <paul@codesourcery.com>
2302
2303 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
2304 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
2305
d15b04bd
L
23062004-09-07 H.J. Lu <hongjiu.lu@intel.com>
2307
2308 * configure: Regenerated with autconfig 2.13.
2309
875c4330
AS
23102004-09-07 Andreas Schwab <schwab@suse.de>
2311
2312 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
2313 alignment before adjusting DATA_SEGMENT_RELRO_END.
2314
229fcec5
MM
23152004-09-06 Mark Mitchell <mark@codesourcery.com>
2316
2317 * emulparams/armsymbian.sh: Use armbpabi script.
2318 * scripttempl/armbpabi.sc: New script.
2319
e5a52504
MM
23202004-09-02 Mark Mitchell <mark@codesourcery.com>
2321
2322 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
2323 (earmsymbian.c): New target.
2324 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
2325 * Makefile.in: Regenerated.
2326 * aclocal.m4: Likewise.
2327 * configure: Likewise.
2328 * emulparams/armsymbian.sh: New file.
2329
42851540
NC
23302004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
2331
2332 * scripttempl/elf32crx.sc: Edit file with comments.
2333 (.init): Add new section.
2334 (.fini): Likewise.
2335 (.ctor): Control the linkage order.
2336 (.dtor): Likewise.
2337
c034e3e0
NC
23382004-08-27 Nick Clifton <nickc@redhat.com>
2339
2340 * emultempl/pe.em (after_open): Do not assume that either bfd is
9c933e04 2341 an archive.
c034e3e0 2342
688c58f3
AM
23432004-08-26 Alan Modra <amodra@bigpond.net.au>
2344
2345 * ldlang.c (lang_init): Don't compare with TRUE.
2346
b18c562e
NC
23472004-08-25 Dmitry Diky <diwil@spec.ru>
2348
2349 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
2350 * scripttempl/elf32msp430.sc: Add .profiler section definition.
2351
61f5d054
L
23522004-08-24 H.J. Lu <hongjiu.lu@intel.com>
2353
2354 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
2355
e77d3d77
MM
23562004-08-19 Mark Mitchell <mark@codesourcery.com>
2357
2358 * configure.tgt (arm*-*-symbianelf*): New target.
2359 (arm*-*-eabi*): Likewise.
2360
3f764659
JJ
23612004-08-19 Jakub Jelinek <jakub@redhat.com>
2362
2363 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
2364 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
2365 (OPTION_NON_OVERLAPPING_OPD): Define.
2366 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
2367 --non-overlapping-opd option.
2368
a010d60f
AM
23692004-08-18 Alan Modra <amodra@bigpond.net.au>
2370
2371 PR 338
2372 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
2373 was already on the undefs list.
2374
c4e33880
AM
23752004-08-17 Alan Modra <amodra@bigpond.net.au>
2376
2377 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
2378 prefix the symbol field too.
2379
d003868e
AM
23802004-08-13 Alan Modra <amodra@bigpond.net.au>
2381
2382 * ldmain.c (link_callbacks): Remove "error_handler".
2383 * ldmisc.c: Include elf-bfd.h.
2384 (vfinfo): Sort comment. Handle %A. Use %A instead of
2385 bfd_get_section_indent.
2386 (error_handler): Delete.
2387 * ldmisc.h (error_handler): Delete declaration.
2388
99877b66
AM
23892004-08-10 Alan Modra <amodra@bigpond.net.au>
2390
2391 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
2392 ppc64_elf_restore_symbols.
2393
40e45c8b
AM
23942004-08-09 Alan Modra <amodra@bigpond.net.au>
2395
2396 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
2397 .toc is too large on relocatable linking.
2398
ccfa59ea
AM
23992004-08-09 Alan Modra <amodra@bigpond.net.au>
2400
2401 * emultempl/ppc64elf.em (ppc_after_open): Delete.
2402 (LDEMUL_AFTER_OPEN): Don't define.
2403
93fd0973
SC
24042004-08-02 Stephane Carrez <stcarrez@nerim.fr>
2405
2406 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
2407
f1b123db
SC
24082004-08-01 Stephane Carrez <stcarrez@nerim.fr>
2409
2410 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
2411 on power of 2.
2412
e7fbc2bf
JT
24132004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
2414
2415 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
2416
c05e9f04
NC
24172004-07-26 Dmitry Diky <diwil@spec.ru>
2418
2419 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
2420 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
2421 msp430xG439.
2422 * configure.tgt: Likewise.
2423 * emulparams/msp430all.sh: Likewise.
2424 * Makefile.in: Regenerate.
2425
9f61903d
NC
24262004-07-23 Nick Clifton <nickc@redhat.com>
2427
2428 * emultempl/elf32.em (_place_orphan): Use an already existing
2429 section name if that section does not have any flags set.
2430
082b7297
L
24312004-07-21 H.J. Lu <hongjiu.lu@intel.com>
2432
2433 * ldlang.c (already_linked_hash_entry): Removed.
2434 (already_linked): Likewise.
2435 (already_linked_table): Likewise.
2436 (section_already_linked): Call bfd_section_already_linked.
2437 (lang_process): Replace already_linked_table_init with
2438 bfd_section_already_linked_table_init and check return. Replace
2439 already_linked_table_free with bfd_section_already_linked_table_free.
2440
76d7af2d
NC
24412004-07-21 Nick Clifton <nickc@redhat.com>
2442
2443 * ldlang.c (init_os): Make sure that the newly allocated userdata
2444 structure is zeroed out.
2445
14b3c463
L
24462004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2447
2448 * NEWS: Mention the new --add-needed/--no-add-needed and
2449 --as-needed/--no-as-needed options.
2450
e56f61be
L
24512004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2452
2453 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
2454 check the add_needed field.
2455 (dt_needed): New struct.
2456 (gld${EMULATION_NAME}_try_needed): Change the first argument
2457 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
2458 bit in the file where the DT_NEEDED entry comes from.
2459 (gld${EMULATION_NAME}_search_needed): Change the second
2460 argument to a pointer to struct dt_needed.
2461 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
2462 (gld${EMULATION_NAME}_after_open): Likewise.
2463
2464 * ld.texinfo: Add --add-needed document.
2465 * ldlang.c (new_afile): Set p->add_needed.
2466 * ldlang.h (lang_input_statement_type): Add add_needed field.
2467 * ldmain.h (add_needed): Declare.
2468 * ldmain.c (add_needed): New global var.
2469 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
2470 OPTION_NO_ADD_NEEDED.
2471 (ld_options): Likewise.
2472 (parse_args): Handle them.
2473
c99b8138
NC
24742004-07-13 Christof Petig <christof@petig-baender.de>
2475
2476 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
2477 for endian-ness of extracted addend.
2478
13ed4151
NC
24792004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
2480
2481 * pe-dll.c (auto_export): Filter on just the import prefix,
2482 "_imp_", not "_imp__".
2483
1a320fbb
NC
24842004-07-09 Nick Clifton <nickc@redhat.com>
2485
2486 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
2487
1fe1f39c
NC
24882004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
2489
2490 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
2491 (eelf32crx.c): New target.
2492 * Makefile.in: Regenerate.
2493 * configure.tgt: Handle crx-*-elf*.
2494 * emulparams/elf32crx.sh: New file.
2495 * emultempl/crxelf.em: New file.
2496 * scripttempl/elf32crx.sc: New file.
2497 * NEWS: Mention new target.
2498
85fbca6a
NC
24992004-07-06 Nick Clifton <nickc@redhat.com>
2500
2501 * Makefile.am: Add eshlsymbian.c.
2502 * Makefile.in: Regenerate.
2503 * configure.tgt: Add sh*-symbian-elf target.
2504 * emulparams/shlsymbian.sh: New file. Configure the
2505 sh-symbian-elf linker scripts.
2506 * scripttemp/elf32sh-symbian.sc: New file. Linker script
2507 template for the sh-symbian-elf target.
2508
b71a5181
DA
25092004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2510
2511 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
2512 * emulparams/hppalinux.sh: Likewise.
2513 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
2514 data segment and PLT_BEFORE_GOT is defined.
2515
c87db184
CF
25162004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2517
2518 * ld.texinfo (WIN32): Document PE weak symbols.
2519
f6a8ae81
KK
25202004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2521
2522 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
2523
b602c853
L
25242004-07-01 H.J. Lu <hongjiu.lu@intel.com>
2525
2526 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
2527 the section.
2528
1a23a9e6
AM
25292004-06-29 Alan Modra <amodra@bigpond.net.au>
2530
2531 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
2532 size in rawsize.
2533
eea6121a
AM
25342004-06-24 Alan Modra <amodra@bigpond.net.au>
2535
2536 * ldlang.c (print_output_section_statement): Don't print size before
2537 relaxation.
2538 (IGNORE_SECTION): Remove bfd arg. Update all callers.
2539
2540 * ldexp.c (fold_name): .. See below.
2541 * ldlang.c (section_already_linked, print_output_section_statement,
2542 print_input_section, insert_pad, size_input_section,
2543 lang_check_section_addresses, lang_size_sections_1,
2544 lang_size_sections, lang_do_assignments_1, lang_set_startof,
2545 lang_one_common, lang_reset_memory_regions, lang_process,
2546 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
2547 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
2548 * pe-dll.c (process_def_file, generate_reloc): ..
2549 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
2550 gld${EMULATION_NAME}_before_allocation): ..
2551 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
2552 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
2553 sh64_elf_${EMULATION_NAME}_after_allocation): ..
2554 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
2555 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
2556 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
2557 "size" instead of "_raw_size" and "_cooked_size". Expand
2558 bfd_section_size macro invocations.
2559
552f8272
CF
25602004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2561
2562 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
2563 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
2564 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
2565 ___crt_xt_end__.
2566 (.tls): Define ___tls_start__ and ___tls_end__.
2567
aee6f5b4
AO
25682004-06-21 Alexandre Oliva <aoliva@redhat.com>
2569
2570 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
2571
eea6121a 25722004-06-18 Adam Nemet <anemet@lnxw.com>
f234d5fe 2573
eea6121a
AM
2574 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
2575 * configure: Regenerate.
f234d5fe 2576
dfff4fbe
JJ
25772004-06-15 Jakub Jelinek <jakub@redhat.com>
2578
2579 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
2580 .gcc_except_table output sections lost accidentally with
2581 -z relro patch.
2582
a9e0c0c6
AM
25832004-06-15 Alan Modra <amodra@bigpond.net.au>
2584
2585 * ldwrite.c (build_link_order): Use bfd_get_section_size
2586 instead of bfd_get_section_size_before_reloc or _raw_size.
2587 * pe-dll.c (process_def_file): Likewise.
2588
7115639b
AM
25892004-06-14 Alan Modra <amodra@bigpond.net.au>
2590
2591 From Richard Wirth <r.wirth@wirthware.de>
2592 * ldlang.c (lang_finish): Don't free lang_definedness_table.
2593
9ca57817
AM
25942004-05-29 Alan Modra <amodra@bigpond.net.au>
2595
2596 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
2597 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
2598
164e712d
AM
25992004-05-28 Alan Modra <amodra@bigpond.net.au>
2600
6feb9908
AM
2601 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
2602 throughout file.
2603 * lexsup.c: Formatting. Wrap long lines.
2604 * ldwrite.c: Update copyright date.
2605
164e712d
AM
2606 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
2607 (output_section_callback): Nor SEC_KEEP here.
2608 (gc_section_callback): Twiddle SEC_EXCLUDE here.
2609 (lang_gc_wild): Delete. Fold into..
2610 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
2611 collecting.
2612 (lang_process): Always call lang_gc_sections.
2613 (lang_place_orphans): Handle SEC_EXCLUDE sections.
2614 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
2615 SEC_EXCLUDE code.
2616
b3096250
L
26172004-05-26 H.J. Lu <hongjiu.lu@intel.com>
2618
2619 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
2620 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
2621 * ldlang.c (lang_add_section): Likewise.
2622
e49f5022
AM
26232004-05-26 Alan Modra <amodra@bigpond.net.au>
2624
2625 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
2626 sections when doing a final link. Clear SEC_EXCLUDE when doing
2627 a relocable link, except for SEC_DEBUGGING sections.
2628 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
2629 same condition here to drop SEC_EXCLUDE orphan sections.
2630
57ceae94
AM
26312004-05-25 Alan Modra <amodra@bigpond.net.au>
2632
2633 * ldlang.c (lang_process): Call bfd_merge_sections later, and
2634 only when not a relocatable link.
2635 (print_input_section): Handle SEC_EXCLUDE sections.
2636 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
2637 (lang_do_assignments_1): Likewise.
2638 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
2639 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
2640 * emultempl/hppaelf.em (build_section_lists): Likewise.
2641 * emultempl/ppc64elf.em (build_toc_list): Likewise.
2642 (build_section_lists): Likewise.
2643
a85785bc
AS
26442004-05-23 Andreas Schwab <schwab@suse.de>
2645
2646 * ld.texinfo (Options): Fix typo in last change.
2647
2d643429
NC
26482004-05-21 Andy Chittenden <achittenden@bluearc.com>
2649
2650 * ld.h (ld_config_type): Add new field: hash_table_size.
2651 * ldmain.c: Initialise the new field to zero. If it is non-zero
2652 after parsing the linker's command line call
2653 bfd_hash_set_default_size.
2654 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
2655 (ld_options): Add hash-size.
2656 (parse_args): Parse --hash-size option. Allow
2657 --reduce-memory-overheads to set the default hash table size as
2658 well.
2659 * ld.texinfo: Document the new switch. Also mention that
2660 --reduce-memory-overheads can affect the hash table size.
2661 * NEWS: Mention the new feature.
2662
35835446
JR
26632004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
2664
2665 * NEWS: Mention new linker map file generation and the
2666 --reduce-memory-overheads option.
2667 * ld.texinfo: Document --reduce-memory-overheads option.
2668 * ld.h (map_symbol_def): New struct.
2669 (struct user_section_struct, section_userdata_type): Rename to:
2670 (struct lean_user_section_struct, lean_section_userdata_type).
2671 (struct fat_user_section_struct, fat_section_userdata_type): New.
2672 (SECTION_USERDATA_SIZE): Define.
2673 (args_type): New member reduce_memory_overheads.
2674 * ldlang.c (map_obstack): New static variable.
2675 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
2676 (lang_map): Unless command_line.reduce_memory_overheads is set,
2677 initialize lists of defined symbols for each section.
2678 (print_input_section): Unless command_line.reduce_memory_overheads
2679 is set, use print_all_symbols.
2680 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
2681 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
2682 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
2683 (ld_options): Add entry for --reduce-memory-overheads.
2684 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
2685
0841712e
JJ
26862004-05-19 Jakub Jelinek <jakub@redhat.com>
2687
2688 * ldgram.y (sect_constraint): New.
2689 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2690 (section): Add sect_constraint. Pass additional argument
2691 to lang_enter_output_section_statement.
2692 * mri.c (mri_draw_tree): Pass additional argument to
2693 lang_enter_output_section_statement.
2694 * emultempl/pe.em (place_orphan): Likewise.
2695 (output_prev_sec_find): Disregard output section statements with
2696 constraint == -1.
2697 * emultempl/mmo.em (output_prev_sec_find): Likewise.
2698 (mmo_place_orphan): Pass additional argument to
2699 lang_enter_output_section_statement.
2700 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
2701 statements with constraint == -1.
2702 (place_orphan): Pass additional argument to
2703 lang_enter_output_section_statement.
2704 * ldlang.c (lang_enter_overlay_section): Likewise.
2705 (lang_output_section_find_1): New.
2706 (lang_output_section_find): Use it.
2707 (lang_output_section_statement_lookup_1): New.
2708 (lang_output_section_statement_lookup): Use it.
2709 (check_section_callback, check_input_sections): New.
2710 (map_input_to_output_sections): Check if all input sections
2711 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
2712 (strip_excluded_output_sections): Disregard output section statements
2713 with constraint == -1.
2714 (lang_record_phdrs): Likewise.
2715 (lang_enter_output_section_statement): Add constraint argument.
2716 Use lang_output_section_statement_lookup_1.
2717 * ldlang.h (lang_output_section_statement_type): Add constraint
2718 and all_input_readonly fields.
2719 (lang_enter_output_section_statement): Adjust prototype.
2720 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2721 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
2722 segment if all input sections are readonly.
2723
eea6121a 27242004-05-19 Adam Nemet <anemet@lnxw.com>
f2c50328
NC
2725
2726 * scripttempl/i386lynx.sc: Remove file.
2727
2a16d82a
BW
27282004-05-17 Bob Wilson <bob.wilson@acm.org>
2729
2730 * ld.texinfo (Output Section Address): Correct subsection name.
2731
eea6121a 27322004-05-17 Adam Nemet <anemet@lnxw.com>
b2d65c0b
NC
2733
2734 * configure.tgt (powerpc-*-lynxos* case): New case.
2735 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
2736 * emulparams/ppclynx.sh: New file.
2737 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
2738 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
2739 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
2740 (eppclynx.c): New rule.
2741 * Makefile.in: Regenerate.
2742
4b363073
NC
27432004-05-13 Joel Sherrill <joel@oarcorp.com>
2744
2745 * configure.tgt (or32-*-rtems*): Switch to elf and
2746 support versioned targets.
2747
9598fbe5
NC
27482004-05-13 Nick Clifton <nickc@redhat.com>
2749
2750 * po/fr.po: Updated French translation.
2751
8c37241b
JJ
27522004-05-11 Jakub Jelinek <jakub@redhat.com>
2753
2754 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
2755 for binaries, -shared and -pie.
2756 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
2757 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
2758 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
2759 (OTHER_RELRO_SECTIONS): ... this.
2760 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
2761 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
2762 -z relro and -z norelro.
2763 (gld${EMULATION_NAME}_list_options): Add it to usage.
2764 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
2765 -z relro scripts when appropriate.
2766 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
2767 Create separate .got.plt section if SEPARATE_GOTPLT.
2768 Move sections which are only written during relocation handling
2769 to the beginning of RW segment. If NO_SMALL_DATA, move .got
2770 before .data. Add DATA_SEGMENT_RELRO_END directive.
2771 Include OTHER_RELRO_SECTIONS.
2772 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
2773 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
2774 (fold_unary): Likewise.
2775 (fold_binary): Handle -z relro.
2776 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
2777 exp_dataseg_relro_adjust phases. Add relro_end field.
2778 * ldmain.c (main): Initialize link_info.relro to FALSE.
2779 * ldlang.c (lang_size_sections): Handle -z relro.
2780
e21059f2
MM
27812004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
2782
2783 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
2784
5f9b8920
JR
27852004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
2786
2787 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
2788 before printing it with %W.
2789
26d2d8a2 27902004-05-07 Brian Ford <ford@vss.fsi.com>
eea6121a 2791 DJ Delorie <dj@redhat.com>
26d2d8a2
BF
2792
2793 * emultempl/pe.em (real_flags): New static.
2794 (OPTION_LARGE_ADDRESS_AWARE): New define.
2795 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
2796 (gld_${EMULATION_NAME}_list_options): Likewise.
2797 (gld${EMULATION_NAME}_handle_option): Likewise.
2798 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
2799 * ld.texinfo: Document it.
2800 * NEWS: Mention it.
2801
1b169501
BF
28022004-05-07 Brian Ford <ford@vss.fsi.com>
2803
2804 * NEWS: Mention DWARF 2 support for i386pe.
2805
41cf0c62
AO
28062004-05-05 Alexandre Oliva <aoliva@redhat.com>
2807
2808 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
2809 elf32-frvfdpic.
2810
d0d6a25b
AM
28112004-04-30 Alan Modra <amodra@bigpond.net.au>
2812
2813 * ldlang.c (unique_section_p): Pass section parm, return true on
2814 group sections.
2815 (output_section_callback): Adjust.
2816 * ldlang.h (unique_section_p): Update prototype.
2817 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
2818
755306be
EB
28192004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
2820
eea6121a 2821 * ld.texinfo (--gc-sections): Remove restriction for
755306be
EB
2822 dynamic linking.
2823
8a7140c3
NC
28242004-04-29 Brian Ford <ford@vss.fsi.com>
2825
2826 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
2827 for DWARF 2/3. Update stab section's syntax.
2828
2f9636ba
AM
28292004-04-29 Alan Modra <amodra@bigpond.net.au>
2830
2831 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
2832 (fill_edata): Correct pointer arithmetic.
2833
23867d67
CD
28342004-04-21 Chris Demetriou <cgd@broadcom.com>
2835
2836 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
2837 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
2838 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
2839 (EXTRA_EM_FILE): Use mipsecoff.em
2840 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
2841 (EXTRA_EM_FILE): Use mipsecoff.em
2842 * emultempl/mipsecoff.em: Restructure to be included as an
2843 extra emulation file.
2844 (check_sections, gld${EMULATION_NAME}_after_open)
2845 (gld${EMULATION_NAME}_after_allocation)
2846 (gld${EMULATION_NAME}_get_script)
2847 (ld_${EMULATION_NAME}_emulation): Remove
2848 (gld${EMULATION_NAME}_before_parse): Rename to...
2849 (mipsecoff_before_parse): This.
2850 (LDEMUL_BEFORE_PARSE): Define.
2851 * emultempl/mipself.em: Remove file.
2852 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
2853 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
2854 these symbols.
2855 * Makefile.am: Remove dependencies on emultempl/mipself.em.
2856 * Makefile.in: Regenerate.
2857
1502569c
NC
28582004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
2859
2860 * ld.texinfo (synthesizing on H8/300): Information about linker
2861 relaxation support for bit manipulation instructions and system
2862 control instructions is added.
2863
c894ddfb
HPN
28642004-04-21 Hans-Peter Nilsson <hp@axis.com>
2865
2866 * NEWS: Mention change in DEFINED semantics.
2867
a85bf78e
EB
28682004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
2869
2870 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
2871 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
2872 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
2873
58434bc1
BE
28742004-04-21 Ben Elliston <bje@au.ibm.com>
2875
2876 * ld.texinfo (Simple Example): Add missing punctuation.
2877
7a7f4e42
CD
28782004-04-20 Chris Demetriou <cgd@broadcom.com>
2879
2880 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
2881
3737f867
JJ
28822004-04-19 Jakub Jelinek <jakub@redhat.com>
2883
2884 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
2885 specially.
2886
3c17e4f7
DS
28872004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
2888
2889 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
2890 with default priority. Likewise for dtors.
2891
279500de
TS
28922004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2893
2894 * configure.host: Remove mips*-dec-bsd* target.
2895 * configure.tgt: Likewise.
2896
52f89c0a
RS
28972004-04-08 Richard Sandiford <rsandifo@redhat.com>
2898
2899 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
2900 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
2901 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
2902 * emultempl/irix.em: New file.
2903 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
2904 dependencies.
2905 * Makefile.in: Regenerate.
2906
e489d0ae
PB
29072004-04-01 Paul Brook <paul@codesourcery.com>
2908
2909 * emultempl/armelf.em (byteswap_code): Add.
2910 (arm_elf_before_allocation): Pass extra parameter.
2911 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
2912 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
2913 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
2914 * emultempl/armelf_oabi.em: Pass extra parameter.
2915 * ld.texinfo: Document --be8.
2916
7cc8057a
SS
29172004-03-30 Stan Shebs <shebs@apple.com>
2918
2919 Remove long-obsolete MPW support.
2920 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
2921 * Makefile.am (mpw): Remove file-presynthesizing actions.
2922 * Makefile.in: Likewise.
2923 * ldfile.c (slash): Remove MPW case.
2924 * ldlex.l [MPW]: Remove unused definition.
2925
0949843d
NC
29262004-03-30 Galit Heller <Galit.Heller@nsc.com>
2927
2928 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
2929 (eelf32cr16c.c): New target.
2930 * Makefile.in: Regenerate.
2931 * configure.tgt: Handle cr16c-*-elf*.
2932 * emulparams/elf32cr16c.sh: New file.
2933 * scripttempl/elfcr16c.sc: Likewise
2934 * NEWS: Mention support for new target.
2935
0a159ef8
NC
29362004-03-30 Nick Clifton <nickc@redhat.com>
2937
2938 * po/sv.po: Updated Swedish translation.
2939
7a945db6
AM
29402004-03-27 Alan Modra <amodra@bigpond.net.au>
2941
2942 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
2943 * emultempl/hppaelf.em: Likewise.
2944 * emultempl/ppc64elf.em: Likewise.
2945 * emultempl/sh64elf.em: Likewise.
2946
5a580b3a
AM
29472004-03-25 Alan Modra <amodra@bigpond.net.au>
2948
2949 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
2950 size_dynamic_sections call.
2951
b9cf773d
AM
29522004-03-23 Alan Modra <amodra@bigpond.net.au>
2953
2954 PR 51.
2955 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
2956 link_info.wrap_char.
2957
59c2e50f
L
29582004-03-20 H.J. Lu <hongjiu.lu@intel.com>
2959
2960 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
2961 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
2962
44349745
AO
29632004-03-20 Alexandre Oliva <aoliva@redhat.com>
2964
2965 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
2966
81359a70
AM
29672004-03-19 Alan Modra <amodra@bigpond.net.au>
2968
2969 * config.in: Regenerate.
2970 * po/ld.pot: Regenerate.
2971
4a43e768
AM
29722004-03-18 Alan Modra <amodra@bigpond.net.au>
2973
2974 * ld.texinfo: Add --as-needed doco.
2975 * ldmain.c (as_needed): New global var.
2976 * ldmain.h (as_needed): Declare.
2977 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
2978 OPTION_NO_AS_NEEDED.
2979 (ld_options): Likewise.
2980 (parse_args): Handle them.
2981 * ldlang.h (lang_input_statement_type): Add as_needed field.
2982 * ldlang.c (new_afile): Set p->as_needed.
2983 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
2984 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
2985 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
2986
2987 * ldlang.c (open_input_bfds): Remove useless cast.
2988 (lang_do_assignments_1): Likewise.
2989 (lang_for_each_input_section): Delete.
2990
9183ed4b
AM
29912004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2992
2993 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
2994
ee31fbd0
NC
29952004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
2996
2997 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
2998 private when building implib.
2999
e5caec89
NS
30002004-03-05 Nathan Sidwell <nathan@codesourcery.com>
3001
3002 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
3003 SEC_THREAD_LOCAL.
3004 (IGNORE_SECTION): Ignore .tbss sections too.
3005 (lang_size_sections_1): .tbss sections do not advance dot.
3006
cc2f008e
AS
30072004-03-01 Andreas Schwab <schwab@suse.de>
3008
3009 * ld.texinfo (Options): Fix example for --wrap.
3010
f5a95868
DS
30112004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3012
3013 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
3014 not NULL.
3015
177b729b
ILT
30162004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
3017
3018 * ldlang.c (lang_check): Use %P, not %E, in error message.
3019
1b493742
NS
30202004-02-23 Nathan Sidwell <nathan@codesourcery.com>
3021
3022 * ldlang.h (struct lang_output_section_state): Change processed
3023 field's type.
3024 * ldexp.c (check, invalid): Remove.
3025 (fold_name): Move valid_p assignments. Create undefined symbol
3026 when needed. Directly exampine section's processd flag.
3027 * ldlang.c (lang_output_section_statement_lookup): Adjust
3028 processed field init.
3029 (lang_size_sections_1): Allow LOADADDR when determining section's
3030 VMA. Adjust error message. Fold data statement's expr.
3031 (lang_size_sections): Correctly increment lang_statement_iteration.
3032
30332004-02-23 Alan Modra <amodra@bigpond.net.au>
3034
3035 * ldexp.c (fold_tree): Follow indirect symbols.
b9cf773d 3036
876f4090
NS
30372004-02-20 Nathan Sidwell <nathan@codesourcery.com>
3038
3039 * ldgram.y (exp): Add two operand ALIGN.
3040 * ldexp.c (fold_binary): Add ALIGN_K case.
3041 * ld.texinfo (ALIGN): Document two operand version.
3042
384d938f
NS
30432004-02-19 Nathan Sidwell <nathan@codesourcery.com>
3044
3045 * ldlang.c (map_input_to_output_sections): Initialize sections
3046 mentioned in a data statement expression.
3047 (lang_do_assignments_1): Add data statement's expression's
3048 section's vma.
3049
b6ca8815
NS
30502004-02-18 Nathan Sidwell <nathan@codesourcery.com>
3051
3052 * ldgram.y (statement_anywhere): Add assert rule.
3053 * ldlang.c (exp_init_os): Add assert case.
3054
c92c35e7
AC
30552004-02-14 Andrew Cagney <cagney@redhat.com>
3056
3057 * ldmain.c (remove_output): Call bfd_cache_close.
3058
9bf78c99
RS
30592004-02-14 Richard Sandiford <rsandifo@redhat.com>
3060
3061 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
3062 .MIPS.content* and .MIPS.events* sections.
3063
f3806916
DJ
30642004-02-09 Daniel Jacobowitz <drow@mvista.com>
3065
3066 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
3067 .note.gnu.arm.ident to after allocated sections. Mark its
3068 address as 0.
3069
4c8e70d7
DJ
30702004-02-09 Daniel Jacobowitz <drow@mvista.com>
3071
3072 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
3073 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
3074 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
3075 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
3076 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
3077
ff71f4f7
NC
30782004-02-05 Nick Clifton <nickc@redhat.com>
3079
3080 * emultempl/pe.em (_after_open): Fix typo in previous delta.
3081
07a68a80
NC
30822004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
3083
3084 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
3085
1dd3bf68
AM
30862004-01-28 Alan Modra <amodra@bigpond.net.au>
3087
586196d5
AM
3088 * genscripts.sh: Fix typo.
3089
1dd3bf68
AM
3090 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
3091
13d9421f
JJ
30922004-01-24 Jakub Jelinek <jakub@redhat.com>
3093
3094 * emulparams/elf64_ia64.sh: Put .rela.opd into
3095 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
3096
4d8907ac
DS
30972004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
3098
3099 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
3100 * ld.texinfo (--omagic): Note that writable text section
3101 does not conform to published PE-COFF specs.
3102 (--enable-auto-import): Likewise.
3103
e5c60db5
AM
31042004-01-15 Alan Modra <amodra@bigpond.net.au>
3105
3106 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
3107
6bdafbeb
NC
31082004-01-13 Nick Clifton <nickc@redhat.com>
3109
3110 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
3111 which if true will prevent the LMA region being used as a
3112 replacement for a default VMA region.
586196d5
AM
3113 (lang_leave_output_section_statement): Pass extra parameter.
3114 (lang_leave_overlay): Likewise.
3115 * ld.texinfo (Output Section LMA): Document that the LMA
6bdafbeb
NC
3116 region can be set to the VMA region if no VMA has been set.
3117 * ldlang.h (struct lang_output_section_phdr_list): Create a
3118 typedef for this type. Minor formatting fixes.
586196d5 3119
9dfc8ab2
NC
31202004-01-13 Nick Clifton <nickc@redhat.com>
3121
3122 * ldlang.c (lang_size_sections_1): If dot is advanced, then
3123 assume that the section should be allocated.
3124
8325c4dd
AM
31252004-01-13 Alan Modra <amodra@bigpond.net.au>
3126
3127 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
3128 sections. Do ignore SEC_NEVER_LOAD sections.
3129 (lang_size_sections_1): Remove test made redundant with the above.
3130
83490352
AM
31312004-01-09 Alan Modra <amodra@bigpond.net.au>
3132
3133 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
3134 program_header_size.
3135
005e1118
AO
31362004-01-06 Alexandre Oliva <aoliva@redhat.com>
3137
3138 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
3139 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
3140 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
3141 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
3142 (MAXPAGESIZE): Set to 64Kb.
3143 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
3144 __ROFIXUP_END__. Don't map .rofixup.got any more.
3145 * emulparams/elf32frv.sh (NOP): Set.
3146 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
3147 * configure.tgt: Add frv-*-*linux*.
3148 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
3149 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
3150 (eelf32frvfd.c): New.
3151 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
3152 * emulparams/elf32frv.sh: Reverted previous two patches.
3153 * emulparams/elf32frvfd.sh: New.
3154 * Makefile.in: Rebuilt.
3155 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
3156 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
3157 .rofixup.got to .rofixup.
3158 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
3159 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
3160 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
3161
060feee5
JJ
31622004-01-05 Jakub Jelinek <jakub@redhat.com>
3163
3164 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
3165 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
3166
5e2f1575
AM
31672004-01-03 Alan Modra <amodra@bigpond.net.au>
3168
e5caa5e0
AM
3169 * ldexp.c (align_n): Make static.
3170 * ldexp.h (align_n): Delete declaration.
3171 * ldlang.h (lang_enter_output_section_statement): Remove
3172 block_value param.
3173 * ldlang.c (lang_enter_output_section_statement): Likewise.
3174 (TO_ADDR, TO_SIZE): Define.
c2df3ea5 3175 (opb_shift): New var.
e5caa5e0
AM
3176 (init_opb): New function.
3177 (print_input_section): Call init_opb and use TO_ADDR.
3178 (print_data_statement, print_reloc_statement): Likewise.
3179 (print_padding_statement): Likewise.
c2df3ea5 3180 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
e5caa5e0
AM
3181 (lang_check_section_addresses): Likewise.
3182 (lang_size_sections_1): Likewise.
3183 (lang_do_assignments_1): Likewise.
3184 (lang_set_startof): Likewise.
c2df3ea5 3185 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
e5caa5e0 3186 (lang_process): Call init_opb.
c2df3ea5 3187 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
e5caa5e0
AM
3188 (lang_enter_overlay_section): Adjust
3189 lang_enter_output_section_statement call.
3190 * ldgram.y: Likewise.
3191 * mri.c (mri_draw_tree): Likewise.
3192 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
3193 * emultempl/mmo.em (mmo_place_orphan): Likewise.
3194 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
3195
5e2f1575
AM
3196 * ldfile.c (ldfile_set_output_arch): Add defarch param.
3197 * ldfile.h (ldfile_set_output_arch): Ditto.
3198 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
3199 ldfile_set_output_arch.
3200 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
3201 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
3202 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
3203 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3204 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
3205 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
3206 * ldgram.y: Adjust ldfile_set_output_arch call.
3207 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3208 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
3209 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
3210 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
3211 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
3212 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3213 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3214
b50c15dc
NC
32152004-01-02 Bernardo Innocenti <bernie@develer.com>
3216
3217 * configure.tgt: Add m68k-uClinux target.
6edf0760 3218
c9e214e5 3219For older changes see ChangeLog-0203
252b5132
RH
3220\f
3221Local Variables:
3222mode: change-log
3223left-margin: 8
3224fill-column: 74
3225version-control: never
3226End:
This page took 0.509244 seconds and 4 git commands to generate.