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