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