* ldlang.h (lang_output_section_statement_type): Add prev.
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
218868ba
AM
12005-12-24 Alan Modra <amodra@bigpond.net.au>
2
3 * ldlang.h (lang_output_section_statement_type): Add prev.
4 * ldlang.c (output_statement_newfunc): Set os.prev.
5 (lang_insert_orphan): Likewise.
6 (output_prev_sec_find): Use os.prev.
7
ecc49060
NC
82005-12-22 Santosh Raktawan <santoshr2@kpitcummins.com>
9
10 * ld/emulparms/h8300helf.sh (TINY_READONLY_SECTION,
11 TINY_DATA_SECTION, TINY_BSS_SECTION): Define.
12 * ld/emulparms/h8300self.sh: Likewise.
13 * ld/emulparms/h8300sxelf.sh: Likewise.
14 * ld/scripttempl/elf.sc: Add TINY_READONLY_SECTION,
15 TINY_DATA_SECTION, TINY_BSS_SECTION.
16
15445c8e
L
172005-12-19 H.J. Lu <hongjiu.lu@intel.com>
18
19 PR ld/2065
20 * ldlang.c (output_statement_newfunc): Revert the change made on
21 2005-11-16.
b43bf343
BW
22 (output_prev_sec_find): Likewise.
23 * ldlang.h (lang_statement_list_type): Likewise.
15445c8e 24
d031aafb
NS
252005-12-16 Nathan Sidwell <nathan@codesourcery.com>
26
27 Second part of ms1 to mt renaming.
28 * emulparams/elf32mt.sh (ARCH, OUTPUT_FORMAT): Adjust.
29
4e8aba04
JJ
302005-12-14 Jakub Jelinek <jakub@redhat.com>
31
32 * scripttempl/elf.sc: Put .gnu.linkonce.d.rel.ro.* sections into
33 .data.rel.ro output section. Fix a pasto for -z nocombreloc
34 .rela.data.rel.ro section content.
35
4970f871
NS
362005-12-12 Nathan Sidwell <nathan@codesourcery.com>
37
38 * Makefile.am (ALL_EMULATIONS): Replace ms1 files with mt files.
39 (eelf32mt.c): Update target name and dependencies.
40 * Makefile.in: Rebuilt.
41 * configure.tgt: Replace ms1 arch with mt arch.
42 * emulparams/elf32mt.sh: Renamed from elf32ms1.sh. Update
43 comment.
44
bd6791bc
HPN
452005-12-11 Bernhard Fischer <aldot@gcc.gnu.org>
46
47 * scripttempl/armbpabi.sc: Fix typo in comment for .ctors.
48 * scripttempl/elf.sc: Ditto.
49 * scripttempl/elf32sh-symbian.sc: Ditto.
50 * scripttempl/elf_chaos.sc: Ditto.
51 * scripttempl/elfd10v.sc: Ditto.
52 * scripttempl/elfd30v.sc: Ditto.
53 * scripttempl/elfxtensa.sc: Ditto.
54 * scripttempl/iq2000.sc: Ditto.
55 * scripttempl/xstormy16.sc: Ditto.
56
0ba07910
AM
572005-12-08 Alan Modra <amodra@bigpond.net.au>
58
59 * emultempl/ppc32elf.em (emit_stub_syms): New var.
60 (ppc_after_open): Pass it to ppc_elf_select_plt_layout.
61 (PARSE_AND_LIST_PROLOGUE <OPTION_STUBSYMS>): Define.
62 (PARSE_AND_LIST_LONGOPTS): Add emit-stub-syms.
63 (PARSE_AND_LIST_OPTIONS): Describe emit-stub-syms.
64 (PARSE_AND_LIST_OPTIONS): Handle it.
65
36230712
AM
662005-12-08 Alan Modra <amodra@bigpond.net.au>
67
68 * pe-dll.c (build_filler_bfd): Conform error message to standard.
69 (pe_dll_generate_implib): Use %E in error message.
70 (add_bfd_to_link): Likewise.
71 (pe_implied_import_dll): Likewise.
72
fe21a8fc
L
732005-12-07 Thiemo Seufer <ths@networkno.de>
74 H.J. Lu <hongjiu.lu@intel.com>
75
76 PR ld/1932
77 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
78 Adjust bfd_elf_record_link_assignment call.
79
80 * ldexp.c (exp_fold_tree_1): Remove call to bfd_hide_symbol.
81
b251bf6f
JB
822005-11-25 Jan Beulich <jbeulich@novell.com>
83
84 * Makefile.am: Make configdoc.texi writeable before trying
85 to write to it.
86 * Makefile.in: Refresh.
87
390fbbf1
AM
882005-11-24 Alan Modra <amodra@bigpond.net.au>
89
90 * ldlang.c (lang_output_section_find_by_flags): Add match_type param.
91 Run two passes, first using match_type, second without.
92 * ldlang.h (lang_match_sec_type_func): New typedef.
93 (lang_output_section_find_by_flags): Update prototype.
94 bfd_match_sections_by_type and lang_output_section_find_by_flags.
95 * emultempl/pe.em (place_orphan): Likewise.
96
be529132
AM
972005-11-24 Alan Modra <amodra@bigpond.net.au>
98
99 * ldlang.c (lang_insert_orphan): Skip first assignment to dot
100 in script when looking for place to insert orphan statements.
101
e87deb82
AM
1022005-11-18 Alan Modra <amodra@bigpond.net.au>
103
104 * emulparams/elf64ppc.sh (.tocbss): Use new section alignment scheme.
105 (.got, .toc1, .opd): Likewise.
106
94b50910
AM
1072005-11-18 Alan Modra <amodra@bigpond.net.au>
108
109 * ldlang.c (lang_size_sections_1): Revert 2005-11-16 functional
110 changes to section alignment.
111 * ldmisc.c (vfinfo): Handle %ld and %lu.
112
dff70155
MM
1132005-11-16 Mark Mitchell <mark@codesourcery.com>
114
115 * Makefile.am (configdoc.texi): Set top_srcdir in configdoc.texi..
116 * Makefile.in: Regenerated.
117 * ld.texinfo: Include configdoc.texi and ldver.texi in man pages.
118 Add @file documentation.
be529132 119
7b986e99
AM
1202005-11-17 Alan Modra <amodra@bigpond.net.au>
121
122 * ldlang.h (lang_input_section_type): Remove "ifile" field.
123 (lang_insert_orphan, lang_add_section): Update prototypes.
124 * ldlang.c (lang_insert_orphan): Remove "file" param.
125 (lang_add_section): Likewise. Update all callers.
126 (wild_sort): Get an input section's bfd via "section->owner".
127 (size_input_section): Access just_syms_flag via bfd usrdata.
128 (lang_place_orphans): Update ldemul_place_orphan call.
129 * ldemul.h (ldemul_place_orphan): Remove input_statement param.
130 (struct ld_emulation_xfer_struct <place_orphan>): Likewise.
131 * ldemul.c (ldemul_place_orphan): Likewise.
132 * ldwrite.c (build_link_order): Access just_syms_flag via bfd usrdata.
133 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
134 * emultempl/beos.em (sort_by_file_name): Access bfd by section->owner.
135 (sort_sections): Likewise.
136 (place_orphan): Remove "file" param. Adjust lang_add_section call.
137 * emultempl/elf32.em (place_orphan): Remove "file" param. Adjust
138 lang_add_section and lang_insert_orphan calls.
139 * emultempl/hppaelf.em (hppaelf_add_stub_section): Adjust
140 lang_add_section call.
141 (build_section_lists): Access just_syms_flag via bfd usrdata.
142 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Adjust
143 lang_add_section call.
144 * emultempl/mmo.em (mmo_place_orphan): Remove "file" param. Adjust
145 lang_add_section and lang_insert_orphan calls.
146 * emultempl/pe.em (place_orphan): Likewise. Access bfd via section
147 owner.
148 * emultempl/ppc64elf.em (ppc_add_stub_section): Adjust
149 lang_add_section call.
150 (build_toc_list): Access just_syms_flag via bfd usrdata.
151 (build_section_lists): Likewise.
152 * emultempl/xtensaelf.em (elf_xtensa_place_orphan): Remove "file"
153 param. Adjust place_orphan call.
154 (ld_build_required_section_dependence): Access bfd via section owner.
155
bd4d42c1
AM
1562005-11-16 Alan Modra <amodra@bigpond.net.au>
157
158 * ldlang.h (lang_output_section_statement_type): Add prev.
159 * ldlang.c (new_afile): Always init header.type.
160 (output_statement_newfunc): Set os.prev.
161 (output_prev_sec_find): Use os.prev.
162 (lang_enter_output_section_statement): Formatting.
163 (lang_final, lang_add_target, lang_add_fill): Likewise.
164 (lang_add_data, lang_add_reloc): Likewise.
165 (lang_add_attribute): Only alloc the header.
166
7270c5ed
AM
1672005-11-16 Alan Modra <amodra@bigpond.net.au>
168
169 * ld.texinfo (Forced Output Alignment): Specify that this is an
170 alignment increase, not an override.
171 * ldlang.c (init_os): Set output section alignment here..
172 (lang_add_section): ..rather than here.
173 (lang_size_sections_1): Consolidate alignment code. Warn if section
174 alignment affects start address when explicit address given.
175
a541e3ce
SE
1762005-11-07 Steve Ellcey <sje@cup.hp.com>
177
178 * configure: Regenerate after modifying bfd/warning.m4.
179
70487fb2
AM
1802005-11-07 Olaf Hering <olh@suse.de>
181
182 * ldmain.c (main): Add \n to error message.
183
384a9dda
AM
1842005-11-04 Alan Modra <amodra@bigpond.net.au>
185
186 * ldlang.c (struct output_statement_hash_entry): Don't indirect to os.
187 (output_statement_newfunc): Rewrite.
188 (lang_output_section_find_1): Merge into..
189 (lang_output_section_find): ..here.
190 (lang_output_section_statement_lookup_1): Rewrite to handle
191 multiple sections with the same name.
192 (output_statement_table_init): Commonise error message.
193 (lang_init, open_output): Likewise.
194
6f2942ed
PB
1952005-11-03 Paul Brook <paul@codesourcery.com>
196
197 * scripttempl/elf.sc: Add .init_array.* and .fini_array.*.
198 * scripttempl/armbpabi.sc: Make init/fini array consistent with
199 elf.sc.
200 * scripttempl/elf32sh-symbian.sc: Ditto.
201 * scripttempl/elfxtensa.sc: Ditto.
202
7fabd029
AM
2032005-11-03 Alan Modra <amodra@bigpond.net.au>
204
205 * ldlang.h (lang_output_section_statement_type): Rearrange. Remove
206 memspec. Make "processed" a bitfield.
207 (lang_data_statement_type, lang_reloc_statement_type): Rename
208 output_vma to output_offset.
209 * ldlang.c (lang_output_section_statement_lookup_1): Init
210 all_input_readonly. Don't init memspec.
211 (init_os): Remove incorrect comment.
212 (print_data_statement, print_reloc_statement): Adjust for
213 lang_data_statement_type and lang_reloc_statement_type change.
214 (lang_size_sections_1, lang_add_reloc): Likewise.
215 * ldwrite.c (build_link_order): Likewise.
216
a55ff675
MM
2172005-10-30 Mark Mitchell <mark@codesourcery.com>
218
219 * lexsup.c (help): Document "@FILE".
220
9e5169a8
L
2212005-10-30 H.J. Lu <hongjiu.lu@intel.com>
222
223 * Makefile.am: Run "make dep-am".
224 * Makefile.in: Regenerated.
225
226 * dep-in.sed: Replace " ./" with " ".
227
3c9b82ba
NC
2282005-10-25 Arnold Metselaar <arnold.metselaar@planet.nl>
229
230 * Makefile.am: Add support for Z80
231 * Makefile.in: Regenerated
232 * configure.tgt: Add z80-*-coff
233 * emulparams/z80.sh: New file.
234 * emultempl/z80.em: New file.
235 * scripttempl/z80.sc New file.
236 * NEWS: Mention this new support.
237
3caac5b8
AM
2382005-10-25 Alan Modra <amodra@bigpond.net.au>
239
240 * po/ld.pot: Regenerate.
241
4f9c04f7
AM
2422005-10-25 Chris Metcalf <cdmetcalf@comcast.net>
243
244 * ld.texinfo (--reduce-memory-overheads): Fix typo.
245
ccd2ec6a
L
2462005-10-23 H.J. Lu <hongjiu.lu@intel.com>
247
248 PR ld/1487
249 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
250 bfd_match_sections_by_type to match section types.
251
252 * ldlang.c (init_os): Take the input section. Call
253 bfd_init_private_section_data if the input section isn't NULL.
254 (exp_init_os): Pass NULL to init_os.
255 (map_input_to_output_sections): Likewise.
256 (lang_add_section): Pass the input section to init_os.
257
3242b11e
PB
2582005-10-19 Paul Brook <paul@codesourcery.com>
259
260 * emulparams/armelf.sh: Add .ARM.attributes to OTHER_SECTIONS.
261
ecca9871
L
2622005-10-15 H.J. Lu <hongjiu.lu@intel.com>
263
264 PR ld/1467
265 * emultempl/elf32.em: Include "elf-bfd.h".
266 (gld${EMULATION_NAME}_place_orphan): Check section type and
267 don't use section name for ELF input sections.
268
269 * ld.texinfo: Document orphan section processing.
270
271 * ldlang.c (lang_output_section_find_by_flags): Match section
272 types by calling bfd_match_sections_by_type.
273
86043bbb
MM
2742005-10-13 Mark Mitchell <mark@codesourcery.com>
275
276 * ld.texino: Describe double-quoted string syntax for version
277 nodes.
278 * ldlang.h (lang_new_vers_pattern): Add literal_p parameter.
279 * ldgram.y (vers_defns): Allow NAME as well as VERS_IDENTIFIER.
280 Adjust calls to lang_new_vers_pattern to pass literal_p argument.
281 * ldlang.c (lang_vers_match): Fix indentation. Do not glob-match
282 version nodes without a pattern.
283 (lang_new_vers_pattern): Add literal_p parameter.
284 (lang_do_version_exports_section): Pass it.
285
3e8a519c
MM
2862005-10-12 Mark Mitchell <mark@codesourcery.com>
287
288 * NEWS: Mention @file.
289
f0e0fb23
L
2902005-10-05 H.J. Lu <hongjiu.lu@intel.com>
291
292 PR ld/1396
293 * ldcref.c (check_refs): Accept bfd_boolean.
294 (check_local_sym_xref): Pass FALSE to check_refs.
295 (check_nocrossref): Pass TRUE to check_refs.
296 (check_refs_info): Add bfd_boolean.
297 (check_refs): Add bfd_boolean to check_refs_info.
298 (check_reloc_refs): Match relocations with proper symbols.
299
300 * ldmisc.c (vfinfo): Don't add extra ":\n".
301
e60cc415
DS
3022005-10-05 Danny Smith <dannysmith@users.sourceforge.net>
303
304 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set
305 default entry symbol to ENTRY here.
306 * scripttempl/pe.sc: Not here.
307
4520f868
JW
3082005-09-30 James E Wilson <wilson@specifix.com>
309
310 * ldlang.c (lang_startup): Add missing ": " to einfo call.
311
b898a385
L
3122005-09-30 H.J. Lu <hongjiu.lu@intel.com>
313
314 * Makefile.am: Run "make dep-am".
315 * Makefile.in: Regenerated.
316 * aclocal.m4: Likewise.
317
750877ba
L
3182005-09-30 H.J. Lu <hongjiu.lu@intel.com>
319
320 * ldlang.c (output_statement_hash_entry): New type.
321 (output_statement_table): New variable for hash table.
322 (output_statement_newfunc): New function.
323 (output_statement_table_init): Likewise.
324 (output_statement_table_free): Likewise.
325 (lang_init): Call output_statement_table_init.
326 (lang_finish): Renamed to ...
327 (lang_end): This.
328 (lang_process): Updated.
329 (lang_finish): New function.
330 (lang_output_section_find_1): Use hash table.
331 (lang_output_section_statement_lookup_1): Likewise.
332
333 * ldlang.h (lang_finish): New.
334
335 * ldmain.c (main): Call lang_finish.
336
869b9d07
MM
3372005-09-30 Mark Mitchell <mark@codesourcery.com>
338
339 * ldmain.c (main): Use expandargv.
340
95f4309b 3412005-09-30 Catherine Moore <clm@cm00re.com>
384a9dda 342
95f4309b
CM
343 * Makefile.am: Bfin support.
344 * Makefile.in: Regenerated.
345 * aclocal.m4: Regenerated.
346 * configure.tgt: Bfin support.
347 * emulparams/bfin.sh: New file.
348 * emultempl/bfin.em: New file.
349
a70c2403
NC
3502005-09-30 Matthias Kurz <mk@baerlap.north.de>
351
352 * ld.h: Prevent the inclusion of <libintl.h> from the Solaris
353 version of <locale.h> when ENABLE_NLS is not defined.
354
bbf115d3
L
3552005-09-27 H.J. Lu <hongjiu.lu@intel.com>
356
357 * ld.texinfo (ALIGN): Document it as forcing output section
358 alignment.
359
360 * ldgram.y (ALIGN): Support it for forcing output section
361 alignment.
362
a5df8c84
AM
3632005-09-20 Alan Modra <amodra@bigpond.net.au>
364
f68d3f78
AM
365 * ldlang.h (lang_output_section_statement_struct): Change type of
366 "processed" to bfd_boolean.
367 * ldexp.c (fold_name): Update references to os->processed.
368 * ldlang.c (lang_output_section_statement_lookup_1): Likewise.
369 (lang_size_sections_1): Likewise.
370 (lang_reset_memory_regions): Likewise.
371
a5df8c84
AM
372 PR ld/1353
373 * ldlang.c (lang_size_sections_1): Process addr_tree earlier,
374 so that unused output section statements affect dot.
375
6aa29e7b
JJ
3762005-09-08 Jakub Jelinek <jakub@redhat.com>
377
378 * ld.texinfo: Document -z {no,}execstack, -z {no,}relro
379 and --eh-frame-hdr options.
380
5397b1fe
AM
3812005-09-07 Alan Modra <amodra@bigpond.net.au>
382
383 * ldexp.c (fold_name <SIZEOF>): Return 0 for non-existent section.
384 (exp_fold_tree_1): Print assert message only in final stage of
385 linking. Trigger assertion failure if expression cannot be
386 evaluated.
387
12b9ff6c
L
3882005-09-06 H.J. Lu <hongjiu.lu@intel.com>
389
390 PR ld/1263
391 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Check
392 --just-symbols on DSO.
393
2caf1300
AM
3942005-08-18 Alan Modra <amodra@bigpond.net.au>
395
396 * scripttempl/elf.sc: Remove commented out defines.
397
c17ae8a2
AM
3982005-08-18 Alan Modra <amodra@bigpond.net.au>
399
848cf006
AM
400 * emulparams/a29k.sh: Delete.
401 * emulparams/ebmon29k.sh: Delete.
402 * emulparams/sa29200.sh: Delete.
c17ae8a2
AM
403 * Makefile.am: Remove a29k support.
404 * configure.tgt: Likewise.
405 * ld.texinfo: Likewise.
406 * Makefile.in: Regenerate.
407
96f8ade5
JJ
4082005-08-17 Jakub Jelinek <jakub@redhat.com>
409
410 * ldgram.y (vers_defns): Don't lose pattern list before
411 extern NAME {}. Handle global, local and extern symbol names.
412
24dc748d
KK
4132005-08-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
414
415 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
416 Don't increment rel_count of .cranges here. Set rawsize of .cranges.
417
38975f9e
NC
4182005-08-10 Nick Clifton <nickc@redhat.com>
419
420 * pe-dll.c (pe_exe_fill_sections): Call lang_reset_memory_regions
421 before lang_size_sections.
422
66bcaf1f
AM
4232005-08-09 Alan Modra <amodra@bigpond.net.au>
424
425 * emulparams/hppa64linux.sh (LARGE_SECTIONS): Remove .tbss.
426
4272005-08-08 Eric Doenges <Eric.Doenges@betty-tv.com>
44c86e8c
NC
428
429 * Makefile.am (ALL_EMULATIONS): Add msp430x21xx variants.
430 Add rules to build these emulations.
431 * Makefile.in: Regenerate.
432 * configure.tgt (msp430): Add the new variants to the
433 targ_extra_emuls list.
434 * emulparams/msp430all.sh: Add entries for the msp430x21xx
435 variants.
436
7af8e998
L
4372005-08-05 H.J. Lu <hongjiu.lu@intel.com>
438
439 * ld.texinfo: Document PROVIDE_HIDDEN.
440
441 * ldexp.c (exp_fold_tree_1): Hide a provided symbol if asked.
442 (exp_provide): Add and set hidden.
443
444 * ldexp.h (etree_type): Add hidden to assign.
445
446 * ldgram.y (PROVIDE_HIDDEN): New.
447 * ldlex.l (PROVIDE_HIDDEN): Likewise.
448
449 * scripttempl/elf.sc: Use PROVIDE_HIDDEN on array bound
450 symbols.
451
9599dfb1
AM
4522005-08-05 Alan Modra <amodra@bigpond.net.au>
453
454 * emulparams/elf_x86_64.sh: Revert last change.
455 * scripttempl/elf.sc (REL_LARGE, LARGE_SECTIONS): Define here.
456
827a1c67
AM
4572005-08-05 Alan Modra <amodra@bigpond.net.au>
458
459 * emulparams/armelf.sh (OTHER_BSS_END_SYMBOLS): Split out from
460 OTHER_END_SYMBOLS.
461 * emulparams/armelf_linux.sh: Likewise.
462 * emulparams/armnto.sh: Likewise.
463 * emulparams/criself.sh: Likewise.
464 * emulparams/elf32mcore.sh: Likewise.
465 * emulparams/criself.sh (OTHER_SYMBOLS): Define.
466 * emulparams/crislinux.sh (OTHER_SYMBOLS): Define.
467 (OTHER_END_SYMBOLS): Don't define.
468 * emulparams/elf32fr30.sh: Likewise.
469 * emulparams/elf64mmix.sh: Likewise.
470 * emulparams/hppa64linux.sh: Likewise.
471 * emulparams/m32relf.sh: Likewise.
472 * emulparams/vxworks.sh: Likewise.
473 * scripttempl/armbpabi.sc (OTHER_BSS_SECTIONS): Delete.
474 (OTHER_BSS_END_SYMBOLS): Add.
475 (OTHER_END_SYMBOLS): Move before current end sym definitions.
476 (OTHER_SYMBOLS): Replace OTHER_END_SYMBOLS near end of script.
477 * scripttempl/elf.sc: Likewise.
478 * scripttempl/elf32sh-symbian.sc: Likewise.
479 * scripttempl/elf_chaos.sc: Likewise.
480 * scripttempl/elfxtensa.sc: Likewise.
481 * scripttempl/iq2000.sc: Likewise.
482 * scripttempl/xstormy16.sc: Likewise.
483
484 * scripttempl/elf.sc (LBSS, LARGE_SECTIONS): Delete.
485 (REL_LDATA, REL_LBSS, REL_LRODATA): Delete.
486 (REL_LARGE, LARGE_SECTIONS): Add.
487 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): Define as script text.
488 (REL_LARGE): Define.
489 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
490 (LARGE_SECTIONS): Define.
491 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
492 (LARGE_SECTIONS): Define.
493
046183de
AM
4942005-08-04 Alan Modra <amodra@bigpond.net.au>
495
496 * ldemul.c (ldemul_do_assignments, do_assignments_default): Delete.
497 * ldemul.h (ldemul_do_assignments, do_assignments_default): Delete.
498 (struct ld_emulation_xfer_struct): Remove do_assignments field.
499 * ldlang.c (lang_do_assignments): Don't call ldemul_do_assignments.
500 * emulparams/elf32ppc.sh (SDATA_START_SYMBOLS): New.
501 (SDATA2_START_SYMBOLS, SBSS_START_SYMBOLS, SBSS_END_SYMBOLS): New.
502 * emultempl/aix.em (ld_*_emulation): Delete do_assignments init.
503 * emultempl/armcoff.em: Likewise.
504 * emultempl/beos.em: Likewise.
505 * emultempl/generic.em: Likewise.
506 * emultempl/gld960.em: Likewise.
507 * emultempl/gld960c.em: Likewise.
508 * emultempl/linux.em: Likewise.
509 * emultempl/lnk960.em: Likewise.
510 * emultempl/m68kcoff.em: Likewise.
511 * emultempl/pe.em: Likewise.
512 * emultempl/sunos.em: Likewise.
513 * emultempl/ticoff.em: Likewise.
514 * emultempl/vanilla.em: Likewise.
515 * emultempl/elf32.em: Likewise.
516 (gld*_provide_bound_symbols): Delete.
517 (gld*_provide_init_fini_syms): Delete.
518 (gld*_before_allocation): Don't call ldemul_do_assignments.
519 * emultempl/ppc32elf.em (ppc_do_assignments): Delete.
520 (LDEMUL_DO_ASSIGNMENTS): Delete.
521 * scripttempl/elf.sc: Provide init/fini syms. Add SBSS_START_SYMBOLS,
522 SBSS_END_SYMBOLS, SDATA2_START_SYMBOLS.
523
fa498e09
AM
5242005-08-04 Alan Modra <amodra@bigpond.net.au>
525
526 * Makefile.am (eelf32m32c.c): Fix dependencies.
527 * Makefile.in: Regenerate.
528
1e035701
AM
5292005-08-04 Alan Modra <amodra@bigpond.net.au>
530
531 * ldemul.c (ldemul_finish): Call ld_emulation->finish unconditionally.
532 (finish_default): New function.
533 * ldemul.h (finish_default): Declare.
534 * emultempl/aix.em (gld*_before_allocation): Call
535 before_allocation_default rather than strip_excluded_output_sections.
536 (ld_*_emulation): Init finish field to finish_default.
537 * emultempl/armcoff.em: Likewise.
538 * emultempl/beos.em: Likewise.
539 * emultempl/elf32.em: Likewise.
540 * emultempl/generic.em: Likewise.
541 * emultempl/gld960.em: Likewise.
542 * emultempl/gld960c.em: Likewise.
543 * emultempl/hppaelf.em: Likewise.
544 * emultempl/linux.em: Likewise.
545 * emultempl/lnk960.em: Likewise.
546 * emultempl/m68kcoff.em: Likewise.
547 * emultempl/mmo.em: Likewise.
548 * emultempl/pe.em: Likewise.
549 * emultempl/ppc64elf.em: Likewise.
550 * emultempl/sunos.em: Likewise.
551 * emultempl/ticoff.em: Likewise.
552 * emultempl/vanilla.em: Likewise.
553
9f4fb502
AM
5542005-08-03 Alan Modra <amodra@bigpond.net.au>
555
556 * ldlang.c (exp_init_os): Handle etree_provide.
557 * emulparams/armelf.sh (OTHER_END_SYMBOLS): Rename from..
558 (OTHER_BSS_END_SYMBOLS): ..this.
559 * emulparams/armelf_linux.sh: Likewise.
560 * emulparams/armnto.sh: Likewise.
561 * emulparams/criself.sh: Likewise.
562 * emulparams/crislinux.sh: Likewise.
563 * emulparams/elf32frv.sh: Likewise.
564 * emulparams/elf32mcore.sh: Likewise.
565 * emulparams/elf32ppc.sh: Likewise.
566 * emulparams/elf32ppclinux.sh: Likewise.
567 * emulparams/hppa64linux.sh: Likewise.
568 * scripttempl/armbpabi.sc: Substitute $OTHER_END_SYMBOLS, not
569 $OTHER_BSS_END_SYMBOLS.
570 * scripttempl/elf32sh-symbian.sc: Likewise.
571 * scripttempl/elf_chaos.sc: Likewise.
572 * scripttempl/iq2000.sc: Likewise.
573 * scripttempl/xstormy16.sc: Likewise.
574 * scripttempl/elf.sc: Likewise. Delete __bss_start comment.
575 * scripttempl/elfxtensa.sc: Likewise.
576
e9156f74
NC
5772005-07-29 Nick Clifton <nickc@redhat.com>
578
579 * ldmain.c (main): Allow -shared and -static to be used together.
580 * ld.texinfo (-static): Mention that it is allowed with -shared.
581
89806866
DD
5822005-07-28 DJ Delorie <dj@redhat.com>
583
584 * ldlang.c (lang_output_section_statement_lookup_1): Don't cast a
585 unary & address operator, as that breaks GCC's strict aliasing
586 rules.
587
3b22753a
L
5882005-07-25 Jan Hubicka <jh@suse.cz>
589 H.J. Lu <hongjiu.lu@intel.com>
590
591 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): New.
592
593 * scripttempl/elf.sc: Updated for large section support.
594
9f971fcb
NC
5952005-07-21 Ralf Corsepius <ralf.corsepius@rtems.org>
596
597 * configure.tgt: Remove i[3-7]86-*-rtemself*.
598 Remove sparc-*-rtemself*.
599
71f51525
BE
6002005-07-21 Ben Elliston <bje@gnu.org>
601
602 * ldgram.y (ldgram_want_filename): Remove unused static.
603
fe773494
DD
6042005-07-20 DJ Delorie <dj@redhat.com>
605
606 * emulparams/elf32m32c.sh (TEMPLATE_NAME): New.
607 (EXTRA_EM_FILE): New.
608
0e1b44ba
L
6092005-07-19 H.J. Lu <hongjiu.lu@intel.com>
610
611 * ldmain.c (main): Reindent.
612
a3540342
PB
6132005-07-19 Paul Brook <paul@codesourcery.com>
614
615 * configure.host (HOSTING_CRT0): Parse output of gcc --help --verbose
616 to determine dynamic linker name.
617
85da3a56
NC
6182005-07-18 Nick Clifton <nickc@redhat.com>
619
620 * configure.tgt: Restore alpha ordering to list of arches.
621
42fa7765
AM
6222005-07-16 Alan Modra <amodra@bigpond.net.au>
623
624 * emultempl/elf32.em (gld*_provide_init_fini_syms): Prototype.
625 (gld*_before_allocation): Call ldemul_do_assignments rather than
626 gld*_provide_init_fini_syms directly.
627 * emultempl/ppc32elf.em (gld*_after_allocation): Delete.
628 (ppc_do_assignments): New function.
629 (LDEMUL_AFTER_ALLOCATION): Don't define.
630 (LDEMUL_DO_ASSIGNMENTS): Define.
631
0f82ff91
AM
6322005-07-16 Alan Modra <amodra@bigpond.net.au>
633
634 * Makefile.am: Run "make dep-am".
635 (emipsidt.c, emipsidtl.c): Depend on generic.em.
636 * Makefile.in: Regenerate.
637
5e797c2c
AM
6382005-07-15 Alan Modra <amodra@bigpond.net.au>
639
640 * ldemul.c (ldemul_do_assignments): New function.
641 (do_assignments_default): New function.
642 * ldemul.h (ldemul_do_assignments): Declare.
643 (do_assignments_default): Declare.
644 (struct ld_emulation_xfer_struct): Add do_assignments.
645 * ldlang.c (lang_do_assignments) Call ldemul_do_assignments.
646 * emultempl/aix.em (ld_*_emulation): Init do_assignments field.
647 * emultempl/armcoff.em: Likewise.
648 * emultempl/beos.em: Likewise.
649 * emultempl/generic.em: Likewise.
650 * emultempl/gld960.em: Likewise.
651 * emultempl/gld960c.em: Likewise.
652 * emultempl/linux.em: Likewise.
653 * emultempl/lnk960.em: Likewise.
654 * emultempl/m68kcoff.em: Likewise.
655 * emultempl/pe.em: Likewise.
656 * emultempl/sunos.em: Likewise.
657 * emultempl/ticoff.em: Likewise.
658 * emultempl/vanilla.em: Likewise.
659 * emultempl/elf32.em: Likewise, to call gld*_provide_init_fini_syms.
660 (gld*_find_exp_assignment): Adjust bfd_elf_record_link_assignment call.
661
49f58d10
JB
6622005-07-14 Jim Blandy <jimb@redhat.com>
663
664 Add support for the Renesas M32C and M16C.
665 * Makefile.am (ALL_EMULATIONS): Add eelf32m32c.o.
666 (eelf32m32c.c): New target.
667 * Makefile.in: Regenerated.
668 * configure.tgt: Add case for m32c-*-elf.
669 * emulparams/elf32m32c.sh: New file.
670
a3c2b96a
AM
6712005-07-14 Alan Modra <amodra@bigpond.net.au>
672
673 * ldlang.c (strip_excluded_output_sections): Don't call
674 bfd_gc_sections.
675 * emultempl/elf32.em (gld*_provide_bound_symbols): Move.
676 (gld*_provide_init_fini_syms): Move.
677 (gld*_before_allocation): Call the above from here..
678 (gld*_finish): ..not here. Call _bfd_elf_fix_excluded_sec_syms.
679 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
680 * emultempl/ppc64elf.em (ppc_finish): Likewise.
681
438361cd
NC
6822005-07-10 Ralf Corsepius <ralf.corsepius@rtems.org>
683
684 * configure.tgt: Remove sparc*-*-rtemsaout*, i[3-7]86-go32-rtems*,
685 i[3-7]86-*-rtemscoff*, hppa*-*-rtems*, mips*el-*-rtems*,
686 powerpcle-*-rtems*.
687
2c7fd14a
CF
6882005-07-09 Christopher Faylor <cgf@timesys.com>
689
690 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Enable runtime
691 relocation by default.
692 (compute_dll_image_base): Avoid linking into cygwin dll address space.
693
32124d5b
AM
6942005-07-08 Alan Modra <amodra@bigpond.net.au>
695
696 * ldlang.c (wild_sort): Formatting.
697 (strip_excluded_output_sections): Strip zero size sections here.
698 * emultempl/elf32.em (gld*_strip_empty_sections): Delete.
699 (gld*_finish): Don't call the above.
700 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
701 * emultempl/ppc64elf.em (ppc_finish): Likewise.
702
4cd5aacc 7032005-07-05 Paul Brook <paul@codesourcery.com>
9d8504b1
PB
704
705 * Makefile.am (ALL_EMULATIONS): Add eelf32ppcvxworks.o.
706 (eelf32ppcvxworks.o): Add dependencies.
707 * Makefile.in: Regenerate.
708 * configure.tgt: Add entry for powerpc-vxworks.
709 * emulparams/elf32-ppc.c: Mention elf32ppcvxworks.sh in comment.
710 * emulparams/elf32ppcvxworks.sh: New file.
711 * emultempl/ppc32elf.em (bfd_elf32_powerpc_vxworks_vec): Declare.
712 (is_ppc_elf32_vec): New function.
713 (ppc_after_open, ppc_before_allocation,
714 gld${EMULATION_NAME}_after_allocation): Use it.
715
35eb9fb6
NC
7162005-07-05 Peter S. Mazinger" <ps.m@gmx.net>
717
718 * emulparams/elf32bmip.sh (GENERATE_PIE_SCRIPT): Define as "yes".
719 * emulparams/elf32bmipn32-defs.sh (GENERATE_PIE_SCRIPT): Define as "yes".
720
5b5a4ec7
NC
7212005-07-04 Mike Frysinger <vapier@gentoo.org>
722
723 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Fix typo in
724 name.
725
80447b21
NC
7262005-07-04 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
727
728 * emulparams/m32relf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
729
711c0baa
AM
7302005-07-04 Aurelien Jarno <aurel32@debian.org>
731
732 * emultempl/elf32.em: Enable use of ld.so.conf for *-*-k*bsd-*.
733
c8c9c297
AM
7342005-07-01 Alan Modra <amodra@bigpond.net.au>
735
736 * scripttempl/elf.sc (.gcc_except_table): Don't KEEP.
737
b753922c
BE
7382005-06-30 Ben Elliston <bje@gnu.org>
739
740 * Makefile.am (check-DEJAGNU): Don't search for expect.
741 * Makefile.in: Regenerate.
742
c3298874
BE
7432005-06-30 Ben Elliston <bje@gnu.org>
744
745 * Makefile.am (EXPECT): Set to expect.
746 (RUNTEST): Likewise, set to runtest.
747 * Makefile.in: Regenerate.
748
a82644e2
NC
7492005-06-16 Alexander Klimov <alserkli@inbox.ru>
750
751 * emultempl/armelf.em: Add quotes to avoid a null test
752 expression.
753
e185dd51
DJ
7542005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
755
756 * ld.texinfo (Command Line Options): Add @item for --hash-size.
757
9d12f64c
AM
7582005-06-10 Alan Modra <amodra@bigpond.net.au>
759
760 * scripttempt/elf.sc (.bss): Align tail in a way that allows
761 empty section pruning.
762
502bdb00
JW
7632005-06-09 Steve Ellcey <sje@cup.hp.com>
764
765 * configure.in (AM_BINUTILS_WARNINGS): Add.
766 (BFD_NEED_DECLARATION) Replace with AC_CHECK_DECLS.
767 * config.in: Regenerate.
768 * configure: Regenerate.
769 * sysdep.h (NEED_DECLARATION_*): Replace with HAVE_DECL_*
770 * ldmain.c: Ditto.
771
dea2f0a8
AM
7722005-06-09 Alan Modra <amodra@bigpond.net.au>
773
774 * ldexp.c (fold_unary <ALIGN_K>): Revert last change.
775
e9ee469a
AM
7762005-06-09 Alan Modra <amodra@bigpond.net.au>
777
778 * ld.h (lang_phase_type): Move to..
779 * ldexp.h: ..here. Add lang_mark_phase_enum.
780 (node_type): Remove etree_undef and etree_unspec.
781 (exp_data_seg): Delete.
782 (struct ldexp_control, expld): New.
783 (invalid, exp_mark_used_section): Delete.
784 (exp_fold_tree, exp_get_vma, exp_get_value_int, exp_get_fill,
785 exp_get_abs_int): Update prototypes.
786 * ldexp.c (assigning_to_dot): Delete.
787 (expld): Define.
788 (make_abs): Operate directly on expld.result. Update all callers.
789 (new_abs): Likewise. Return void.
790 (new_rel_from_abs): Rename from new_rel_from_section.
791 (new_rel, new_rel_from_abs): Operate on expld.result and return void.
792 Update all callers.
793 (fold_unary): Operate on expld.result and return void. Remove
794 "current_section", "allocation_done", "dot", "dotp" and "mark_used"
795 params. Update all callers.
796 (fold_binary, fold_trinary, fold_name, exp_fold_tree_1): Likewise.
797 (fold_unary <ALIGN_K>): Ensure alignment is absolute.
798 (fold_unary <ABSOLUTE>): Use make_abs.
799 (fold_unary <DATA_SEGMENT_END>): Evaluate mark_phase as for
800 allocating_phase.
801 (fold_binary <DATA_SEGMENT_ALIGN, DATA_SEGMENT_RELRO_END, >): Ditto.
802 (fold_binary <'%','/'>): Don't error if marking.
803 (fold_name <SIZEOF_HEADERS>): Don't call bfd_sizeof_headers when
804 marking.
805 (fold_name <NAME>): Remove FIXME; -R is handled correctly. Don't
806 error when marking.
807 (fold_name <ADDR, LOADADDR, SIZEOF>): Don't set SEC_KEEP.
808 (exp_fold_tree_1): Don't error when marking.
809 (exp_fold_tree_1 <etree_rel>): Evaluate in all phases except first.
810 (exp_fold_tree_1 <etree_assign to dot>): Don't check for NULL
811 current section, instead check for NULL dotp.
812 (exp_fold_tree_1 <etree_provide>): Don't evaluate the assignment
813 source unless the symbol is referenced and undefined.
814 (exp_fold_tree): Remove "allocation_done" and "dot" params. Save
815 params to expld.
816 (exp_fold_tree_no_dot): Remove "current_section", "allocation_done
817 and "mark_used" params. Save params to expld. Update all callers.
818 (exp_assop): Do without temp var.
819 (exp_print_tree <etree_undef>): Delete code.
820 (exp_get_vma): Remove "allocation_done" param. Correct error return.
821 (exp_get_fill, exp_get_abs_int): Likewise.
822 (exp_get_value_int): Remove "allocation_done" param.
823 (exp_mark_used_section): Delete.
824 * ldgram.y (fill_exp): Update exp_get_fill call.
825 (origin_spec, length_spec): Update exp_get_vma call.
826 * ldlang.c (lang_init): Don't bother clearing lang_statement_iteration.
827 (lang_mark_used_section_1, lang_mark_used_section): Delete.
828 (strip_excluded_output_sections): Call one_lang_size_sections_pass in
829 marking mode. Merge old lang_mark_used_section code. Correct handling
830 of output sections with excluded input sections and data statements.
831 Don't drop non-zero sized sections. Don't zap os->bfd_section.
832 Do set SEC_EXCLUDE when appropriate.
833 (print_output_section_statement): Update for changed ldexp.c
834 interface.
835 (print_assignment, lang_size_sections_1): Likewise.
836 (lang_do_assignments_1, lang_enter_output_section_statement): Likewise.
837 (lang_new_phdr, lang_record_phdrs): Likewise.
838 (lang_size_sections): Likewise.
839 (insert_pad): Use following statement if it is a pad, rather than
840 creating a new one.
841 (lang_size_sections_1 <lang_output_section_statement_enum>): Do
842 process ignored output section to set vma and lma, but don't
843 update dot for these sections. Don't error if marking.
844 (lang_size_sections_1 <lang_assignment_statement_enum>): Don't
845 update dot for ignored sections.
846 (lang_size_sections_1 <lang_data_statement_enum>): Don't mark absolute
847 section with SEC_ALLOC.
848 (one_lang_size_sections_pass): New function.
849 (lang_size_sections): Remove first five params. Set expld.phase on
850 entry and exit. Use one_lang_size_sections_pass.
851 (lang_do_assignments): Remove all params. Update all callers.
852 (lang_reset_memory_regions): Clear os->processed for all output
853 section statements.
854 * ldlang.h (lang_do_assignments): Update prototype.
855 (lang_size_sections): Likewise.
856 (one_lang_size_sections_pass): Declare.
857 * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
858 lang_size_sections and lang_do_assignments calls.
859 * emultempl/elf32.em (layout_sections_again): Likewise.
860 * emultempl/ppc64elf.em (ppc_before_allocation): Use
861 one_lang_size_sections_pass.
862
b2be2013
AH
8632005-06-08 Aldy Hernandez <aldyh@redhat.com>
864
865 * emulparams/elf32ms1.sh: New.
866
a34e3ecb
EC
8672005-06-07 Eric Christopher <echristo@redhat.com>
868
869 * Makefile.am (eelf32ms1.c): Use tab.
870 * Makefile.in: Regenerate.
871
9e1f170f
AH
8722005-06-07 Aldy Hernandez <aldyh@redhat.com>
873 Michael Snyder <msnyder@redhat.com>
874 Stan Cox <scox@redhat.com>
875
876 * configure.tgt: Same.
877
878 * Makefile.am (ALL_EMULATIONS): Depend on eelf32ms1.o.
879 (eelf32ms1.c): Add eelf32ms1.c rule.
880
881 * Makefile.in: Regenerate.
882
b4f4e59f
AM
8832005-06-06 Alan Modra <amodra@bigpond.net.au>
884
885 * emultempl/ppc64elf.em (ppc_before_allocation): Always run
886 ppc64_elf_edit_opd.
887
18b79829
L
8882005-06-05 H.J. Lu <hongjiu.lu@intel.com>
889
890 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
891 section only if the symbol will be defined.
892
079f985c
L
8932005-06-04 H.J. Lu <hongjiu.lu@intel.com>
894
895 PR 992
896 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
897 section for etree_assign, etree_provide and etree_provided.
898 Call fold_binary on etree_binary.
899
900 * ldlang.c (lang_mark_used_section_1): Handle load base.
901
e1fffbe6
AM
9022005-06-03 Alan Modra <amodra@bigpond.net.au>
903
904 * ldmain.c (link_callbacks): Add einfo.
905 (add_archive_element): Use passed info, not link_info.
906 (constructor_callback): Likewise.
907 (reloc_overflow): Don't handle null bfd specially.
908 (reloc_dangerous, unattached_reloc): Likewise.
909 * ldmisc.c (vfinfo <B>): Print "ld generated" for null bfd.
910 (vfinfo <C, D, G>): Handle null bfd. Wrap comments.
911
408082ec
AM
9122005-06-02 Alan Modra <amodra@bigpond.net.au>
913
914 * ldexp.h (etree_value_type): Use "asection *" in place of
915 "struct lang_output_section_statement_struct *" for "section".
916 (exp_fold_tree): Likewise.
917 (exp_mark_used_section): Likewise.
918 * ldexp.c (new_rel, new_rel_from_section, fold_unary, fold_binary,
919 fold_trinary, fold_name, exp_fold_tree_1, exp_fold_tree,
920 exp_mark_used_section): Likewise for "current_section" param.
921 (make_abs, new_abs, exp_binop, exp_unop, exp_get_vma, exp_get_fill,
922 exp_get_abs_int): Adjust for above changes.
923 * ldlang.c (lang_mark_used_section_1, print_assignment,
924 lang_size_sections_1, lang_do_assignments_1): Likewise.
925 * ldexp.c (fold_name): Init entire result struct.
926
d0d3b2e8
MR
9272005-06-01 Maciej W. Rozycki <macro@linux-mips.org>
928
929 * emulparams/elf32btsmip.sh: Unset DATA_ADDR.
930
a359509e
ZW
9312005-05-31 Zack Weinberg <zack@codesourcery.com>
932
933 * ldlang.c (entry_symbol_default): New file-scope global.
934 (lang_finish): Use it, not a hardwired "start".
935 (lang_default_entry): Set it.
936 * ldlang.h: Declare lang_default_entry.
937 * emultempl/beos.em, emultempl/pe.em: Use lang_default_entry,
938 not lang_add_entry, to override default entry point symbol.
939
8d6d53d4
RH
9402005-05-29 Richard Henderson <rth@redhat.com>
941
942 * emulparams/elf64alpha.sh (PLT): New.
943 (TEXT_PLT): New.
944 * emultempl/alphaelf.em (disable_relaxation): New.
945 (limit_32bit): Rename from elf64alpha_32bit; update all users.
946 (elf64_alpha_use_secureplt): Declare.
947 (bfd_elf64_alpha_vec, bfd_elf64_alpha_freebsd_vec): Declare.
948 (alpha_after_open): New.
949 (alpha_before_allocation): New.
950 (OPTION_NO_RELAX, OPTION_SECUREPLT, OPTION_NO_SECUREPLT): New.
951 (PARSE_AND_LIST_LONGOPTS): Include them.
952 (PARSE_AND_LIST_OPTIONS): Likewise.
953 (PARSE_AND_LIST_ARGS_CASES): Likewise.
954 (LDEMUL_AFTER_OPEN, LDEMUL_BEFORE_ALLOCATION): New.
955 * scripttempl/elf.sc (TEXT_PLT): New.
956 (PLT): Use it.
957
f93e81d6
AS
9582005-05-27 Andreas Schwab <schwab@suse.de>
959
960 * configure.host (HOSTING_LIBS): Add libunwind.a if it exists.
961
61f8ebf2
AM
9622005-05-24 Alan Modra <amodra@bigpond.net.au>
963
964 * emultempl/ppc32elf.em (after_allocation): Don't call
965 ppc_elf_set_sdata_syms when relocatable.
966
8b803601
L
9672005-05-21 H.J. Lu <hongjiu.lu@intel.com>
968
969 * Makefile.am (ld.1): Revert the last 2 changes.
970 (info-recursive): Depend on ld.1.
971 * Makefile.in: Regenerated.
972
e366efef
L
9732005-05-21 H.J. Lu <hongjiu.lu@intel.com>
974
975 * Makefile.am (ld.1): Depend on "info" instead of
976 "configdoc.texi ldver.texi".
977 * Makefile.in: Regenerated.
978
abf32a89
L
9792005-05-21 H.J. Lu <hongjiu.lu@intel.com>
980
981 * Makefile.am (ld.1): Depend on "info".
982 * Makefile.in: Regenerated.
983
e3e71e27
ZW
9842005-05-19 Zack Weinberg <zack@codesourcery.com>
985
986 * Makefile.am: Have 'all' depend on 'info' and 'ld.1'.
987 * Makefile.in: Regenerate.
988
c19d1205
ZW
9892005-05-17 Zack Weinberg <zack@codesourcery.com>
990
991 * ld-arm/mixed-app.d: Adjust expected disassembly a little.
992
970c3dbc
DJ
9932005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
994
995 * Makefile.am (ldver.texi): Don't use $<.
996 * Makefile.in: Regenerated.
997
6e1b59d2
DJ
9982005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
999
1000 * Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
1001 $(srcdir) before $(BFDDIR)/doc.
1002 * Makefile.in: Regenerated.
1003
75ff4589
L
10042005-05-17 H.J. Lu <hongjiu.lu@intel.com>
1005
1006 PR 797
1007 * ldexp.c (exp_fold_tree_1): Renamed from exp_fold_tree and
1008 take take a bfd_boolean, mark_used. Ignore assert failure if
1009 mark_used is TRUE.
1010 (exp_fold_tree) Call exp_fold_tree_1 with mark_used == FALSE.
1011 (exp_fold_tree_no_dot): Updated to take a bfd_boolean,
1012 mark_used and pass down.
1013 (fold_unary): Likewise.
1014 (fold_binary): Likewise.
1015 (fold_trinary): Likewise.
1016 (exp_binop): Add FALSE to call to exp_fold_tree_no_dot.
1017 (exp_trinop): Likewise.
1018 (exp_unop): Likewise.
1019 (exp_nameop): Likewise.
1020 (exp_get_vma): Likewise.
1021 (exp_get_fill): Likewise.
1022 (exp_get_abs_int): Likewise.
1023 (fold_name): Likewise. Set SEC_KEEP in output section flags.
1024 (exp_mark_used_section): New.
1025
1026 * ldexp.h (exp_mark_used_section): New.
1027
1028 * ldlang.c (lang_output_section_statement_lookup_1): Set the
1029 ignored field to FALSE.
1030 (lang_mark_used_section_1): New.
1031 (lang_mark_used_section): Call lang_mark_used_section_1.
1032 (strip_excluded_output_sections): Call lang_mark_used_section
1033 and check for unused sections.
1034 (lang_size_sections_1): Skip an output section if it should
1035 be ignored.
1036 (lang_do_assignments_1): Likewise.
1037 (lang_process): Don't call lang_mark_used_section here.
1038
1039 * ldlang.h (lang_output_section_statement_type): Change
1040 all_input_readonly to bitfield. Add ignored.
1041
25ba8e7b
NC
10422005-05-17 Lennert Buytenhek <buytenh@wantstofly.org>
1043 Peter S. Mazinger" <ps.m@gmx.net>
1044
c19d1205
ZW
1045 * emulparams/armelf_linux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
1046 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
25ba8e7b 1047
10dbd1f3
NC
10482005-05-17 Julian Brown <julian@codesourcery.com>
1049
1050 * ldlang.c (print_assignment): Do not rely upon a valid result
1051 having a section associated with it.
1052
3b83e13a
NC
10532005-05-17 Nick Clifton <nickc@redhat.com>
1054
1055 * ldlang.c (Scan_for_self_assignment): Check an assignment tree to
1056 see if the same value is being used on the rhs as on the lhs.
1057 (print_assignment): Call scan_for_self_assignment and if it
1058 returns true, do no display the result of the computation but
1059 instead just the final value of the symbol on the lhs.
1060 * ld.texinfo: Document this behaviour and provide an example of
1061 when it will happen.
1062
42ecbf5e
DJ
10632005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
1064
1065 * Makefile.am (AM_MAKEINFOFLAGS): Define.
1066 (TEXI2DVI): Define.
1067 (ldver.texi): Depend on distributed files instead of built files.
1068 (ld.info): Include $(srcdir) in the rule target. Remove actions.
1069 (ld.dvi): Remove actions.
1070 (MAINTAINERCLEANFILES): Add configdoc.texi.
1071 (CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in.
1072 (install-data-local): Renamed from install.
1073 (Makefile): Remove explicit dependency.
1074 * acinclude.m4: Remove obsolete code.
1075 * configure.in: Update AC_PREREQ. Remove extra $CONFIG_SHELL.
1076 * Makefile.in, aclocal.m4, config.in, configure: Regenerated.
1077
be2c2e39
BW
10782005-05-11 Bob Wilson <bob.wilson@acm.org>
1079
1080 * scripttempl/elfxtensa.sc: Sync up with elf.sc.
1081 * emulparams/elf32xtensa.sh (PLT, GOT): Define.
1082
0cf7d72c
AM
10832005-05-11 Alan Modra <amodra@bigpond.net.au>
1084
1085 * ldgram.y: Add SPECIAL token.
1086 (sect_constraint): Handle SPECIAL.
1087 * ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
1088 (map_input_to_output_sections): Likewise.
1089 * ldlex.l (SPECIAL): Define.
1090 * emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
1091 GOT, PLT, GOTPLT): Define.
1092 * emultempl/ppc32elf.em (old_plt, old_got): New static vars.
1093 (ppc_after_open): New function.
1094 (PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
1095 (PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
1096 (PARSE_AND_LIST_OPTIONS): Document them.
1097 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1098 (LDEMUL_AFTER_OPEN): Define.
1099 * scripttempl/elf.sc (PLT): Don't override existing define.
1100 (DATA_GOT, SDATA_GOT): Define and use to enable alternate got
1101 placement rather than using NO_SMALL_DATA. Emit GOTPLT for RELRO_NOW.
1102
4ca02259
AM
11032005-05-10 Alan Modra <amodra@bigpond.net.au>
1104
1105 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
1106 (DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
1107 (GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END. Place after
1108 DATA_SEGMENT_RELRO_END in script.
1109
baf6e97f
L
11102005-05-09 H.J. Lu <hongjiu.lu@intel.com>
1111
1112 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1113 Don't use a removed section.
1114
a6e1b90f
L
11152005-05-09 H.J. Lu <hongjiu.lu@intel.com>
1116
1117 * ldmain.c (reloc_overflow): Use output_bfd if the symbol
1118 is defined in the ABS section.
1119
c18bae34
L
11202005-05-06 H.J. Lu <hongjiu.lu@intel.com>
1121
1122 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
1123 Put back !link_info.relocatable.
1124
4ef24a2e
L
11252005-05-06 H.J. Lu <hongjiu.lu@intel.com>
1126
3f693ed5 1127 PR 878
4ef24a2e
L
1128 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
1129 Just check link_info.executable.
1130
e06fb9c3
NC
11312005-05-06 Nick Clifton <nickc@redhat.com>
1132
1133 * Update the address and phone number of the FSF organization in
1134 the GPL notices in the following files:
1135 aclocal.m4, deffile.h, deffilep.y, fdl.texi, ld.h, ldcref.c,
1136 ldctor.c, ldctor.h, ldemul.c, ldexp.c, ldexp.h, ldfile.c,
1137 ldfile.h, 20ldgram.y, ldint.texinfo, ldlang.c, ldlang.h, ldlex.h,
1138 ldlex.l, ldmain.c, ldmain.h, ldmisc.c, ldmisc.h, ldver.c, ldver.h,
1139 ldwrite.c, ldwrite.h, lexsup.c, mri.c, mri.h, pe-dll.c, pe-dll.h,
1140 sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
1141 emultempl/armcoff.em, emultempl/armelf.em, emultempl/beos.em,
1142 emultempl/crxelf.em, emultempl/elf32.em, emultempl/generic.em,
1143 emultempl/gld960.em, emultempl/gld960c.em, emultempl/hppaelf.em,
1144 emultempl/ia64elf.em, emultempl/irix.em, emultempl/linux.em,
1145 emultempl/lnk960.em, emultempl/m68hc1xelf.em,
1146 emultempl/m68kcoff.em, emultempl/m68kelf.em,
1147 emultempl/mipsecoff.em, emultempl/mmix-elfnmmo.em,
1148 emultempl/mmixelf.em, emultempl/mmo.em, emultempl/needrelax.em,
1149 emultempl/pe.em, emultempl/ppc32elf.em, emultempl/ppc64elf.em,
1150 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em,
1151 emultempl/vanilla.em, emultempl/xtensaelf.em
1152
01d9ad14
L
11532005-05-05 H.J. Lu <hongjiu.lu@intel.com>
1154
1155 * scripttempl/elf.sc: Document the usage of __bss_start.
1156
eac338cf
PB
11572005-05-05 Paul Brook <paul@codesourcery.com>
1158
1159 * Makefile.am: Add eelf_i386_vxworks.
1160 * Makefile.in: Regenerate.
1161 * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
1162 * emulparams/elf_i386_vxworks.sh: New file.
1163 * emulparams/vxworks.sh: New file.
1164 * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
1165
f652615e
L
11662005-05-04 H.J. Lu <hongjiu.lu@intel.com>
1167
1168 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1169 Call _bfd_elf_provide_section_bound_symbols.
1170
8423293d
AM
11712005-05-04 Alan Modra <amodra@bigpond.net.au>
1172
1173 * ldemul.c: Include bfdlink.h.
1174 (ldemul_before_allocation): Assume before_allocation is non-zero.
1175 (before_allocation_default): Call strip_excluded_output_sections.
1176 * ldlang.c (stripped_excluded_sections): New variable.
1177 (lang_add_section): Build input section list for each output
1178 section, attached via map_head and map_tail pointers.
1179 (strip_excluded_output_sections): Make global. Traverse the
1180 input section lists to find which output sections can go. Clear
1181 link_order pointers and set stripped_excluded_sections.
1182 (lang_process): Call strip_excluded_output_sections.
1183 * ldlang.h (strip_excluded_output_sections): Declare.
1184 * ldwrite.c: Update throuhout for link_order_head -> map_head change.
1185 * emultempl/aix.em (before_allocation): Call
1186 strip_excluded_output_sections.
1187 * emultempl/armcoff.em (before_allocation): Likewise.
1188 * emultempl/beos.em (before_allocation): Likewise.
1189 * emultempl/linux.em (before_allocation): Likewise.
1190 * emultempl/pe.em (before_allocation): Likewise.
1191 * emultempl/sunos.em (before_allocation): Likewise.
1192 * emultempl/elf32.em (before_allocation): Likewise. Call
1193 bfd_elf_size_dynsym_hash_dynstr too.
1194 * emultempl/lnk960.em (lnk960_before_allocation): Delete.
1195 (ld_lnk960): Use before_allocation_default.
1196
5daa8fe7
L
11972005-05-02 H.J. Lu <hongjiu.lu@intel.com>
1198
1199 * emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
1200 Updated for bfd_section_list_remove change.
1201 * ldlang.c (lang_insert_orphan): Likewise.
1202 (strip_excluded_output_sections): Likewise.
1203 (sort_sections_by_lma): New.
1204 (lang_check_section_addresses): Sort the sections before
1205 checking addresses.
1206
009b6a7a
DJ
12072005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
1208
1209 * configure.tgt: Add h8300*-*-rtemscoff.
1210 Switch h8300*-*-rtems* to elf.
1211
279e75dc
BE
12122005-04-29 Ben Elliston <bje@au.ibm.com>
1213
1214 * ldgram.y (lang_memory_region_type): Make static.
1215 (ldgram_want_filename): Likewise.
1216 * ldemul.c (ld_emulation): Make static.
1217 * ldfile.h (ldfile_find_command_file): Remove extern.
1218 * ldfile.c (ldfile_find_command_file): Make static.
1219 * ldlang.h (unique_section_list): Remove extern declaration.
1220 * ldlang.c (unique_section_list): Make static.
1221 * mri.h (symbol_truncate): Remove extern declaration.
1222 * mri.c (symbol_truncate): Make static.
1223 (order, only_load, address, alias): Likewise.
1224 (alignment, subalignment): Likewise.
1225
4a2afbc1
L
12262005-04-27 H.J. Lu <hongjiu.lu@intel.com>
1227
1228 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1229 Use the first SEC_ALLOC section which isn't SEC_READONLY or the
1230 last SEC_ALLOC section if such a section doesn't exist.
1231
fd9719b1
MK
12322005-04-24 Mark Kettenis <kettenis@gnu.org>
1233
1234 * configure.host: Add *-*-openbsd support.
1235
33bfe774
JB
12362005-04-15 Julian Brown <julian@codesourcery.com>
1237
1238 * ld.texinfo: Document --use-blx.
1239 * emultempl/armelf.em (use_blx): New variable.
1240 (arm_elf_create_output_section_statements): Communicate value of
1241 use_blx to bfd.
1242 (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
1243 (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
1244 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
1245
9e9b66a9
AM
12462005-04-14 Alan Modra <amodra@bigpond.net.au>
1247
1248 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
1249 * configure.in: Include ../bfd/warning.m4 contents.
1250 * Makefile.in: Regenerate.
1251 * configure: Regenerate.
1252
ceae3e33
AM
12532005-04-12 Alan Modra <amodra@bigpond.net.au>
1254
1255 * Makefile.am: Run "make dep-am".
1256 (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
1257 * Makefile.in: Regenerate.
1258 * config.in: Regenerate.
1259
7cedef86
AM
12602005-04-11 Alan Modra <amodra@bigpond.net.au>
1261
1262 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
1263 as_needed libs that were not needed.
1264 (gld${EMULATION_NAME}_check_needed): Likewise.
1265
187ffe95
NC
12662005-04-07 Nick Clifton <nickc@redhat.com>
1267
1268 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
0cf7d72c 1269 ldfile.h can use the lang_input_statement type.
187ffe95 1270
72223188
JJ
12712005-04-06 Jakub Jelinek <jakub@redhat.com>
1272
1273 * ldlang.c: Formatting.
1274 (walk_wild_consider_section): Remember return value from wildcardp.
1275 (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
1276 (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
1277
12782005-04-06 Robert O'Callahan <rocallahan@novell.com>
1279
1280 * ld.h (lean_section_userdata_type): Remove.
1281 (fat_section_userdata_type): Remove file field.
1282 (SECTION_USERDATA_SIZE): Remove.
1283 * ldlang.c (init_os): Eliminate initialization of unused
1284 lean_section_userdata_type.
1285
1286 * ldlang.h (callback_t, walk_wild_section_handler_t): New
1287 typedefs.
1288 (struct lang_wild_statement_struct): Add walk_wild_section_handler
1289 and handler_data fields.
1290 * ldlang.c (callback_t): Removed.
1291 (walk_wild_consider_section, walk_wild_section_general,
1292 section_iterator_callback, find_section, is_simple_wild,
1293 match_simple_wild, walk_wild_section_specs1_wild0,
1294 walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
1295 walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
1296 wild_spec_can_overlap, analyze_walk_wild_section_handler): New
1297 functions.
1298 (lang_add_wild): Call analyze_walk_wild_section_handler.
1299 (walk_wild_section): Renamed to walk_wild_section_general and
1300 created a wrapper function.
1301 (section_iterator_callback_data): New typedef.
1302
34875e64
NC
13032005-04-04 Nick Clifton <nickc@redhat.com>
1304
1305 * configure.in: Add a check for <unistd.h> providing a prototype
1306 for getopt() which is compatible with the one in
1307 include/getopt.h. If so then define HAVE_DECL_GETOPT.
1308 * configure: Regenerate.
1309 * config.in (HAVE_DECL_GETOPT): Add.
1310 * ldemul.c: Include config.h
1311 * lexsup.c: Likewise.
1312 * emultempl/elf32.sc: Likewise.
1313
deb04cdb
AM
13142005-03-29 Alan Modra <amodra@bigpond.net.au>
1315
1316 * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
1317 New function, extracted from static void gld${EMULATION_NAME}_finish.
1318 (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
1319 (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
1320 * emultempl/ppc64elf.em: Revert last change.
1321 (ppc_layout_sections_again): Use
1322 gld${EMULATION_NAME}_layout_sections_again.
1323 (ppc_finish): Don't call gld${EMULATION_NAME}_finish. Instead call
1324 gld${EMULATION_NAME}_strip_empty_sections and
1325 gld${EMULATION_NAME}_provide_init_fini_syms.
1326 * emultempl/hppaelf.em: Similarly.
1327
8b4e5e28
AM
13282005-03-29 Alan Modra <amodra@bigpond.net.au>
1329
1330 * emultempl/ppc64elf.em (need_laying_out): Delete. Remove all refs.
1331 (ppc_finish): Don't call bfd_elf_discard_info.
1332 * emultempl/hppaelf.em: Similarly.
1333
510a939b
NC
13342005-03-24 Nick Clifton <nickc@redhat.com>
1335
1336 * po/fr.po: Updated French translation.
1337
ed84e695
NC
13382005-03-23 Mike Frysinger <vapier@gentoo.org>
1339 Nick Clifton <nickc@redhat.com>
1340
1341 * configure.host: Accept any C library to accompany a GNU Linux
1342 implementation, not just the GNU C library.
1343 * configure.tgt: Likewise.
1344 * emultempl/elf32.em: Likewise.
deb04cdb 1345
81e1b023
L
13462005-03-22 H.J. Lu <hongjiu.lu@intel.com>
1347
1348 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
1349 (gld${EMULATION_NAME}_finish): Call
1350 gld${EMULATION_NAME}_provide_bound_symbols to provide
1351 __preinit_array_start, __preinit_array_end, __init_array_start,
1352 __init_array_end, __fini_array_start and __fini_array_end.
1353
1354 * scripttempl/elf.sc: Don't provide __preinit_array_start,
1355 __preinit_array_end, __init_array_start, __init_array_end,
1356 __fini_array_start nor __fini_array_end.
1357
11d2f718
AM
13582005-03-23 Alan Modra <amodra@bigpond.net.au>
1359
1360 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
1361 SEC_EXCLUDE on .gnu.warning sections.
1362
644285ef
AM
13632005-03-22 Alan Modra <amodra@bigpond.net.au>
1364
1365 * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
1366
c9a2f333
AM
13672005-03-21 Alan Modra <amodra@bigpond.net.au>
1368
1369 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
1370 function.
1371 (LDEMUL_AFTER_ALLOCATION): Define.
1372
b1ab9777
AM
13732005-03-21 Alan Modra <amodra@bigpond.net.au>
1374
1375 * emultempl/ppc64elf.em (ppc_finish): Rename from
1376 gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
1377 (LDEMUL_FINISH): Update.
1378 * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
1379 * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
1380
2a2a7c94
JB
13812005-03-18 Julian Brown <julian@codesourcery.com>
1382
1383 * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
1384 .rel.fini_array.
1385 (.rela.dyn): Add .rela.init_array, .rela.fini_array.
1386 (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
1387
98720c64
L
13882005-03-18 H.J. Lu <hongjiu.lu@intel.com>
1389
1390 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
1391 bfd_section when removing unused empty output sections for
1392 non-relocatable link.
1393
41c7ba7c
AM
13942005-03-19 Alan Modra <amodra@bigpond.net.au>
1395
1396 * ldlang.c (lang_insert_orphan): Use old section_tail rather than
1397 traversing the bfd section list to find pointer to new section.
1398
0fb53118
AM
13992005-03-18 Alan Modra <amodra@bigpond.net.au>
1400
1401 * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
1402 input sections into .sdata and .sbss output respectively.
1403
de7f8cc8
BW
14042005-03-16 David Heine <dlheine@tensilica.com>
1405 Bob Wilson <bob.wilson@acm.org>
1406
1407 * ldlang.c (IGNORE_SECTION): Remove check for zero size.
1408 (lang_check_section_addresses): Ignore zero size sections here.
1409
57316bff
L
14102005-03-16 H.J. Lu <hongjiu.lu@intel.com>
1411
1412 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
1413 unused empty output sections for non-relocatable link.
1414
1415 * ld.h (args_type): Remove gc_sections.
1416
1417 * ldlang.c (lang_mark_used_section): New.
1418 (lang_gc_sections): Use link_info.gc_sections instead of
1419 command_line.gc_sections.
1420 * ldmain.c (main): Likewise.
1421 * lexsup.c (parse_args): Likewise.
1422 * ldlang.c (lang_process): Call lang_mark_used_section.
1423
1424 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
1425
1ad12f97
NC
14262005-03-16 Nick Clifton <nickc@redhat.com>
1427 Ben Elliston <bje@au.ibm.com>
1428
569acd2c 1429 * configure.in (werror): New switch: Add -Werror to the
1ad12f97 1430 compiler command line. Enabled by default. Disable via
569acd2c 1431 --disable-werror.
1ad12f97
NC
1432 * configure: Regenerate.
1433
cb2d1ef2
AM
14342005-03-16 Alan Modra <amodra@bigpond.net.au>
1435
1436 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
1437 (OTHER_RELRO_SECTIONS): Set this instead.
1438
957d91c1
NC
14392005-03-15 Nick Clifton <nickc@redhat.com>
1440
1441 * NEWS: Add cutoff for changes in 2.16 release.
1442
34723071
NC
14432005-03-15 Mikkel Krautz <krautz@gmail.com>
1444
1445 * configure.tgt (x86_64-elf): Add target.
1446
729ae8d2
AM
14472005-03-15 Alan Modra <amodra@bigpond.net.au>
1448
1449 * po/es.po: Commit new Spanish translation.
1450
8b3d8fa8
AM
14512005-03-14 Alan Modra <amodra@bigpond.net.au>
1452
1453 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
1454 Tidy etree_assert case.
1455
882cb63e
AM
14562005-03-14 Alan Modra <amodra@bigpond.net.au>
1457
1458 * po/tr.po: Commit new Turkish translation.
1459
61c84b48
DJ
14602005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
1461
1462 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
1463 * Makefile.in: Regenerated.
1464 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
1465
41c9e29d
NC
14662005-03-07 Nick Clifton <nickc@redhat.com>
1467
1468 * po/fr.po: Updated translation.
1469
06647dfd
AM
14702005-03-05 Alan Modra <amodra@bigpond.net.au>
1471
1472 * po/ld.pot: Regenerate.
1473
bb14f524
JB
14742005-03-02 Jan Beulich <jbeulich@novell.com>
1475
1476 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
1477 * pe-dll.c (pe_dll_generate_implib): Likewise.
1478
0ef622cb
BE
14792005-02-24 Ben Elliston <bje@au.ibm.com>
1480
1481 * ldfile.c: Remove GNU960 conditional code.
1482 * emultempl/gld960.em: Likewise.
1483 * emultempl/gld960c.em: Likewise.
1484 * emultempl/lnk960.em: Likewise.
1485
f3f4bcca
NC
14862005-02-24 Nick Clifton <nickc@redhat.com>
1487
1488 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
1489 empty string from calls to concat.
1490
14912005-02-23 Nick Clifton <nickc@redhat.com>
1492
1493 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
1494 arguments passed to concat() with a NULL.
1495
1496 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
1497 define types needed by ldfile.h
1498
47639182
AM
14992005-02-23 Alan Modra <amodra@bigpond.net.au>
1500
1501 * pe-dll.c: Warning fixes.
1502 * emultempl/sunos.em: Likewise.
1503
ace66bb2
DJ
15042005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
1505
1506 * ldlang.c (section_already_linked): Don't call
1507 bfd_section_already_linked for dynamic objects.
1508
5718918d
AM
15092005-02-22 Alan Modra <amodra@bigpond.net.au>
1510
1511 * ldexp.c: Warning fixes.
1512 * ldwrite.c: Likewise.
1513 * emultempl/elf32.em: Likewise.
1514
ebe372c1
L
15152005-02-21 H.J. Lu <hongjiu.lu@intel.com>
1516
1517 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
1518 tic54x input only.
1519 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
1520 and ECOFF output only.
1521
0ca2f5d5
AM
15222005-02-21 Alan Modra <amodra@bigpond.net.au>
1523
1524 * config.in: Regenerate.
1525 * configure: Regenerate.
1526
fbbb9ac5
ZW
15272005-02-17 Zack Weinberg <zack@codesourcery.com>
1528
1529 * ldexp.c (assigning_to_dot): New global flag.
1530 (fold_name): If assigning_to_dot is true, object immediately to
1531 an undefined symbol.
1532 (exp_fold_tree): Set and clear assigning_to_dot around the
1533 recursive call to exp_fold_tree to process the right-hand side
1534 of an assignment to the location counter.
1535
c68dac40
PB
15362005-02-17 Paul Brook <paul@codesourcery.com>
1537
1538 * scripttempl/armbpabi.sc: Add dummy name to version block.
1539
20c2cbe3
AM
15402005-02-17 Alan Modra <amodra@bigpond.net.au>
1541
1542 * ldexp.c (new_abs): Init new.str.
1543
0b48acfe
MM
15442005-02-15 Mark Mitchell <mark@codesourcery.com>
1545
1546 * configure.in (AC_CHECK_FUNCS): Add glob.
1547 * configure: Regenerated.
1548 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
1549 not defined.
1550 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
1551 if HAVE_GLOB is not defined.
fbbb9ac5 1552
ff925e69
KK
15532005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1554
1555 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
1556 lib_path if NATIVE is yes.
1557
92b7a70f
AM
15582005-02-16 Alan Modra <amodra@bigpond.net.au>
1559
1560 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
1561 an error creating fake bfd fatal.
1562 (ppc_before_allocation): Continue on after errors.
1563 (gld${EMULATION_NAME}_finish): Likewise.
1564
297ba367
NC
15652005-02-15 Nick Clifton <nickc@redhat.com>
1566
1567 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
1568 not declared. It is not used and its presence causes a compile
1569 time warning.
fbbb9ac5 1570
9eabd475
ZW
15712005-02-11 Zack Weinberg <zack@codesourcery.com>
1572
1573 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
1574 If st.st_ino is zero, do not treat the library as a duplicate.
1575
d457dcf6
JJ
15762005-02-10 Jakub Jelinek <jakub@redhat.com>
1577
1578 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1579 Set BFD_LINKER_CREATED on the stubs bfd.
1580 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
1581 Likewise.
1582
4e5db43b
MM
15832005-02-08 Mark Mitchell <mark@codesourcery.com>
1584
1585 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
9eabd475 1586 local.
4e5db43b
MM
1587 (Image$$ER_RO$$Base): Define whenever RELOCATING.
1588 (Image$$ER_RO$$Limit): Likewise.
1589 (SHT$$INIT_ARRAY$$Base): Likewise.
1590 (SHT$$INIT_ARRAY$$Limit): Likeise.
1591
4297f9f1
BE
15922005-02-10 Ben Elliston <bje@au.ibm.com>
1593
1594 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
1595
1c7c5e5b
RS
15962005-02-08 Richard Sandiford <rsandifo@redhat.com>
1597
1598 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
1599 to include o32 and n64 emulations.
1600 (mips64*-*-linux-gnu*): Likewise.
1601
300475fe
HPN
16022005-02-08 Hans-Peter Nilsson <hp@axis.com>
1603
1604 * ldmain.c (warning_callback, warning_find_reloc): Prepend
1605 "warning: " to warning messages.
1606
4ea42fb7
AM
16072005-02-04 Alan Modra <amodra@bigpond.net.au>
1608
1609 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
1610 look up symbol for etree_provide here.
1611
161f49a3
DJ
16122005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
1613
1614 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
1615
73ae6183
NC
16162005-02-01 Edward Welbourne <eddy@opera.com>
1617 Nick Clifton <nickc@redhat.com>
1618
1619 * ld.texinfo (Source Code Reference): New node describing how to
1620 access linker script defined variables from source code.
1621
77cfaee6
AM
16222005-02-01 Alan Modra <amodra@bigpond.net.au>
1623
1624 * ld.texinfo: Clarify --as-needed operation.
1625
c46f8c51
AC
16262005-01-31 Andrew Cagney <cagney@gnu.org>
1627
1628 * configure: Regenerate to track ../gettext.m4.
1629
d342277e
NC
16302005-01-31 Nick Clifton <nickc@redhat.com>
1631
1632 * ldver.c (ldversion): Bump reported copyright date to 2005.
1633
d6486796
NC
16342005-01-31 Nick Clifton <nickc@redhat.com>
1635
1636 * configure.tgt: Remove obsolete targets m68k-lynxos and
1637 sparc-lynxos.
1638
319850b4
JB
16392005-01-28 Julian Brown <julian@codesourcery.com>
1640
1641 * emultempl/armelf.em (fix_v4bx): New variable.
1642 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
1643 value to bfd.
1644 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
1645 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
1646 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
9eabd475 1647 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
319850b4
JB
1648 * NEWS: Mention --fix-v4bx.
1649 * ld.texinfo: Document --fix-v4bx.
1650
dc4c9c19
MM
16512005-01-25 Mark Mitchell <mark@codesourcery.com>
1652
1653 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
1654 as to include .ARM.exidx$${Base,Limit}.
1655 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
1656 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
1657 Put .init_array, .fini_array, etc. into the read-only data
9eabd475
ZW
1658 segment.
1659
7e9f0867
AM
16602005-01-25 Alan Modra <amodra@bigpond.net.au>
1661
1662 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
1663 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
1664 only needed by an as-needed lib that didn't get linked.
1665
7e69709c
AM
16662005-01-23 Alan Modra <amodra@bigpond.net.au>
1667
1668 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
1669 __DTOR_LIST__ description.
1670
b5666f2f
AM
16712005-01-23 Alan Modra <amodra@bigpond.net.au>
1672
1673 * ld.texinfo (Location Counter <dot outside sections>): Document
1674 effects of orphan section placement, and ". = ." workaround.
1675 * Makefile.in: Regenerate.
1676
4e25343c
RS
16772005-01-22 Richard Sandiford <rsandifo@redhat.com>
1678
1679 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
1680 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
1681
b717d30e
JJ
16822005-01-21 Jakub Jelinek <jakub@redhat.com>
1683
1684 * ldgram.y (AS_NEEDED): New token.
1685 (input_list): Handle AS_NEEDED ( input_list ).
1686 * ldlex.l (AS_NEEDED): Add.
1687 * ld.texinfo: Document AS_NEEDED ().
1688 * NEWS: Mention AS_NEEDED ().
1689
7a64f7b8
BE
16902005-01-21 Ben Elliston <bje@au.ibm.com>
1691
1692 * ldlang.c (lang_reasonable_defaults): Remove.
1693 (lang_process): Don't call lang_reasonable_defaults.
1694
1695 * ldexp.c (exp_assop): Remove #if 0'd code.
1696 (exp_print_tree): Likewise.
1697 * ldlang.c (lang_memory_region_lookup): Likewise.
1698 (open_output): Likewise.
1699 (lang_do_assignments_1): Likewise.
1700 (lang_place_orphans): Likewise.
1701 (lang_enter_output_section_statement): Likewise.
1702 (lang_reasonable_defaults): Likewise.
1703 * ldlang.h (struct lang_input_statement_struct): Likewise.
1704 * mri.c (mri_draw_tree): Likewise.
1705 (mri_load): Likewise.
1706 * pe-dll.c (generate_reloc): Likewise.
1707 (make_import_fixup_entry): Likewise.
1708 (pe_as16): Likewise.
1709 * emultempl/beos.em (set_pe_subsystem): Likewise.
1710 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
1711 * emultempl/pe.em: Likewise.
1712 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
1713
a154a8ad
MM
17142005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1715
1716 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
1717 (earmelfb_linux_eabi.c): New target.
1718 * Makefile.in: Regenerated.
1719 * configure.tgt (arm*b-*-linux-gnueabi): New target.
1720 * emulparams/armelfb_linux_eabi.sh: New file.
1721
9c183183
AM
17222005-01-20 Nick Hudson <skrll@netbsd.org>
1723
1724 PR ld/676
1725 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1726 Handle bfd_elf32_hppa_nbsd_vec.
1727
e2243057
RS
17282005-01-19 Richard Sandiford <rsandifo@redhat.com>
1729
1730 * ldmain.h (ld_sysroot): Change type to a constant string.
1731 * ldmain.c (ld_sysroot): Likewise.
1732 (get_relative_sysroot, get_sysroot): New functions, adding command-line
1733 support for changing the sysroot.
1734 (main): Call the new functions.
1735 * lexsup.c (OPTION_SYSROOT): New.
1736 (ld_options): Add --sysroot.
1737 (parse_args): Add a dummy handler for it.
1738 * ld.texinfo (--sysroot): Document.
1739 * NEWS: Mention the new --sysroot option.
1740
1449d79b
AM
17412005-01-18 Alan Modra <amodra@bigpond.net.au>
1742
1743 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
1744 (lang_place_orphans): Don't abort on just_syms_flag, instead call
1745 bfd_link_just_syms.
1746
a880c748
DS
17472005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
1748
1749 * defilep.y (def_name, def_library): Combine into...
1750 (def_image_name): New function. Strip name to basename,
1751 with warning.
1752
07baa8ee
MK
17532005-01-12 Mark Kettenis <kettenis@gnu.org>
1754
1755 * configure.in: Be sure to invoke config.sub using the shell.
1756 * configure: Regenerate.
1757
e9b181b8
AM
17582005-01-11 Alan Modra <amodra@bigpond.net.au>
1759
1760 * configure.host: Correct sed patterns for last change.
1761
59ef2528
NC
17622005-01-10 Nick Clifton <nickc@redhat.com>
1763
1764 PR binutils/609
1765 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
1766 to determine whether config.make_executable should be set to FALSE in
1767 conjunction with config.fatal_warnings.
1768 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
1769 (einfo): Pass TRUE as the extra argument.
1770
71a2d53a
NC
17712005-01-10 Greg Schaffer <gschafer@zip.com.au>
1772
1773 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
1774 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
1775 (ia64-*-aix): Delete - this target is obsolete, and would be
1776 broken by this patch.
1777
d6d0b336
EB
17782005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1779
1780 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
1781 (sparc64-sun-solaris2*): New host.
1782
4e7fd91e
PB
17832005-01-06 Paul Brook <paul@codesourcery.com>
1784
1785 * Makefie.am: Add earmelf_vxworks.
1786 * Makefile.in: Regenerate.
1787 * configure.tgt: Make arm-*-vxworks a separate case.
1788 * emulparams/armelf_vxworks.sh: New function.
1789
4c52953f
AM
17902005-01-06 Alan Modra <amodra@bigpond.net.au>
1791
1792 * emultempl/ppc64elf.em (no_multi_toc): New var.
1793 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
1794 (OPTION_NO_MULTI_TOC): Define.
1795 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
1796 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
1797
98d87ee7
NC
17982005-01-05 Nick Clifton <nickc@redhat.com>
1799
1800 PR binutils/614
1801 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
4c52953f 1802 Standard's specification for parsable error messages.
98d87ee7 1803
5f81b918
PB
18042005-01-04 Paul Brook <paul@codesourcery.com>
1805
1806 * Makefile.am: Correct dependency for earmsymbian.c.
1807 * Makefile.in: Regenerate.
1808
2af59bab
DS
18092004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
1810
1811 * emultempl/pe.em (set_pe_subsystem): Change second arg to
1812 lang_add_entry to FALSE.
1813
c38f024c
NC
18142004-12-23 Nick Clifton <nickc@redhat.com>
1815
1816 PR 600
1817 * emulparams/shelf.sh (.stack): Increase stack start address to
1818 0x300000.
1819
550bdea6
NC
18202004-12-20 Nick Clifton <nickc@redhat.com>
1821
1822 * ldmain.c (main): Issue an error message if -static and -shared
1823 are used together.
1824
e3070fef
JJ
18252004-12-17 Jakub Jelinek <jakub@redhat.com>
1826
1827 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
1828 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
1829 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
1830 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
1831 PT_GNU_RELRO segment end.
1832
2fbd2a87
NC
18332004-12-14 P.J. Darcy <darcypj@us.ibm.com>
1834
1835 * configure.tgt: Add s390x-ibm-tpf support.
1836
f2763b01
NC
18372004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
1838
1839 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
1840 BFD.
1841
cb9faf63
BE
18422004-12-07 Ben Elliston <bje@gnu.org>
1843
1844 * ldemul.h: Forward declare struct option.
1845
02f80eef
DS
18462004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
1847
1848 * scripttempl/pe.sc (.data): Add .jcr subsection.
1849
dea514f5
PB
18502004-11-30 Paul Brook <paul@codesourcery.com>
1851
1852 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
1853
32118081
NC
18542004-11-30 Tero Niemela <tero_niemela@yahoo.com>
1855
1856 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
1857 * Makefile.in: Regenerate.
1858
33f362e1
NC
18592004-11-26 Melissa Mears <asterisk@graces.dricas.com>
1860
1861 * emultempl/pe.em: Add --subsystem:xbox as well as
1862 --subsystem:%d.
1863 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
1864 and numeric subsystems.
1865
3eda52aa
AM
18662004-11-24 Alan Modra <amodra@bigpond.net.au>
1867
1868 * ldexp.c (fold_name): Correct PR 338 fix.
1869
6b3221b4
MM
18702004-11-19 Mark Mitchell <mark@codesourcery.com>
1871
1872 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
1873 (earmelf_linux_eabi.c): New target.
1874 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
1875 * emulparams/armelf_linux_eabi.sh: New file.
1876 * Makefile.in: Regenerated.
1877
9cd6d51a
NC
18782004-11-19 Nick Clifton <nickc@redhat.com>
1879
1880 PR 518
1881 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
1882 LENGTH fields in the MEMORY command, to explicitly state that
1883 symbols cannot be used in their expressions.
1884
3ec57632
NC
18852004-11-19 Jon Beniston <jon@beniston.com>
1886
1887 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
1888 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
4c52953f 1889 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
3ec57632
NC
1890 which return the length and origin of a memory.
1891 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
1892 * NEWS: Mention support for ORIGIN and LENGTH operators.
1893
b7693d02
DJ
18942004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
1895
1896 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
1897 a dynamic object for stubs.
1898
fc0e6df6
PB
18992004-11-04 Paul Brook <paul@codesourcery.com>
1900
1901 * ld.texinfo: Document --default-imported-symver.
1902 * ldmain.c (main): Set link_info.default_imported_symver.
1903 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
1904 (ld_options): Add --default-imported-symver.
1905 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
1906
7499d566
NC
19072004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
1908 Vineet Sharma <vineets@noida.hcltech.com>
1909
1910 * Makefile.am: Add entries for new maxq-coff target.
1911 * Makefile.in: Regenerate.
1912 * configure.tgt: Add support for maxq.
1913 * emulparams/maxqcoff.sh: New File.
1914 * scripttempl/maxqcoff.sc: New linker script for target maxq.
1915 * NEWS: Mention the new target.
1916
7f266840
DJ
19172004-11-04 Daniel Jacobowitz <dan@debian.org>
1918
1919 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
1920 (earmelf_oabi.c): Remove rule.
1921 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
1922 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
1923 * Makefile.in: Regenerated.
1924
a0055007
HPN
19252004-11-04 Hans-Peter Nilsson <hp@axis.com>
1926
1927 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
1928 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
1929 (FINI_START): Ditto.
1930 (INIT_END): Remove emitted "jump [sp+]".
1931 (FINI_END): Ditto.
1932
c5614fa4
AM
19332004-11-04 Alan Modra <amodra@bigpond.net.au>
1934
1935 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
1936 (no_opd_opt, no_toc_opt): New static vars.
1937 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
1938 ppc64_elf_edit_toc.
1939 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
1940 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
1941 (PARSE_AND_LIST_OPTIONS): Describe new options.
1942 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1943
7a5df8d0
NC
19442004-10-27 Nick Clifton <nickc@redhat.com>
1945
1946 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
1947 parameter to invocation of lang_section_start.
1948 * emultempl/aix.em (_handle_option): Likewise.
c5614fa4 1949
7a5df8d0
NC
1950 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
1951 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
1952 * Makefile.in: Regenerate.
1953
6f372e19
MM
19542004-10-26 Mark Mitchell <mark@codesourcery.com>
1955
1956 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
1957 __exidx_{start,end} when not relocating.
1958
ba916c8a
MM
19592004-10-25 Mark Mitchell <mark@codesourcery.com>
1960
1961 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
1962 * ldexp.h (segment_type): New type.
1963 (segments): New variable.
1964 * ldexp.c (segments): New variable.
1965 (exp_print_token): Handle SEGMENT_START.
1966 (fold_binary): Likewise.
1967 * ldgram.y (SEGMENT_START): Declare it as a token.
1968 (exp): Handle SEGMENT_START.
1969 * ldlang.h (lang_address_statement_type): Add segment field.
1970 (lang_section_start): Change prototype.
1971 * ldlang.c (map_input_to_output_sections): Do not process section
1972 assignments if a corresponding SEGMENT_START has already been
1973 seen.
1974 (lang_section_start): Add segment parameter.
1975 * ldlex.l (SEGMENT_START): Add it.
1976 * lexsup.c (seg_segment_start): New function.
1977 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
1978 * ld.texinfo (SEGMENT_START): Document it.
1979 * emulparams/armsymbian.sh (EMBEDDED): Set it.
1980 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
1981 base addresses. Do not map relocations.
1982 * NEWS: Mention SEGMENT_START.
1983
3e3b46e5
PB
19842004-10-26 Paul Brook <paul@codesourcery.com>
1985
1986 * ld.texinfo: Document --default-symver.
1987 * ldmain.c (main): Set link_info.create_default_symver.
1988 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
1989 (ld_options): Add default-symver.
1990 (parse_args): Handle OPTION_DEFAULT_SYMVER.
1991
7b0eaa22
DS
19922004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
1993
1994 * pe-dll.c (process_def_file): Don't export all symbols by default if
1995 building a position-independent executable.
1996
dfeffb9f
L
19972004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1998
1999 PR 463
2000 * ldmain.c (reloc_overflow): Accept a pointer to struct
2001 bfd_link_hash_entry. Report symbol location for relocation
2002 overflow.
2003
dc4f76f8
L
20042004-10-21 H.J. Lu <hongjiu.lu@intel.com>
2005
2006 * genscripts.sh (libpath.exp): Really generate for first
2007 emulation only.
2008
2a08daf3
DS
20092004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
2010
2011 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
2012 comparison and replacement of filenames.
2013
532345f2
L
20142004-10-19 H.J. Lu <hongjiu.lu@intel.com>
2015
2016 PR 459
2017 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
2018 option on linker script as the one for linker script.
2019
b58f81ae
DJ
20202004-10-16 Daniel Jacobowitz <dan@debian.org>
2021
2022 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
2023 (check_excluded_libs): New.
2024 (load_symbols): Call check_excluded_libs.
2025 * ldlang.h (add_excluded_libs): New prototype.
2026 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
2027 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
2028 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
2029 * ld.texinfo (Command Line Variables): Document --exclude-libs.
2030 (Options Specific to i386 PE Targets): Remove --exclude-libs.
2031
95c148b4
AM
20322004-10-15 Alan Modra <amodra@bigpond.net.au>
2033
c468c8bc
AM
2034 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
2035 failing link script assert.
2036
95c148b4
AM
2037 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
2038
951e9133
L
20392004-10-14 H.J. Lu <hongjiu.lu@intel.com>
2040
2041 PR 445
2042 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
2043 (SMALL_DATA_DTOR): Set.
2044 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
2045 (SMALL_DATA_DTOR): Unset.
2046 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
2047 after .data. If SMALL_DATA_DTOR is set, move .dtors after
2048 .data.
2049
afd7a018
AM
20502004-10-14 Alan Modra <amodra@bigpond.net.au>
2051
2052 PR 63
2053 * ldlang.h (lang_output_section_statement_type): Make "next" a
2054 struct lang_output_section_statement_struct *.
2055 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
2056 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
2057 * ldlang.c (lang_output_section_find_1): Adjust for changed
2058 output_section_statement "next".
2059 (strip_excluded_output_sections): Likewise.
2060 (lang_record_phdrs): Likewise.
2061 (lang_output_section_find_by_flags): New function.
2062 (output_prev_sec_find): Move from pe.em. Adjust iterator.
2063 (lang_insert_orphan): New function. Tail end of elf32.em's
2064 place_orphan merged with that from pe.em. Allow bfd_section to
2065 be placed first. New heuristic for placing new output section
2066 statement in existing script, and accompanying split of __start
2067 symbol alignment into a separate assignment to dot.
2068 (lang_add_section): Consistently use output->bfd_section rather than
2069 an alias, section->output_section.
2070 (map_input_to_output_sections): Rename overly long arg. Move
2071 initialization of data_statement output section to here..
2072 (lang_check_section_addresses): ..from here.
2073 (print_assignment): Correct printing of etree_assert.
2074 (print_all_symbols): Don't bomb if userdata is NULL.
2075 (IGNORE_SECTION): Rearrange.
2076 * emultempl/elf32.em (output_rel_find): Adjust interator.
2077 (output_prev_sec_find): Delete.
2078 (struct orphan_save): Delete.
2079 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
2080 flags without creating a duplicate output section statement.
2081 Revise code holding history of various orphan section placements.
2082 Allow orphan sections to place before script specified output
2083 sections. Call lang_output_section_find_by_flags when placement
2084 by name fails. Use lang_insert_orphan.
2085 * emultempl/mmo.em (output_prev_sec_find): Delete.
2086 (struct orphan_save): Delete.
2087 (mmo_place_orphan): Revise code holding history of orphan placement.
2088 Allow orphans to place before existing output sections. Use
2089 lang_insert_orphan.
2090 * emultempl/pe.em (output_prev_sec_find): Delete.
2091 (struct orphan_save): Delete.
2092 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
2093 lang_insert_orphan.
2094
c0042f5d
MM
20952004-10-13 Mark Mitchell <mark@codesourcery.com>
2096
2097 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
2098 loadable segment.
2099
1af699f4
AM
21002004-10-13 Alan Modra <amodra@bigpond.net.au>
2101
2102 PR 44
09c112da
AM
2103 * ldcref.c (check_section_sym_xref): Delete.
2104 (check_local_sym_xref): New function.
2105 (check_nocrossrefs): Adjust call.
1af699f4
AM
2106 * emultempl/pe.em (struct orphan_save): Add os_tail.
2107 (place_orphan): Backport assorted fixes from elf32.em.
2108
7fa3d080
BW
21092004-10-12 Bob Wilson <bob.wilson@acm.org>
2110
2111 * emultempl/xtensaelf.em: Use ISO C90 formatting.
2112
d3989512
JJ
21132004-10-11 Jakub Jelinek <jakub@redhat.com>
2114
563f4125
JJ
2115 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
2116 getline for portability.
2117
d3989512
JJ
2118 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
2119 (gld${EMULATION_NAME}_parse_ld_so_conf,
2120 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
2121 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
2122
6c0c5b1e
AM
21232004-10-11 Alan Modra <amodra@bigpond.net.au>
2124
2125 PR 423
2126 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
2127 rejected when linking statically.
2128
d2b2c203
DJ
21292004-10-08 Daniel Jacobowitz <dan@debian.org>
2130
2131 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
2132
43cd72b9
BW
21332004-10-07 Bob Wilson <bob.wilson@acm.org>
2134
2135 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
2136 assembler-generated longcall sequences. Describe new --size-opt
2137 option.
2138 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
2139 * emultempl/xtensaelf.em (remove_section,
2140 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
2141 elf_xtensa_after_open): New.
2142 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
2143 OPTION_NO_LITERAL_MOVEMENT): Define.
2144 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
2145 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
2146 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
2147 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
2148 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
2149 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
2150 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
2151 * Makefile.am (eelf32xtensa.c): Update dependencies.
2152 * Makefile.in: Regenerate.
2153
8fdd7217 21542004-10-07 Jeff Baker <jbaker@qnx.com>
6c0c5b1e 2155
8fdd7217
NC
2156 * lexsup.c: Handle --warn-shared-textrel option.
2157 (ld_options): Restore alpha sorting of options.
2158 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
2159 * ld.texinfo: Add documentation for --warn-shared-textrel.
2160 * NEWS: Added mention of --warn-shared-textrel option.
2161
339207f8 21622004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
6c0c5b1e 2163
339207f8 2164 * emultempl/crxelf.em (disable_relaxation): Add.
6c0c5b1e 2165 (crxelf_before_allocation): Enable --relax option by default.
339207f8
TL
2166 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
2167 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
2168 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
2169
bcaa7b3e
L
21702004-10-04 H.J. Lu <hongjiu.lu@intel.com>
2171
2172 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
2173 --sort-section name|alignment.
2174
2175 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
2176 --sort-section name|alignment.
2177
2178 * ld.h (sort_type): New enum.
2179 (wildcard_spec): Change the type of `sorted' to sort_type.
2180
2181 * ldgram.y (SORT): Removed.
2182 (SORT_BY_NAME): Added.
2183 (SORT_BY_ALIGNMENT): Added.
2184 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
2185 SORT_BY_ALIGNMENT.
2186 (input_section_spec_no_keep): Updated `sorted'.
2187 (statement): Replace SORT with SORT_BY_NAME.
2188
2189 * ldlang.c (compare_section): New function to compare 2
2190 sections with different sorting schemes.
2191 (wild_sort): Updated. Use compare_section.
2192 (update_wild_statements): New function.
2193 (lang_process): Call update_wild_statements before
2194 map_input_to_output_sections.
2195
2196 * ldlex.l (SORT_BY_NAME): New.
2197 (SORT_BY_ALIGNMENT): New.
2198 (SORT): Return SORT_BY_NAME.
2199
2200 * ldmain.c (sort_section): New. Defined.
2201 (main): Initialize it to none.
2202
2203 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
2204 (ld_options): Add an entry for OPTION_SORT_SECTION.
2205 (parse_args): Handle OPTION_SORT_SECTION.
2206
2207 * mri.c (mri_draw_tree): Updated `sorted'.
2208
a4f5ad88
JJ
22092004-10-04 Jakub Jelinek <jakub@redhat.com>
2210
2211 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
2212 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
2213 argument.
2214 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
2215 and . as second argument.
2216 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
2217 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
2218 (fold_binary): Add it here. Insert padding to make relro_end
2219 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
2220 exp_dataseg_relro_adjust phase just use previously computed
2221 exp_data_seg.base.
2222 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
2223 relro_adjust here. Call lang_size_sections_1 once more if there
2224 was too big padding at DATA_SEGMENT_RELRO_END.
2225 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
2226
40a18ebd
NC
22272004-10-01 Paul Brook <paul@codesourcery.com>
2228
2229 * emulparams/armelf.sh: Add unwinding table sections.
2230
db8acf26
NC
22312004-09-30 Filip Navara <navaraf@reactos.com>
2232
2233 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
2234 correct base address for position independant executables.
2235 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
2236 executables as DLLs.
2237
eeac373a
PB
22382004-09-30 Paul Brook <paul@codesourcery.com>
2239
2240 * ld.texinfo: Document --target2=abs.
2241 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
2242
1ee7cf4c
NC
22432004-09-29 Nick Clifton <nickc@redhat.com>
2244
2245 * scripttempl/xstormy16.sc: Only perform the assignments to the
2246 ROM region when not performing a relocatable link. The ROM region
2247 does not start at address 0, but the sections will.
2248 * Makefile.am: Fix linker script dependency for the generation of
2249 eelf32xstormy16.c.
2250 * Makefile.in: Regenerate.
2251
03098a9a
CF
22522004-09-18 Filip Navara <navaraf@reactos.com>
2253
2254 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
2255 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
2256 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
2257 TARGET_PAGE_SIZE.
2258 * scripttempl/pe.sc: Make the virtual address and file offset synced if
2259 the alignment is lower than the target page size.
2260
f2d3750d
CF
22612004-09-27 Filip Navara <navaraf@reactos.com>
2262
2263 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
2264 def_file_parse to handle pe_def_file if NULL and prevent crash with
2265 invalid .def files.
2266
a23d8409
AM
22672004-09-27 Alan Modra <amodra@bigpond.net.au>
2268
2269 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
2270 --emit-stub-syms automatically when --emit-relocs.
2271
7b89fa29
PB
22722004-09-24 Paul Brook <paul@codeosurcery.com>
2273
2274 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
2275 .fini_array sections.
2276
e2a68bcc
AS
22772004-09-19 Andreas Schwab <schwab@suse.de>
2278
2279 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
2280 base so that relro end is suitably aligned.
2281
3674e28a
PB
22822004-09-17 Paul Brook <paul@codesourcery.com>
2283
2284 * ld.texinfo: Rename arm-specific section. Document --target*
2285 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
2286 * emulparams/armelf_linux.sh: Ditto.
2287 * emulparams/armelf_nbsd.sh: Ditto.
2288 * emultempl/armelf.em: Set default for TARGET2_TYPE.
2289 (target2_type): New variable.
2290 (arm_elf_before_allocation): Don't pass target1_type.
2291 (arm_elf_create_output_section_statements): New function.
2292 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
2293 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
2294 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
2295 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
2296 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
2297 argument to bfd_elf32_arm_process_before_allocation.
2298
f6e332e6
AM
22992004-09-17 Alan Modra <amodra@bigpond.net.au>
2300
2301 * ldexp.c (fold_name): Update u.undef.next refs.
2302 * emultempl/pe.em: Likewise.
2303 * emultempl/sunos.em: Likewise.
2304
9c933e04
AM
23052004-09-17 Alan Modra <amodra@bigpond.net.au>
2306
2307 * Makefile.am: Run "make dep-am".
2308 * Makefile.in: Regenerate.
2309 * config.in: Regenerate.
2310 * configure: Regenerate.
2311 * aclocal.m4: Regenerate.
2312 * po/ld.pot: Regenerate.
2313
1fa32646
TL
23142004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
2315
9c933e04
AM
2316 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
2317 (.fini): Likewise.
2318 (.jcr): Likewise.
1fa32646 2319
b6ee372a
AM
23202004-09-16 Alan Modra <amodra@bigpond.net.au>
2321
2322 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
2323 to bfd_elf32_arm_process_before_allocation call.
2324
9c504268
PB
23252004-09-13 Paul Brook <paul@codesourcery.com>
2326
2327 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
2328 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
2329
d15b04bd
L
23302004-09-07 H.J. Lu <hongjiu.lu@intel.com>
2331
2332 * configure: Regenerated with autconfig 2.13.
2333
875c4330
AS
23342004-09-07 Andreas Schwab <schwab@suse.de>
2335
2336 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
2337 alignment before adjusting DATA_SEGMENT_RELRO_END.
2338
229fcec5
MM
23392004-09-06 Mark Mitchell <mark@codesourcery.com>
2340
2341 * emulparams/armsymbian.sh: Use armbpabi script.
2342 * scripttempl/armbpabi.sc: New script.
2343
e5a52504
MM
23442004-09-02 Mark Mitchell <mark@codesourcery.com>
2345
2346 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
2347 (earmsymbian.c): New target.
2348 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
2349 * Makefile.in: Regenerated.
2350 * aclocal.m4: Likewise.
2351 * configure: Likewise.
2352 * emulparams/armsymbian.sh: New file.
2353
42851540
NC
23542004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
2355
2356 * scripttempl/elf32crx.sc: Edit file with comments.
2357 (.init): Add new section.
2358 (.fini): Likewise.
2359 (.ctor): Control the linkage order.
2360 (.dtor): Likewise.
2361
c034e3e0
NC
23622004-08-27 Nick Clifton <nickc@redhat.com>
2363
2364 * emultempl/pe.em (after_open): Do not assume that either bfd is
9c933e04 2365 an archive.
c034e3e0 2366
688c58f3
AM
23672004-08-26 Alan Modra <amodra@bigpond.net.au>
2368
2369 * ldlang.c (lang_init): Don't compare with TRUE.
2370
b18c562e
NC
23712004-08-25 Dmitry Diky <diwil@spec.ru>
2372
2373 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
2374 * scripttempl/elf32msp430.sc: Add .profiler section definition.
2375
61f5d054
L
23762004-08-24 H.J. Lu <hongjiu.lu@intel.com>
2377
2378 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
2379
e77d3d77
MM
23802004-08-19 Mark Mitchell <mark@codesourcery.com>
2381
2382 * configure.tgt (arm*-*-symbianelf*): New target.
2383 (arm*-*-eabi*): Likewise.
2384
3f764659
JJ
23852004-08-19 Jakub Jelinek <jakub@redhat.com>
2386
2387 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
2388 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
2389 (OPTION_NON_OVERLAPPING_OPD): Define.
2390 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
2391 --non-overlapping-opd option.
2392
a010d60f
AM
23932004-08-18 Alan Modra <amodra@bigpond.net.au>
2394
2395 PR 338
2396 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
2397 was already on the undefs list.
2398
c4e33880
AM
23992004-08-17 Alan Modra <amodra@bigpond.net.au>
2400
2401 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
2402 prefix the symbol field too.
2403
d003868e
AM
24042004-08-13 Alan Modra <amodra@bigpond.net.au>
2405
2406 * ldmain.c (link_callbacks): Remove "error_handler".
2407 * ldmisc.c: Include elf-bfd.h.
2408 (vfinfo): Sort comment. Handle %A. Use %A instead of
2409 bfd_get_section_indent.
2410 (error_handler): Delete.
2411 * ldmisc.h (error_handler): Delete declaration.
2412
99877b66
AM
24132004-08-10 Alan Modra <amodra@bigpond.net.au>
2414
2415 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
2416 ppc64_elf_restore_symbols.
2417
40e45c8b
AM
24182004-08-09 Alan Modra <amodra@bigpond.net.au>
2419
2420 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
2421 .toc is too large on relocatable linking.
2422
ccfa59ea
AM
24232004-08-09 Alan Modra <amodra@bigpond.net.au>
2424
2425 * emultempl/ppc64elf.em (ppc_after_open): Delete.
2426 (LDEMUL_AFTER_OPEN): Don't define.
2427
93fd0973
SC
24282004-08-02 Stephane Carrez <stcarrez@nerim.fr>
2429
2430 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
2431
f1b123db
SC
24322004-08-01 Stephane Carrez <stcarrez@nerim.fr>
2433
2434 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
2435 on power of 2.
2436
e7fbc2bf
JT
24372004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
2438
2439 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
2440
c05e9f04
NC
24412004-07-26 Dmitry Diky <diwil@spec.ru>
2442
2443 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
2444 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
2445 msp430xG439.
2446 * configure.tgt: Likewise.
2447 * emulparams/msp430all.sh: Likewise.
2448 * Makefile.in: Regenerate.
2449
9f61903d
NC
24502004-07-23 Nick Clifton <nickc@redhat.com>
2451
2452 * emultempl/elf32.em (_place_orphan): Use an already existing
2453 section name if that section does not have any flags set.
2454
082b7297
L
24552004-07-21 H.J. Lu <hongjiu.lu@intel.com>
2456
2457 * ldlang.c (already_linked_hash_entry): Removed.
2458 (already_linked): Likewise.
2459 (already_linked_table): Likewise.
2460 (section_already_linked): Call bfd_section_already_linked.
2461 (lang_process): Replace already_linked_table_init with
2462 bfd_section_already_linked_table_init and check return. Replace
2463 already_linked_table_free with bfd_section_already_linked_table_free.
2464
76d7af2d
NC
24652004-07-21 Nick Clifton <nickc@redhat.com>
2466
2467 * ldlang.c (init_os): Make sure that the newly allocated userdata
2468 structure is zeroed out.
2469
14b3c463
L
24702004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2471
2472 * NEWS: Mention the new --add-needed/--no-add-needed and
2473 --as-needed/--no-as-needed options.
2474
e56f61be
L
24752004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2476
2477 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
2478 check the add_needed field.
2479 (dt_needed): New struct.
2480 (gld${EMULATION_NAME}_try_needed): Change the first argument
2481 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
2482 bit in the file where the DT_NEEDED entry comes from.
2483 (gld${EMULATION_NAME}_search_needed): Change the second
2484 argument to a pointer to struct dt_needed.
2485 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
2486 (gld${EMULATION_NAME}_after_open): Likewise.
2487
2488 * ld.texinfo: Add --add-needed document.
2489 * ldlang.c (new_afile): Set p->add_needed.
2490 * ldlang.h (lang_input_statement_type): Add add_needed field.
2491 * ldmain.h (add_needed): Declare.
2492 * ldmain.c (add_needed): New global var.
2493 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
2494 OPTION_NO_ADD_NEEDED.
2495 (ld_options): Likewise.
2496 (parse_args): Handle them.
2497
c99b8138
NC
24982004-07-13 Christof Petig <christof@petig-baender.de>
2499
2500 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
2501 for endian-ness of extracted addend.
2502
13ed4151
NC
25032004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
2504
2505 * pe-dll.c (auto_export): Filter on just the import prefix,
2506 "_imp_", not "_imp__".
2507
1a320fbb
NC
25082004-07-09 Nick Clifton <nickc@redhat.com>
2509
2510 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
2511
1fe1f39c
NC
25122004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
2513
2514 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
2515 (eelf32crx.c): New target.
2516 * Makefile.in: Regenerate.
2517 * configure.tgt: Handle crx-*-elf*.
2518 * emulparams/elf32crx.sh: New file.
2519 * emultempl/crxelf.em: New file.
2520 * scripttempl/elf32crx.sc: New file.
2521 * NEWS: Mention new target.
2522
85fbca6a
NC
25232004-07-06 Nick Clifton <nickc@redhat.com>
2524
2525 * Makefile.am: Add eshlsymbian.c.
2526 * Makefile.in: Regenerate.
2527 * configure.tgt: Add sh*-symbian-elf target.
2528 * emulparams/shlsymbian.sh: New file. Configure the
2529 sh-symbian-elf linker scripts.
2530 * scripttemp/elf32sh-symbian.sc: New file. Linker script
2531 template for the sh-symbian-elf target.
2532
b71a5181
DA
25332004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2534
2535 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
2536 * emulparams/hppalinux.sh: Likewise.
2537 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
2538 data segment and PLT_BEFORE_GOT is defined.
2539
c87db184
CF
25402004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2541
2542 * ld.texinfo (WIN32): Document PE weak symbols.
2543
f6a8ae81
KK
25442004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2545
2546 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
2547
b602c853
L
25482004-07-01 H.J. Lu <hongjiu.lu@intel.com>
2549
2550 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
2551 the section.
2552
1a23a9e6
AM
25532004-06-29 Alan Modra <amodra@bigpond.net.au>
2554
2555 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
2556 size in rawsize.
2557
eea6121a
AM
25582004-06-24 Alan Modra <amodra@bigpond.net.au>
2559
2560 * ldlang.c (print_output_section_statement): Don't print size before
2561 relaxation.
2562 (IGNORE_SECTION): Remove bfd arg. Update all callers.
2563
2564 * ldexp.c (fold_name): .. See below.
2565 * ldlang.c (section_already_linked, print_output_section_statement,
2566 print_input_section, insert_pad, size_input_section,
2567 lang_check_section_addresses, lang_size_sections_1,
2568 lang_size_sections, lang_do_assignments_1, lang_set_startof,
2569 lang_one_common, lang_reset_memory_regions, lang_process,
2570 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
2571 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
2572 * pe-dll.c (process_def_file, generate_reloc): ..
2573 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
2574 gld${EMULATION_NAME}_before_allocation): ..
2575 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
2576 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
2577 sh64_elf_${EMULATION_NAME}_after_allocation): ..
2578 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
2579 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
2580 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
2581 "size" instead of "_raw_size" and "_cooked_size". Expand
2582 bfd_section_size macro invocations.
2583
552f8272
CF
25842004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2585
2586 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
2587 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
2588 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
2589 ___crt_xt_end__.
2590 (.tls): Define ___tls_start__ and ___tls_end__.
2591
aee6f5b4
AO
25922004-06-21 Alexandre Oliva <aoliva@redhat.com>
2593
2594 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
2595
eea6121a 25962004-06-18 Adam Nemet <anemet@lnxw.com>
f234d5fe 2597
eea6121a
AM
2598 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
2599 * configure: Regenerate.
f234d5fe 2600
dfff4fbe
JJ
26012004-06-15 Jakub Jelinek <jakub@redhat.com>
2602
2603 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
2604 .gcc_except_table output sections lost accidentally with
2605 -z relro patch.
2606
a9e0c0c6
AM
26072004-06-15 Alan Modra <amodra@bigpond.net.au>
2608
2609 * ldwrite.c (build_link_order): Use bfd_get_section_size
2610 instead of bfd_get_section_size_before_reloc or _raw_size.
2611 * pe-dll.c (process_def_file): Likewise.
2612
7115639b
AM
26132004-06-14 Alan Modra <amodra@bigpond.net.au>
2614
2615 From Richard Wirth <r.wirth@wirthware.de>
2616 * ldlang.c (lang_finish): Don't free lang_definedness_table.
2617
9ca57817
AM
26182004-05-29 Alan Modra <amodra@bigpond.net.au>
2619
2620 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
2621 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
2622
164e712d
AM
26232004-05-28 Alan Modra <amodra@bigpond.net.au>
2624
6feb9908
AM
2625 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
2626 throughout file.
2627 * lexsup.c: Formatting. Wrap long lines.
2628 * ldwrite.c: Update copyright date.
2629
164e712d
AM
2630 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
2631 (output_section_callback): Nor SEC_KEEP here.
2632 (gc_section_callback): Twiddle SEC_EXCLUDE here.
2633 (lang_gc_wild): Delete. Fold into..
2634 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
2635 collecting.
2636 (lang_process): Always call lang_gc_sections.
2637 (lang_place_orphans): Handle SEC_EXCLUDE sections.
2638 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
2639 SEC_EXCLUDE code.
2640
b3096250
L
26412004-05-26 H.J. Lu <hongjiu.lu@intel.com>
2642
2643 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
2644 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
2645 * ldlang.c (lang_add_section): Likewise.
2646
e49f5022
AM
26472004-05-26 Alan Modra <amodra@bigpond.net.au>
2648
2649 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
2650 sections when doing a final link. Clear SEC_EXCLUDE when doing
2651 a relocable link, except for SEC_DEBUGGING sections.
2652 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
2653 same condition here to drop SEC_EXCLUDE orphan sections.
2654
57ceae94
AM
26552004-05-25 Alan Modra <amodra@bigpond.net.au>
2656
2657 * ldlang.c (lang_process): Call bfd_merge_sections later, and
2658 only when not a relocatable link.
2659 (print_input_section): Handle SEC_EXCLUDE sections.
2660 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
2661 (lang_do_assignments_1): Likewise.
2662 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
2663 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
2664 * emultempl/hppaelf.em (build_section_lists): Likewise.
2665 * emultempl/ppc64elf.em (build_toc_list): Likewise.
2666 (build_section_lists): Likewise.
2667
a85785bc
AS
26682004-05-23 Andreas Schwab <schwab@suse.de>
2669
2670 * ld.texinfo (Options): Fix typo in last change.
2671
2d643429
NC
26722004-05-21 Andy Chittenden <achittenden@bluearc.com>
2673
2674 * ld.h (ld_config_type): Add new field: hash_table_size.
2675 * ldmain.c: Initialise the new field to zero. If it is non-zero
2676 after parsing the linker's command line call
2677 bfd_hash_set_default_size.
2678 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
2679 (ld_options): Add hash-size.
2680 (parse_args): Parse --hash-size option. Allow
2681 --reduce-memory-overheads to set the default hash table size as
2682 well.
2683 * ld.texinfo: Document the new switch. Also mention that
2684 --reduce-memory-overheads can affect the hash table size.
2685 * NEWS: Mention the new feature.
2686
35835446
JR
26872004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
2688
2689 * NEWS: Mention new linker map file generation and the
2690 --reduce-memory-overheads option.
2691 * ld.texinfo: Document --reduce-memory-overheads option.
2692 * ld.h (map_symbol_def): New struct.
2693 (struct user_section_struct, section_userdata_type): Rename to:
2694 (struct lean_user_section_struct, lean_section_userdata_type).
2695 (struct fat_user_section_struct, fat_section_userdata_type): New.
2696 (SECTION_USERDATA_SIZE): Define.
2697 (args_type): New member reduce_memory_overheads.
2698 * ldlang.c (map_obstack): New static variable.
2699 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
2700 (lang_map): Unless command_line.reduce_memory_overheads is set,
2701 initialize lists of defined symbols for each section.
2702 (print_input_section): Unless command_line.reduce_memory_overheads
2703 is set, use print_all_symbols.
2704 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
2705 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
2706 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
2707 (ld_options): Add entry for --reduce-memory-overheads.
2708 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
2709
0841712e
JJ
27102004-05-19 Jakub Jelinek <jakub@redhat.com>
2711
2712 * ldgram.y (sect_constraint): New.
2713 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2714 (section): Add sect_constraint. Pass additional argument
2715 to lang_enter_output_section_statement.
2716 * mri.c (mri_draw_tree): Pass additional argument to
2717 lang_enter_output_section_statement.
2718 * emultempl/pe.em (place_orphan): Likewise.
2719 (output_prev_sec_find): Disregard output section statements with
2720 constraint == -1.
2721 * emultempl/mmo.em (output_prev_sec_find): Likewise.
2722 (mmo_place_orphan): Pass additional argument to
2723 lang_enter_output_section_statement.
2724 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
2725 statements with constraint == -1.
2726 (place_orphan): Pass additional argument to
2727 lang_enter_output_section_statement.
2728 * ldlang.c (lang_enter_overlay_section): Likewise.
2729 (lang_output_section_find_1): New.
2730 (lang_output_section_find): Use it.
2731 (lang_output_section_statement_lookup_1): New.
2732 (lang_output_section_statement_lookup): Use it.
2733 (check_section_callback, check_input_sections): New.
2734 (map_input_to_output_sections): Check if all input sections
2735 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
2736 (strip_excluded_output_sections): Disregard output section statements
2737 with constraint == -1.
2738 (lang_record_phdrs): Likewise.
2739 (lang_enter_output_section_statement): Add constraint argument.
2740 Use lang_output_section_statement_lookup_1.
2741 * ldlang.h (lang_output_section_statement_type): Add constraint
2742 and all_input_readonly fields.
2743 (lang_enter_output_section_statement): Adjust prototype.
2744 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2745 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
2746 segment if all input sections are readonly.
2747
eea6121a 27482004-05-19 Adam Nemet <anemet@lnxw.com>
f2c50328
NC
2749
2750 * scripttempl/i386lynx.sc: Remove file.
2751
2a16d82a
BW
27522004-05-17 Bob Wilson <bob.wilson@acm.org>
2753
2754 * ld.texinfo (Output Section Address): Correct subsection name.
2755
eea6121a 27562004-05-17 Adam Nemet <anemet@lnxw.com>
b2d65c0b
NC
2757
2758 * configure.tgt (powerpc-*-lynxos* case): New case.
2759 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
2760 * emulparams/ppclynx.sh: New file.
2761 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
2762 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
2763 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
2764 (eppclynx.c): New rule.
2765 * Makefile.in: Regenerate.
2766
4b363073
NC
27672004-05-13 Joel Sherrill <joel@oarcorp.com>
2768
2769 * configure.tgt (or32-*-rtems*): Switch to elf and
2770 support versioned targets.
2771
9598fbe5
NC
27722004-05-13 Nick Clifton <nickc@redhat.com>
2773
2774 * po/fr.po: Updated French translation.
2775
8c37241b
JJ
27762004-05-11 Jakub Jelinek <jakub@redhat.com>
2777
2778 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
2779 for binaries, -shared and -pie.
2780 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
2781 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
2782 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
2783 (OTHER_RELRO_SECTIONS): ... this.
2784 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
2785 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
2786 -z relro and -z norelro.
2787 (gld${EMULATION_NAME}_list_options): Add it to usage.
2788 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
2789 -z relro scripts when appropriate.
2790 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
2791 Create separate .got.plt section if SEPARATE_GOTPLT.
2792 Move sections which are only written during relocation handling
2793 to the beginning of RW segment. If NO_SMALL_DATA, move .got
2794 before .data. Add DATA_SEGMENT_RELRO_END directive.
2795 Include OTHER_RELRO_SECTIONS.
2796 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
2797 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
2798 (fold_unary): Likewise.
2799 (fold_binary): Handle -z relro.
2800 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
2801 exp_dataseg_relro_adjust phases. Add relro_end field.
2802 * ldmain.c (main): Initialize link_info.relro to FALSE.
2803 * ldlang.c (lang_size_sections): Handle -z relro.
2804
e21059f2
MM
28052004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
2806
2807 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
2808
5f9b8920
JR
28092004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
2810
2811 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
2812 before printing it with %W.
2813
26d2d8a2 28142004-05-07 Brian Ford <ford@vss.fsi.com>
eea6121a 2815 DJ Delorie <dj@redhat.com>
26d2d8a2
BF
2816
2817 * emultempl/pe.em (real_flags): New static.
2818 (OPTION_LARGE_ADDRESS_AWARE): New define.
2819 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
2820 (gld_${EMULATION_NAME}_list_options): Likewise.
2821 (gld${EMULATION_NAME}_handle_option): Likewise.
2822 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
2823 * ld.texinfo: Document it.
2824 * NEWS: Mention it.
2825
1b169501
BF
28262004-05-07 Brian Ford <ford@vss.fsi.com>
2827
2828 * NEWS: Mention DWARF 2 support for i386pe.
2829
41cf0c62
AO
28302004-05-05 Alexandre Oliva <aoliva@redhat.com>
2831
2832 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
2833 elf32-frvfdpic.
2834
d0d6a25b
AM
28352004-04-30 Alan Modra <amodra@bigpond.net.au>
2836
2837 * ldlang.c (unique_section_p): Pass section parm, return true on
2838 group sections.
2839 (output_section_callback): Adjust.
2840 * ldlang.h (unique_section_p): Update prototype.
2841 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
2842
755306be
EB
28432004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
2844
eea6121a 2845 * ld.texinfo (--gc-sections): Remove restriction for
755306be
EB
2846 dynamic linking.
2847
8a7140c3
NC
28482004-04-29 Brian Ford <ford@vss.fsi.com>
2849
2850 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
2851 for DWARF 2/3. Update stab section's syntax.
2852
2f9636ba
AM
28532004-04-29 Alan Modra <amodra@bigpond.net.au>
2854
2855 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
2856 (fill_edata): Correct pointer arithmetic.
2857
23867d67
CD
28582004-04-21 Chris Demetriou <cgd@broadcom.com>
2859
2860 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
2861 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
2862 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
2863 (EXTRA_EM_FILE): Use mipsecoff.em
2864 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
2865 (EXTRA_EM_FILE): Use mipsecoff.em
2866 * emultempl/mipsecoff.em: Restructure to be included as an
2867 extra emulation file.
2868 (check_sections, gld${EMULATION_NAME}_after_open)
2869 (gld${EMULATION_NAME}_after_allocation)
2870 (gld${EMULATION_NAME}_get_script)
2871 (ld_${EMULATION_NAME}_emulation): Remove
2872 (gld${EMULATION_NAME}_before_parse): Rename to...
2873 (mipsecoff_before_parse): This.
2874 (LDEMUL_BEFORE_PARSE): Define.
2875 * emultempl/mipself.em: Remove file.
2876 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
2877 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
2878 these symbols.
2879 * Makefile.am: Remove dependencies on emultempl/mipself.em.
2880 * Makefile.in: Regenerate.
2881
1502569c
NC
28822004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
2883
2884 * ld.texinfo (synthesizing on H8/300): Information about linker
2885 relaxation support for bit manipulation instructions and system
2886 control instructions is added.
2887
c894ddfb
HPN
28882004-04-21 Hans-Peter Nilsson <hp@axis.com>
2889
2890 * NEWS: Mention change in DEFINED semantics.
2891
a85bf78e
EB
28922004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
2893
2894 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
2895 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
2896 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
2897
58434bc1
BE
28982004-04-21 Ben Elliston <bje@au.ibm.com>
2899
2900 * ld.texinfo (Simple Example): Add missing punctuation.
2901
7a7f4e42
CD
29022004-04-20 Chris Demetriou <cgd@broadcom.com>
2903
2904 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
2905
3737f867
JJ
29062004-04-19 Jakub Jelinek <jakub@redhat.com>
2907
2908 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
2909 specially.
2910
3c17e4f7
DS
29112004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
2912
2913 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
2914 with default priority. Likewise for dtors.
2915
279500de
TS
29162004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2917
2918 * configure.host: Remove mips*-dec-bsd* target.
2919 * configure.tgt: Likewise.
2920
52f89c0a
RS
29212004-04-08 Richard Sandiford <rsandifo@redhat.com>
2922
2923 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
2924 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
2925 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
2926 * emultempl/irix.em: New file.
2927 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
2928 dependencies.
2929 * Makefile.in: Regenerate.
2930
e489d0ae
PB
29312004-04-01 Paul Brook <paul@codesourcery.com>
2932
2933 * emultempl/armelf.em (byteswap_code): Add.
2934 (arm_elf_before_allocation): Pass extra parameter.
2935 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
2936 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
2937 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
2938 * emultempl/armelf_oabi.em: Pass extra parameter.
2939 * ld.texinfo: Document --be8.
2940
7cc8057a
SS
29412004-03-30 Stan Shebs <shebs@apple.com>
2942
2943 Remove long-obsolete MPW support.
2944 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
2945 * Makefile.am (mpw): Remove file-presynthesizing actions.
2946 * Makefile.in: Likewise.
2947 * ldfile.c (slash): Remove MPW case.
2948 * ldlex.l [MPW]: Remove unused definition.
2949
0949843d
NC
29502004-03-30 Galit Heller <Galit.Heller@nsc.com>
2951
2952 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
2953 (eelf32cr16c.c): New target.
2954 * Makefile.in: Regenerate.
2955 * configure.tgt: Handle cr16c-*-elf*.
2956 * emulparams/elf32cr16c.sh: New file.
2957 * scripttempl/elfcr16c.sc: Likewise
2958 * NEWS: Mention support for new target.
2959
0a159ef8
NC
29602004-03-30 Nick Clifton <nickc@redhat.com>
2961
2962 * po/sv.po: Updated Swedish translation.
2963
7a945db6
AM
29642004-03-27 Alan Modra <amodra@bigpond.net.au>
2965
2966 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
2967 * emultempl/hppaelf.em: Likewise.
2968 * emultempl/ppc64elf.em: Likewise.
2969 * emultempl/sh64elf.em: Likewise.
2970
5a580b3a
AM
29712004-03-25 Alan Modra <amodra@bigpond.net.au>
2972
2973 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
2974 size_dynamic_sections call.
2975
b9cf773d
AM
29762004-03-23 Alan Modra <amodra@bigpond.net.au>
2977
2978 PR 51.
2979 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
2980 link_info.wrap_char.
2981
59c2e50f
L
29822004-03-20 H.J. Lu <hongjiu.lu@intel.com>
2983
2984 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
2985 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
2986
44349745
AO
29872004-03-20 Alexandre Oliva <aoliva@redhat.com>
2988
2989 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
2990
81359a70
AM
29912004-03-19 Alan Modra <amodra@bigpond.net.au>
2992
2993 * config.in: Regenerate.
2994 * po/ld.pot: Regenerate.
2995
4a43e768
AM
29962004-03-18 Alan Modra <amodra@bigpond.net.au>
2997
2998 * ld.texinfo: Add --as-needed doco.
2999 * ldmain.c (as_needed): New global var.
3000 * ldmain.h (as_needed): Declare.
3001 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
3002 OPTION_NO_AS_NEEDED.
3003 (ld_options): Likewise.
3004 (parse_args): Handle them.
3005 * ldlang.h (lang_input_statement_type): Add as_needed field.
3006 * ldlang.c (new_afile): Set p->as_needed.
3007 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
3008 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
3009 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
3010
3011 * ldlang.c (open_input_bfds): Remove useless cast.
3012 (lang_do_assignments_1): Likewise.
3013 (lang_for_each_input_section): Delete.
3014
9183ed4b
AM
30152004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3016
3017 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
3018
ee31fbd0
NC
30192004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
3020
3021 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
3022 private when building implib.
3023
e5caec89
NS
30242004-03-05 Nathan Sidwell <nathan@codesourcery.com>
3025
3026 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
3027 SEC_THREAD_LOCAL.
3028 (IGNORE_SECTION): Ignore .tbss sections too.
3029 (lang_size_sections_1): .tbss sections do not advance dot.
3030
cc2f008e
AS
30312004-03-01 Andreas Schwab <schwab@suse.de>
3032
3033 * ld.texinfo (Options): Fix example for --wrap.
3034
f5a95868
DS
30352004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3036
3037 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
3038 not NULL.
3039
177b729b
ILT
30402004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
3041
3042 * ldlang.c (lang_check): Use %P, not %E, in error message.
3043
1b493742
NS
30442004-02-23 Nathan Sidwell <nathan@codesourcery.com>
3045
3046 * ldlang.h (struct lang_output_section_state): Change processed
3047 field's type.
3048 * ldexp.c (check, invalid): Remove.
3049 (fold_name): Move valid_p assignments. Create undefined symbol
3050 when needed. Directly exampine section's processd flag.
3051 * ldlang.c (lang_output_section_statement_lookup): Adjust
3052 processed field init.
3053 (lang_size_sections_1): Allow LOADADDR when determining section's
3054 VMA. Adjust error message. Fold data statement's expr.
3055 (lang_size_sections): Correctly increment lang_statement_iteration.
3056
30572004-02-23 Alan Modra <amodra@bigpond.net.au>
3058
3059 * ldexp.c (fold_tree): Follow indirect symbols.
b9cf773d 3060
876f4090
NS
30612004-02-20 Nathan Sidwell <nathan@codesourcery.com>
3062
3063 * ldgram.y (exp): Add two operand ALIGN.
3064 * ldexp.c (fold_binary): Add ALIGN_K case.
3065 * ld.texinfo (ALIGN): Document two operand version.
3066
384d938f
NS
30672004-02-19 Nathan Sidwell <nathan@codesourcery.com>
3068
3069 * ldlang.c (map_input_to_output_sections): Initialize sections
3070 mentioned in a data statement expression.
3071 (lang_do_assignments_1): Add data statement's expression's
3072 section's vma.
3073
b6ca8815
NS
30742004-02-18 Nathan Sidwell <nathan@codesourcery.com>
3075
3076 * ldgram.y (statement_anywhere): Add assert rule.
3077 * ldlang.c (exp_init_os): Add assert case.
3078
c92c35e7
AC
30792004-02-14 Andrew Cagney <cagney@redhat.com>
3080
3081 * ldmain.c (remove_output): Call bfd_cache_close.
3082
9bf78c99
RS
30832004-02-14 Richard Sandiford <rsandifo@redhat.com>
3084
3085 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
3086 .MIPS.content* and .MIPS.events* sections.
3087
f3806916
DJ
30882004-02-09 Daniel Jacobowitz <drow@mvista.com>
3089
3090 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
3091 .note.gnu.arm.ident to after allocated sections. Mark its
3092 address as 0.
3093
4c8e70d7
DJ
30942004-02-09 Daniel Jacobowitz <drow@mvista.com>
3095
3096 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
3097 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
3098 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
3099 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
3100 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
3101
ff71f4f7
NC
31022004-02-05 Nick Clifton <nickc@redhat.com>
3103
3104 * emultempl/pe.em (_after_open): Fix typo in previous delta.
3105
07a68a80
NC
31062004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
3107
3108 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
3109
1dd3bf68
AM
31102004-01-28 Alan Modra <amodra@bigpond.net.au>
3111
586196d5
AM
3112 * genscripts.sh: Fix typo.
3113
1dd3bf68
AM
3114 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
3115
13d9421f
JJ
31162004-01-24 Jakub Jelinek <jakub@redhat.com>
3117
3118 * emulparams/elf64_ia64.sh: Put .rela.opd into
3119 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
3120
4d8907ac
DS
31212004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
3122
3123 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
3124 * ld.texinfo (--omagic): Note that writable text section
3125 does not conform to published PE-COFF specs.
3126 (--enable-auto-import): Likewise.
3127
e5c60db5
AM
31282004-01-15 Alan Modra <amodra@bigpond.net.au>
3129
3130 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
3131
6bdafbeb
NC
31322004-01-13 Nick Clifton <nickc@redhat.com>
3133
3134 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
3135 which if true will prevent the LMA region being used as a
3136 replacement for a default VMA region.
586196d5
AM
3137 (lang_leave_output_section_statement): Pass extra parameter.
3138 (lang_leave_overlay): Likewise.
3139 * ld.texinfo (Output Section LMA): Document that the LMA
6bdafbeb
NC
3140 region can be set to the VMA region if no VMA has been set.
3141 * ldlang.h (struct lang_output_section_phdr_list): Create a
3142 typedef for this type. Minor formatting fixes.
586196d5 3143
9dfc8ab2
NC
31442004-01-13 Nick Clifton <nickc@redhat.com>
3145
3146 * ldlang.c (lang_size_sections_1): If dot is advanced, then
3147 assume that the section should be allocated.
3148
8325c4dd
AM
31492004-01-13 Alan Modra <amodra@bigpond.net.au>
3150
3151 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
3152 sections. Do ignore SEC_NEVER_LOAD sections.
3153 (lang_size_sections_1): Remove test made redundant with the above.
3154
83490352
AM
31552004-01-09 Alan Modra <amodra@bigpond.net.au>
3156
3157 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
3158 program_header_size.
3159
005e1118
AO
31602004-01-06 Alexandre Oliva <aoliva@redhat.com>
3161
3162 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
3163 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
3164 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
3165 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
3166 (MAXPAGESIZE): Set to 64Kb.
3167 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
3168 __ROFIXUP_END__. Don't map .rofixup.got any more.
3169 * emulparams/elf32frv.sh (NOP): Set.
3170 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
3171 * configure.tgt: Add frv-*-*linux*.
3172 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
3173 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
3174 (eelf32frvfd.c): New.
3175 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
3176 * emulparams/elf32frv.sh: Reverted previous two patches.
3177 * emulparams/elf32frvfd.sh: New.
3178 * Makefile.in: Rebuilt.
3179 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
3180 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
3181 .rofixup.got to .rofixup.
3182 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
3183 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
3184 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
3185
060feee5
JJ
31862004-01-05 Jakub Jelinek <jakub@redhat.com>
3187
3188 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
3189 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
3190
5e2f1575
AM
31912004-01-03 Alan Modra <amodra@bigpond.net.au>
3192
e5caa5e0
AM
3193 * ldexp.c (align_n): Make static.
3194 * ldexp.h (align_n): Delete declaration.
3195 * ldlang.h (lang_enter_output_section_statement): Remove
3196 block_value param.
3197 * ldlang.c (lang_enter_output_section_statement): Likewise.
3198 (TO_ADDR, TO_SIZE): Define.
c2df3ea5 3199 (opb_shift): New var.
e5caa5e0
AM
3200 (init_opb): New function.
3201 (print_input_section): Call init_opb and use TO_ADDR.
3202 (print_data_statement, print_reloc_statement): Likewise.
3203 (print_padding_statement): Likewise.
c2df3ea5 3204 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
e5caa5e0
AM
3205 (lang_check_section_addresses): Likewise.
3206 (lang_size_sections_1): Likewise.
3207 (lang_do_assignments_1): Likewise.
3208 (lang_set_startof): Likewise.
c2df3ea5 3209 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
e5caa5e0 3210 (lang_process): Call init_opb.
c2df3ea5 3211 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
e5caa5e0
AM
3212 (lang_enter_overlay_section): Adjust
3213 lang_enter_output_section_statement call.
3214 * ldgram.y: Likewise.
3215 * mri.c (mri_draw_tree): Likewise.
3216 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
3217 * emultempl/mmo.em (mmo_place_orphan): Likewise.
3218 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
3219
5e2f1575
AM
3220 * ldfile.c (ldfile_set_output_arch): Add defarch param.
3221 * ldfile.h (ldfile_set_output_arch): Ditto.
3222 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
3223 ldfile_set_output_arch.
3224 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
3225 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
3226 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
3227 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3228 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
3229 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
3230 * ldgram.y: Adjust ldfile_set_output_arch call.
3231 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3232 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
3233 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
3234 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
3235 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
3236 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3237 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3238
b50c15dc
NC
32392004-01-02 Bernardo Innocenti <bernie@develer.com>
3240
3241 * configure.tgt: Add m68k-uClinux target.
6edf0760 3242
c9e214e5 3243For older changes see ChangeLog-0203
252b5132
RH
3244\f
3245Local Variables:
3246mode: change-log
3247left-margin: 8
3248fill-column: 74
3249version-control: never
3250End:
This page took 0.476204 seconds and 4 git commands to generate.