3 * genscripts.sh (LIB_PATH): Include both {target_alias} and
4 {TOOL_LIB} in the search paths for multilibbed targets.
8 * scripttempl/armbpabi.sc (.text): Don't KEEP (*(.text.*personality*)).
9 (.data): Don't KEEP (*(.gnu.linkonce.d.*personality*)).
10 * scripttempl/elf.sc: As for armbpabi.sc.
11 * scripttempl/elfxtensa.sc: Likewise.
12 * scripttempl/mep.sc: Likewise.
16 * emulparams/vxworks.sh (OTHER_READONLY_SECTIONS,
17 OTHER_READWRITE_SECTIONS): Add TLS sections.
21 * emultempl/pe.em: (init): Add __ImageBase symbol.
22 (MSIMAGEBASEOFF): New.
23 (set_pe_name): Keep __image_base and __ImageBase value synch.
24 (_set_symbols): Likewise.
25 * emultempl/pep.em: Likewise.
30 * genscripts.sh: Move bash script to..
31 * genscrba.sh: ..here.
35 * pe-dll.c (autofilter_symbollist_generic)
36 (autofilter_symbollist_i386, autofilter_liblist)
37 (autofilter_objlist, autofilter_symbolprefixlist)
38 (autofilter_symbolsuffixlist): Don't use STRING_COMMA_LEN with
43 * configure.in: Move AM_PROG_LIBTOOL after AC_GNU_SOURCE.
44 * configure: Regenerated.
48 * Makefile.am (INCLUDES): Remove -D_GNU_SOURCE.
49 * configure.in: Invoke AC_GNU_SOURCE.
50 * Makefile.in: Regenerate.
51 * config.in: Regenerate.
52 * configure: Regenerate.
53 * po/POTFILES.in: Regenerate.
57 * configure.tgt: Add support for am34-linux-gnu target.
61 * ldlang.c (lang_check_section_addresses): Also report size of
62 overflow for any overflowed memory regions.
63 (os_region_check): Diagnose an overflowed region only once per
64 region. Do not reset region->current on overflow.
69 * emultempl/pep.em (pep_find_data_imports): Issue a warning
70 message if auto importing is triggered without
71 --enable-auto-import having been specified on the command line.
72 * emultempl/pe.em (pe_find_data_imports): Likewise.
75 * emultempl/armelf.em (arm_elf_finish): Fix spelling typo.
80 * genscripts.sh: Add support for generating a .xa script for use
81 with the --auto-import option.
82 * ld.texinfo: Document the new behaviour of the --auto-import
84 * ldint.texinfo: Document new script generation.
85 * emulparams/i386pe.sh (GENERATE_AUTO_IMPORT): Define.
86 * emulparams/i386pe_posix.sh (GENERATE_AUTO_IMPORT): Define.
87 * emulparams/i386pep.sh (GENERATE_AUTO_IMPORT): Define.
88 * emultemp/pe.em (..._get_script): Support the use of the auto
90 * scripttempl/pe.sc: Put the .rdata input sections into the .data
91 output section when creating an auto import script.
92 * scripttempl/pep.sc: Likewise.
96 * emultempl/spu_ovl.S: Add debug printf code.
102 * ldexp.h (ldexp_control): Add relro, relro_start_stat and
105 * ldexp.c (fold_binary): Set expld.dataseg.relro to
106 exp_dataseg_relro_start or exp_dataseg_relro_end when
107 seeing DATA_SEGMENT_ALIGN or DATA_SEGMENT_RELRO_END,
110 * ldlang.c (lang_size_sections_1): Properly set
111 expld.dataseg.relro_start_stat and
112 expld.dataseg.relro_end_stat.
113 (find_relro_section_callback): New function.
114 (lang_find_relro_sections_1): Likewise.
115 (lang_find_relro_sections): Likewise.
116 (lang_process): Call lang_find_relro_sections for
117 non-relocatable link.
121 * po/es.po: Updated Spanish translation.
125 * emultempl/elf32.em: Check DF_BIND_NOW instead of DT_BIND_NOW.
130 * emultempl/elf32.em (write_build_id_section): Correct test for
131 "missing" .note.gnu.build-id. Downgrade error to a warning if
132 it has been discarded.
136 * ldwrite.c (build_link_order <lang_padding_statement_enum>): Correct
137 condition under which we build a bfd_data_link_order.
141 * ldlang.c (lang_map): Increment lang_statement_iteration so that
142 DEFINED() expressions are correctly computed.
146 * ldlang.c (lang_record_phdrs): Give a fatal error if no sections
147 assigned to phdrs. Avoid multiple forward scans for a section
148 with phdr assignment.
153 * ldlang.c (sort_sections_by_lma): Sort by internal id after lma
158 * configure.host: Add support for i[3-7]86-*-dragonfly*.
159 * configure.tgt: Likewise.
163 * ld.texinfo (Input Section Basics): Correct EXCLUDE_FILE example.
167 * configure.host: Handle sparcv*-*-linux-* the same as
168 sparc-*-linux-*. Change sparc64-*-linux-* to sparc64*-*-linux-*.
172 * emultempl/alphaelf.em: Format option help.
173 * emultempl/armcoff.em: Likewise.
174 * emultempl/armelf.em: Likewise.
175 * emultempl/avrelf.em: Likewise.
176 * emultempl/elf32.em: Likewise.
177 * emultempl/hppaelf.em: Likewise.
178 * emultempl/ia64elf.em: Likewise.
179 * emultempl/m68hc1xelf.em: Likewise.
180 * emultempl/ppc32elf.em: Likewise.
181 * emultempl/ppc64elf.em: Likewise.
182 * emultempl/scoreelf.em: Likewise.
183 * emultempl/spuelf.em: Likewise.
184 * emultempl/ticoff.em: Likewise.
185 * emultempl/vxworks.em: Likewise.
186 * emultempl/xtensaelf.em: Likewise.
190 * ldexp.c (exp_get_vma, exp_get_fill): Canonicalise error messages.
191 * lexsup.c (ld_options): Don't use tabs in help text.
192 * emultempl/armcoff.em (gld${EMULATION_NAME}_finish): Fix typo.
193 * emultempl/pe.em (gld${EMULATION_NAME}_finish): Fix typo.
197 * po/Make-in: Add --msgid-bugs-address to xgettext invocation.
202 * emultempl/elf32.em (after_open): Return immediately when
207 * configure.in (ALL_LINGUAS): Add fi.
208 * po/fi.po: New file.
209 * configure: Regenerated.
213 * NEWS: Add a marker for the 2.18 features.
217 * po/ga.po: Updated Irish translation.
218 * po/vi.po: Updated Vietnamese translation.
222 * Makefile.am: Run "make dep-am".
223 * Makefile.in: Regenerate.
228 * elf-hints-local.h: Include bfd_stdint.h. Use uint32_t
229 instead of u_int32_t.
231 * sha1.h: Include bfd_stdint.h instead of <stdint.h>.
236 * genscripts.sh: Delete all references to NONPAGED_TEXT_START_ADDR.
237 * ldint.texinfo: Likewise.
238 * emulparams/armaoutb.sh (NONPAGED_TEXT_START_ADDRESS): Delete.
239 * emulparams/armaoutl.sh: Likewise.
240 * emulparams/arcelf.sh (NONPAGED_TEXT_START_ADDR): Delete.
241 * emulparams/bfin.sh: Likewise
242 * emulparams/crisaout.sh: Likewise
243 * emulparams/elf32_sparc.sh: Likewise
244 * emulparams/elf32am33lin.sh: Likewise
245 * emulparams/elf32b4300.sh: Likewise
246 * emulparams/elf32bmip.sh: Likewise
247 * emulparams/elf32mcore.sh: Likewise
248 * emulparams/elf32xtensa.sh: Likewise
249 * emulparams/elf64_s390.sh: Likewise
250 * emulparams/elf64_sparc.sh: Likewise
251 * emulparams/elf64alpha.sh: Likewise
252 * emulparams/elf_i386.sh: Likewise
253 * emulparams/elf_i386_be.sh: Likewise
254 * emulparams/elf_i386_chaos.sh: Likewise
255 * emulparams/elf_i386_ldso.sh: Likewise
256 * emulparams/elf_i386_vxworks.sh: Likewise
257 * emulparams/elf_s390.sh: Likewise
258 * emulparams/elf_x86_64.sh: Likewise
259 * emulparams/i386aout.sh: Likewise
260 * emulparams/i386moss.sh: Likewise
261 * emulparams/i386msdos.sh: Likewise
262 * emulparams/i386nto.sh: Likewise
263 * emulparams/i386nw.sh: Likewise
264 * emulparams/m68kaout.sh: Likewise
265 * emulparams/m68kelf.sh: Likewise
266 * emulparams/ppcnw.sh: Likewise
267 * emulparams/sun4.sh: Likewise
268 * emulparams/tic80coff.sh: Likewise
269 * emulparams/vaxnbsd.sh: Likewise
270 * emulparams/armnbsd.sh (NONPAGED_TEXT_START_ADDR): Delete.
271 (TEXT_START_ADDR): Set for -n, -N.
272 * emulparams/coff_sparc.sh: Likewise
273 * emulparams/elf32vax.sh: Likewise
274 * emulparams/i386bsd.sh: Likewise
275 * emulparams/i386go32.sh: Likewise
276 * emulparams/i386linux.sh: Likewise
277 * emulparams/i386lynx.sh: Likewise
278 * emulparams/i386mach.sh: Likewise
279 * emulparams/m68k4knbsd.sh: Likewise
280 * emulparams/m68klinux.sh: Likewise
281 * emulparams/m68knbsd.sh: Likewise
282 * emulparams/ns32knbsd.sh: Likewise
283 * emulparams/pc532macha.sh: Likewise
284 * emulparams/ppclynx.sh: Likewise
285 * emulparams/scoreelf.sh: Likewise
286 * emulparams/sparcaout.sh: Likewise
287 * emulparams/sparclinux.sh: Likewise
288 * emulparams/sun3.sh: Likewise
289 * emulparams/vsta.sh: Likewise
293 * configure.tgt: Add bfin-*rtems*.
297 * emultempl/pep.em: (pep_enable_stdcall_fixup): Set to value 1.
298 (gld_xxx_recognized_file): Use pep_bfd_is_dll for detection of
300 * pe-dll.c: (autofilter_symbollist_i386): Define set for amd64
305 * po/ga.po: Updated Irish translation.
309 * ldlang.c (lang_insert_orphan): When searching through linker
310 script to place an orphan, don't stop on statements that appear
312 * emultempl/elf32.em (output_rel_find): Prefer read-only alloc
313 sections over read/write alloc sections.
317 * scripttempl/elf.sc: Add .note.gnu.build-id.
322 * ld.texinfo (Options): Extend the description of the -O command
327 * pep.sc: Correct ctor/dtor sentinels for 64-bit targets.
331 * sha1.h: Change to use version 3 of the GNU General Public
332 License and tidy up formatting.
337 * genscripts.sh (source_em, fragment): New sh functions.
338 Truncate e${EMULATION_NAME}.c file before .em script fills it.
339 Use source_em in place of . for the .em script.
340 * emultempl/generic.em: Use fragment and source_em functions.
341 * emultempl/aix.em: Likewise.
342 * emultempl/alphaelf.em: Likewise.
343 * emultempl/armcoff.em: Likewise.
344 * emultempl/armelf.em: Likewise.
345 * emultempl/avrelf.em: Likewise.
346 * emultempl/beos.em: Likewise.
347 * emultempl/cr16elf.em: Likewise.
348 * emultempl/crxelf.em: Likewise.
349 * emultempl/elf-generic.em: Likewise.
350 * emultempl/elf32.em: Likewise.
351 * emultempl/genelf.em: Likewise.
352 * emultempl/gld960.em: Likewise.
353 * emultempl/gld960c.em: Likewise.
354 * emultempl/hppaelf.em: Likewise.
355 * emultempl/ia64elf.em: Likewise.
356 * emultempl/irix.em: Likewise.
357 * emultempl/linux.em: Likewise.
358 * emultempl/lnk960.em: Likewise.
359 * emultempl/m68hc1xelf.em: Likewise.
360 * emultempl/m68kcoff.em: Likewise.
361 * emultempl/m68kelf.em: Likewise.
362 * emultempl/mipsecoff.em: Likewise.
363 * emultempl/mipself.em: Likewise.
364 * emultempl/mmix-elfnmmo.em: Likewise.
365 * emultempl/mmixelf.em: Likewise.
366 * emultempl/mmo.em: Likewise.
367 * emultempl/needrelax.em: Likewise.
368 * emultempl/netbsd.em: Likewise.
369 * emultempl/pe.em: Likewise.
370 * emultempl/pep.em: Likewise.
371 * emultempl/ppc32elf.em: Likewise.
372 * emultempl/ppc64elf.em: Likewise.
373 * emultempl/scoreelf.em: Likewise.
374 * emultempl/sh64elf.em: Likewise.
375 * emultempl/spuelf.em: Likewise.
376 * emultempl/sunos.em: Likewise.
377 * emultempl/ticoff.em: Likewise.
378 * emultempl/vanilla.em: Likewise.
379 * emultempl/vxworks.em: Likewise.
380 * emultempl/xtensaelf.em: Likewise.
381 * emultempl/z80.em: Likewise.
385 * emultempl/elf32.em (gld${EMULATION_NAME}_write_build_id_section):
386 Use ASEC->contents for CONTENTS when missing, and allocate
387 ASEC->size if needed.
391 * emultempl/elf32.em (struct build_id_info): New type.
392 (gld${EMULATION_NAME}_id_note_section_size): New function.
393 (gld${EMULATION_NAME}_write_build_id_section): New function.
394 (gld${EMULATION_NAME}_after_open): Use them.
395 (DEFAULT_BUILD_ID_STYLE): Change to "sha1".
396 * ld.texinfo (Options): Mention --build-id=sha1.
398 * sha1.h: New file (from gnulib).
399 * sha1.c: New file (from gnulib).
400 * Makefile.am (CFILES, HFILES, OFILES, ld_new_SOURCES): Add them.
401 (sha1.o): New target.
402 * Makefile.in: Regenerated.
406 * ldlang.c (strip_excluded_output_sections): Don't ignore sections
407 with update_dot_tree.
411 * scripttempl/pe.sc: Don't include .gcc_except_table and
412 .eh_frame on partial links.
413 * scripttempl/pep.sc: Likewise.
418 * ldlang.c (lang_size_sections_1 <output_section_statement>): Only
419 use expld.result when valid.
423 * emultempl/spuelf.em (embedded_spu_file): Test for NULL path
424 before calling base_name, not after.
428 * scripttempl/elf.sc (DISCARDED): Renamed from STACKNOTE. Add
430 * scripttempl/armbpabi.sc: Likewise.
431 * scripttempl/elf32sh-symbian.sc: Likewise.
432 * scripttempl/elfxtensa.sc: Likewise.
433 * scripttempl/mep.sc: Likewise.
437 * emultempl/elf32.em (gld${EMULATION_NAME}_add_option): Add --build-id.
438 (gld${EMULATION_NAME}_handle_option): Handle --build-id.
439 (gld${EMULATION_NAME}_list_options): List --build-id.
440 (gld${EMULATION_NAME}_after_open): If --build-id was given,
441 synthesize a ".note.gnu.build-id" section and cache it in elf_tdata.
442 * ld.texinfo (Options): Describe --build-id.
443 * NEWS: Mention --build-id.
447 * deffile.h: Update copyright notice to refer to GPLv3.
448 * deffilep.y, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h,
449 ldexp.c, ldexp.h, ldfile.c, ldfile.h, ldgram.y, ld.h, ldlang.c,
450 ldlang.h, ldlex.h, ldlex.l, ldmain.c, ldmain.h, ldmisc.c,
451 ldmisc.h, ldver.c, ldver.h, ldwrite.c, ldwrite.h, lexsup.c, mri.c,
452 mri.h, pe-dll.c, pe-dll.h, pep-dll.c, pep-dll.h, stamp-h.in,
453 sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
454 emultempl/armcoff.em, emultempl/armelf.em, emultempl/avrelf.em,
455 emultempl/beos.em, emultempl/cr16elf.em, emultempl/crxelf.em,
456 emultempl/elf32.em, emultempl/elf-generic.em, emultempl/genelf.em,
457 emultempl/generic.em, emultempl/gld960c.em, emultempl/gld960.em,
458 emultempl/hppaelf.em, emultempl/ia64elf.em, emultempl/irix.em,
459 emultempl/linux.em, emultempl/lnk960.em, emultempl/m68hc1xelf.em,
460 emultempl/m68kcoff.em, emultempl/m68kelf.em,
461 emultempl/mipsecoff.em, emultempl/mipself.em,
462 emultempl/mmixelf.em, emultempl/mmix-elfnmmo.em, emultempl/mmo.em,
463 emultempl/needrelax.em, emultempl/pe.em, emultempl/pep.em,
464 emultempl/ppc32elf.em, emultempl/ppc64elf.em,
465 emultempl/scoreelf.em, emultempl/sh64elf.em, emultempl/spuelf.em,
466 emultempl/spu_ovl.S, emultempl/sunos.em, emultempl/ticoff.em,
467 emultempl/vanilla.em, emultempl/xtensaelf.em: Likewise.
468 * genscripts.sh: Add copyright notice.
469 * emultempl/netbsd.em, emultempl/vxworks.em, emultempl/z80.em:
471 * NEWS: Mention that the sources are now under GPLv3.
472 * configure: Regenerate.
476 * ld.texinfo (--heap): Replace 'amount' with 'number of bytes'.
481 * emultempl/spuelf.em (base_name): Correct backslash quoting.
485 * Makefile.in: Regenerate.
486 * aclocal.m4: Regenerate.
487 * config.in: Regenerate.
488 * po/ld.pot: Regenerate.
492 * aclocal.m4: Regenerated.
493 * Makefile.in: Likewise.
497 * NEWS: Remove a line with '*' only.
501 * emulparams/armelf.sh (OTHER_SECTIONS): Remove .ARM.attributes.
502 (ATTRS_SECTIONS): Define.
503 * scripttempl/elf.sc, scripttempl/elf32sh-symbian.sc,
504 scripttempl/elf_chaos.sc, scripttempl/elfi370.sc,
505 scripttempl/elfxtensa.sc: Handle ATTRS_SECTIONS.
509 * scripttemp/elf32cr16.sc: Default linker script.
510 * emulparams/elf32cr16.sh: Emulation script.
511 * emultempl/cr16elf.em: Emulation script.
512 * Makefile.am: Add entry to make cr16 target.
513 * Makefile.in: Regenerate.
514 * configure.tgt: Specify default and other emulation parameters
516 * ChangeLog: Added CR16 target entry.
517 * NEWS: Announce the support for the CR16 new target.
521 * pe-dll.c: Rename uses of bfd.next to bfd.archive_next throughout.
525 * emulparams/elf32_spu.sh (OTHER_SECTIONS): KEEP .note.spu_name.
529 * ldlex.l, ldgram.y: Add ALIGNOF.
530 * ldexp.c (exp_print_token, foldname): Likewise.
531 * ld.texinfo: Likewise.
535 * Makefile.am: Add eelf32_spu.o rule.
536 * Makefile.in: Regenerate.
537 * emultempl/spuelf.em: Revert last change. Instead use EMBEDSPU
538 defined in Makefile for embedspu name.
542 * emultempl/spuelf.em (embedded_spu_file): Deduce embedspu program
543 name prefix from that of ld.
547 * Makefile.am (ACLOCAL_AMFLAGS): Add -I ../config -I ../bfd.
549 * acinclude.m4: Removed.
551 * Makefile.in: Regenerated.
552 * aclocal.m4: Likewise.
553 * configure: Likewise.
557 * emultempl/spu_ovl.S: Don't trash lr on tail call from one
559 * emultempl/spu_ovl.o: Regenerate.
563 * emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS): Add ONLY_IF_RO
564 for .xt_except_table.
565 (OTHER_RELRO_SECTIONS): New.
570 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Use renamed
571 XTENSA_PROP_NO_TRANSFORM flag instead of XTENSA_PROP_INSN_NO_TRANSFORM.
576 * ldlang.c (ldlang_add_file): Use input_bfds_tail.
577 * ldmain.c (main): Init input_bfds_tail. Sort link_info
582 * emultempl/spuelf.em (base_name): New function, split out from..
583 (embedded_spu_file) ..here. Pass -fPIC or -fpie to embedspu
584 invocation if we deduce a shared lib or position independent
585 executable build by looking at ctrbegin* linker input files.
589 * emultempl/spu_ovl.S (__rv_pattern, __cg_pattern): Set symbol
591 * emultempl/spu_ovl.o: Regenerate.
595 * Makefile.in: Regnerate.
596 * configure: Regenerate.
597 * aclocal.m4: Regenerate.
601 * ldlex.l: ASSERT is recognized in SCRIPT env. NAMES cannot
602 contain commas in EXP env.
603 * ldgram.y (extern_name_list): Push to EXP env, move body to ...
604 (extern_name_list_body): ... here.
605 (script_file, ifile_list): Reformat.
606 (statement): Add ASSERT.
610 * ld.texinfo: Use @copying around the copyright notice.
611 * ldint.texinfo: Likewise.
615 * emulparams/elf32ebmipvxworks.sh (OTHER_READONLY_SECTIONS)
616 (OTHER_READWRITE_SECTIONS): Define. Add .rdata sections.
620 * configure.in: Allow sysroots to be relocated under $prefix as
621 well as $exec_prefix.
622 * configure: Regenerate.
626 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern):
631 * emultempl/ppc32elf.em (plt_style): New variable.
633 (ppc_after_open): Adjust ppc_elf_select_plt_layout call.
634 (PARSE_AND_LIST_PROLOGUE): Define OPTION_NEW_PLT, renumber
635 OPTION_OLD_PLT, OPTION_OLD_GOT and OPTION_STUBSYMS.
636 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add secure-plt.
637 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NEW_PLT.
638 * ld.texinfo (--secure-plt): Document.
642 * ld.h (args_type, ld_config_type): Reorder fields.
643 * ldmain.c (main): Don't initialise a bunch of vars we know are
648 * multempl/avrelf.em (PARSE_AND_LIST_ARGS_CASES): Add new value for
649 "--pmem-wrap-around".
650 (PARSE_AND_LIST_OPTIONS): Describe new value for "--pmem-wrap-around".
654 * scripttempl/elfxtensa.sc: Merge changes from elf.sc.
658 * ld.texinfo (--no-warn-search-mismatch): Document.
659 * ldfile.c (ldfile_try_open_bfd): Don't warn about skipping
660 incompatible libraries if --no-warn-search-mismatch.
661 * ld.h (args_type): Add warn_search_mismatch.
662 * ldmain.c (main): Init it.
663 * lexsup.c (enum option_values): Add OPTION_NO_WARN_SEARCH_MISMATCH.
664 (ld_options): Add entry for --no-warn-search-mismatch.
665 (parse_args): Handle OPTION_NO_WARN_SEARCH_MISMATCH.
669 * scripttempl/elf.sc: Add .debug_pubtypes and .debug_ranges.
673 * ldlang.c (lang_check): Error on architecture mismatch.
677 * ldmain.c (link_callbacks): Init info and minfo fields.
678 * ldmisc.c (minfo): Do nothing if no map file.
679 * emultempl/spuelf.em (stack_analysis, emit_stack_syms): New vars.
680 (spu_after_open): Adjust spu_elf_create_sections call.
681 (spu_before_allocation): Likewise for spu_elf_size_stubs.
682 (OPTION_SPU_STACK_ANALYSIS, OPTION_SPU_STACK_SYMS): Define.
683 (PARSE_AND_LIST_LONGOPTS): Add new entries.
684 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
685 * gen-doc.texi: Add @set for SPU and other missing targets.
686 * ld.texinfo: Update man page selection to match gen-doc.texi.
687 Document SPU features.
691 * ldcref.c (struct cref_hash_entry): Make "demangled" const.
692 (cref_fill_array): Adjust for changed demangler.
693 * ldlang.c (lang_one_common): Likewise.
697 * emulparams/elf32_sparc.sh: Update comments.
698 * emulparams/elf32bmip.sh: Likewise.
699 * emulparams/elf32ppc.sh: Likewise.
700 * emulparams/vxworks.sh: Likewise.
704 Many files: Include sysdep.h first. Remove duplicate headers.
705 * Makefile.am: Run "make dep-am".
706 * Makefile.in: Regenerate.
710 * Makefile.in: Regenerate.
714 * ldcref.c (cref_fill_array): Call bfd_demangle rather than demangle.
715 * ldlang.c (lang_one_common): Likewise.
716 * ldmisc.c (vfinfo): Likewise.
718 * ldmisc.h (demangle): Delete.
719 * Makefile.am: Run "make dep-am".
720 * Makefile.in: Regenerate.
724 * ldlang.h (enum section_type): Add overlay_section.
725 * ldlang.c (lang_add_section): Handle flags for overlay_section
726 as per normal_section.
727 (lang_size_sections_1): When setting lma, detect overlays by
728 os->sectype rather than by looking for overlapping vmas.
729 (lang_enter_overlay_section): Use overlay_section type.
730 (lang_leave_overlay): Set first overlay section to normal.
734 * Makefile.am: Add ACLOCAL_AMFLAGS.
735 * Makefile.in: Regenerate.
739 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): KEEP property sections.
743 * ldlang.c (relax_sections): Initialize and increment
744 link_info.relax_trip.
748 * configure.tgt: Loosen checks for arm uclinux eabi targets.
753 * ldexp.h (node_type): Add lineno.
754 * ldexp.c: Include "ldlex.h".
755 (exp_intop): Set the lineno field from lineno.
756 (exp_bigintop): Likewise.
757 (exp_relop): Likewise.
758 (exp_nameop): Likewise.
759 (exp_binop): Set the lineno field from lineno of lhs.
760 (exp_trinop): Likewise.
761 (exp_unop): Set the lineno field from lineno of child.
762 (exp_assop): Set the lineno field from lineno of src.
763 (exp_provide): Likewise.
764 (exp_assert): Set the lineno field from lineno of exp.
765 (exp_get_abs_int): Set lineno from lineno of nonconstant
766 expression when report problem.
771 * NEWS: Mention -l:foo.
772 * ld.texinfo: Document it.
773 * ldlang.c (new_afile): If a lang_input_file_is_l_enum
774 entry as a name beginning with a coloh, convert it to a
775 lang_input_file_is_search_file_enum entry without the colon.
779 * ld.h (ld_config_type): Add rpath_separator.
780 * ldmain.c (main): Initialize it.
781 * lexsup.c (parse_args): Honor config.rpath_separator.
782 * emultempl/elf32.em (gld${EMULATION_NAME}_search_needed): Likewise.
783 (gld${EMULATION_NAME}_add_sysroot): Likewise.
784 (gld${EMULATION_NAME}_parse_ld_so_conf): Use config.rpath_separator
785 rather than ':' when building the path.
786 * emultempl/vxworks.em (vxworks_before_parse): New function.
787 Override config.rpath_separator.
788 (LDEMUL_AFTER_OPEN): Do not change if EXTRA_EM_FILE has been
789 set to gld${EMULATION_NAME}_after_open; #define that identifier
790 to vxworks_foo instead.
791 (LDEMUL_BEFORE_PARSE): Override in the same way as LDEMUL_AFTER_OPEN.
796 * ld.texinfo: Put the contents after the title page rather
797 than at the end of the document.
801 * Makefile.am: Add dependency on ldemul-list.h for powerpc and
802 spu target emul files.
803 * configure.in: Check for mkstemp and waitpid.
804 * Makefile.in: Regenerate.
805 * configure: Regenerate.
806 * config.in: Regenerate.
807 * ldlang.c (input_file_chain): Make global.
808 (lang_add_input_file): Don't set lang_has_input_file here.
809 * ldlang.h (input_file_chain): Declare.
810 * emultempl/ppc32elf.em (ppc_recognized_file): New function.
811 (LDEMUL_RECOGNIZED_FILE): Define.
812 * emultempl/ppc64elf.em (ppc64_recognized_file): New function.
813 (LDEMUL_RECOGNIZED_FILE): Define.
814 * emultempl/spuelf.em (struct tflist): New.
815 (tmp_file_list): New var.
816 (clean_tmp, embedded_spu_file): New functions.
820 * ldlang.c (lang_insert_orphan): Provide start/stop loadaddr syms
821 rather than defining unconditionally.
822 (lang_leave_overlay_section): Likewise.
823 * ld.texinfo (Overlay Description): Update description and examples
828 * ld.texinfo: Include VERSION_PACKAGE when reporting version.
832 * emultempl/armelf.em (pic_veneer): New variable.
833 (PARSE_AND_LIST_PROLOGUE): Add OPTION_PIC_VENEER.
834 (PARSE_AND_LIST_ARGS_CASES): Ditto.
835 (PARSE_AND_LIST_LONGOPTS): Add "pic-veneer".
836 (PARSE_AND_LIST_OPTIONS): Ditto.
837 * ld.texinfo: Document --pic-veneer.
841 * ld.texinfo: Document --no-enum-size-warning.
842 * emultempl/armelf.em (no_enum_size_warning): New.
843 (arm_elf_create_output_section_statements): Correct typo
844 in comment. Pass no_enum_size_warning to
845 bfd_elf32_arm_set_target_relocs.
846 (PARSE_AND_LIST_PROLOGUE): Define OPTION_NO_ENUM_SIZE_WARNING.
847 (PARSE_AND_LIST_OPTIONS): Document --no-enum-size-warning.
848 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_NO_ENUM_SIZE_WARNING
853 * configure.tgt (bfin-*-elf, bfin-*-uclinux*): Add targ_extra_libpath.
854 (bfin-*-linux-uclibc*): New target.
858 * pe-dll.c (make_one): Use pc-relative relocation instead of an
859 absolute relocation for x86_64-pc-mingw32 target.
863 * Makefile.am (ld_TEXINFOS): Remove ldver.texi.
864 (AM_MAKEINFOFLAGS): Add -I ../../bfd/doc.
865 (TEXI2DVI): Likewise.
866 (REPORT_BUGS_TO): Removed.
867 (INCLUDES): Remove -DREPORT_BUGS_TO.
868 (ldver.texi): Likewise.
869 (ld.1): Don't depend on ldver.texi.
870 (MOSTLYCLEANFILES): Remove ldver.texi.
871 * Makefile.in: Regenerated.
873 * configure.in (--with-bugurl): Removed.
874 * configure: Regenerated.
876 * lexsup.c: Include bfdver.h.
878 * ld.texinfo: Include bfdver.texi instead of ldver.texi.
882 * emultempl/mmixelf.em: Remove incorrect '#line' directive.
886 * ldlang.c (lang_size_sections_1): Correct backwards dot move
887 test to not trigger on overlays. Only warn on backwards move
892 * configure.in (REPORT_BUGS_TEXI): Define to Texinfo version of
894 * Makefile.am (ldver.texi): Define BUGURL.
895 * ld.texinfo: Use BUGURL.
896 * Makefile.in, configure: Regenerate.
901 * emultempl/aix.em (..._before_allocation): Strip sysroot prefix
902 from any paths being inserted into the output binary's DT_RPATH.
906 * emulparams/shelf_uclinux.sh: New. Missed in 2007-02-28 commit.
910 * ldver.c (ldversion): Remove word "version" from output. Update
915 * Makefile.am (ALL_EMULATIONS): Add eshelf_uclinux.o
916 (eshelf_uclinux.c): New target.
917 * Makefile.in: Rebuilt.
918 * configure.tgt (sh-*-uclinux* | sh[12]-*-uclinux*): New stanza.
919 * emulparams/shelf_uclinux.sh: New.
923 * configure.tgt: Fix type last change.
924 * configure.tgt (spu-*-elf*): Delete targ_extra_ofiles.
928 * Makefile.am (ALL_EMUL_EXTRA_OFILES): Remove spu_inc.o.
929 (eelf32_spu.c): Adjust dependencies.
930 * Makefile.in: Regenerate.
931 * emultempl/spuelf.em (ovl_mgr): New array. Insert spu_ovl.o
933 (_binary_spu_ovl_o_start, _binary_spu_ovl_o_end): Delete.
934 (ovl_mgr_stream): Update.
935 * emultempl/spu_inc.s: Delete.
936 * emultempl/spu_none.s: Delete.
940 * emultempl/spuelf.em (_binary_builtin_ovl_mgr_start): Rename
941 to _binary_spu_ovl_o_start.
942 (_binary_builtin_ovl_mgr_end): Rename to _binary_spu_ovl_o_end.
943 (spu_elf_load_ovl_mgr): Fatal error on missing overlay manager.
944 * emultempl/spu_inc.s: Rename symbols.
945 * emultempl/spu_none.s: New file.
946 * emultempl/spu_ovl.S: Update copyright.
947 * Makefile.am (spu_inc.o): Try building with ld -r first, then
948 gas incbin, then build without overlay manager.
949 * Makefile.in: Regenerate.
953 * configure.tgt (mips64*el-*-linux-*, mips64*-*-linux-*,
954 mips*el-*-linux-*, mips*-*-linux-*): Set
955 targ_extra_libpath=$targ_extra_emuls.
959 * ldlang.c (ldlang_override_segment_assignment): New function.
960 * ldlang.h (ldlang_override_segment_assignment): Prototype.
961 * ldmain.c (link_callbacks): Add
962 ldlang_override_segment_assignment.
966 * ldexp.c (fold_name <LOADADDR>): Ensure result is always absolute.
973 * configure.in (--with-bugurl): New option.
974 * configure: Regenerate.
975 * Makefile.am (REPORT_BUGS_TO): Define.
976 (INCLUDES): Define REPORT_BUGS_TO.
977 Regenerate dependencies.
978 * Makefile.in: Regenerate.
979 * ld.h: Remove include of bin-bugs.h.
980 * lexsup.c (help): Don't print empty REPORT_BUGS_TO.
984 * ldcref.c (check_reloc_refs): Compare section for local syms.
988 * emultempl/spu_ovl.S (__ovly_return, __ovly_load): Set sym size.
989 (__ovly_load_event): Define.
990 (size): Rename to osize.
991 * emultempl/spu_ovl.o: Regenerate.
995 * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Add ".branch_lt".
996 * emultempl/ppc64elf.em (ppc_add_stub_section): Create without
1001 * configure.in (targ_extra_emuls): Add $targ64_extra_emuls if
1003 (targ_extra_libpath): Add $targ64_extra_libpath if want64 is
1005 * configure: Regenerated.
1007 * configure.tgt (targ_extra_libpath): Initialize.
1008 (targ64_extra_emuls): New. Document. Initialize.
1009 (targ64_extra_libpath): Likewise.
1010 (i[3-7]86-*-linux-*): Set targ64_extra_emuls and
1011 targ64_extra_libpath.
1012 (powerpc*-*-linux*): Likewise.
1013 (s390-*-linux*): Likewise.
1017 * configure.tgt: Add arm*-*-uclinux-*eabi.
1021 * ldlang.c (lang_size_sections_1): Add a missing `)'.
1026 * ldlang.c (lang_size_sections_1): Don't warn on backwards dot
1027 move unless section size is non-zero.
1031 * Makefile.am (ALL_EMULATIONS): Add support for Toshiba MeP.
1032 * configure.tgt: Likewise.
1033 * scripttempl/mep.sc: New file.
1034 * emulparams/elf32mep.sh: New file.
1035 * Makefile.in: Regenerate.
1039 * NEWS: Mention --vfp11-denorm-fix option.
1040 * ld.texinfo: Document above.
1041 * emulparams/armelf_linux.sh (OTHER_TEXT_SECTIONS): Add
1042 .vfp11_veneer section.
1043 * emulparams/armelf.sh (OTHER_TEXT_SECTIONS): Likewise.
1044 * emultempl/armelf.em (vfp11_denorm_fix): New static variable.
1045 (arm_elf_before_allocation): Call bfd_elf32_arm_set_vfp11_fix,
1046 bfd_elf32_arm_init_maps and bfd_elf32_arm_vfp11_erratum_scan.
1047 (arm_elf_after_allocation): New function. Call
1048 bfd_elf32_arm_vfp11_fix_veneer_locations for all input statements.
1049 (arm_elf_create_output_section_statements): Pass vfp11 fix command
1051 (OPTION_VFP11_DENORM_FIX): New option.
1052 (PARSE_AND_LIST_LONGOPTS): Handle new option.
1053 (PARSE_AND_LIST_OPTIONS): Likewise.
1054 (PARSE_AND_LIST_ARGS_CASES): Likewise.
1055 (LDEMUL_AFTER_ALLOCATION): Define.
1059 * ldgram.y (SIZEOF_HEADERS): Remove duplicated one.
1060 (DEFSYMEND): Likewise.
1066 * pe-dll.c: (make_one) Conditionally include jump stubs.
1067 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Identify
1068 redundant jump stubs from import libraries and exclude them from
1073 * ld.h (args_type): Add new symbolic and dynamic_list fields.
1075 * ld.texinfo: Update -Bsymbolic-functions.
1077 * ldmain.c (main): Initialize command_line.symbolic to
1078 symbolic_unset and command_line.dynamic_list to
1079 dynamic_list_unset. Check -Bsymbolic, -Bsymbolic-functions and
1080 --dynamic-list* before setting link_info.symbolic,
1081 link_info.dynamic and link_info.dynamic_data.
1083 * lexsup.c (option_values): Add OPTION_SYMBOLIC_FUNCTIONS.
1084 (ld_options): Use OPTION_SYMBOLIC_FUNCTIONS with
1085 -Bsymbolic-functions.
1086 (parse_args): Handle -Bsymbolic-functions. Don't set
1087 link_info.dynamic, link_info.dynamic_data and link_info.symbolic
1088 here. Set command_line.symbolic for -Bsymbolic. Set
1089 command_line.dynamic_list and command_line.symbolic for
1090 --dynamic-list-data, --dynamic-list-cpp-new,
1091 --dynamic-list-cpp-typeinfo and --dynamic-list.
1096 * emultempl/elf32.em (handle_option): Make sure -z max-page-size
1097 or -z common-page-size argument is a power of 2. Call
1098 bfd_emul_set_maxpagesize and bfd_emul_set_commonpagesize.
1102 * ldmain.c (main): Don't call bfd_emul_set_maxpagesize nor
1103 bfd_emul_set_commonpagesize.
1107 * NEWS: Mention --default-script/-dT.
1109 * ld.h (args_type): Add a default_script field.
1111 * ld.texinfo: Document --default-script/-dT.
1113 * ldmain.c (main): Handle command_line.default_script.
1115 * lexsup.c (option_values): Add OPTION_DEFAULT_SCRIPT.
1116 (ld_options): Add entries for --default-script and -dT.
1117 (parse_args): Handle --default-script/-dT.
1122 * NEWS: Mention -Bsymbolic-functions, --dynamic-list-data and
1123 --dynamic-list-cpp-new.
1125 * ld.texinfo: Document -Bsymbolic-functions, --dynamic-list-data
1126 and --dynamic-list-cpp-new.
1128 * ldlang.c (lang_append_dynamic_list_cpp_new): New.
1129 (lang_process): Change link_info.dynamic to
1130 link_info.dynamic_list.
1131 (lang_append_dynamic_list): Likewise.
1132 * ldmain.c (main): Likewise. Initialize link_info.dynamic and
1133 link_info.dynamic_data to FALSE.
1135 * ldlang.h (lang_append_dynamic_list_cpp_new): New.
1137 * lexsup.c (option_values): Add OPTION_DYNAMIC_LIST_DATA and
1138 OPTION_DYNAMIC_LIST_CPP_NEW.
1139 (ld_options): Add entries for -Bsymbolic-functions,
1140 --dynamic-list-data and --dynamic-list-cpp-new. Make
1141 -Bsymbolic-functions an alias of --dynamic-list-data.
1142 (parse_args): Change link_info.dynamic to link_info.dynamic_list.
1143 Set link_info.dynamic to TRUE for --dynamic-list and
1144 --dynamic-list-cpp-typeinfo. Handle --dynamic-list-data and
1145 --dynamic-list-cpp-new.
1149 * emultempl/elf-generic.em (gdl_map_segments): Only allow header
1150 shrinkage for the first few iterations.
1154 * configure.tgt: Renamed target x86_64-*-mingw64 to
1159 * configure.host: Add i[3-7]86-*-mingw* case.
1163 * pep-dll.h (pep_bfd_is_dll): Add prototype.
1168 * configure.tgt (x86_64_[k]freebsd*): Add targ_extra_libpath and
1173 * ldexp.c (fold_name): Issue error on undefined sections.
1177 * pe-dll.c: Include pe-dll.h.
1178 * pep-dll.c (pe_bfd_is_dll): Define.
1180 For older changes see ChangeLog-2006
1182 Copyright (C) 2007 Free Software Foundation, Inc.
1184 Copying and distribution of this file, with or without modification,
1185 are permitted in any medium without royalty provided the copyright
1186 notice and this notice are preserved.
1192 version-control: never