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