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