1 2007-05-03 Bob Wilson <bob.wilson@acm.org>
3 * scripttempl/elfxtensa.sc: Merge changes from elf.sc.
5 2007-05-03 Alan Modra <amodra@bigpond.net.au>
7 * ld.texinfo (--no-warn-search-mismatch): Document.
8 * ldfile.c (ldfile_try_open_bfd): Don't warn about skipping
9 incompatible libraries if --no-warn-search-mismatch.
10 * ld.h (args_type): Add warn_search_mismatch.
11 * ldmain.c (main): Init it.
12 * lexsup.c (enum option_values): Add OPTION_NO_WARN_SEARCH_MISMATCH.
13 (ld_options): Add entry for --no-warn-search-mismatch.
14 (parse_args): Handle OPTION_NO_WARN_SEARCH_MISMATCH.
16 2007-05-03 Alan Modra <amodra@bigpond.net.au>
18 * scripttempl/elf.sc: Add .debug_pubtypes and .debug_ranges.
20 2007-05-01 Robert Millan <rmh@aybabtu.com>
22 * ldlang.c (lang_check): Error on architecture mismatch.
24 2007-04-30 Alan Modra <amodra@bigpond.net.au>
26 * ldmain.c (link_callbacks): Init info and minfo fields.
27 * ldmisc.c (minfo): Do nothing if no map file.
28 * emultempl/spuelf.em (stack_analysis, emit_stack_syms): New vars.
29 (spu_after_open): Adjust spu_elf_create_sections call.
30 (spu_before_allocation): Likewise for spu_elf_size_stubs.
31 (OPTION_SPU_STACK_ANALYSIS, OPTION_SPU_STACK_SYMS): Define.
32 (PARSE_AND_LIST_LONGOPTS): Add new entries.
33 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
34 * gen-doc.texi: Add @set for SPU and other missing targets.
35 * ld.texinfo: Update man page selection to match gen-doc.texi.
36 Document SPU features.
38 2007-04-28 Alan Modra <amodra@bigpond.net.au>
40 * ldcref.c (struct cref_hash_entry): Make "demangled" const.
41 (cref_fill_array): Adjust for changed demangler.
42 * ldlang.c (lang_one_common): Likewise.
44 2007-04-27 Nathan Froyd <froydnj@codesourcery.com>
46 * emulparams/elf32_sparc.sh: Update comments.
47 * emulparams/elf32bmip.sh: Likewise.
48 * emulparams/elf32ppc.sh: Likewise.
49 * emulparams/vxworks.sh: Likewise.
51 2007-04-27 Alan Modra <amodra@bigpond.net.au>
53 Many files: Include sysdep.h first. Remove duplicate headers.
54 * Makefile.am: Run "make dep-am".
55 * Makefile.in: Regenerate.
57 2007-04-24 Alan Modra <amodra@bigpond.net.au>
59 * Makefile.in: Regenerate.
61 2007-04-19 Alan Modra <amodra@bigpond.net.au>
63 * ldcref.c (cref_fill_array): Call bfd_demangle rather than demangle.
64 * ldlang.c (lang_one_common): Likewise.
65 * ldmisc.c (vfinfo): Likewise.
67 * ldmisc.h (demangle): Delete.
68 * Makefile.am: Run "make dep-am".
69 * Makefile.in: Regenerate.
71 2007-04-18 Alan Modra <amodra@bigpond.net.au>
73 * ldlang.h (enum section_type): Add overlay_section.
74 * ldlang.c (lang_add_section): Handle flags for overlay_section
75 as per normal_section.
76 (lang_size_sections_1): When setting lma, detect overlays by
77 os->sectype rather than by looking for overlapping vmas.
78 (lang_enter_overlay_section): Use overlay_section type.
79 (lang_leave_overlay): Set first overlay section to normal.
81 2007-04-14 Steve Ellcey <sje@cup.hp.com>
83 * Makefile.am: Add ACLOCAL_AMFLAGS.
84 * Makefile.in: Regenerate.
86 2007-04-12 Bob Wilson <bob.wilson@acm.org>
88 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): KEEP property sections.
90 2007-04-10 Richard Henderson <rth@redhat.com>
92 * ldlang.c (relax_sections): Initialize and increment
95 2007-04-04 Paul Brook <paul@codesourcery.com>
97 * configure.tgt: Loosen checks for arm uclinux eabi targets.
99 2007-04-02 H.J. Lu <hongjiu.lu@intel.com>
102 * ldexp.h (node_type): Add lineno.
103 * ldexp.c: Include "ldlex.h".
104 (exp_intop): Set the lineno field from lineno.
105 (exp_bigintop): Likewise.
106 (exp_relop): Likewise.
107 (exp_nameop): Likewise.
108 (exp_binop): Set the lineno field from lineno of lhs.
109 (exp_trinop): Likewise.
110 (exp_unop): Set the lineno field from lineno of child.
111 (exp_assop): Set the lineno field from lineno of src.
112 (exp_provide): Likewise.
113 (exp_assert): Set the lineno field from lineno of exp.
114 (exp_get_abs_int): Set lineno from lineno of nonconstant
115 expression when report problem.
117 2007-03-29 Richard Sandiford <richard@codesourcery.com>
118 Daniel Jacobowitz <dan@codesourcery.com>
120 * NEWS: Mention -l:foo.
121 * ld.texinfo: Document it.
122 * ldlang.c (new_afile): If a lang_input_file_is_l_enum
123 entry as a name beginning with a coloh, convert it to a
124 lang_input_file_is_search_file_enum entry without the colon.
126 2007-03-28 Richard Sandiford <richard@codesourcery.com>
128 * ld.h (ld_config_type): Add rpath_separator.
129 * ldmain.c (main): Initialize it.
130 * lexsup.c (parse_args): Honor config.rpath_separator.
131 * emultempl/elf32.em (gld${EMULATION_NAME}_search_needed): Likewise.
132 (gld${EMULATION_NAME}_add_sysroot): Likewise.
133 (gld${EMULATION_NAME}_parse_ld_so_conf): Use config.rpath_separator
134 rather than ':' when building the path.
135 * emultempl/vxworks.em (vxworks_before_parse): New function.
136 Override config.rpath_separator.
137 (LDEMUL_AFTER_OPEN): Do not change if EXTRA_EM_FILE has been
138 set to gld${EMULATION_NAME}_after_open; #define that identifier
139 to vxworks_foo instead.
140 (LDEMUL_BEFORE_PARSE): Override in the same way as LDEMUL_AFTER_OPEN.
142 2007-03-28 Richard Sandiford <richard@codesourcery.com>
143 Phil Edwards <phil@codesourcery.com>
145 * ld.texinfo: Put the contents after the title page rather
146 than at the end of the document.
148 2007-03-26 Alan Modra <amodra@bigpond.net.au>
150 * Makefile.am: Add dependency on ldemul-list.h for powerpc and
151 spu target emul files.
152 * configure.in: Check for mkstemp and waitpid.
153 * Makefile.in: Regenerate.
154 * configure: Regenerate.
155 * config.in: Regenerate.
156 * ldlang.c (input_file_chain): Make global.
157 (lang_add_input_file): Don't set lang_has_input_file here.
158 * ldlang.h (input_file_chain): Declare.
159 * emultempl/ppc32elf.em (ppc_recognized_file): New function.
160 (LDEMUL_RECOGNIZED_FILE): Define.
161 * emultempl/ppc64elf.em (ppc64_recognized_file): New function.
162 (LDEMUL_RECOGNIZED_FILE): Define.
163 * emultempl/spuelf.em (struct tflist): New.
164 (tmp_file_list): New var.
165 (clean_tmp, embedded_spu_file): New functions.
167 2007-03-24 Alan Modra <amodra@bigpond.net.au>
169 * ldlang.c (lang_insert_orphan): Provide start/stop loadaddr syms
170 rather than defining unconditionally.
171 (lang_leave_overlay_section): Likewise.
172 * ld.texinfo (Overlay Description): Update description and examples
175 2007-03-22 Joseph Myers <joseph@codesourcery.com>
177 * ld.texinfo: Include VERSION_PACKAGE when reporting version.
179 2007-03-20 Paul Brook <paul@codesourcery.com>
181 * emultempl/armelf.em (pic_veneer): New variable.
182 (PARSE_AND_LIST_PROLOGUE): Add OPTION_PIC_VENEER.
183 (PARSE_AND_LIST_ARGS_CASES): Ditto.
184 (PARSE_AND_LIST_LONGOPTS): Add "pic-veneer".
185 (PARSE_AND_LIST_OPTIONS): Ditto.
186 * ld.texinfo: Document --pic-veneer.
188 2007-03-18 Mark Shinwell <shinwell@codesourcery.com>
190 * ld.texinfo: Document --no-enum-size-warning.
191 * emultempl/armelf.em (no_enum_size_warning): New.
192 (arm_elf_create_output_section_statements): Correct typo
193 in comment. Pass no_enum_size_warning to
194 bfd_elf32_arm_set_target_relocs.
195 (PARSE_AND_LIST_PROLOGUE): Define OPTION_NO_ENUM_SIZE_WARNING.
196 (PARSE_AND_LIST_OPTIONS): Document --no-enum-size-warning.
197 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_NO_ENUM_SIZE_WARNING
200 2007-03-19 Bernd Schmidt <bernd.schmidt@analog.com>
202 * configure.tgt (bfin-*-elf, bfin-*-uclinux*): Add targ_extra_libpath.
203 (bfin-*-linux-uclibc*): New target.
205 2007-03-16 Kai Tietz <Kai.Tietz@onevision.com>
207 * pe-dll.c (make_one): Use pc-relative relocation instead of an
208 absolute relocation for x86_64-pc-mingw32 target.
210 2007-03-15 H.J. Lu <hongjiu.lu@intel.com>
212 * Makefile.am (ld_TEXINFOS): Remove ldver.texi.
213 (AM_MAKEINFOFLAGS): Add -I ../../bfd/doc.
214 (TEXI2DVI): Likewise.
215 (REPORT_BUGS_TO): Removed.
216 (INCLUDES): Remove -DREPORT_BUGS_TO.
217 (ldver.texi): Likewise.
218 (ld.1): Don't depend on ldver.texi.
219 (MOSTLYCLEANFILES): Remove ldver.texi.
220 * Makefile.in: Regenerated.
222 * configure.in (--with-bugurl): Removed.
223 * configure: Regenerated.
225 * lexsup.c: Include bfdver.h.
227 * ld.texinfo: Include bfdver.texi instead of ldver.texi.
229 2007-03-11 Hans-Peter Nilsson <hp@bitrange.com>
231 * emultempl/mmixelf.em: Remove incorrect '#line' directive.
233 2007-03-08 Alan Modra <amodra@bigpond.net.au>
235 * ldlang.c (lang_size_sections_1): Correct backwards dot move
236 test to not trigger on overlays. Only warn on backwards move
239 2007-03-07 Joseph Myers <joseph@codesourcery.com>
241 * configure.in (REPORT_BUGS_TEXI): Define to Texinfo version of
243 * Makefile.am (ldver.texi): Define BUGURL.
244 * ld.texinfo: Use BUGURL.
245 * Makefile.in, configure: Regenerate.
247 2007-03-07 Nick Clifton <nickc@redhat.com>
250 * emultempl/aix.em (..._before_allocation): Strip sysroot prefix
251 from any paths being inserted into the output binary's DT_RPATH.
253 2007-03-02 Nathan Sidwell <nathan@codesourcery.com>
255 * emulparams/shelf_uclinux.sh: New. Missed in 2007-02-28 commit.
257 2007-03-01 Joseph Myers <joseph@codesourcery.com>
259 * ldver.c (ldversion): Remove word "version" from output. Update
262 2007-02-28 Nathan Sidwell <nathan@codesourcery.com>
264 * Makefile.am (ALL_EMULATIONS): Add eshelf_uclinux.o
265 (eshelf_uclinux.c): New target.
266 * Makefile.in: Rebuilt.
267 * configure.tgt (sh-*-uclinux* | sh[12]-*-uclinux*): New stanza.
268 * emulparams/shelf_uclinux.sh: New.
270 2007-02-28 Alan Modra <amodra@bigpond.net.au>
272 * configure.tgt: Fix type last change.
273 * configure.tgt (spu-*-elf*): Delete targ_extra_ofiles.
275 2007-02-27 Alan Modra <amodra@bigpond.net.au>
277 * Makefile.am (ALL_EMUL_EXTRA_OFILES): Remove spu_inc.o.
278 (eelf32_spu.c): Adjust dependencies.
279 * Makefile.in: Regenerate.
280 * emultempl/spuelf.em (ovl_mgr): New array. Insert spu_ovl.o
282 (_binary_spu_ovl_o_start, _binary_spu_ovl_o_end): Delete.
283 (ovl_mgr_stream): Update.
284 * emultempl/spu_inc.s: Delete.
285 * emultempl/spu_none.s: Delete.
287 2007-02-26 Alan Modra <amodra@bigpond.net.au>
289 * emultempl/spuelf.em (_binary_builtin_ovl_mgr_start): Rename
290 to _binary_spu_ovl_o_start.
291 (_binary_builtin_ovl_mgr_end): Rename to _binary_spu_ovl_o_end.
292 (spu_elf_load_ovl_mgr): Fatal error on missing overlay manager.
293 * emultempl/spu_inc.s: Rename symbols.
294 * emultempl/spu_none.s: New file.
295 * emultempl/spu_ovl.S: Update copyright.
296 * Makefile.am (spu_inc.o): Try building with ld -r first, then
297 gas incbin, then build without overlay manager.
298 * Makefile.in: Regenerate.
300 2007-02-22 Joseph Myers <joseph@codesourcery.com>
302 * configure.tgt (mips64*el-*-linux-*, mips64*-*-linux-*,
303 mips*el-*-linux-*, mips*-*-linux-*): Set
304 targ_extra_libpath=$targ_extra_emuls.
306 2007-02-21 Nick Clifton <nickc@redhat.com>
308 * ldlang.c (ldlang_override_segment_assignment): New function.
309 * ldlang.h (ldlang_override_segment_assignment): Prototype.
310 * ldmain.c (link_callbacks): Add
311 ldlang_override_segment_assignment.
313 2007-02-20 Alan Modra <amodra@bigpond.net.au>
315 * ldexp.c (fold_name <LOADADDR>): Ensure result is always absolute.
317 2007-02-17 Mark Mitchell <mark@codesourcery.com>
318 Nathan Sidwell <nathan@codesourcery.com>
319 Vladimir Prus <vladimir@codesourcery.com
320 Joseph Myers <joseph@codesourcery.com>
322 * configure.in (--with-bugurl): New option.
323 * configure: Regenerate.
324 * Makefile.am (REPORT_BUGS_TO): Define.
325 (INCLUDES): Define REPORT_BUGS_TO.
326 Regenerate dependencies.
327 * Makefile.in: Regenerate.
328 * ld.h: Remove include of bin-bugs.h.
329 * lexsup.c (help): Don't print empty REPORT_BUGS_TO.
331 2007-02-17 Alan Modra <amodra@bigpond.net.au>
333 * ldcref.c (check_reloc_refs): Compare section for local syms.
335 2007-02-13 Alan Modra <amodra@bigpond.net.au>
337 * emultempl/spu_ovl.S (__ovly_return, __ovly_load): Set sym size.
338 (__ovly_load_event): Define.
339 (size): Rename to osize.
340 * emultempl/spu_ovl.o: Regenerate.
342 2007-02-13 Alan Modra <amodra@bigpond.net.au>
344 * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Add ".branch_lt".
345 * emultempl/ppc64elf.em (ppc_add_stub_section): Create without
348 2007-02-09 H.J. Lu <hongjiu.lu@intel.com>
350 * configure.in (targ_extra_emuls): Add $targ64_extra_emuls if
352 (targ_extra_libpath): Add $targ64_extra_libpath if want64 is
354 * configure: Regenerated.
356 * configure.tgt (targ_extra_libpath): Initialize.
357 (targ64_extra_emuls): New. Document. Initialize.
358 (targ64_extra_libpath): Likewise.
359 (i[3-7]86-*-linux-*): Set targ64_extra_emuls and
360 targ64_extra_libpath.
361 (powerpc*-*-linux*): Likewise.
362 (s390-*-linux*): Likewise.
364 2007-02-07 Paul Brook <paul@codesourcery.com>
366 * configure.tgt: Add arm*-*-uclinux-*eabi.
368 2007-02-06 H.J. Lu <hongjiu.lu@intel.com>
370 * ldlang.c (lang_size_sections_1): Add a missing `)'.
372 2007-02-06 Alan Modra <amodra@bigpond.net.au>
375 * ldlang.c (lang_size_sections_1): Don't warn on backwards dot
376 move unless section size is non-zero.
378 2007-02-05 Dave Brolley <brolley@redhat.com>
380 * Makefile.am (ALL_EMULATIONS): Add support for Toshiba MeP.
381 * configure.tgt: Likewise.
382 * scripttempl/mep.sc: New file.
383 * emulparams/elf32mep.sh: New file.
384 * Makefile.in: Regenerate.
386 2006-01-29 Julian Brown <julian@codesourcery.com>
388 * NEWS: Mention --vfp11-denorm-fix option.
389 * ld.texinfo: Document above.
390 * emulparams/armelf_linux.sh (OTHER_TEXT_SECTIONS): Add
391 .vfp11_veneer section.
392 * emulparams/armelf.sh (OTHER_TEXT_SECTIONS): Likewise.
393 * emultempl/armelf.em (vfp11_denorm_fix): New static variable.
394 (arm_elf_before_allocation): Call bfd_elf32_arm_set_vfp11_fix,
395 bfd_elf32_arm_init_maps and bfd_elf32_arm_vfp11_erratum_scan.
396 (arm_elf_after_allocation): New function. Call
397 bfd_elf32_arm_vfp11_fix_veneer_locations for all input statements.
398 (arm_elf_create_output_section_statements): Pass vfp11 fix command
400 (OPTION_VFP11_DENORM_FIX): New option.
401 (PARSE_AND_LIST_LONGOPTS): Handle new option.
402 (PARSE_AND_LIST_OPTIONS): Likewise.
403 (PARSE_AND_LIST_ARGS_CASES): Likewise.
404 (LDEMUL_AFTER_ALLOCATION): Define.
406 2007-01-24 H.J. Lu <hongjiu.lu@intel.com>
408 * ldgram.y (SIZEOF_HEADERS): Remove duplicated one.
409 (DEFSYMEND): Likewise.
413 2007-01-19 Murali Vemulapati <murali.vemulapati@gmail.com>
415 * pe-dll.c: (make_one) Conditionally include jump stubs.
416 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Identify
417 redundant jump stubs from import libraries and exclude them from
420 2007-01-19 H.J. Lu <hongjiu.lu@intel.com>
422 * ld.h (args_type): Add new symbolic and dynamic_list fields.
424 * ld.texinfo: Update -Bsymbolic-functions.
426 * ldmain.c (main): Initialize command_line.symbolic to
427 symbolic_unset and command_line.dynamic_list to
428 dynamic_list_unset. Check -Bsymbolic, -Bsymbolic-functions and
429 --dynamic-list* before setting link_info.symbolic,
430 link_info.dynamic and link_info.dynamic_data.
432 * lexsup.c (option_values): Add OPTION_SYMBOLIC_FUNCTIONS.
433 (ld_options): Use OPTION_SYMBOLIC_FUNCTIONS with
434 -Bsymbolic-functions.
435 (parse_args): Handle -Bsymbolic-functions. Don't set
436 link_info.dynamic, link_info.dynamic_data and link_info.symbolic
437 here. Set command_line.symbolic for -Bsymbolic. Set
438 command_line.dynamic_list and command_line.symbolic for
439 --dynamic-list-data, --dynamic-list-cpp-new,
440 --dynamic-list-cpp-typeinfo and --dynamic-list.
442 2007-01-19 Jakub Jelinek <jakub@redhat.com>
443 H.J. Lu <hongjiu.lu@intel.com>
445 * emultempl/elf32.em (handle_option): Make sure -z max-page-size
446 or -z common-page-size argument is a power of 2. Call
447 bfd_emul_set_maxpagesize and bfd_emul_set_commonpagesize.
449 2007-01-19 H.J. Lu <hongjiu.lu@intel.com>
451 * ldmain.c (main): Don't call bfd_emul_set_maxpagesize nor
452 bfd_emul_set_commonpagesize.
454 2007-01-19 H.J. Lu <hongjiu.lu@intel.com>
456 * NEWS: Mention --default-script/-dT.
458 * ld.h (args_type): Add a default_script field.
460 * ld.texinfo: Document --default-script/-dT.
462 * ldmain.c (main): Handle command_line.default_script.
464 * lexsup.c (option_values): Add OPTION_DEFAULT_SCRIPT.
465 (ld_options): Add entries for --default-script and -dT.
466 (parse_args): Handle --default-script/-dT.
468 2007-01-16 H.J. Lu <hongjiu.lu@intel.com>
471 * NEWS: Mention -Bsymbolic-functions, --dynamic-list-data and
472 --dynamic-list-cpp-new.
474 * ld.texinfo: Document -Bsymbolic-functions, --dynamic-list-data
475 and --dynamic-list-cpp-new.
477 * ldlang.c (lang_append_dynamic_list_cpp_new): New.
478 (lang_process): Change link_info.dynamic to
479 link_info.dynamic_list.
480 (lang_append_dynamic_list): Likewise.
481 * ldmain.c (main): Likewise. Initialize link_info.dynamic and
482 link_info.dynamic_data to FALSE.
484 * ldlang.h (lang_append_dynamic_list_cpp_new): New.
486 * lexsup.c (option_values): Add OPTION_DYNAMIC_LIST_DATA and
487 OPTION_DYNAMIC_LIST_CPP_NEW.
488 (ld_options): Add entries for -Bsymbolic-functions,
489 --dynamic-list-data and --dynamic-list-cpp-new. Make
490 -Bsymbolic-functions an alias of --dynamic-list-data.
491 (parse_args): Change link_info.dynamic to link_info.dynamic_list.
492 Set link_info.dynamic to TRUE for --dynamic-list and
493 --dynamic-list-cpp-typeinfo. Handle --dynamic-list-data and
494 --dynamic-list-cpp-new.
496 2007-01-11 Nathan Sidwell <nathan@codesourcery.com>
498 * emultempl/elf-generic.em (gdl_map_segments): Only allow header
499 shrinkage for the first few iterations.
501 2007-01-08 Kai Tietz <kai.tietz@onevision.com>
503 * configure.tgt: Renamed target x86_64-*-mingw64 to
506 2007-01-08 Pedro Alves <pedro_alves@portugalmail.pt>
508 * configure.host: Add i[3-7]86-*-mingw* case.
510 2007-01-08 Nick Clifton <nickc@redhat.com>
512 * pep-dll.h (pep_bfd_is_dll): Add prototype.
514 2007-01-08 Aurelien Jarno <aurelien@aurel32.net>
517 * configure.tgt (x86_64_[k]freebsd*): Add targ_extra_libpath and
520 2007-01-06 Nathan Sidwell <nathan@codesourcery.com>
522 * ldexp.c (fold_name): Issue error on undefined sections.
524 2007-01-02 Alan Modra <amodra@bigpond.net.au>
526 * pe-dll.c: Include pe-dll.h.
527 * pep-dll.c (pe_bfd_is_dll): Define.
529 For older changes see ChangeLog-2006
535 version-control: never