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