X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=ld%2FChangeLog;h=c4ded9283e82f34797451d02bdef1ac3e0afba87;hb=83a471c3a112bfce3b13085e51209c826be8257d;hp=960190ff84e7f47da9cb19ae332d72e94e3f914c;hpb=205ac185771460838370afb3a38d20228927b925;p=deliverable%2Fbinutils-gdb.git diff --git a/ld/ChangeLog b/ld/ChangeLog index 960190ff84..c4ded9283e 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,459 @@ +2016-04-27 H.J. Lu + + * testsuite/ld-elf/compressed1b.d: Only run for Linux/GNU targets. + +2016-04-27 H.J. Lu + + PR ld/20006 + * testsuite/ld-elfvsb/elfvsb.exp (COMPRESS_LDFLAG): New. + (visibility_run): Pass COMPRESS_LDFLAG to visibility_test on + ELF targets. + +2016-04-27 H.J. Lu + + * testsuite/ld-elf/compressed1b.d: Pass + --compress-debug-sections=none to ld. + * testsuite/ld-elf/compressed1c.d: Likewise. + +2016-04-27 Alan Modra + + PR target/19985 + * configure.tgt: Don't use var+=. + +2016-04-25 Nick Clifton + + PR target/19985 + * configure.tgt: Include big endian PPC64 emulations with little + endian PPC64 targets. + +2016-04-25 Senthil Kumar Selvaraj + + * scripttempl/avrtiny.sc (.text): Do not set LMA to zero. + +2016-04-21 Nick Clifton + + * ldlang.c (lang_check_relocs): Use bfd_link_check_relocs in + prefernce to _bfd_elf_link_check_relocs. Drop test for ELF + targets. Do not stop the checks when problems are encountered. + +2016-04-21 Alan Modra + + * testsuite/ld-scripts/cross3.t: Add commonly used data + and text section names to output section statements. + * testsuite/ld-scripts/cross4.t: Likewise. + * testsuite/ld-scripts/cross5.t: Likewise. + * testsuite/ld-scripts/cross6.t: Likewise. + * testsuite/ld-scripts/cross7.t: Likewise. + +2016-04-20 H.J. Lu + + * ldlang.c (lang_check_relocs): New function. + (lang_process): Call lang_check_relocs after lang_gc_sections. + * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Don't + call _bfd_elf_link_check_relocs here. + +2016-04-20 H.J. Lu + + PR ld/19972 + * testsuite/ld-elf/eh6.d: Pass -rW to readelf and check for + R_386_NONE or R_X86_64_NONE. + +2016-04-20 H.J. Lu + + * testsuite/ld-x86-64/pic1.d: New file. + * testsuite/ld-x86-64/pic1.s: Likewise. + * testsuite/ld-x86-64/x86-64.exp: Run pic1. + +2016-04-20 H.J. Lu + + * testsuite/ld-x86-64/pie2.d: New file. + * testsuite/ld-x86-64/pie2.s: Likewise. + * testsuite/ld-x86-64/x86-64.exp: Run pie2. + +2016-04-20 H.J. Lu + + PR ld/19969 + * testsuite/ld-x86-64/pr19969.d: New file. + * testsuite/ld-x86-64/pr19969a.S: Likewise. + * testsuite/ld-x86-64/pr19969b.S: Likewise. + * testsuite/ld-x86-64/x86-64.exp: Run pr19969 tests. + +2016-04-20 H.J. Lu + + * emulparams/elf32_x86_64.sh (CHECK_RELOCS_AFTER_OPEN_INPUT): + New. + * emulparams/elf_i386.sh (CHECK_RELOCS_AFTER_OPEN_INPUT): + Likewise. + * emulparams/elf_i386_be.sh (CHECK_RELOCS_AFTER_OPEN_INPUT): + Likewise. + * emulparams/elf_i386_chaos.sh (CHECK_RELOCS_AFTER_OPEN_INPUT): + Likewise. + * emulparams/elf_i386_ldso.sh (CHECK_RELOCS_AFTER_OPEN_INPUT): + Likewise. + * emulparams/elf_i386_vxworks.sh (CHECK_RELOCS_AFTER_OPEN_INPUT): + Likewise. + * emulparams/elf_x86_64.sh (CHECK_RELOCS_AFTER_OPEN_INPUT): + Likewise. + * emulparams/i386nto.sh (CHECK_RELOCS_AFTER_OPEN_INPUT): + Likewise. + * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): + Set check_relocs_after_open_input to TRUE if + CHECK_RELOCS_AFTER_OPEN_INPUT is yes. + (gld${EMULATION_NAME}_after_open): Call + _bfd_elf_link_check_relocs on all inputs if + check_relocs_after_open_input is TRUE. + +2016-04-20 H.J. Lu + + * testsuite/ld-elf/eh6.s: Replace .long with .dc.a on + my_personality_v0. + +2016-04-20 Trevor Saunders + + * emultempl/scoreelf.em: Likewise. + +2016-04-19 H.J. Lu + + PR ld/19719 + * testsuite/ld-x86-64/pr19719.d: New file. + * testsuite/ld-x86-64/pr19719.s: Likewise. + * testsuite/ld-x86-64/x86-64.exp: Run pr19719. + +2016-04-18 Matthew Fortune + + * ld.texinfo: Document NOCROSSREFS_TO script command. + * ldlang.h (struct lang_nocrossrefs): Add onlyfirst field. + (lang_add_nocrossref_to): New prototype. + * ldcref.c (check_local_sym_xref): Use onlyfirst to only look for + symbols defined in the first section. + (check_nocrossref): Likewise. + * ldgram.y (NOCROSSREFS_TO): New script command. + * ldlang.c (lang_add_nocrossref): Set onlyfirst to FALSE. + (lang_add_nocrossref_to): New function. + * ldlex.l (NOCROSSREFS_TO): New token. + * NEWS: Mention NOCROSSREFS_TO. + * testsuite/ld-scripts/cross4.t: New file. + * testsuite/ld-scripts/cross5.t: Likewise. + * testsuite/ld-scripts/cross6.t: Likewise. + * testsuite/ld-scripts/cross7.t: Likewise. + * testsuite/ld-scripts/crossref.exp: Run 4 new NOCROSSREFS_TO + tests. + +2016-04-15 H.J. Lu + + * Makefile.in: Regenerated with automake 1.11.6. + * aclocal.m4: Likewise. + +2016-04-14 Andrew Burgess + + * testsuite/ld-arc/arc.exp: New file. + * testsuite/ld-arc/nps-1.s: New file. + * testsuite/ld-arc/nps-1a.d: New file. + * testsuite/ld-arc/nps-1b.d: New file. + * testsuite/ld-arc/nps-1b.err: New file. + +2016-04-14 Nick Clifton + + PR 19457 + * testsuite/ld-scripts/script.exp (extract_symbol_test): Add + exceptions for Mingw and Cygwin. + +2016-04-13 Andrew Burgess + + * testsuite/lib/ld-lib.exp (run_dump_test): Initialise + check_ld(terminal). + +2016-04-13 H.J. Lu + + PR ld/19774 + * testsuite/ld-x86-64/x86-64.exp: Link tmpdir/pr17689b.o before + tmpdir/pr17689.so, fix gotpcrel1 test and add more --as-needed + tests. + +2016-04-11 H.J. Lu + + PR ld/19939 + * testsuite/ld-i386/i386.exp: Run PR ld/19939 tests. + * testsuite/ld-x86-64/x86-64.exp: Likewise. + * testsuite/ld-i386/pr19939.s: New file. + * testsuite/ld-i386/pr19939a.d: Likewise. + * testsuite/ld-i386/pr19939b.d: Likewise. + * testsuite/ld-x86-64/pr19939.s: Likewise. + * testsuite/ld-x86-64/pr19939a.d: Likewise. + * testsuite/ld-x86-64/pr19939b.d: Likewise. + +2016-04-09 Oleg Endo + + * emulparams/shelf.sh: Set stack area to 0x3FFFFF00. + +2016-04-08 Alan Modra + + PR 18452 + * ldlang.c (maybe_overlays): Delete. + (lang_size_sections_1): Remove code setting maybe_overlays. + (lang_check_section_addresses): Instead detect overlays by + exact match of section VMAs here. Fix memory leak. + +2016-04-08 Dan Gisselquist + + * ldlang.c (print_output_section_statement): Show minfo size + in target machine address units. + (print_reloc_statement): Likewise. + (print_padding_statement): Likewise. + (print_data_statement): Likewise. Ensure minimum print_dot + increment of one address unit. + +2016-04-07 Andrew Burgess + + * emulparams/arc-endianness.sh: Make little endian default choice. + +2016-04-07 Nick Clifton + + * scripttempl/elf32msp430.sc (.MSP430.attributes): Fix typo in + section name. + * scripttempl/elf32msp430_3.sc (.MSP430.attributes): Likewise. + +2016-04-05 Andrew Burgess + + * emulparams/arc-endianness.sh: New file. + * emulparams/arcebelf.sh: Deleted. + * emulparams/arcebelf_prof.sh: Deleted. + * emulparams/arceblinux.sh: Deleted. + * emulparams/arceblinux_prof.sh: Deleted. + * emulparams/arcelf.sh: Include arc-endinness.sh. + * emulparams/arcelf_prof.sh: Include arc-endinness.sh. + * emulparams/arclinux.sh: Include arc-endinness.sh. + * emulparams/arclinux_prof.sh: Include arc-endinness.sh. + * emulparams/arcv2elf.sh: Include arc-endinness.sh. + * emulparams/arcv2elfx.sh: Include arc-endinness.sh. + * testsuite/ld-elf/compressed1d.d: Update pattern for big and + little endian arc targets. + * testsuite/ld-elf/eh-frame-hdr.d: Likewise. + * testsuite/ld-elf/group1.d: Likewise. + * testsuite/ld-elf/group3b.d: Likewise. + * testsuite/ld-elf/group8a.d: Likewise. + * testsuite/ld-elf/group8b.d: Likewise. + * testsuite/ld-elf/group9a.d: Likewise. + * testsuite/ld-elf/group9b.d: Likewise. + * testsuite/ld-elf/linkonce2.d: Likewise. + * testsuite/ld-elf/pr12851.d: Likewise. + * testsuite/ld-elf/pr12975.d: Likewise. + * testsuite/ld-elf/pr13177.d: Likewise. + * testsuite/ld-elf/pr13195.d: Likewise. + * testsuite/ld-elf/pr17615.d: Likewise. + * testsuite/ld-elf/pr19162.d: Likewise. + * testsuite/ld-elf/sec64k.exp: Likewise. + * testsuite/lib/ld-lib.exp: Likewise. + +2016-04-05 Maciej W. Rozycki + + PR ld/19908 + * testsuite/ld-cris/tls-e-20.d: Adjust for hidden symbol + handling fix. + * testsuite/ld-cris/tls-e-20a.d: Likewise. + * testsuite/ld-cris/tls-e-21.d: Likewise. + * testsuite/ld-cris/tls-e-23.d: Likewise. + * testsuite/ld-cris/tls-e-80.d: Likewise. + * testsuite/ld-cris/tls-gd-3h.d: Likewise. + * testsuite/ld-cris/tls-leie-19.d: Likewise. + * testsuite/ld-mips-elf/export-class-ref-lib.sd: New test. + * testsuite/ld-mips-elf/export-hidden-ref.sd: New test. + * testsuite/ld-mips-elf/export-internal-ref.sd: New test. + * testsuite/ld-mips-elf/export-protected-ref.sd: New test. + * testsuite/ld-mips-elf/export-class-ref-f0.s: New test source. + * testsuite/ld-mips-elf/export-class-ref-f1.s: New test source. + * testsuite/ld-mips-elf/export-class-ref-f2.s: New test source. + * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests. + +2016-04-05 Cupertino Miranda + + * testsuite/ld-discard/extern.d: Removed xfail for ARC. + * testsuite/ld-discard/start.d: Likewise. + * testsuite/ld-discard/static.d: Likewise. + * testsuite/ld-elf/group1.d: Likewise. + * testsuite/ld-elf/group3b.d: Likewise. + * testsuite/ld-elf/orphan-region.d: Likewise. + * testsuite/ld-elf/orphan.d: Likewise. + * testsuite/ld-elf/orphan3.d: Likewise. + * testsuite/ld-elf/pr349.d: Likewise. + * testsuite/ld-elf/warn1.d: Likewise. + * testsuite/ld-elf/warn2.d: Likewise. + * testsuite/ld-elf/warn3.d: Likewise. + * testsuite/ld-scripts/crossref.exp: Add __SDATA_BEGIN__ symbol + through linker flags. + * testsuite/ld-srec/srec.exp: Set as xfail. + +2016-04-04 H.J. Lu + + PR ld/19827 + * testsuite/ld-i386/pr19827-nacl.rd: New file. + * testsuite/ld-x86-64/pr19827-nacl.rd: Likewise. + +2016-04-04 Nick Clifton + + PR 19803 + * emultempl/pe.em (change_undef): New function. Encapsulates + duplicated code in pe_fixup_stdcalls and adds the newly defined + sym to the gc root list. + (pe_fixup_stdcall): Use the new function. + * pe-dll.c (process_def_file_and_drectve); Add alias of exported + symbol to gc root list. + +2016-03-31 Alan Modra + + * ldlang.c (TO_ADDR, TO_SIZE, opb_shift): Move earlier in file. + (lang_insert_orphan): Use TO_ADDR in __stop sym calculation. + (print_input_section): Don't use TO_ADDR when printing section + size. + (lang_size_sections_1): Use TO_ADDR in overlay lma calculation. + (lang_size_sections): Use TO_ADDR in relro end calculation. + +2016-03-30 Andrew Burgess + + * testsuite/lib/ld-lib.exp (run_dump_test): Fix check of return + value from regexp_diff. + * testsuite/ld-elf/orphan-5.l: Fix expected output. + * testsuite/ld-elf/orphan-6.l: Likewise. + +2016-03-30 Alan Modra + + PR 18452 + * ldlang.c (maybe_overlays): New static var. + (lang_size_sections_1): Set it here. + (struct check_sec): New. + (sort_sections_by_lma): Adjust for array of structs. + (sort_sections_by_vma): New function. + (lang_check_section_addresses): Check both LMA and VMA for overlap. + * testsuite/ld-scripts/rgn-over7.d: Adjust. + +2016-03-30 Alan Modra + + * ldlang.c (lang_size_sections_1): Correct code detecting a + backward non-overlapping move. + +2016-03-30 Alan Modra + + * ldlang.c (IS_TBSS): New macro, extracted from.. + (IGNORE_SECTION): ..here. + (lang_size_sections_1): Use IS_TBSS and IGNORE_SECTION. + (lang_size_sections, lang_do_assignments_1): Use IS_TBSS. + +2016-03-22 Nick Clifton + + PR ld/19803 + * ldlang.c (lang_add_gc_name): New function. Adds the provided + symbol name to the list of gc symbols. + (lang_process): Call lang_add_gc_name with entry_symbol_default if + entry_symbol.name is NULL. Use lang_add_gc_name to add the init + and fini function names. + * pe-dll.c (process_def_file_and_drectve): Add exported names to + the gc symbol list. + * testsuite/ld-pe/pr19803.s: Do not export _testval symbol. + * testsuite/ld-pe/pr19803.d: Tweak expected output. + +2016-03-22 Nick Clifton + + * configure: Regenerate. + +2016-03-21 Nick Clifton + + * emultempl/msp430.em: Replace use of alloca with call to xmalloc. + * plugin.c: Likewise. + * pe-dll.c: Likewise. + +2016-03-18 Awson + + PR 19531 + * scripttempl/pe.sc (.rdata_runtime_pseudo_reloc): Always KEEP + this section. + * scripttempl/pep.sc (.rdata_runtime_pseudo_reloc): Likewise. + +2016-03-18 Senthil Kumar Selvaraj + + * ld-avr/gc-section-debugline.d: Relax regex check for CU. + +2016-03-15 H.J. Lu + + PR ld/19827 + * testsuite/ld-i386/i386.exp: Run PR ld/19827 tests. + * testsuite/ld-x86-64/x86-64.exp: Likewise. + * testsuite/ld-i386/pr19827.rd: New file. + * testsuite/ld-i386/pr19827a.S: Likewise. + * testsuite/ld-i386/pr19827b.S: Likewise. + * testsuite/ld-x86-64/pr19827.rd: Likewise. + * testsuite/ld-x86-64/pr19827a.S: Likewise. + * testsuite/ld-x86-64/pr19827b.S: Likewise. + +2016-03-15 H.J. Lu + + PR ld/19807 + * Makefile.am (ELF_X86_DEPS): Add + $(srcdir)/emulparams/reloc_overflow.sh. + * Makefile.in: Regenerated. + * NEWS: Mention -z noreloc-overflow. + * ld.texinfo: Document -z noreloc-overflow. + * emulparams/elf32_x86_64.sh: Source + ${srcdir}/emulparams/reloc_overflow.sh. + * emulparams/elf_x86_64.sh: Likewise. + * emulparams/reloc_overflow.sh: New file. + * testsuite/ld-x86-64/pr19807-1.s: New file. + * testsuite/ld-x86-64/pr19807-1a.d: Likewise. + * testsuite/ld-x86-64/pr19807-1b.d: Likewise. + * testsuite/ld-x86-64/pr19807-2.s: Likewise. + * testsuite/ld-x86-64/pr19807-2a.d: Likewise. + * testsuite/ld-x86-64/pr19807-2b.d: Likewise. + * testsuite/ld-x86-64/pr19807-2c.d: Likewise. + * testsuite/ld-x86-64/pr19807-2d.d: Likewise. + * testsuite/ld-x86-64/pr19807-2e.d: Likewise. + * testsuite/ld-x86-64/x86-64.exp: Run PR ld/19807 tests. + +2016-03-13 H.J. Lu + + PR ld/19539 + * testsuite/ld-i386/i386.exp: Run pr19539. + * testsuite/ld-i386/pr19539.d: New file. + * testsuite/ld-i386/pr19539.s: Likewise. + * testsuite/ld-i386/pr19539.t: Likewise. + * testsuite/ld-x86-64/pr19539.s: Likewise. + * testsuite/ld-x86-64/pr19539.t: Likewise. + * testsuite/ld-x86-64/pr19539a.d: Likewise. + * testsuite/ld-x86-64/pr19539b.d: Likewise. + * testsuite/ld-x86-64/x86-64.exp: Run pr19539a and pr19539b. + +2016-03-10 Mickael Guene + + PR gas/19744 + * testsuite/ld-arm/arm-elf.exp: New tests. + * testsuite/ld-arm/thumb1-adds-armv7-m.s: New. + * testsuite/ld-arm/thumb1-movs-armv7-m.s: New. + +2016-03-10 Nick Clifton + + * scripttempl/elf32msp430.sc (.rodata): Remove spurious LONG(0). + +2016-03-09 Pedro Alves + + * scripttempl/v850.sc: Use "v850:old-gcc-abi" as OUTPUT_ARCH. + * scripttempl/v850_rh850.sc: Use "v850:rh850" as OUTPUT_ARCH. + +2016-03-08 H.J. Lu + + PR ld/19789 + * testsuite/ld-elf/pr19789.d: New file. + * testsuite/ld-elf/pr19789.s: Likewise. + +2016-03-08 H.J. Lu + + PR ld/19784 + * testsuite/ld-i386/i386.exp: Remove pr19636-2e-nacl test. + * testsuite/ld-i386/pr19636-2e-nacl.d: Moved to ... + * testsuite/ld-i386/pr19636-2e.d: Here. Remove notarget. + * testsuite/ld-ifunc/ifunc.exp: Run PR ld/19784 tests. + * testsuite/ld-ifunc/pass.out: New file. + * testsuite/ld-ifunc/pr19784a.c: Likewise. + * testsuite/ld-ifunc/pr19784b.c: Likewise. + * testsuite/ld-ifunc/pr19784c.c: Likewise. + 2016-03-08 H.J. Lu PR ld/19774