3 * configure.in: Move AM_PROG_LIBTOOL after AC_GNU_SOURCE.
4 * configure: Regenerated.
8 * Makefile.am (INCLUDES): Remove -D_GNU_SOURCE.
9 * configure.in: Invoke AC_GNU_SOURCE.
10 * Makefile.in: Regenerate.
11 * config.in: Regenerate.
12 * configure: Regenerate.
13 * po/POTFILES.in: Regenerate.
17 * configure.tgt: Add support for am34-linux-gnu target.
21 * ldlang.c (lang_check_section_addresses): Also report size of
22 overflow for any overflowed memory regions.
23 (os_region_check): Diagnose an overflowed region only once per
24 region. Do not reset region->current on overflow.
29 * emultempl/pep.em (pep_find_data_imports): Issue a warning
30 message if auto importing is triggered without
31 --enable-auto-import having been specified on the command line.
32 * emultempl/pe.em (pe_find_data_imports): Likewise.
35 * emultempl/armelf.em (arm_elf_finish): Fix spelling typo.
40 * genscript.sh: Add support for generating a .xa script for use
41 with the --auto-import option.
42 * ld.texinfo: Document the new behaviour of the --auto-import
44 * ldint.texinfo: Document new script generation.
45 * emulparams/i386pe.sh (GENERATE_AUTO_IMPORT): Define.
46 * emulparams/i386pe_posix.sh (GENERATE_AUTO_IMPORT): Define.
47 * emulparams/i386pep.sh (GENERATE_AUTO_IMPORT): Define.
48 * emultemp/pe.em (..._get_script): Support the use of the auto
50 * scripttempl/pe.sc: Put the .rdata input sections into the .data
51 output section when creating an auto import script.
52 * scripttempl/pep.sc: Likewise.
56 * emultempl/spu_ovl.S: Add debug printf code.
62 * ldexp.h (ldexp_control): Add relro, relro_start_stat and
65 * ldexp.c (fold_binary): Set expld.dataseg.relro to
66 exp_dataseg_relro_start or exp_dataseg_relro_end when
67 seeing DATA_SEGMENT_ALIGN or DATA_SEGMENT_RELRO_END,
70 * ldlang.c (lang_size_sections_1): Properly set
71 expld.dataseg.relro_start_stat and
72 expld.dataseg.relro_end_stat.
73 (find_relro_section_callback): New function.
74 (lang_find_relro_sections_1): Likewise.
75 (lang_find_relro_sections): Likewise.
76 (lang_process): Call lang_find_relro_sections for
81 * po/es.po: Updated Spanish translation.
85 * emultempl/elf32.em: Check DF_BIND_NOW instead of DT_BIND_NOW.
90 * emultempl/elf32.em (write_build_id_section): Correct test for
91 "missing" .note.gnu.build-id. Downgrade error to a warning if
92 it has been discarded.
96 * ldwrite.c (build_link_order <lang_padding_statement_enum>): Correct
97 condition under which we build a bfd_data_link_order.
101 * ldlang.c (lang_map): Increment lang_statement_iteration so that
102 DEFINED() expressions are correctly computed.
106 * ldlang.c (lang_record_phdrs): Give a fatal error if no sections
107 assigned to phdrs. Avoid multiple forward scans for a section
108 with phdr assignment.
113 * ldlang.c (sort_sections_by_lma): Sort by internal id after lma
118 * configure.host: Add support for i[3-7]86-*-dragonfly*.
119 * configure.tgt: Likewise.
123 * ld.texinfo (Input Section Basics): Correct EXCLUDE_FILE example.
127 * configure.host: Handle sparcv*-*-linux-* the same as
128 sparc-*-linux-*. Change sparc64-*-linux-* to sparc64*-*-linux-*.
132 * emultempl/alphaelf.em: Format option help.
133 * emultempl/armcoff.em: Likewise.
134 * emultempl/armelf.em: Likewise.
135 * emultempl/avrelf.em: Likewise.
136 * emultempl/elf32.em: Likewise.
137 * emultempl/hppaelf.em: Likewise.
138 * emultempl/ia64elf.em: Likewise.
139 * emultempl/m68hc1xelf.em: Likewise.
140 * emultempl/ppc32elf.em: Likewise.
141 * emultempl/ppc64elf.em: Likewise.
142 * emultempl/scoreelf.em: Likewise.
143 * emultempl/spuelf.em: Likewise.
144 * emultempl/ticoff.em: Likewise.
145 * emultempl/vxworks.em: Likewise.
146 * emultempl/xtensaelf.em: Likewise.
150 * ldexp.c (exp_get_vma, exp_get_fill): Canonicalise error messages.
151 * lexsup.c (ld_options): Don't use tabs in help text.
152 * emultempl/armcoff.em (gld${EMULATION_NAME}_finish): Fix typo.
153 * emultempl/pe.em (gld${EMULATION_NAME}_finish): Fix typo.
157 * po/Make-in: Add --msgid-bugs-address to xgettext invocation.
162 * emultempl/elf32.em (after_open): Return immediately when
167 * configure.in (ALL_LINGUAS): Add fi.
168 * po/fi.po: New file.
169 * configure: Regenerated.
173 * NEWS: Add a marker for the 2.18 features.
177 * po/ga.po: Updated Irish translation.
178 * po/vi.po: Updated Vietnamese translation.
182 * Makefile.am: Run "make dep-am".
183 * Makefile.in: Regenerate.
188 * elf-hints-local.h: Include bfd_stdint.h. Use uint32_t
189 instead of u_int32_t.
191 * sha1.h: Include bfd_stdint.h instead of <stdint.h>.
196 * genscripts.sh: Delete all references to NONPAGED_TEXT_START_ADDR.
197 * ldint.texinfo: Likewise.
198 * emulparams/armaoutb.sh (NONPAGED_TEXT_START_ADDRESS): Delete.
199 * emulparams/armaoutl.sh: Likewise.
200 * emulparams/arcelf.sh (NONPAGED_TEXT_START_ADDR): Delete.
201 * emulparams/bfin.sh: Likewise
202 * emulparams/crisaout.sh: Likewise
203 * emulparams/elf32_sparc.sh: Likewise
204 * emulparams/elf32am33lin.sh: Likewise
205 * emulparams/elf32b4300.sh: Likewise
206 * emulparams/elf32bmip.sh: Likewise
207 * emulparams/elf32mcore.sh: Likewise
208 * emulparams/elf32xtensa.sh: Likewise
209 * emulparams/elf64_s390.sh: Likewise
210 * emulparams/elf64_sparc.sh: Likewise
211 * emulparams/elf64alpha.sh: Likewise
212 * emulparams/elf_i386.sh: Likewise
213 * emulparams/elf_i386_be.sh: Likewise
214 * emulparams/elf_i386_chaos.sh: Likewise
215 * emulparams/elf_i386_ldso.sh: Likewise
216 * emulparams/elf_i386_vxworks.sh: Likewise
217 * emulparams/elf_s390.sh: Likewise
218 * emulparams/elf_x86_64.sh: Likewise
219 * emulparams/i386aout.sh: Likewise
220 * emulparams/i386moss.sh: Likewise
221 * emulparams/i386msdos.sh: Likewise
222 * emulparams/i386nto.sh: Likewise
223 * emulparams/i386nw.sh: Likewise
224 * emulparams/m68kaout.sh: Likewise
225 * emulparams/m68kelf.sh: Likewise
226 * emulparams/ppcnw.sh: Likewise
227 * emulparams/sun4.sh: Likewise
228 * emulparams/tic80coff.sh: Likewise
229 * emulparams/vaxnbsd.sh: Likewise
230 * emulparams/armnbsd.sh (NONPAGED_TEXT_START_ADDR): Delete.
231 (TEXT_START_ADDR): Set for -n, -N.
232 * emulparams/coff_sparc.sh: Likewise
233 * emulparams/elf32vax.sh: Likewise
234 * emulparams/i386bsd.sh: Likewise
235 * emulparams/i386go32.sh: Likewise
236 * emulparams/i386linux.sh: Likewise
237 * emulparams/i386lynx.sh: Likewise
238 * emulparams/i386mach.sh: Likewise
239 * emulparams/m68k4knbsd.sh: Likewise
240 * emulparams/m68klinux.sh: Likewise
241 * emulparams/m68knbsd.sh: Likewise
242 * emulparams/ns32knbsd.sh: Likewise
243 * emulparams/pc532macha.sh: Likewise
244 * emulparams/ppclynx.sh: Likewise
245 * emulparams/scoreelf.sh: Likewise
246 * emulparams/sparcaout.sh: Likewise
247 * emulparams/sparclinux.sh: Likewise
248 * emulparams/sun3.sh: Likewise
249 * emulparams/vsta.sh: Likewise
253 * configure.tgt: Add bfin-*rtems*.
257 * emultempl/pep.em: (pep_enable_stdcall_fixup): Set to value 1.
258 (gld_xxx_recognized_file): Use pep_bfd_is_dll for detection of
260 * pe-dll.c: (autofilter_symbollist_i386): Define set for amd64
265 * po/ga.po: Updated Irish translation.
269 * ldlang.c (lang_insert_orphan): When searching through linker
270 script to place an orphan, don't stop on statements that appear
272 * emultempl/elf32.em (output_rel_find): Prefer read-only alloc
273 sections over read/write alloc sections.
277 * scripttempl/elf.sc: Add .note.gnu.build-id.
282 * ld.texinfo (Options): Extend the description of the -O command
287 * pep.sc: Correct ctor/dtor sentinels for 64-bit targets.
291 * sha1.h: Change to use version 3 of the GNU General Public
292 License and tidy up formatting.
297 * genscripts.sh (source_em, fragment): New sh functions.
298 Truncate e${EMULATION_NAME}.c file before .em script fills it.
299 Use source_em in place of . for the .em script.
300 * emultempl/generic.em: Use fragment and source_em functions.
301 * emultempl/aix.em: Likewise.
302 * emultempl/alphaelf.em: Likewise.
303 * emultempl/armcoff.em: Likewise.
304 * emultempl/armelf.em: Likewise.
305 * emultempl/avrelf.em: Likewise.
306 * emultempl/beos.em: Likewise.
307 * emultempl/cr16elf.em: Likewise.
308 * emultempl/crxelf.em: Likewise.
309 * emultempl/elf-generic.em: Likewise.
310 * emultempl/elf32.em: Likewise.
311 * emultempl/genelf.em: Likewise.
312 * emultempl/gld960.em: Likewise.
313 * emultempl/gld960c.em: Likewise.
314 * emultempl/hppaelf.em: Likewise.
315 * emultempl/ia64elf.em: Likewise.
316 * emultempl/irix.em: Likewise.
317 * emultempl/linux.em: Likewise.
318 * emultempl/lnk960.em: Likewise.
319 * emultempl/m68hc1xelf.em: Likewise.
320 * emultempl/m68kcoff.em: Likewise.
321 * emultempl/m68kelf.em: Likewise.
322 * emultempl/mipsecoff.em: Likewise.
323 * emultempl/mipself.em: Likewise.
324 * emultempl/mmix-elfnmmo.em: Likewise.
325 * emultempl/mmixelf.em: Likewise.
326 * emultempl/mmo.em: Likewise.
327 * emultempl/needrelax.em: Likewise.
328 * emultempl/netbsd.em: Likewise.
329 * emultempl/pe.em: Likewise.
330 * emultempl/pep.em: Likewise.
331 * emultempl/ppc32elf.em: Likewise.
332 * emultempl/ppc64elf.em: Likewise.
333 * emultempl/scoreelf.em: Likewise.
334 * emultempl/sh64elf.em: Likewise.
335 * emultempl/spuelf.em: Likewise.
336 * emultempl/sunos.em: Likewise.
337 * emultempl/ticoff.em: Likewise.
338 * emultempl/vanilla.em: Likewise.
339 * emultempl/vxworks.em: Likewise.
340 * emultempl/xtensaelf.em: Likewise.
341 * emultempl/z80.em: Likewise.
345 * emultempl/elf32.em (gld${EMULATION_NAME}_write_build_id_section):
346 Use ASEC->contents for CONTENTS when missing, and allocate
347 ASEC->size if needed.
351 * emultempl/elf32.em (struct build_id_info): New type.
352 (gld${EMULATION_NAME}_id_note_section_size): New function.
353 (gld${EMULATION_NAME}_write_build_id_section): New function.
354 (gld${EMULATION_NAME}_after_open): Use them.
355 (DEFAULT_BUILD_ID_STYLE): Change to "sha1".
356 * ld.texinfo (Options): Mention --build-id=sha1.
358 * sha1.h: New file (from gnulib).
359 * sha1.c: New file (from gnulib).
360 * Makefile.am (CFILES, HFILES, OFILES, ld_new_SOURCES): Add them.
361 (sha1.o): New target.
362 * Makefile.in: Regenerated.
366 * ldlang.c (strip_excluded_output_sections): Don't ignore sections
367 with update_dot_tree.
371 * scripttempl/pe.sc: Don't include .gcc_except_table and
372 .eh_frame on partial links.
373 * scripttempl/pep.sc: Likewise.
378 * ldlang.c (lang_size_sections_1 <output_section_statement>): Only
379 use expld.result when valid.
383 * emultempl/spuelf.em (embedded_spu_file): Test for NULL path
384 before calling base_name, not after.
388 * scripttempl/elf.sc (DISCARDED): Renamed from STACKNOTE. Add
390 * scripttempl/armbpabi.sc: Likewise.
391 * scripttempl/elf32sh-symbian.sc: Likewise.
392 * scripttempl/elfxtensa.sc: Likewise.
393 * scripttempl/mep.sc: Likewise.
397 * emultempl/elf32.em (gld${EMULATION_NAME}_add_option): Add --build-id.
398 (gld${EMULATION_NAME}_handle_option): Handle --build-id.
399 (gld${EMULATION_NAME}_list_options): List --build-id.
400 (gld${EMULATION_NAME}_after_open): If --build-id was given,
401 synthesize a ".note.gnu.build-id" section and cache it in elf_tdata.
402 * ld.texinfo (Options): Describe --build-id.
403 * NEWS: Mention --build-id.
407 * deffile.h: Update copyright notice to refer to GPLv3.
408 * deffilep.y, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h,
409 ldexp.c, ldexp.h, ldfile.c, ldfile.h, ldgram.y, ld.h, ldlang.c,
410 ldlang.h, ldlex.h, ldlex.l, ldmain.c, ldmain.h, ldmisc.c,
411 ldmisc.h, ldver.c, ldver.h, ldwrite.c, ldwrite.h, lexsup.c, mri.c,
412 mri.h, pe-dll.c, pe-dll.h, pep-dll.c, pep-dll.h, stamp-h.in,
413 sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
414 emultempl/armcoff.em, emultempl/armelf.em, emultempl/avrelf.em,
415 emultempl/beos.em, emultempl/cr16elf.em, emultempl/crxelf.em,
416 emultempl/elf32.em, emultempl/elf-generic.em, emultempl/genelf.em,
417 emultempl/generic.em, emultempl/gld960c.em, emultempl/gld960.em,
418 emultempl/hppaelf.em, emultempl/ia64elf.em, emultempl/irix.em,
419 emultempl/linux.em, emultempl/lnk960.em, emultempl/m68hc1xelf.em,
420 emultempl/m68kcoff.em, emultempl/m68kelf.em,
421 emultempl/mipsecoff.em, emultempl/mipself.em,
422 emultempl/mmixelf.em, emultempl/mmix-elfnmmo.em, emultempl/mmo.em,
423 emultempl/needrelax.em, emultempl/pe.em, emultempl/pep.em,
424 emultempl/ppc32elf.em, emultempl/ppc64elf.em,
425 emultempl/scoreelf.em, emultempl/sh64elf.em, emultempl/spuelf.em,
426 emultempl/spu_ovl.S, emultempl/sunos.em, emultempl/ticoff.em,
427 emultempl/vanilla.em, emultempl/xtensaelf.em: Likewise.
428 * genscripts.sh: Add copyright notice.
429 * emultempl/netbsd.em, emultempl/vxworks.em, emultempl/z80.em:
431 * NEWS: Mention that the sources are now under GPLv3.
432 * configure: Regenerate.
436 * ld.texinfo (--heap): Replace 'amount' with 'number of bytes'.
441 * emultempl/spuelf.em (base_name): Correct backslash quoting.
445 * Makefile.in: Regenerate.
446 * aclocal.m4: Regenerate.
447 * config.in: Regenerate.
448 * po/ld.pot: Regenerate.
452 * aclocal.m4: Regenerated.
453 * Makefile.in: Likewise.
457 * NEWS: Remove a line with '*' only.
461 * emulparams/armelf.sh (OTHER_SECTIONS): Remove .ARM.attributes.
462 (ATTRS_SECTIONS): Define.
463 * scripttempl/elf.sc, scripttempl/elf32sh-symbian.sc,
464 scripttempl/elf_chaos.sc, scripttempl/elfi370.sc,
465 scripttempl/elfxtensa.sc: Handle ATTRS_SECTIONS.
469 * scripttemp/elf32cr16.sc: Default linker script.
470 * emulparams/elf32cr16.sh: Emulation script.
471 * emultempl/cr16elf.em: Emulation script.
472 * Makefile.am: Add entry to make cr16 target.
473 * Makefile.in: Regenerate.
474 * configure.tgt: Specify default and other emulation parameters
476 * ChangeLog: Added CR16 target entry.
477 * NEWS: Announce the support for the CR16 new target.
481 * pe-dll.c: Rename uses of bfd.next to bfd.archive_next throughout.
485 * emulparams/elf32_spu.sh (OTHER_SECTIONS): KEEP .note.spu_name.
489 * ldlex.l, ldgram.y: Add ALIGNOF.
490 * ldexp.c (exp_print_token, foldname): Likewise.
491 * ld.texinfo: Likewise.
495 * Makefile.am: Add eelf32_spu.o rule.
496 * Makefile.in: Regenerate.
497 * emultempl/spuelf.em: Revert last change. Instead use EMBEDSPU
498 defined in Makefile for embedspu name.
502 * emultempl/spuelf.em (embedded_spu_file): Deduce embedspu program
503 name prefix from that of ld.
507 * Makefile.am (ACLOCAL_AMFLAGS): Add -I ../config -I ../bfd.
509 * acinclude.m4: Removed.
511 * Makefile.in: Regenerated.
512 * aclocal.m4: Likewise.
513 * configure: Likewise.
517 * emultempl/spu_ovl.S: Don't trash lr on tail call from one
519 * emultempl/spu_ovl.o: Regenerate.
523 * emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS): Add ONLY_IF_RO
524 for .xt_except_table.
525 (OTHER_RELRO_SECTIONS): New.
530 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Use renamed
531 XTENSA_PROP_NO_TRANSFORM flag instead of XTENSA_PROP_INSN_NO_TRANSFORM.
536 * ldlang.c (ldlang_add_file): Use input_bfds_tail.
537 * ldmain.c (main): Init input_bfds_tail. Sort link_info
542 * emultempl/spuelf.em (base_name): New function, split out from..
543 (embedded_spu_file) ..here. Pass -fPIC or -fpie to embedspu
544 invocation if we deduce a shared lib or position independent
545 executable build by looking at ctrbegin* linker input files.
549 * emultempl/spu_ovl.S (__rv_pattern, __cg_pattern): Set symbol
551 * emultempl/spu_ovl.o: Regenerate.
555 * Makefile.in: Regnerate.
556 * configure: Regenerate.
557 * aclocal.m4: Regenerate.
561 * ldlex.l: ASSERT is recognized in SCRIPT env. NAMES cannot
562 contain commas in EXP env.
563 * ldgram.y (extern_name_list): Push to EXP env, move body to ...
564 (extern_name_list_body): ... here.
565 (script_file, ifile_list): Reformat.
566 (statement): Add ASSERT.
570 * ld.texinfo: Use @copying around the copyright notice.
571 * ldint.texinfo: Likewise.
575 * emulparams/elf32ebmipvxworks.sh (OTHER_READONLY_SECTIONS)
576 (OTHER_READWRITE_SECTIONS): Define. Add .rdata sections.
580 * configure.in: Allow sysroots to be relocated under $prefix as
581 well as $exec_prefix.
582 * configure: Regenerate.
586 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern):
591 * emultempl/ppc32elf.em (plt_style): New variable.
593 (ppc_after_open): Adjust ppc_elf_select_plt_layout call.
594 (PARSE_AND_LIST_PROLOGUE): Define OPTION_NEW_PLT, renumber
595 OPTION_OLD_PLT, OPTION_OLD_GOT and OPTION_STUBSYMS.
596 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add secure-plt.
597 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NEW_PLT.
598 * ld.texinfo (--secure-plt): Document.
602 * ld.h (args_type, ld_config_type): Reorder fields.
603 * ldmain.c (main): Don't initialise a bunch of vars we know are
608 * multempl/avrelf.em (PARSE_AND_LIST_ARGS_CASES): Add new value for
609 "--pmem-wrap-around".
610 (PARSE_AND_LIST_OPTIONS): Describe new value for "--pmem-wrap-around".
614 * scripttempl/elfxtensa.sc: Merge changes from elf.sc.
618 * ld.texinfo (--no-warn-search-mismatch): Document.
619 * ldfile.c (ldfile_try_open_bfd): Don't warn about skipping
620 incompatible libraries if --no-warn-search-mismatch.
621 * ld.h (args_type): Add warn_search_mismatch.
622 * ldmain.c (main): Init it.
623 * lexsup.c (enum option_values): Add OPTION_NO_WARN_SEARCH_MISMATCH.
624 (ld_options): Add entry for --no-warn-search-mismatch.
625 (parse_args): Handle OPTION_NO_WARN_SEARCH_MISMATCH.
629 * scripttempl/elf.sc: Add .debug_pubtypes and .debug_ranges.
633 * ldlang.c (lang_check): Error on architecture mismatch.
637 * ldmain.c (link_callbacks): Init info and minfo fields.
638 * ldmisc.c (minfo): Do nothing if no map file.
639 * emultempl/spuelf.em (stack_analysis, emit_stack_syms): New vars.
640 (spu_after_open): Adjust spu_elf_create_sections call.
641 (spu_before_allocation): Likewise for spu_elf_size_stubs.
642 (OPTION_SPU_STACK_ANALYSIS, OPTION_SPU_STACK_SYMS): Define.
643 (PARSE_AND_LIST_LONGOPTS): Add new entries.
644 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
645 * gen-doc.texi: Add @set for SPU and other missing targets.
646 * ld.texinfo: Update man page selection to match gen-doc.texi.
647 Document SPU features.
651 * ldcref.c (struct cref_hash_entry): Make "demangled" const.
652 (cref_fill_array): Adjust for changed demangler.
653 * ldlang.c (lang_one_common): Likewise.
657 * emulparams/elf32_sparc.sh: Update comments.
658 * emulparams/elf32bmip.sh: Likewise.
659 * emulparams/elf32ppc.sh: Likewise.
660 * emulparams/vxworks.sh: Likewise.
664 Many files: Include sysdep.h first. Remove duplicate headers.
665 * Makefile.am: Run "make dep-am".
666 * Makefile.in: Regenerate.
670 * Makefile.in: Regenerate.
674 * ldcref.c (cref_fill_array): Call bfd_demangle rather than demangle.
675 * ldlang.c (lang_one_common): Likewise.
676 * ldmisc.c (vfinfo): Likewise.
678 * ldmisc.h (demangle): Delete.
679 * Makefile.am: Run "make dep-am".
680 * Makefile.in: Regenerate.
684 * ldlang.h (enum section_type): Add overlay_section.
685 * ldlang.c (lang_add_section): Handle flags for overlay_section
686 as per normal_section.
687 (lang_size_sections_1): When setting lma, detect overlays by
688 os->sectype rather than by looking for overlapping vmas.
689 (lang_enter_overlay_section): Use overlay_section type.
690 (lang_leave_overlay): Set first overlay section to normal.
694 * Makefile.am: Add ACLOCAL_AMFLAGS.
695 * Makefile.in: Regenerate.
699 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): KEEP property sections.
703 * ldlang.c (relax_sections): Initialize and increment
704 link_info.relax_trip.
708 * configure.tgt: Loosen checks for arm uclinux eabi targets.
713 * ldexp.h (node_type): Add lineno.
714 * ldexp.c: Include "ldlex.h".
715 (exp_intop): Set the lineno field from lineno.
716 (exp_bigintop): Likewise.
717 (exp_relop): Likewise.
718 (exp_nameop): Likewise.
719 (exp_binop): Set the lineno field from lineno of lhs.
720 (exp_trinop): Likewise.
721 (exp_unop): Set the lineno field from lineno of child.
722 (exp_assop): Set the lineno field from lineno of src.
723 (exp_provide): Likewise.
724 (exp_assert): Set the lineno field from lineno of exp.
725 (exp_get_abs_int): Set lineno from lineno of nonconstant
726 expression when report problem.
731 * NEWS: Mention -l:foo.
732 * ld.texinfo: Document it.
733 * ldlang.c (new_afile): If a lang_input_file_is_l_enum
734 entry as a name beginning with a coloh, convert it to a
735 lang_input_file_is_search_file_enum entry without the colon.
739 * ld.h (ld_config_type): Add rpath_separator.
740 * ldmain.c (main): Initialize it.
741 * lexsup.c (parse_args): Honor config.rpath_separator.
742 * emultempl/elf32.em (gld${EMULATION_NAME}_search_needed): Likewise.
743 (gld${EMULATION_NAME}_add_sysroot): Likewise.
744 (gld${EMULATION_NAME}_parse_ld_so_conf): Use config.rpath_separator
745 rather than ':' when building the path.
746 * emultempl/vxworks.em (vxworks_before_parse): New function.
747 Override config.rpath_separator.
748 (LDEMUL_AFTER_OPEN): Do not change if EXTRA_EM_FILE has been
749 set to gld${EMULATION_NAME}_after_open; #define that identifier
750 to vxworks_foo instead.
751 (LDEMUL_BEFORE_PARSE): Override in the same way as LDEMUL_AFTER_OPEN.
756 * ld.texinfo: Put the contents after the title page rather
757 than at the end of the document.
761 * Makefile.am: Add dependency on ldemul-list.h for powerpc and
762 spu target emul files.
763 * configure.in: Check for mkstemp and waitpid.
764 * Makefile.in: Regenerate.
765 * configure: Regenerate.
766 * config.in: Regenerate.
767 * ldlang.c (input_file_chain): Make global.
768 (lang_add_input_file): Don't set lang_has_input_file here.
769 * ldlang.h (input_file_chain): Declare.
770 * emultempl/ppc32elf.em (ppc_recognized_file): New function.
771 (LDEMUL_RECOGNIZED_FILE): Define.
772 * emultempl/ppc64elf.em (ppc64_recognized_file): New function.
773 (LDEMUL_RECOGNIZED_FILE): Define.
774 * emultempl/spuelf.em (struct tflist): New.
775 (tmp_file_list): New var.
776 (clean_tmp, embedded_spu_file): New functions.
780 * ldlang.c (lang_insert_orphan): Provide start/stop loadaddr syms
781 rather than defining unconditionally.
782 (lang_leave_overlay_section): Likewise.
783 * ld.texinfo (Overlay Description): Update description and examples
788 * ld.texinfo: Include VERSION_PACKAGE when reporting version.
792 * emultempl/armelf.em (pic_veneer): New variable.
793 (PARSE_AND_LIST_PROLOGUE): Add OPTION_PIC_VENEER.
794 (PARSE_AND_LIST_ARGS_CASES): Ditto.
795 (PARSE_AND_LIST_LONGOPTS): Add "pic-veneer".
796 (PARSE_AND_LIST_OPTIONS): Ditto.
797 * ld.texinfo: Document --pic-veneer.
801 * ld.texinfo: Document --no-enum-size-warning.
802 * emultempl/armelf.em (no_enum_size_warning): New.
803 (arm_elf_create_output_section_statements): Correct typo
804 in comment. Pass no_enum_size_warning to
805 bfd_elf32_arm_set_target_relocs.
806 (PARSE_AND_LIST_PROLOGUE): Define OPTION_NO_ENUM_SIZE_WARNING.
807 (PARSE_AND_LIST_OPTIONS): Document --no-enum-size-warning.
808 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_NO_ENUM_SIZE_WARNING
813 * configure.tgt (bfin-*-elf, bfin-*-uclinux*): Add targ_extra_libpath.
814 (bfin-*-linux-uclibc*): New target.
818 * pe-dll.c (make_one): Use pc-relative relocation instead of an
819 absolute relocation for x86_64-pc-mingw32 target.
823 * Makefile.am (ld_TEXINFOS): Remove ldver.texi.
824 (AM_MAKEINFOFLAGS): Add -I ../../bfd/doc.
825 (TEXI2DVI): Likewise.
826 (REPORT_BUGS_TO): Removed.
827 (INCLUDES): Remove -DREPORT_BUGS_TO.
828 (ldver.texi): Likewise.
829 (ld.1): Don't depend on ldver.texi.
830 (MOSTLYCLEANFILES): Remove ldver.texi.
831 * Makefile.in: Regenerated.
833 * configure.in (--with-bugurl): Removed.
834 * configure: Regenerated.
836 * lexsup.c: Include bfdver.h.
838 * ld.texinfo: Include bfdver.texi instead of ldver.texi.
842 * emultempl/mmixelf.em: Remove incorrect '#line' directive.
846 * ldlang.c (lang_size_sections_1): Correct backwards dot move
847 test to not trigger on overlays. Only warn on backwards move
852 * configure.in (REPORT_BUGS_TEXI): Define to Texinfo version of
854 * Makefile.am (ldver.texi): Define BUGURL.
855 * ld.texinfo: Use BUGURL.
856 * Makefile.in, configure: Regenerate.
861 * emultempl/aix.em (..._before_allocation): Strip sysroot prefix
862 from any paths being inserted into the output binary's DT_RPATH.
866 * emulparams/shelf_uclinux.sh: New. Missed in 2007-02-28 commit.
870 * ldver.c (ldversion): Remove word "version" from output. Update
875 * Makefile.am (ALL_EMULATIONS): Add eshelf_uclinux.o
876 (eshelf_uclinux.c): New target.
877 * Makefile.in: Rebuilt.
878 * configure.tgt (sh-*-uclinux* | sh[12]-*-uclinux*): New stanza.
879 * emulparams/shelf_uclinux.sh: New.
883 * configure.tgt: Fix type last change.
884 * configure.tgt (spu-*-elf*): Delete targ_extra_ofiles.
888 * Makefile.am (ALL_EMUL_EXTRA_OFILES): Remove spu_inc.o.
889 (eelf32_spu.c): Adjust dependencies.
890 * Makefile.in: Regenerate.
891 * emultempl/spuelf.em (ovl_mgr): New array. Insert spu_ovl.o
893 (_binary_spu_ovl_o_start, _binary_spu_ovl_o_end): Delete.
894 (ovl_mgr_stream): Update.
895 * emultempl/spu_inc.s: Delete.
896 * emultempl/spu_none.s: Delete.
900 * emultempl/spuelf.em (_binary_builtin_ovl_mgr_start): Rename
901 to _binary_spu_ovl_o_start.
902 (_binary_builtin_ovl_mgr_end): Rename to _binary_spu_ovl_o_end.
903 (spu_elf_load_ovl_mgr): Fatal error on missing overlay manager.
904 * emultempl/spu_inc.s: Rename symbols.
905 * emultempl/spu_none.s: New file.
906 * emultempl/spu_ovl.S: Update copyright.
907 * Makefile.am (spu_inc.o): Try building with ld -r first, then
908 gas incbin, then build without overlay manager.
909 * Makefile.in: Regenerate.
913 * configure.tgt (mips64*el-*-linux-*, mips64*-*-linux-*,
914 mips*el-*-linux-*, mips*-*-linux-*): Set
915 targ_extra_libpath=$targ_extra_emuls.
919 * ldlang.c (ldlang_override_segment_assignment): New function.
920 * ldlang.h (ldlang_override_segment_assignment): Prototype.
921 * ldmain.c (link_callbacks): Add
922 ldlang_override_segment_assignment.
926 * ldexp.c (fold_name <LOADADDR>): Ensure result is always absolute.
933 * configure.in (--with-bugurl): New option.
934 * configure: Regenerate.
935 * Makefile.am (REPORT_BUGS_TO): Define.
936 (INCLUDES): Define REPORT_BUGS_TO.
937 Regenerate dependencies.
938 * Makefile.in: Regenerate.
939 * ld.h: Remove include of bin-bugs.h.
940 * lexsup.c (help): Don't print empty REPORT_BUGS_TO.
944 * ldcref.c (check_reloc_refs): Compare section for local syms.
948 * emultempl/spu_ovl.S (__ovly_return, __ovly_load): Set sym size.
949 (__ovly_load_event): Define.
950 (size): Rename to osize.
951 * emultempl/spu_ovl.o: Regenerate.
955 * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Add ".branch_lt".
956 * emultempl/ppc64elf.em (ppc_add_stub_section): Create without
961 * configure.in (targ_extra_emuls): Add $targ64_extra_emuls if
963 (targ_extra_libpath): Add $targ64_extra_libpath if want64 is
965 * configure: Regenerated.
967 * configure.tgt (targ_extra_libpath): Initialize.
968 (targ64_extra_emuls): New. Document. Initialize.
969 (targ64_extra_libpath): Likewise.
970 (i[3-7]86-*-linux-*): Set targ64_extra_emuls and
971 targ64_extra_libpath.
972 (powerpc*-*-linux*): Likewise.
973 (s390-*-linux*): Likewise.
977 * configure.tgt: Add arm*-*-uclinux-*eabi.
981 * ldlang.c (lang_size_sections_1): Add a missing `)'.
986 * ldlang.c (lang_size_sections_1): Don't warn on backwards dot
987 move unless section size is non-zero.
991 * Makefile.am (ALL_EMULATIONS): Add support for Toshiba MeP.
992 * configure.tgt: Likewise.
993 * scripttempl/mep.sc: New file.
994 * emulparams/elf32mep.sh: New file.
995 * Makefile.in: Regenerate.
999 * NEWS: Mention --vfp11-denorm-fix option.
1000 * ld.texinfo: Document above.
1001 * emulparams/armelf_linux.sh (OTHER_TEXT_SECTIONS): Add
1002 .vfp11_veneer section.
1003 * emulparams/armelf.sh (OTHER_TEXT_SECTIONS): Likewise.
1004 * emultempl/armelf.em (vfp11_denorm_fix): New static variable.
1005 (arm_elf_before_allocation): Call bfd_elf32_arm_set_vfp11_fix,
1006 bfd_elf32_arm_init_maps and bfd_elf32_arm_vfp11_erratum_scan.
1007 (arm_elf_after_allocation): New function. Call
1008 bfd_elf32_arm_vfp11_fix_veneer_locations for all input statements.
1009 (arm_elf_create_output_section_statements): Pass vfp11 fix command
1011 (OPTION_VFP11_DENORM_FIX): New option.
1012 (PARSE_AND_LIST_LONGOPTS): Handle new option.
1013 (PARSE_AND_LIST_OPTIONS): Likewise.
1014 (PARSE_AND_LIST_ARGS_CASES): Likewise.
1015 (LDEMUL_AFTER_ALLOCATION): Define.
1019 * ldgram.y (SIZEOF_HEADERS): Remove duplicated one.
1020 (DEFSYMEND): Likewise.
1026 * pe-dll.c: (make_one) Conditionally include jump stubs.
1027 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Identify
1028 redundant jump stubs from import libraries and exclude them from
1033 * ld.h (args_type): Add new symbolic and dynamic_list fields.
1035 * ld.texinfo: Update -Bsymbolic-functions.
1037 * ldmain.c (main): Initialize command_line.symbolic to
1038 symbolic_unset and command_line.dynamic_list to
1039 dynamic_list_unset. Check -Bsymbolic, -Bsymbolic-functions and
1040 --dynamic-list* before setting link_info.symbolic,
1041 link_info.dynamic and link_info.dynamic_data.
1043 * lexsup.c (option_values): Add OPTION_SYMBOLIC_FUNCTIONS.
1044 (ld_options): Use OPTION_SYMBOLIC_FUNCTIONS with
1045 -Bsymbolic-functions.
1046 (parse_args): Handle -Bsymbolic-functions. Don't set
1047 link_info.dynamic, link_info.dynamic_data and link_info.symbolic
1048 here. Set command_line.symbolic for -Bsymbolic. Set
1049 command_line.dynamic_list and command_line.symbolic for
1050 --dynamic-list-data, --dynamic-list-cpp-new,
1051 --dynamic-list-cpp-typeinfo and --dynamic-list.
1056 * emultempl/elf32.em (handle_option): Make sure -z max-page-size
1057 or -z common-page-size argument is a power of 2. Call
1058 bfd_emul_set_maxpagesize and bfd_emul_set_commonpagesize.
1062 * ldmain.c (main): Don't call bfd_emul_set_maxpagesize nor
1063 bfd_emul_set_commonpagesize.
1067 * NEWS: Mention --default-script/-dT.
1069 * ld.h (args_type): Add a default_script field.
1071 * ld.texinfo: Document --default-script/-dT.
1073 * ldmain.c (main): Handle command_line.default_script.
1075 * lexsup.c (option_values): Add OPTION_DEFAULT_SCRIPT.
1076 (ld_options): Add entries for --default-script and -dT.
1077 (parse_args): Handle --default-script/-dT.
1082 * NEWS: Mention -Bsymbolic-functions, --dynamic-list-data and
1083 --dynamic-list-cpp-new.
1085 * ld.texinfo: Document -Bsymbolic-functions, --dynamic-list-data
1086 and --dynamic-list-cpp-new.
1088 * ldlang.c (lang_append_dynamic_list_cpp_new): New.
1089 (lang_process): Change link_info.dynamic to
1090 link_info.dynamic_list.
1091 (lang_append_dynamic_list): Likewise.
1092 * ldmain.c (main): Likewise. Initialize link_info.dynamic and
1093 link_info.dynamic_data to FALSE.
1095 * ldlang.h (lang_append_dynamic_list_cpp_new): New.
1097 * lexsup.c (option_values): Add OPTION_DYNAMIC_LIST_DATA and
1098 OPTION_DYNAMIC_LIST_CPP_NEW.
1099 (ld_options): Add entries for -Bsymbolic-functions,
1100 --dynamic-list-data and --dynamic-list-cpp-new. Make
1101 -Bsymbolic-functions an alias of --dynamic-list-data.
1102 (parse_args): Change link_info.dynamic to link_info.dynamic_list.
1103 Set link_info.dynamic to TRUE for --dynamic-list and
1104 --dynamic-list-cpp-typeinfo. Handle --dynamic-list-data and
1105 --dynamic-list-cpp-new.
1109 * emultempl/elf-generic.em (gdl_map_segments): Only allow header
1110 shrinkage for the first few iterations.
1114 * configure.tgt: Renamed target x86_64-*-mingw64 to
1119 * configure.host: Add i[3-7]86-*-mingw* case.
1123 * pep-dll.h (pep_bfd_is_dll): Add prototype.
1128 * configure.tgt (x86_64_[k]freebsd*): Add targ_extra_libpath and
1133 * ldexp.c (fold_name): Issue error on undefined sections.
1137 * pe-dll.c: Include pe-dll.h.
1138 * pep-dll.c (pe_bfd_is_dll): Define.
1140 For older changes see ChangeLog-2006
1146 version-control: never