2007-03-20 Paul Brook <paul@codesourcery.com>
[platform/upstream/binutils.git] / ld / ChangeLog
1 2007-03-20  Paul Brook  <paul@codesourcery.com>
2
3         * emultempl/armelf.em (pic_veneer): New variable.
4         (PARSE_AND_LIST_PROLOGUE): Add OPTION_PIC_VENEER.
5         (PARSE_AND_LIST_ARGS_CASES): Ditto.
6         (PARSE_AND_LIST_LONGOPTS): Add "pic-veneer".
7         (PARSE_AND_LIST_OPTIONS): Ditto.
8         * ld.texinfo: Document --pic-veneer.
9
10 2007-03-18  Mark Shinwell  <shinwell@codesourcery.com>
11
12         * ld.texinfo: Document --no-enum-size-warning.
13         * emultempl/armelf.em (no_enum_size_warning): New.
14         (arm_elf_create_output_section_statements): Correct typo
15         in comment.  Pass no_enum_size_warning to
16         bfd_elf32_arm_set_target_relocs.
17         (PARSE_AND_LIST_PROLOGUE): Define OPTION_NO_ENUM_SIZE_WARNING.
18         (PARSE_AND_LIST_OPTIONS): Document --no-enum-size-warning.
19         (PARSE_AND_LIST_ARGS_CASES): Add OPTION_NO_ENUM_SIZE_WARNING
20         case.
21
22 2007-03-19  Bernd Schmidt  <bernd.schmidt@analog.com>
23
24         * configure.tgt (bfin-*-elf, bfin-*-uclinux*): Add targ_extra_libpath.
25         (bfin-*-linux-uclibc*): New target.
26
27 2007-03-16  Kai Tietz  <Kai.Tietz@onevision.com>
28
29         * pe-dll.c (make_one): Use pc-relative relocation instead of an
30         absolute relocation for x86_64-pc-mingw32 target.
31
32 2007-03-15  H.J. Lu  <hongjiu.lu@intel.com>
33
34         * Makefile.am (ld_TEXINFOS): Remove ldver.texi.
35         (AM_MAKEINFOFLAGS): Add -I ../../bfd/doc.
36         (TEXI2DVI): Likewise.
37         (REPORT_BUGS_TO): Removed.
38         (INCLUDES): Remove -DREPORT_BUGS_TO.
39         (ldver.texi): Likewise.
40         (ld.1): Don't depend on ldver.texi.
41         (MOSTLYCLEANFILES): Remove ldver.texi.
42         * Makefile.in: Regenerated.
43
44         * configure.in (--with-bugurl): Removed.
45         * configure: Regenerated.
46
47         * lexsup.c: Include bfdver.h.
48
49         * ld.texinfo: Include bfdver.texi instead of ldver.texi.
50
51 2007-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
52
53         * emultempl/mmixelf.em: Remove incorrect '#line' directive.
54
55 2007-03-08  Alan Modra  <amodra@bigpond.net.au>
56
57         * ldlang.c (lang_size_sections_1): Correct backwards dot move
58         test to not trigger on overlays.  Only warn on backwards move
59         if non-default lma.
60
61 2007-03-07  Joseph Myers  <joseph@codesourcery.com>
62
63         * configure.in (REPORT_BUGS_TEXI): Define to Texinfo version of
64         bug-reporting URL.
65         * Makefile.am (ldver.texi): Define BUGURL.
66         * ld.texinfo: Use BUGURL.
67         * Makefile.in, configure: Regenerate.
68
69 2007-03-07  Nick Clifton  <nickc@redhat.com>
70
71         PR ld/4023
72         * emultempl/aix.em (..._before_allocation): Strip sysroot prefix
73         from any paths being inserted into the output binary's DT_RPATH.
74
75 2007-03-02  Nathan Sidwell  <nathan@codesourcery.com>
76
77         * emulparams/shelf_uclinux.sh: New. Missed in 2007-02-28 commit.
78
79 2007-03-01  Joseph Myers  <joseph@codesourcery.com>
80
81         * ldver.c (ldversion): Remove word "version" from output.  Update
82         copyright date.
83
84 2007-02-28  Nathan Sidwell  <nathan@codesourcery.com>
85
86         * Makefile.am (ALL_EMULATIONS): Add eshelf_uclinux.o
87         (eshelf_uclinux.c): New target.
88         * Makefile.in: Rebuilt.
89         * configure.tgt (sh-*-uclinux* | sh[12]-*-uclinux*): New stanza.
90         * emulparams/shelf_uclinux.sh: New.
91
92 2007-02-28  Alan Modra  <amodra@bigpond.net.au>
93
94         * configure.tgt: Fix type last change.
95         * configure.tgt (spu-*-elf*): Delete targ_extra_ofiles.
96
97 2007-02-27  Alan Modra  <amodra@bigpond.net.au>
98
99         * Makefile.am (ALL_EMUL_EXTRA_OFILES): Remove spu_inc.o.
100         (eelf32_spu.c): Adjust dependencies.
101         * Makefile.in: Regenerate.
102         * emultempl/spuelf.em (ovl_mgr): New array.  Insert spu_ovl.o
103         code using bin2c.
104         (_binary_spu_ovl_o_start, _binary_spu_ovl_o_end): Delete.
105         (ovl_mgr_stream): Update.
106         * emultempl/spu_inc.s: Delete.
107         * emultempl/spu_none.s: Delete.
108
109 2007-02-26  Alan Modra  <amodra@bigpond.net.au>
110
111         * emultempl/spuelf.em (_binary_builtin_ovl_mgr_start): Rename
112         to _binary_spu_ovl_o_start.
113         (_binary_builtin_ovl_mgr_end): Rename to _binary_spu_ovl_o_end.
114         (spu_elf_load_ovl_mgr): Fatal error on missing overlay manager.
115         * emultempl/spu_inc.s: Rename symbols.
116         * emultempl/spu_none.s: New file.
117         * emultempl/spu_ovl.S: Update copyright.
118         * Makefile.am (spu_inc.o): Try building with ld -r first, then
119         gas incbin, then build without overlay manager.
120         * Makefile.in: Regenerate.
121
122 2007-02-22  Joseph Myers  <joseph@codesourcery.com>
123
124         * configure.tgt (mips64*el-*-linux-*, mips64*-*-linux-*,
125         mips*el-*-linux-*, mips*-*-linux-*): Set
126         targ_extra_libpath=$targ_extra_emuls.
127
128 2007-02-21  Nick Clifton  <nickc@redhat.com>
129
130         * ldlang.c (ldlang_override_segment_assignment): New function.
131         * ldlang.h (ldlang_override_segment_assignment): Prototype.
132         * ldmain.c (link_callbacks): Add
133         ldlang_override_segment_assignment.
134
135 2007-02-20  Alan Modra  <amodra@bigpond.net.au>
136
137         * ldexp.c (fold_name <LOADADDR>): Ensure result is always absolute.
138
139 2007-02-17  Mark Mitchell  <mark@codesourcery.com>
140             Nathan Sidwell  <nathan@codesourcery.com>
141             Vladimir Prus  <vladimir@codesourcery.com
142             Joseph Myers  <joseph@codesourcery.com>
143
144         * configure.in (--with-bugurl): New option.
145         * configure: Regenerate.
146         * Makefile.am (REPORT_BUGS_TO): Define.
147         (INCLUDES): Define REPORT_BUGS_TO.
148         Regenerate dependencies.
149         * Makefile.in: Regenerate.
150         * ld.h: Remove include of bin-bugs.h.
151         * lexsup.c (help): Don't print empty REPORT_BUGS_TO.
152
153 2007-02-17  Alan Modra  <amodra@bigpond.net.au>
154
155         * ldcref.c (check_reloc_refs): Compare section for local syms.
156
157 2007-02-13  Alan Modra  <amodra@bigpond.net.au>
158
159         * emultempl/spu_ovl.S (__ovly_return, __ovly_load): Set sym size.
160         (__ovly_load_event): Define.
161         (size): Rename to osize.
162         * emultempl/spu_ovl.o: Regenerate.
163
164 2007-02-13  Alan Modra  <amodra@bigpond.net.au>
165
166         * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Add ".branch_lt".
167         * emultempl/ppc64elf.em (ppc_add_stub_section): Create without
168         SEC_RELOC flag set.
169
170 2007-02-09  H.J. Lu  <hongjiu.lu@intel.com>
171
172         * configure.in (targ_extra_emuls): Add $targ64_extra_emuls if
173         want64 is true.
174         (targ_extra_libpath): Add $targ64_extra_libpath if want64 is
175         true
176         * configure: Regenerated.
177
178         * configure.tgt (targ_extra_libpath): Initialize.
179         (targ64_extra_emuls): New. Document. Initialize.
180         (targ64_extra_libpath): Likewise.
181         (i[3-7]86-*-linux-*): Set targ64_extra_emuls and
182         targ64_extra_libpath.
183         (powerpc*-*-linux*): Likewise.
184         (s390-*-linux*): Likewise.
185
186 2007-02-07  Paul Brook  <paul@codesourcery.com>
187
188         * configure.tgt: Add arm*-*-uclinux-*eabi.
189
190 2007-02-06  H.J. Lu  <hongjiu.lu@intel.com>
191
192         * ldlang.c (lang_size_sections_1): Add a missing `)'.
193
194 2007-02-06  Alan Modra  <amodra@bigpond.net.au>
195
196         PR ld/3966
197         * ldlang.c (lang_size_sections_1): Don't warn on backwards dot
198         move unless section size is non-zero.
199
200 2007-02-05  Dave Brolley  <brolley@redhat.com>
201
202         * Makefile.am (ALL_EMULATIONS): Add support for Toshiba MeP.
203         * configure.tgt: Likewise.
204         * scripttempl/mep.sc: New file.
205         * emulparams/elf32mep.sh: New file.
206         * Makefile.in: Regenerate.
207
208 2006-01-29  Julian Brown  <julian@codesourcery.com>
209
210         * NEWS: Mention --vfp11-denorm-fix option.
211         * ld.texinfo: Document above.
212         * emulparams/armelf_linux.sh (OTHER_TEXT_SECTIONS): Add
213         .vfp11_veneer section.
214         * emulparams/armelf.sh (OTHER_TEXT_SECTIONS): Likewise.
215         * emultempl/armelf.em (vfp11_denorm_fix): New static variable.
216         (arm_elf_before_allocation): Call bfd_elf32_arm_set_vfp11_fix,
217         bfd_elf32_arm_init_maps and bfd_elf32_arm_vfp11_erratum_scan.
218         (arm_elf_after_allocation): New function. Call
219         bfd_elf32_arm_vfp11_fix_veneer_locations for all input statements.
220         (arm_elf_create_output_section_statements): Pass vfp11 fix command
221         line option to BFD.
222         (OPTION_VFP11_DENORM_FIX): New option.
223         (PARSE_AND_LIST_LONGOPTS): Handle new option.
224         (PARSE_AND_LIST_OPTIONS): Likewise.
225         (PARSE_AND_LIST_ARGS_CASES): Likewise.
226         (LDEMUL_AFTER_ALLOCATION): Define.
227
228 2007-01-24  H.J. Lu  <hongjiu.lu@intel.com>
229
230         * ldgram.y (SIZEOF_HEADERS): Remove duplicated one.
231         (DEFSYMEND): Likewise.
232         (NAME): Likewise.
233         (LNAME): Likewise.
234
235 2007-01-19  Murali Vemulapati  <murali.vemulapati@gmail.com>
236
237         * pe-dll.c: (make_one) Conditionally include jump stubs.
238         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Identify
239         redundant jump stubs from import libraries and exclude them from
240         link.
241
242 2007-01-19  H.J. Lu  <hongjiu.lu@intel.com>
243
244         * ld.h (args_type): Add new symbolic and dynamic_list fields.
245
246         * ld.texinfo: Update -Bsymbolic-functions.
247
248         * ldmain.c (main): Initialize command_line.symbolic to
249         symbolic_unset and command_line.dynamic_list to
250         dynamic_list_unset.  Check -Bsymbolic, -Bsymbolic-functions and
251         --dynamic-list* before setting link_info.symbolic,
252         link_info.dynamic and link_info.dynamic_data.
253
254         * lexsup.c (option_values): Add OPTION_SYMBOLIC_FUNCTIONS.
255         (ld_options): Use OPTION_SYMBOLIC_FUNCTIONS with
256         -Bsymbolic-functions.
257         (parse_args): Handle -Bsymbolic-functions.  Don't set
258         link_info.dynamic, link_info.dynamic_data and link_info.symbolic
259         here.  Set command_line.symbolic for -Bsymbolic.  Set
260         command_line.dynamic_list and command_line.symbolic for
261         --dynamic-list-data, --dynamic-list-cpp-new,
262         --dynamic-list-cpp-typeinfo and --dynamic-list.
263
264 2007-01-19  Jakub Jelinek  <jakub@redhat.com>
265             H.J. Lu  <hongjiu.lu@intel.com>
266
267         * emultempl/elf32.em (handle_option): Make sure -z max-page-size
268         or -z common-page-size argument is a power of 2.  Call
269         bfd_emul_set_maxpagesize and bfd_emul_set_commonpagesize.
270
271 2007-01-19  H.J. Lu  <hongjiu.lu@intel.com>
272
273         * ldmain.c (main): Don't call bfd_emul_set_maxpagesize nor
274         bfd_emul_set_commonpagesize.
275
276 2007-01-19  H.J. Lu  <hongjiu.lu@intel.com>
277
278         * NEWS: Mention --default-script/-dT.
279
280         * ld.h (args_type): Add a default_script field.
281
282         * ld.texinfo: Document --default-script/-dT.
283
284         * ldmain.c (main): Handle command_line.default_script.
285
286         * lexsup.c (option_values): Add OPTION_DEFAULT_SCRIPT.
287         (ld_options): Add entries for --default-script and -dT.
288         (parse_args): Handle --default-script/-dT.
289
290 2007-01-16  H.J. Lu  <hongjiu.lu@intel.com>
291
292         PR ld/3831
293         * NEWS: Mention -Bsymbolic-functions, --dynamic-list-data and
294         --dynamic-list-cpp-new.
295
296         * ld.texinfo: Document -Bsymbolic-functions, --dynamic-list-data
297         and --dynamic-list-cpp-new.
298
299         * ldlang.c (lang_append_dynamic_list_cpp_new): New.
300         (lang_process): Change link_info.dynamic to
301         link_info.dynamic_list.
302         (lang_append_dynamic_list): Likewise.
303         * ldmain.c (main): Likewise.  Initialize link_info.dynamic and
304         link_info.dynamic_data to FALSE.
305
306         * ldlang.h (lang_append_dynamic_list_cpp_new): New.
307
308         * lexsup.c (option_values): Add OPTION_DYNAMIC_LIST_DATA and
309         OPTION_DYNAMIC_LIST_CPP_NEW.
310         (ld_options): Add entries for -Bsymbolic-functions,
311         --dynamic-list-data and --dynamic-list-cpp-new.  Make
312         -Bsymbolic-functions an alias of --dynamic-list-data.
313         (parse_args): Change link_info.dynamic to link_info.dynamic_list.
314         Set link_info.dynamic to TRUE for --dynamic-list and
315         --dynamic-list-cpp-typeinfo.  Handle --dynamic-list-data and
316         --dynamic-list-cpp-new.
317
318 2007-01-11  Nathan Sidwell  <nathan@codesourcery.com>
319
320         * emultempl/elf-generic.em (gdl_map_segments): Only allow header
321         shrinkage for the first few iterations.
322
323 2007-01-08  Kai Tietz   <kai.tietz@onevision.com>
324
325         * configure.tgt: Renamed target x86_64-*-mingw64 to
326         x86_64-*-mingw*.
327
328 2007-01-08  Pedro Alves  <pedro_alves@portugalmail.pt>
329
330         * configure.host: Add i[3-7]86-*-mingw* case.
331
332 2007-01-08  Nick Clifton  <nickc@redhat.com>
333
334         * pep-dll.h (pep_bfd_is_dll): Add prototype.
335
336 2007-01-08  Aurelien Jarno  <aurelien@aurel32.net>
337
338         PR ld/3843
339         * configure.tgt (x86_64_[k]freebsd*): Add targ_extra_libpath and
340         tdir_elf_i386_fbsd.
341
342 2007-01-06  Nathan Sidwell  <nathan@codesourcery.com>
343
344         * ldexp.c (fold_name): Issue error on undefined sections.
345
346 2007-01-02  Alan Modra  <amodra@bigpond.net.au>
347
348         * pe-dll.c: Include pe-dll.h.
349         * pep-dll.c (pe_bfd_is_dll): Define.
350
351 For older changes see ChangeLog-2006
352 \f
353 Local Variables:
354 mode: change-log
355 left-margin: 8
356 fill-column: 74
357 version-control: never
358 End: