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