2006-05-11 Paul Brook <paul@codesourcery.com>
[platform/upstream/binutils.git] / ld / ChangeLog
1 2006-05-11  Pedro Alves  <pedro_alves@portugalmail.pt>
2
3         * pe-dll.c (autofilter_symbollist): Add Dllmain,
4         DllMainCRTStartup, _DllMainCRTStartup and .text.
5         (autofilter_liblist): Add libcegcc.
6         (autofilter_symbolprefixlist): Add __imp_ and .idata$.
7         (generate_reloc): Do not skip sections without a SEC_LOAD flag,
8         they can still contain relocs that need processing.
9         Skip the .idata$6 section.
10         (jmp_arm_bytes): New array: Contains byte codes for an ARM jump.
11         (make_one): Use the new array.
12         (make_import_fixup_entry): Use .idata$2 instead of .idata$3.
13         * emultempl/pe.em (MajorSubsystemVersion): Set to 3 for armpe.
14
15 2006-05-05  Alan Modra  <amodra@bigpond.net.au>
16
17         * ld.texinfo: Document PowerPC and PowerPC64 options.
18         * gen-doc.texi: Enable.
19
20 2006-05-02  Daniel Jacobowitz  <dan@codesourcery.com>
21
22         * Makefile.am (AM_MAKEINFOFLAGS): Add libiberty.
23         (TEXI2POD): Use AM_MAKEINFOFLAGS.
24         (configdoc.texi): Don't set top_srcdir.
25         * ld.texinfo: Don't use top_srcdir.
26         * aclocal.m4, Makefile.in: Regenerated.
27
28 2006-04-19  Alan Modra  <amodra@bigpond.net.au>
29
30         * ldlang.c (wild): Tidy default_common_section loop.
31         (print_input_section): Format.
32
33         * configure: Regenerate.
34
35 2006-04-16  Daniel Jacobowitz  <dan@codesourcery.com>
36
37         * po/POTFILES.in: Regenerated.
38
39 2006-04-16  Daniel Jacobowitz  <dan@codesourcery.com>
40
41         * config.in: Regenerated.
42
43 2006-04-14  David Heine  <dlheine@tensilica.com>
44             Bob Wilson  <bob.wilson@acm.org>
45
46         * emultempl/xtensaelf.em (elf_xtensa_before_allocation): Call new
47         function to strip inconsistent linkonce sections.
48         (input_section_linked_worker, input_section_linked): New.
49         (is_inconsistent_linkonce_section): New.
50         (xtensa_strip_inconsistent_linkonce_sections): New.
51
52 2006-04-11  Diego Pettenò  <flameeyes@gentoo.org>
53
54         * emultempl/elf32.em: Add support for elf-hints.h on FreeBSD
55         and Dragonfly targets.
56         * configure.in (AC_CHECK_HEADERS): Add elf-hints.h.
57         * Makefile.am (HFILES): Add elf-hints-local.h.
58         * elf-hints-local.h: New file.
59         * Makefile.in: Regenerate.
60         * configure: Regenerate.
61
62 2006-04-07  Bernhard Fischer  <aldot@gcc.gnu.org>
63
64         * ld.texinfo: Fix typo in documentation of --check-sections.
65
66 2006-04-07  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
67
68         * ldlang.c (load_symbols): Set as_needed and add_needed according
69         to the corresponding script's fields while processing it.
70
71 2006-04-06  Carlos O'Donell  <carlos@codesourcery.com>
72
73         * Makefile.am: Add install-html, install-html-am, and
74         install-html-recursive targets.
75         * Makefile.in: Regenerate.
76         * configure.in: AC_SUBST datarootdir, docdir, htmldir.
77         * configure: Regenerate.
78         * po/Make-in: Add install-html target.
79
80 2006-04-06  H.J. Lu  <hongjiu.lu@intel.com>
81
82         * emultempl/ia64elf.em: Set link_info.relax_pass to 2. Remove
83         link_info.need_relax_finalize.
84
85         * ldlang.c (relax_sections): New.
86         (lang_process): Use. Call relax_sections link_info.relax_pass
87         times.
88
89         * ldmain.c (main): Set link_info.relax_pass to 1. Remove
90         link_info.need_relax_finalize.
91
92 2006-04-05  Alan Modra  <amodra@bigpond.net.au>
93
94         * Makefile.am (GENSCRIPTS): Pass prefix.
95         * Makefile.in: Regenerate.
96         * genscripts.sh: Adjust for extra parameter.
97         * emultempl/elf32.em (parse_ld_so_conf): Return true iff file
98         exists.
99         (check_ld_so_conf): Use ${prefix}/etc/ld.so.conf if it exists.
100         * NEWS: Update.
101
102 2006-04-05  Richard Sandiford  <richard@codesourcery.com>
103             Daniel Jacobowitz  <dan@codesourcery.com>
104
105         * configure.tgt (sparc*-*-vxworks*): New stanza.
106         * emulparams/elf32_sparc_vxworks.sh: New file.
107         * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_vxworks.o.
108         (eelf32_sparc_vxworks.c): New rule.
109         * Makefile.in: Regenerate.
110
111 2006-04-04  Eric Botcazou  <ebotcazou@adacore.com>
112
113         * ldlang.c (lang_map): Print the list of discarded input sections.
114         (print_input_section): Change parameter and print zero-sized sections.
115         (print_statement): Adjust call to print_input_section.
116
117 2006-04-01  Danny Smith  <dannysmith@users.sourceforge.net>
118
119         * deffilep.y (def_image_name): If LIBRARY or NAME statement
120         specifies an empty string, retain the name specified on command
121         line.
122         * ld.texinfo: Document above.
123
124 2006-03-31  Jakub Jelinek  <jakub@redhat.com>
125
126         * ldmisc.c (vfinfo): Revert 2005-10-05 changes.  If
127         bfd_find_nearest_line succeeded for %C or %D, but filename
128         is NULL, print section+offset at the end.
129
130 2006-03-25  Bernd Schmidt  <bernd.schmidt@analog.com>
131
132         * emulparams/elf32bfinfd.sh: New file.
133         * emultempl/bfin.em: Delete.
134         * emulparams/bfin.sh: Lose reference to bfin.em.
135         * Makefile.am (eelf32bfin.c): Likewise.
136         (eelf32bfinfd.c): New.
137         * Makefile.in: Regenerate.
138         * configure.tgt (bfin-*-elf, bfin-*-uclinux): Add elf32bfinfd to
139         targ_extra_emuls.
140
141 2006-03-22  Richard Sandiford  <richard@codesourcery.com>
142             Daniel Jacobowitz  <dan@codesourcery.com>
143             Phil Edwards  <phil@codesourcery.com>
144             Zack Weinberg  <zack@codesourcery.com>
145             Mark Mitchell  <mark@codesourcery.com>
146             Nathan Sidwell  <nathan@codesourcery.com>
147
148         * configure.tgt (mips*el-*-vxworks*, mips*-*-vxworks*): Use
149         separate VxWorks emulations.
150         * emulparams/elf32ebmipvxworks.sh: New file.
151         * emulparams/elf32elmipvxworks.sh: New file.
152         * Makefile.am (ALL_EMULATIONS): Add eelf32ebmipvxworks.o and
153         eelf32elmipvxworks.o.
154         (eelf32ebmipvxworks.c, eelf32elmipvxworks.c): New rules.
155         * Makefile.in: Regenerate.
156
157 2006-03-16  Alan Modra  <amodra@bigpond.net.au>
158
159         PR 2434
160         * ldcref.c (add_cref): Adjust bfd_hash_table_init calls.
161         * ldlang.c (output_statement_table_init, lang_init): Likewise.
162         * ldmain.c (add_ysym, add_wrap, add_keepsyms_file): Likewise.
163         (undefined_symbol): Likewise.
164
165 2006-03-07  Richard Sandiford  <richard@codesourcery.com>
166             Daniel Jacobowitz  <dan@codesourcery.com>
167             Zack Weinberg  <zack@codesourcery.com>
168             Nathan Sidwell  <nathan@codesourcery.com>
169             Paul Brook  <paul@codesourcery.com>
170             Ricardo Anguiano  <anguiano@codesourcery.com>
171             Phil Edwards  <phil@codesourcery.com>
172
173         * emulparams/armelf_vxworks.sh: Include vxworks.sh.
174         (MAXPAGESIZE): Define.
175         * emulparams/vxworks.sh: Undefine EMBEDDED.
176         * Makefile.am (earmelf_vxworks.c): Depend on vxworks.sh and vxworks.em.
177         * Makefile.in: Regenerate.
178
179 2006-03-03  Bjoern Haase  <bjoern.m.haase@web.de>
180
181         * scripttempl/avr.sc:  Add *(.jumptables) *(.lowtext) sections.
182         Add KEEP() directives.
183         Add *(.data*) *(.rodata) and *(.rodata*) and *(.bss*) to .data and
184         .bss output sections.
185
186 2006-03-03  Richard Sandiford  <richard@codesourcery.com>
187
188         * emulparams/vxworks.sh (VXWORKS_BASE_EM_FILE): New variable.
189         (EXTRA_EM_FILE): Define.
190         * emultempl/vxworks.em: New file.
191         * ld.texinfo (--force-dynamic): Document.
192         * Makefile.am (eelf32ppcvxworks.cm, eelf_i386_vxworks.c): Depend
193         on vxworks.em.
194         * Makefile.in: Regenerate.
195
196 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
197
198         * emulparams/elf32ppccommon.sh: New file, extracted from...
199         * emulparams/elf32ppc.sh: ...here.
200         * emulparams/elf32ppcvxworks.sh: Include elf32ppccommon.sh
201         instead of elf32ppc.sh.
202         (BSS_PLT): Remove override.
203         * Makefile.am (eelf32lppc.c): Depend on elf32ppccommons.h.
204         (eelf32lppcnto.c, eelf32lppcsim.c, eelf32ppcnto.c): Likewise.
205         (eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppcsimm): Likewise.
206         (eelf32ppclinux.c): Likewise.
207         (eelf32ppcvxworks.c): Likewise.  Add missing vxworks.sh dependency.
208         * Makefile.in: Regenerate.
209
210 2006-02-27  Carlos O'Donell  <carlos@codesourcery.com>
211
212         * Makefile.am: Add html target.
213         * Makefile.in: Regenerate.
214         * po/Make-in: Add html target.
215
216 2006-02-17  Shrirang Khisti  <shrirangk@kpitcummins.com>
217             Anil Paranjape   <anilp1@kpitcummins.com>
218             Shilin Shakti    <shilins@kpitcummins.com>
219
220         * scripttemp/elf32xc16x.sc: Default linker script for tiny model.
221         * scripttemp/elf32xc16xl.sc: Default linker script for large model.
222         * scripttemp/elf32xc16xs.sc: Default linker script for small model.
223         * emulparams/elf32xc16x.sh: Emulation script for tiny model.
224         * emulparams/elf32xc16xl.sh: Emulation script for large model.
225         * emulparams/elf32xc16xs.sh: Emulation script for small model.
226         * Makefile.am: Add entry to make xc16x target.
227         * Makefile.in: Regenerate.
228         * configure.tgt: Specify default and other emulation parameters
229         for xc16x.
230         * NEWS: Announce the support for the new target.
231
232 2006-02-16  Nick Hudson  <nick.hudson@dsl.pipex.com>
233
234         * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
235         Use the traditional target.
236
237 2006-02-13  Joseph S. Myers  <joseph@codesourcery.com>
238
239         * configure.tgt (arm*b-*-linux-gnueabi): Change to
240         arm*b-*-linux-*eabi.
241         (arm*-*-linux-gnueabi): Change to arm*-*-linux-*eabi.
242
243 2006-02-08  H.J. Lu  <hongjiu.lu@intel.com>
244
245         PR ld/2290
246         * NEWS: Updated for the Linux linker search order change.
247
248         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Call
249         gld${EMULATION_NAME}_check_ld_so_conf before checking default
250         search directories for DT_NEEDED entries.
251
252 2006-02-07  Paul Brook  <paul@codesourcery.com>
253
254         * emultempl/armelf.em: Include elf/arm.h.
255         (arm_elf_finish): Set low address bit if enty point is a Thumb
256         function.
257
258 2006-02-01  Danny Smith  <dannysmith@users.sourceforge.net>
259
260         * deffilep.y (def_image_name): If the image name does not have
261         a suffix, append the default.
262         * ld.texinfo: Document NAME, LIBRARY usage in PE-COFF .def files.
263
264 2006-01-31  Danny Smith  dannysmith@users.sourceforge.net
265
266         * NEWS: Mention support for forward exports in PE-COFF dll's.
267         * ld.texinfo: Expand documentation of EXPORT statements in
268         PE-COFF .def files.
269
270 2006-01-31  Filip Navara  <navaraf@reactos.com>
271
272         * deffile.h (struct def_file_export): Add field flag_forward.
273         * pe-dll.c (process_def_file): Check for forward exports.
274         (generate_edata): Generate forward export symbols.
275         (fill_edata): Emit them.
276
277         * pe-dll.c (process_def_file): Don't crash on malformed
278         fastcall symbol names in .def file.
279
280 2006-01-30  Nick Clifton  <nickc@redhat.com>
281
282         * po/vi.po: Updated Vietnamese translation.
283
284 2006-01-27  Yitzchak Scott-Thoennes  <sthoenna@efn.org>
285
286         * pe-dll.c (pe_dll_generate_implib): Issue "Creating library
287         file:" as informational message, not a warning.
288
289 2006-01-18  Roger Sayle  <roger@eyesopen.com>
290
291         * emultempl/irix.em: Use lbasename instead of basename.
292
293 2006-01-16  Nick Clifton  <nickc@redhat.com>
294
295         * po/zh_CN.po: New Chinese (simplified) translation.
296         * configure.in (ALL_LINGUAS): Add "zh_CH".
297         * configure: Regenerate.
298
299 2006-01-16  Bernhard Fischer  <aldot@gcc.gnu.org>
300
301         * ld.texinfo (Options): Fix typo.
302
303 For older changes see ChangeLog-2005
304 \f
305 Local Variables:
306 mode: change-log
307 left-margin: 8
308 fill-column: 74
309 version-control: never
310 End: