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