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