X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=ld%2FChangeLog;h=90bbed7a2be5ecedc898e8898c34ca849d98a063;hb=61a0857c0fb512ce6a2ba4315a37fcce744f6045;hp=dcfc602263096847572ae2794fe3c12a85533632;hpb=cbd0eecf261c2447781f8c89b0d955ee66fae7e9;p=deliverable%2Fbinutils-gdb.git diff --git a/ld/ChangeLog b/ld/ChangeLog index dcfc602263..90bbed7a2b 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,463 @@ +2017-07-11 H.J. Lu + + * testsuite/ld-selective/selective.exp: Support single digit + GCC version. + +2017-07-11 Jiong Wang + + * testsuite/ld-aarch64/dt_textrel.d: Use "#pass" instead of ".*" to + filter out remaining lines. + +2017-07-07 Maciej W. Rozycki + + * emultempl/mipself.em (mips_before_allocation): Avoid ELF + processing if not MIPS ELF. + * testsuite/ld-mips-elf/binary.d: New test. + * testsuite/ld-mips-elf/binary.ld: New test linker script. + * testsuite/ld-mips-elf/binary.s: New test source. + * testsuite/ld-mips-elf/mips-elf.exp: Run the new test. + +2017-07-07 Alan Modra + + * testsuite/ld-powerpc/ppc476-shared.lnk: Align .bss. + * testsuite/ld-powerpc/ppc476-shared.d: Adjust. + * testsuite/ld-powerpc/ppc476-shared2.d: Adjust. + +2017-07-07 Alan Modra + + * Makefile.am (eelf64_s390.c): Depend on emultempl/s390.em. + +2017-07-04 Tristan Gingold + + * configure: Regenerate. + +2017-07-04 Tristan Gingold + + * NEWS: Add marker for 2.29. + +2017-07-03 Tristan Gingold + + * po/ld.pot: Regenerate. + +2017-06-30 Maciej W. Rozycki + + * testsuite/ld-mips-elf/relax-offset.dd: New test. + * testsuite/ld-mips-elf/relax-offset.gd: New test. + * testsuite/ld-mips-elf/relax-offset-umips.dd: New test. + * testsuite/ld-mips-elf/relax-offset-umips.gd: New test. + * testsuite/ld-mips-elf/relax-offset.ld: New test linker script. + * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests. + (prune_warnings): New temporary procedure. + +2017-06-28 Maciej W. Rozycki + + * testsuite/ld-mips-elf/mips-elf-flags.exp: Add interAptiv MR2 + tests. + +2017-06-27 Senthil Kumar Selvaraj + + PR ld/13402 + * testsuite/ld-avr/pr13402.d: New test. + * testsuite/ld-avr/pr13402.s: New test. + +2017-06-27 Maciej W. Rozycki + + * testsuite/ld-mips-elf/mips-elf-flags.exp (good_combination): + Add an `args' final argument and examination code for `readelf + -A' output. Update procedure description accordingly. + +2017-06-27 Maciej W. Rozycki + + * testsuite/ld-mips-elf/mips-elf-flags.exp (good_combination): + Use `remote_exec' to call `readelf'. Log the command issued. + +2017-06-27 Maciej W. Rozycki + + * testsuite/ld-mips-elf/mips-elf-flags.exp (good_combination): + Use `readelf -h' rather than `readelf --headers'. + +2017-06-26 Maciej W. Rozycki + + * testsuite/ld-mips-elf/lsi-4010-isa.d: New test. + * ld/testsuite/ld-mips-elf/mips-elf.exp: Run the new test. + +2017-06-26 Maciej W. Rozycki + + * testsuite/ld-elf/sizeofa.d: Also accept the OBJECT type for + the symbols examined. + * testsuite/ld-elf/sizeofc.d: Likewise. + * testsuite/ld-elf/startofa.d: Likewise. + * testsuite/ld-elf/startofc.d: Likewise. + +2017-06-26 Alan Modra + + * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Skip + --just-syms bfds when looking for a place to attach .note.gnu.build-id + and .eh_frame_hdr sections. Delete dead code. + +2017-06-24 Thomas Preud'homme + + * testsuite/ld-arm/arm-elf.exp (EABI attribute merging 11): New test. + (EABI attribute merging 12): Likewise. + * testsuite/ld-arm/attr-merge-11a.s: New file. + * testsuite/ld-arm/attr-merge-11b.s: New file. + * testsuite/ld-arm/attr-merge-11.attr: New file. + * testsuite/ld-arm/attr-merge-12a.s: New file. + * testsuite/ld-arm/attr-merge-12b.s: New file. + * testsuite/ld-arm/attr-merge-12.attr: New file. + +2017-06-22 H.J. Lu + + * testsuite/ld-i386/i386.exp: Run weakundef1 tests. + * testsuite/ld-i386/weakundef1.c: New file. + +2017-06-22 H.J. Lu + + PR ld/21090 + * testsuite/ld-elfvsb/elfvsb.exp (visibility_run): Pass + $NOPIE_CFLAGS if non-PIE is required. + +2017-06-22 H.J. Lu + + PR ld/21090 + * testsuite/ld-i386/i386.exp: Pass $NOPIE_CFLAGS and + $NOPIE_LDFLAGS to "Run pr19031". + +2017-06-22 H.J. Lu + + PR ld/21090 + * testsuite/ld-gc/gc.exp: Compile tmpdir/pr14265.o with + $NOPIE_CFLAGS. + * testsuite/ld-i386/i386.exp: Pass $NOPIE_CFLAGS and + $NOPIE_LDFLAGS if non-PIE is required. + * testsuite/ld-i386/no-plt.exp (NOPIE_CFLAGS): New. + (NOPIE_LDFLAGS): Likewise. + Pass $NOPIE_LDFLAGS if non-PIE is required. + * testsuite/ld-shared/shared.exp: Compile tmpdir/sh1np.o with + $NOPIE_CFLAGS. + +2017-06-22 H.J. Lu + + * NEWS: Mention -z shstk and GNU_PROPERTY_X86_FEATURE_1_SHSTK. + * emulparams/cet.sh (PARSE_AND_LIST_OPTIONS_CET): Add "-z shstk". + (PARSE_AND_LIST_ARGS_CASE_Z_CET): Support "-z shstk". + * ld.texinfo: Document -z shstk. + * testsuite/ld-i386/i386.exp: Run SHSTK tests. + * testsuite/ld-x86-64/x86-64.exp: Likewise. + * testsuite/ld-i386/property-x86-shstk.s: New file. + * testsuite/ld-i386/property-x86-shstk1a.d: Likewise. + * testsuite/ld-i386/property-x86-shstk1b.d: Likewise. + * testsuite/ld-i386/property-x86-shstk2.d: Likewise. + * testsuite/ld-i386/property-x86-shstk3a.d: Likewise. + * testsuite/ld-i386/property-x86-shstk3b.d: Likewise. + * testsuite/ld-i386/property-x86-shstk4.d: Likewise. + * testsuite/ld-i386/property-x86-shstk5.d: Likewise. + * testsuite/ld-x86-64/property-x86-shstk.s: Likewise. + * testsuite/ld-x86-64/property-x86-shstk1a-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-shstk1a.d: Likewise. + * testsuite/ld-x86-64/property-x86-shstk1b-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-shstk1b.d: Likewise. + * testsuite/ld-x86-64/property-x86-shstk2-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-shstk2.d: Likewise. + * testsuite/ld-x86-64/property-x86-shstk3a-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-shstk3a.d: Likewise. + * testsuite/ld-x86-64/property-x86-shstk3b-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-shstk3b.d: Likewise. + * testsuite/ld-x86-64/property-x86-shstk4-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-shstk4.d: Likewise. + * testsuite/ld-x86-64/property-x86-shstk5-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-shstk5.d: Likewise. + +2017-06-22 H.J. Lu + + * Makefile.am (ELF_X86_DEPS): Add $(srcdir)/emulparams/cet.sh. + * Makefile.in: Regenerated. + * NEWS: Mention GNU_PROPERTY_X86_FEATURE_1_IBT, -z ibtplt + and -z ibt. + * emulparams/cet.sh: New file. + * testsuite/ld-i386/ibt-plt-1.d: Likewise. + * testsuite/ld-i386/ibt-plt-1.s: Likewise. + * testsuite/ld-i386/ibt-plt-2.s: Likewise. + * testsuite/ld-i386/ibt-plt-2a.d: Likewise. + * testsuite/ld-i386/ibt-plt-2b.d: Likewise. + * testsuite/ld-i386/ibt-plt-2c.d: Likewise. + * testsuite/ld-i386/ibt-plt-2d.d: Likewise. + * testsuite/ld-i386/ibt-plt-3.s: Likewise. + * testsuite/ld-i386/ibt-plt-3a.d: Likewise. + * testsuite/ld-i386/ibt-plt-3b.d: Likewise. + * testsuite/ld-i386/ibt-plt-3c.d: Likewise. + * testsuite/ld-i386/ibt-plt-3d.d: Likewise. + * testsuite/ld-i386/plt-main-ibt.dd: Likewise. + * testsuite/ld-i386/plt-pie-ibt.dd: Likewise. + * testsuite/ld-i386/property-x86-empty.s: Likewise. + * testsuite/ld-i386/property-x86-ibt.s: Likewise. + * testsuite/ld-i386/property-x86-ibt1a.d: Likewise. + * testsuite/ld-i386/property-x86-ibt1b.d: Likewise. + * testsuite/ld-i386/property-x86-ibt2.d: Likewise. + * testsuite/ld-i386/property-x86-ibt3a.d: Likewise. + * testsuite/ld-i386/property-x86-ibt3b.d: Likewise. + * testsuite/ld-i386/property-x86-ibt4.d: Likewise. + * testsuite/ld-i386/property-x86-ibt5.d: Likewise. + * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise. + * testsuite/ld-x86-64/ibt-plt-1.d: Likewise. + * testsuite/ld-x86-64/ibt-plt-1.s: Likewise. + * testsuite/ld-x86-64/ibt-plt-2.s: Likewise. + * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise. + * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise. + * testsuite/ld-x86-64/ibt-plt-2b-x32.d: Likewise. + * testsuite/ld-x86-64/ibt-plt-2b.d: Likewise. + * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise. + * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise. + * testsuite/ld-x86-64/ibt-plt-2d-x32.d: Likewise. + * testsuite/ld-x86-64/ibt-plt-2d.d: Likewise. + * testsuite/ld-x86-64/ibt-plt-3.s: Likewise. + * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise. + * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise. + * testsuite/ld-x86-64/ibt-plt-3b-x32.d: Likewise. + * testsuite/ld-x86-64/ibt-plt-3b.d: Likewise. + * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise. + * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise. + * testsuite/ld-x86-64/ibt-plt-3d-x32.d: Likewise. + * testsuite/ld-x86-64/ibt-plt-3d.d: Likewise. + * testsuite/ld-x86-64/plt-main-ibt-now.rd: Likewise. + * testsuite/ld-x86-64/plt-main-ibt-x32.dd: Likewise. + * testsuite/ld-x86-64/plt-main-ibt.dd: Likewise. + * testsuite/ld-x86-64/property-x86-empty.s: Likewise. + * testsuite/ld-x86-64/property-x86-ibt.s: Likewise. + * testsuite/ld-x86-64/property-x86-ibt1a-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-ibt1a.d: Likewise. + * testsuite/ld-x86-64/property-x86-ibt1b-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-ibt1b.d: Likewise. + * testsuite/ld-x86-64/property-x86-ibt2-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-ibt2.d: Likewise. + * testsuite/ld-x86-64/property-x86-ibt3a-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-ibt3a.d: Likewise. + * testsuite/ld-x86-64/property-x86-ibt3b-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-ibt3b.d: Likewise. + * testsuite/ld-x86-64/property-x86-ibt4-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-ibt4.d: Likewise. + * testsuite/ld-x86-64/property-x86-ibt5-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-ibt5.d: Likewise. + * emulparams/elf32_x86_64.sh: Source emulparams/cet.sh. + (TINY_READONLY_SECTION): Add .plt.sec. + * emulparams/elf_i386.sh: Likewise. + * emulparams/elf_x86_64.sh: Source emulparams/cet.sh. + * ld.texinfo: Document -z ibtplt and -z ibt. + * testsuite/ld-i386/i386.exp: Run IBT and IBT PLT tests. + * testsuite/ld-x86-64/x86-64.exp: Likewise. + * testsuite/ld-x86-64/pr21481b.S (check): Updated for x32. + +2017-06-21 H.J. Lu + + PR ld/21090 + * testsuite/ld-elf/shared.exp: Pass $NOPIE_CFLAGS and + $NOPIE_LDFLAGS if non-PIE is required. + +2017-06-21 H.J. Lu + + PR ld/21090 + * testsuite/ld-scripts/crossref.exp: Also pass $NOPIE_CFLAGS + to CC. + +2017-06-21 H.J. Lu + + PR ld/21090 + * testsuite/ld-size/size.exp: Pass $NOPIE_LDFLAGS to size-4a, + size-4b, size-5a, size-5b, size-6 and size-8 tests. + * testsuite/ld-srec/srec.exp (NOPIE_CFLAGS): New. + (NOPIE_LDFLAGS): Likewise. + (CC): Add $NOPIE_CFLAGS $NOPIE_LDFLAGS. + (CXX): Likewise. + * testsuite/ld-x86-64/no-plt.exp (NOPIE_CFLAGS): New. + (NOPIE_LDFLAGS): Likewise. + Pass $NOPIE_LDFLAGS to "No PLT (dynamic 1a)", + "No PLT (dynamic 1c)" and "Run pr20253-2f". + * testsuite/ld-x86-64/x86-64.exp: Pass $NOPIE_LDFLAGS to + "Build gotpcrel1" and "Run pr19031". + +2017-06-21 Alan Modra + + * testsuite/ld-powerpc/powerpc.exp: Run TOCSAVE tests. + * testsuite/ld-powerpc/tocsave1.s, + * testsuite/ld-powerpc/tocsave1a.d, + * testsuite/ld-powerpc/tocsave1s.d, + * testsuite/ld-powerpc/tocsave2.s, + * testsuite/ld-powerpc/tocsave2a.d, + * testsuite/ld-powerpc/tocsave2s.d, + * testsuite/ld-powerpc/tocsavelib.s: New files. + +2017-06-20 Andreas Krebbel + + * Makefile.in: Add s390.em as build dependency. + * emulparams/elf64_s390.sh (EXTRA_EM_FILE): Add s390.em. + * emultempl/s390.em: New file. + * gen-doc.texi: Add documentation for --s390-pgste option. + * ld.texinfo: Likewise. + +2017-06-19 H.J. Lu + + PR ld/21626 + * testsuite/ld-i386/i386.exp: Run ld/21626 tests. + * testsuite/ld-x86-64/x86-64.exp: Likewise. + +2017-06-18 Alan Modra + + * testsuite/lib/ld-lib.exp (is_underscore_target): New. + * testsuite/ld-elf/elf.exp (ASFLAGS): Define UNDERSCORE. + * testsuite/ld-elf/pr21562a.s: If UNDERSCORE defined, + reference sym with prefix. + * testsuite/ld-elf/pr21562b.s: Likewise. + * testsuite/ld-elf/sizeof.s: Likewise. + * testsuite/ld-elf/startof.s: Likewise. + * testsuite/ld-elf/pr14156a.d: Adjust for extra symbols. + * testsuite/ld-elf/pr21562a.d: Remove underscore target from + xfails, and match prefixed symbol. + * testsuite/ld-elf/pr21562b.d: Likewise. + * testsuite/ld-elf/pr21562c.d: Likewise. + * testsuite/ld-elf/pr21562d.d: Likewise. + * testsuite/ld-elf/pr21562e.d: Likewise. + * testsuite/ld-elf/pr21562f.d: Likewise. + * testsuite/ld-elf/pr21562g.d: Likewise. + * testsuite/ld-elf/pr21562h.d: Likewise. + * testsuite/ld-elf/pr21562i.d: Likewise. + * testsuite/ld-elf/pr21562j.d: Likewise. + * testsuite/ld-elf/pr21562k.d: Likewise. + * testsuite/ld-elf/pr21562l.d: Likewise. + * testsuite/ld-elf/pr21562m.d: Likewise. + * testsuite/ld-elf/pr21562n.d: Likewise. + * testsuite/ld-elf/sizeofa.d: Likewise. + * testsuite/ld-elf/sizeofb.d: Likewise. + * testsuite/ld-elf/sizeofc.d: Likewise. + * testsuite/ld-elf/startofa.d: Likewise. + * testsuite/ld-elf/startofb.d: Likewise. + * testsuite/ld-elf/startofc.d: Likewise. + +2017-06-16 Alan Modra + + PR ld/20022 + PR ld/21557 + PR ld/21562 + PR ld/21571 + * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't set + __start/__stop syms here. + * ldlang.c (lang_set_startof): Delete. + (start_stop_syms, start_stop_count, start_stop_alloc): New vars. + (lang_define_start_stop, lang_init_start_stop, foreach_start_stop, + undef_start_stop, lang_undef_start_stop, lang_init_startof_sizeof, + set_start_stop, lang_finalize_start_stop): New functions. + (lang_process): Call _start_stop functions. + * testsuite/ld-elf/pr21562a.d: Use xfail rather than notarget. + Correct typos and list of xfail targets. + * testsuite/ld-elf/pr21562b.d: Likewise. + * testsuite/ld-elf/pr21562c.d: Likewise. + * testsuite/ld-elf/pr21562d.d: Likewise. + * testsuite/ld-elf/pr21562e.d: Likewise. + * testsuite/ld-elf/pr21562f.d: Likewise. + * testsuite/ld-elf/pr21562g.d: Likewise. + * testsuite/ld-elf/pr21562h.d: Likewise. + * testsuite/ld-elf/pr21562i.d: Likewise. + * testsuite/ld-elf/pr21562j.d: Likewise. + * testsuite/ld-elf/pr21562k.d: Likewise. + * testsuite/ld-elf/pr21562l.d: Likewise. + * testsuite/ld-elf/pr21562m.d: Likewise. + * testsuite/ld-elf/pr21562n.d: Likewise. + * testsuite/ld-elf/sizeofa.d: Likewise. Adjust to pass for generic ELF. + * testsuite/ld-elf/sizeofb.d: Likewise. + * testsuite/ld-elf/startofa.d: Likewise. + * testsuite/ld-elf/startofb.d: Likewise. + +2017-06-16 Jiong Wang + + * testsuite/ld-aarch64/aarch64-elf.exp: Update test name + * testsuite/ld-aarch64/pcrel.s: Add new testcases. + * testsuite/ld-aarch64/pcrel_pic_undefined.d: Update the expected + warnings. + * testsuite/ld-aarch64/pcrel_pic_defined_local.d: Rename ... + * testsuite/ld-aarch64/pcrel_pic_defined.d: ... to this. + Update expected warnings. + +2017-06-15 H.J. Lu + + * exsup.c (elf_shlib_list_options): Display "-z stack-size=SIZE" + instead of "-z stacksize=SIZE". + +2017-06-15 Jiong Wang + + * testsuite/ld-aarch64/copy-reloc-exe-2.s: New test source file. + * testsuite/ld-aarch64/copy-reloc-2.d: New test. + * testsuite/ld-aarch64/copy-reloc-exe-eliminate.s: New test source file. + * testsuite/ld-aarch64/copy-reloc-eliminate.d: New test. + * testsuite/ld-aarch64/copy-reloc-so.s: Define new global objects. + * testsuite/ld-aarch64/aarch64-elf.exp: Run new tests. + +2017-06-14 Nick Clifton + + PR binutils/21580 + * testsuite/ld-nds32/diff.d: Adjust expected output. + +2017-06-14 H.J. Lu + + PR ld/20022 + * testsuite/ld-gc/pr20022.d: Skip on targets without dynamic + relocations in .text section. + +2017-06-14 H.J. Lu + + * testsuite/ld-elf/pr21562a.d: Skip on targets with leading char + in in symbol name or without --gc-sections. + * testsuite/ld-elf/pr21562b.d: Likewise. + * testsuite/ld-elf/pr21562c.d: Likewise. + * testsuite/ld-elf/pr21562d.d: Likewise. + * testsuite/ld-elf/pr21562i.d: Likewise. + * testsuite/ld-elf/pr21562j.d: Likewise. + * testsuite/ld-elf/pr21562k.d: Likewise. + * testsuite/ld-elf/pr21562l.d: Likewise. + * testsuite/ld-elf/pr21562m.d: Likewise. + * testsuite/ld-elf/pr21562n.d: Likewise. + * testsuite/ld-elf/pr21562e.d: Skip on targets with leading char + in symbol name. + * testsuite/ld-elf/pr21562f.d: Likewise. + * testsuite/ld-elf/pr21562g.d: Likewise. + * testsuite/ld-elf/pr21562h.d: Likewise. + +2017-06-14 H.J. Lu + + * testsuite/ld-gc/pr20022a.s: Add size to bar. + +2017-06-14 H.J. Lu + + * testsuite/ld-elf/sizeofa.d: Skip on targets with leading char + in symbol name. + * testsuite/ld-elf/sizeofb.d: Likewise. + * testsuite/ld-elf/startofa.d: Likewise. + * testsuite/ld-elf/startofb.d: Likewise. + +2017-06-14 Georg-Johann Lay + + PR ld/21583 + * scripttempl/avr.sc (.jumptables): Move down in text section. + (.hightext): New in text. + +2017-06-14 Sebastian Huber + + * configure.tgt (epiphany-*-elf): Accept epiphany-*-*. + +2017-06-13 H.J. Lu + + * ldlang.c (lang_set_startof): Skip if config.build_constructors + is FALSE. + * testsuite/ld-elf/sizeofc.d: New file. + * testsuite/ld-elf/startofc.d: Likewise. + +2017-06-13 H.J. Lu + + * testsuite/ld-elf/sizeof.d: Renamed to ... + * testsuite/ld-elf/sizeofa.d: This. Updated. + * testsuite/ld-elf/startof.d: Renamed to ... + * testsuite/ld-elf/startofa.d: This. Updated. + * testsuite/ld-elf/sizeofb.d: New file. + * testsuite/ld-elf/startofb.d: Likewise. + 2017-06-13 H.J. Lu PR ld/20022