X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=ld%2FChangeLog;h=eb002e99422e0002dd7a073dcf2c40cb5caf4302;hb=55ef6584ca8466e293e9f1b310c0bf44500c11b6;hp=50c78132f4bd10a6f9ed6e92bf8f77e7d87e248c;hpb=dbb2bcd0059f8d91de5a792f8684c8908c316720;p=deliverable%2Fbinutils-gdb.git diff --git a/ld/ChangeLog b/ld/ChangeLog index 50c78132f4..eb002e9942 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,778 @@ +2017-08-05 Alan Modra + + * testsuite/ld-unique/pr21529.d: Don't xfail hppa. + +2017-08-04 H.J. Lu + + PR ld/21904 + * testsuite/ld-elf/pr21904.d: New file. + * testsuite/ld-elf/pr21904.s: Likewise. + +2017-08-03 Nick Clifton + + PR ld/21884 + * testsuite/ld-elf/pr21884.d: Add AVR, HPPA, IA64, M68HC1x and + SCORE to list of targets not supporting file format changes during + linking. + * testsuite/ld-unique/pr21529.d: Likewise. + * emultempl/avrelf.em (_before_allocation): Skip for non-ELF + output formats. + (avr_elf_create_output_section_statements): Fail if the output + format is not ELF. + (avr_finish): Do not access the ELF header in non-ELF format + output bfds. + * emultempl/m68hc1xelf.em (_before_allocation): Skip for non-ELF + output formats. + (m68hc11elf_create_output_section_statements): Fail if the putput + format is not ELF. + (m68hc11elf_after_allocation): Skip for non-ELF output formats. + +2017-08-03 Alan Modra + + PR ld/21884 + * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Revert + last change. Rename iself to elfinput. Expand comments. Condition + ELF checks on having both input and output ELF files. Extract.. + (elf_orphan_compatible): ..this new function. + +2017-08-02 H.J. Lu + + PR ld/21884 + * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Check + ELF section header only for ELF output. + * testsuite/ld-elf/pr21884.d: New test. + * testsuite/ld-elf/pr21884.t: Likewise. + * testsuite/ld-elf/pr21884a.s: Likewise. + * testsuite/ld-elf/pr21884b.s: Likewise. + +2017-08-02 H.J. Lu + + * emultempl/elf32.em (_place_orphan): Revert the last change. + +2017-08-02 Max Filippov + + * emultempl/xtensaelf.em (xtensa_wild_group_interleave_callback): + Only check for by_name sorting. + +2017-08-02 Nick Clifton + + PR 21884 + * emultempl/elf32.em (_place_orphan): Skip non-ELF binaries when + looking for sections to merge. + +2017-07-31 Alan Modra + + * ld.texinfo (plt-localentry): Revise. + +2017-07-29 Alan Modra + + * ld.texinfo (plt-localentry): Document. + +2017-07-28 Andrew Burgess + + * ldgram.y (ldgram_had_keep): Make static. + (ldgram_vers_current_lang): Likewise. + (filename_spec): New rule. + (input_section_spec_no_keep): Use filename_spec. + (wildcard_maybe_exclude): New rule. + (wildcard_spec): Rename to... + (section_name_spec): ...this. + (section_NAME_list): Rename to... + (section_name_list): ...this. + (section_name_spec): Simplifiy and use wildcard_maybe_exclude. + * ldlang.c (placed_commons): Delete. + (lang_add_wild): No longer set placed_commons. + (print_wild_statement): Use full names for SORT specifiers. + * testsuite/ld-scripts/align.exp: Run new tests. + * testsuite/ld-scripts/align3.d: New file. + * testsuite/ld-scripts/align3.t: New file. + * testsuite/ld-scripts/align4.d: New file. + * testsuite/ld-scripts/align4.t: New file. + * testsuite/ld-scripts/align5.d: New file. + * testsuite/ld-scripts/align5.t: New file. + * testsuite/ld-scripts/exclude-file-5.d: New file. + * testsuite/ld-scripts/exclude-file-5.map: New file. + * testsuite/ld-scripts/exclude-file-5.t: New file. + * testsuite/ld-scripts/exclude-file-6.d: New file. + * testsuite/ld-scripts/exclude-file-6.map: New file. + * testsuite/ld-scripts/exclude-file-6.t: New file. + * NEWS: Mention the changes. + +2017-07-27 Georg-Johann Lay + + PR ld/21849 + * scripttempl/avr.sc: Split .progmemx.* from .progmem.* and locate + former at a higher address. + +2017-07-25 Alan Modra + + * testsuite/ld-powerpc/tlsopt5.s: Add cfi. + * testsuite/ld-powerpc/tlsopt5.d: Update. + * testsuite/ld-powerpc/tlsopt5.wf: New file. + * testsuite/ld-powerpc/powerpc.exp: Perform new tlsopt5 test. + +2017-07-24 Claudiu Zissulescu + + * testsuite/ld-arc/jli-overflow.d: Force testing for little + endian. + * testsuite/ld-arc/tls_gd-01.d: Fix string to match bigendian + systems. + * testsuite/ld-arc/tls_ie-01.d: Fix test for bigendian systems. + +2017-07-19 Maciej W. Rozycki + + * testsuite/ld-scripts/fill.d: Adjust `xfail' entries. Add + `notarget' entries. Update comments. + * testsuite/ld-scripts/fill16.d: New test. + * testsuite/ld-scripts/fill16_0.s: New test source. + * testsuite/ld-scripts/fill16_1.s: New test source. + * testsuite/ld-scripts/fill16_2.s: New test source. + * testsuite/ld-scripts/data.exp: Run the new test. + +2017-07-19 Claudiu Zissulescu + John Eric Martin + + * emulparams/arcelf.sh (JLI_START_TABLE): Define. + * scripttempl/elfarc.sc: Handle jlitab section. + * scripttempl/elfarcv2.sc: Likewise. + * testsuite/ld-arc/arc.exp: Add JLI test. + * testsuite/ld-arc/jli-script.ld: New file. + * testsuite/ld-arc/jli-simple.dd: Likewise. + * testsuite/ld-arc/jli-simple.rd: Likewise. + * testsuite/ld-arc/jli-simple.s: Likewise. + * testsuite/ld-arc/jli-overflow.s: Likewise. + * testsuite/ld-arc/jli-overflow.d: Likewise. + * testsuite/ld-arc/jli-overflow.err: Likewise. + +2017-07-19 Tristan Gingold + + * ldmain.c (main): Remove display of data size. + +2017-07-18 Maciej W. Rozycki + + PR ld/16656 + * testsuite/ld-elf/binutils.exp (binutils_test): Make the + expectation for `.got' in GNU_RELRO segment target-specific. + Handle `.got.plt' separately. + +2017-07-18 Maciej W. Rozycki + + PR ld/16656 + * testsuite/ld-elf/binutils.exp (binutils_test): Make the + expectation for `.dynamic' in GNU_RELRO segment target-specific. + +2017-07-18 Nick Clifton + + PR 21775 + * ld.texinfo: Fix spelling typos. + * testsuite/ld-elfcomm/elfcomm.exp: Likewise. + +2017-07-17 H.J. Lu + + * testsuite/ld-i386/i386.exp: Run pie1 and pie1-nacl. + * testsuite/ld-i386/pie1-nacl.d: New file. + * testsuite/ld-i386/pie1.d: Likewise. + * testsuite/ld-i386/pie1.s: Likewise. + +2017-07-17 H.J. Lu + + PR ld/21782 + * testsuite/ld-x86-64/pie3-nacl.d: New file. + * testsuite/ld-x86-64/pie3.d: Likewise. + * testsuite/ld-x86-64/pie3.s: Likewise. + * testsuite/ld-x86-64/x86-64.exp: Run pie3 and pie3-nacl. + +2017-07-14 Alan Modra + + * testsuite/ld-powerpc/powerpc.exp: Add -shared to tlsop5 tests. + * testsuite/ld-powerpc/tlsopt5.d: Adjust. + * testsuite/ld-powerpc/tlsopt1_32.s: Use r30 as GOT pointer. + * testsuite/ld-powerpc/tlsopt2_32.s: Likewise. + * testsuite/ld-powerpc/tlsopt3_32.s: Likewise. + * testsuite/ld-powerpc/tlsopt4_32.s: Likewise. + * testsuite/ld-powerpc/tlsopt5_32.s: Rewrite. + * testsuite/ld-powerpc/tlsopt1_32.d: Adjust. + * testsuite/ld-powerpc/tlsopt2_32.d: Adjust. + * testsuite/ld-powerpc/tlsopt3_32.d: Adjust. + * testsuite/ld-powerpc/tlsopt5_32.d: Adjust. + +2016-07-14 Maciej W. Rozycki + + * testsuite/ld-unique/pr21529.ld: New test linker script. + * testsuite/ld-unique/pr21529.d: Use it. + +2017-07-12 Alan Modra + + * po/bg.po: Update from translationproject.org/latest/ld/. + * po/da.po: Likewise. + * po/es.po: Likewise. + * po/fi.po: Likewise. + * po/fr.po: Likewise. + * po/id.po: Likewise. + * po/it.po: Likewise. + * po/ja.po: Likewise. + * po/tr.po: Likewise. + * po/uk.po: Likewise. + * po/vi.po: Likewise. + * po/zh_CN.po: Likewise. + * po/zh_TW.po: Likewise. + * po/de.po: New file from translationproject.org. + * po/ru.po: Likewise. + * configure.ac (ALL_LINGUAS): Add de, ru. Sort. + * configure: Regenerate. + +2017-07-12 Alan Modra + + * testsuite/ld-scripts/align.exp: Exclude powerpc*-*-aix*. + * testsuite/ld-scripts/assign-loc.d: Likewise. + * testsuite/ld-scripts/defined3.d: Likewise. + * testsuite/ld-scripts/defined4.d: Likewise. + * testsuite/ld-scripts/defined5.d: Likewise. + * testsuite/ld-scripts/expr2.d: Likewise. + * testsuite/ld-scripts/provide.exp: Likewise. + * testsuite/ld-scripts/sane1.d: Likewise. + * testsuite/ld-scripts/size.exp: Likewise. + * testsuite/ld-scripts/defined2.d: Don't xfail rs6000-*-aix*. + +2017-07-12 Alan Modra + + * testsuite/ld-arc/nps-1b.err: Update. + * testsuite/ld-x86-64/ilp32-11.d: Update. + +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 + PR ld/21557 + PR ld/21562 + PR ld/21571 + * ld.texinfo: Update __start_SECNAME/__stop_SECNAME symbols. + * ldlang.c (lang_insert_orphan): Move handling of __start_SECNAME + and __stop_SECNAME symbols to ... + (lang_set_startof): Here. Also define __start_SECNAME and + __stop_SECNAME for -Ur. + * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Mark + referenced __start_SECNAME and __stop_SECNAME symbols as hidden + and set start_stop for garbage collection. + * testsuite/ld-elf/pr21562a.d: New file. + * testsuite/ld-elf/pr21562a.s: Likewise. + * testsuite/ld-elf/pr21562a.t: Likewise. + * testsuite/ld-elf/pr21562b.d: Likewise. + * testsuite/ld-elf/pr21562b.s: Likewise. + * testsuite/ld-elf/pr21562b.t: Likewise. + * testsuite/ld-elf/pr21562c.d: Likewise. + * testsuite/ld-elf/pr21562c.t: Likewise. + * testsuite/ld-elf/pr21562d.d: Likewise. + * testsuite/ld-elf/pr21562d.t: 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-gc/pr20022.d: Likewise. + * testsuite/ld-gc/pr20022a.s: Likewise. + * testsuite/ld-gc/pr20022b.s: Likewise. + * testsuite/ld-gc/gc.exp: Run PR ld/20022 tests. + * testsuite/ld-gc/pr19161.d: Also accept local __start_SECNAME + symbol. + * testsuite/ld-gc/start.d: Likewise. + * testsuite/ld-x86-64/lea1a.d: Updated. + * testsuite/ld-x86-64/lea1b.d: Updated. + * testsuite/ld-x86-64/lea1d.d: Updated. + * testsuite/ld-x86-64/lea1e.d: Likewise. + +2017-06-13 H.J. Lu + + * testsuite/ld-elf/sizeof.d: New file. + * testsuite/ld-elf/sizeof.s: Likewise. + * testsuite/ld-elf/startof.d: Likewise. + * testsuite/ld-elf/startof.s: Likewise. + +2017-06-13 Renlin Li + + * testsuite/ld-elf/shared.exp (build_tests): Add --no-dynamic-linker + option to rdynamic-1 and dynamic-1 tests. + +2017-06-09 H.J. Lu + + * testsuite/ld-x86-64/property-x86-3-x32.d: New file. + * testsuite/ld-x86-64/property-x86-4a-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-4b-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-3.d: Also pass + -defsym __64_bit__=1 to asssembler. + * testsuite/ld-x86-64/property-x86-4a.d: Likewise. + * testsuite/ld-x86-64/property-x86-4b.d: Likewise. + * testsuite/ld-x86-64/property-x86-3.s: Align to 4 bytes if + __64_bit__ isn't defined. + * testsuite/ld-x86-64/property-x86-4a.s: Likewise. + * testsuite/ld-x86-64/property-x86-4b.s: Likewise. + * testsuite/ld-x86-64/x86-64.exp: Run property-x86-3-x32, + property-x86-4a-x32 and property-x86-4b-x32. + 2017-06-08 Cupertino Miranda * testsuite/ld-arc/tls_ie-01.d: Changed expected result.