X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=ld%2FChangeLog;h=b089073dacd01bae5493dd3d66b9af514ac57a60;hb=348fe36b1d64f12c60e08f6313520b3191663063;hp=0a8842eebb4578b2077ba55fa9cc044bdb300315;hpb=ae4b1d73f97e0b2a5975b3c0039b12a7f64b793b;p=deliverable%2Fbinutils-gdb.git diff --git a/ld/ChangeLog b/ld/ChangeLog index 0a8842eebb..b089073dac 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,993 @@ +2020-06-20 Alan Modra + + * testsuite/lib/ld-lib.exp (default_ld_compile): Don't perror on + a compiler error. + (default_ld_assemble): Similarly for an assembler error. + (default_ld_nm): Similarly for an nm error. + (run_ld_link_tests): Report ld_assemble errors as a fail. + (check_as_cfi): Remove now unnecessary perror substitution. + * testsuite/ld-elf/exclude.exp: Report ld_nm error return as test + fails rather then unresolved. + * testsuite/ld-gc/gc.exp: Likewise. + * testsuite/ld-scripts/alignof.exp: Likewise. + * testsuite/ld-scripts/defined.exp: Likewise. + * testsuite/ld-scripts/script.exp: Likewise. + * testsuite/ld-scripts/sizeof.exp: Likewise. + * testsuite/ld-selective/selective.exp: Likewise. + * testsuite/ld-scripts/extern.exp: Likewise. Return on ld_link + failure. + * testsuite/ld-elfweak/elfweak.exp: Report compiler errors as + test unresolved. + * testsuite/ld-fastcall/fastcall.exp: Report assember errors as + test fails. + * testsuite/ld-i386/i386.exp (iamcu_tests): Likewise. + * testsuite/ld-ia64/line.exp: Likewise. + * testsuite/ld-mep/mep.exp: Likewise. + * testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise. + * testsuite/ld-nios2/nios2.exp: Likewise. + * testsuite/ld-scripts/alignof.exp: Likewise. + * testsuite/ld-x86-64/line.exp: Likewise. + * testsuite/ld-x86-64/x86-64.exp: Likewise. + * testsuite/ld-scripts/log2.exp: Formatting. + * testsuite/ld-tic6x/tic6x.exp: Report ld_link errors as a test fail. + +2020-06-20 Alan Modra + + * testsuite/ld-alpha/alpha.exp: Exclude *ecoff targets. + * testsuite/ld-elf/binutils.exp: Likewise. + * testsuite/ld-elf/tls.exp: Likewise. + * testsuite/ld-elf/tls_common.exp: Likewise. + * testsuite/ld-scripts/phdrs2.exp: Likewise. + +2020-06-20 Alan Modra + + * testsuite/ld-sh/sh.exp: Don't run relax tests for non-ELF. + Fail when ld_assemble fails. Use elseif to reduce indentation. + +2020-06-19 Alan Modra + + * testsuite/ld-elf/dynamic-1.rd: Accept st_other notations. + * testsuite/ld-elf/rdynamic-1.rd: Likewise. + * testsuite/ld-elf/pr9676.rd: Likewise. + * testsuite/ld-elf/pr9679.rd: Likewise. + * testsuite/ld-elfvers/vers30.dsym: Likewise. + * testsuite/ld-elfvers/vers31.dsym: Likewise. + * testsuite/ld-plugin/pr22983.1.d: Likewise. + * testsuite/ld-plugin/pr22983.2.d: Likewise. + * testsuite/ld-plugin/pr22983.3.d: Likewise. + * testsuite/ld-plugin/pr22983.4.d: Likewise. + * testsuite/ld-ifunc/ifunc.exp: Exclude alpha. + +2020-06-19 Alan Modra + + * emultempl/elf.em (gld${EMULATION_NAME}_handle_option): Omit + -z relro and -z norelro when target support for GNU_RELRO is lacking. + (gld${EMULATION_NAME}_before_parse): Ignore RELRO default too. + * emultempl/aarch64elf.em (gld${EMULATION_NAME}_before_parse): Ignore + RELRO default when target support for GNU_RELRO is lacking. + * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Likewise. + * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Likewise. + * emultempl/scoreelf.em (gld${EMULATION_NAME}_before_parse): Likewise. + * testsuite/config/default.exp (ld_elf_shared_opt): Don't set. + * testsuite/ld-elf/pr16322.d: xfail when no relro support. + * testsuite/ld-elf/pr22393-1a.d: Likewise. + * testsuite/ld-elf/pr22393-1b.d: Likewise. + * testsuite/ld-elf/shared.exp (pr20995-2.so, pr20995-2): Likewise. + * testsuite/lib/ld-lib.exp (run_ld_link_tests): Use check_relro_support + to decide whether to pass extra ld option "-z norelro". + +2020-06-17 H.J. Lu + + * testsuite/ld-elf/linux-x86.exp (check_pr25749a): Append "-w" + to cflags. + +2020-06-17 H.J. Lu + + * testsuite/ld-elf/linux-x86.exp: Require GCC 5 for Build + pr25749-1b (-pie -fPIE). + +2020-06-16 Alan Modra + + * testsuite/ld-elf/pr23428.c: Define _DEFAULT_SOURCE. + * testsuite/ld-elf/indirect1b.c: Replace asm with __asm__. + * testsuite/ld-elf/indirect2.c: Likewise. + * testsuite/ld-elf/indirect3b.c: Likewise. + * testsuite/ld-elf/indirect4b.c: Likewise. + * testsuite/ld-elf/pr14323-2.c: Likewise. + * testsuite/ld-elf/pr18720b.c: Likewise. + * testsuite/ld-elf/pr19553c.c: Likewise. + * testsuite/ld-elf/pr23428.c: Likewise. + * testsuite/ld-elfvers/vers27b.c: Likewise. + * testsuite/ld-elfvsb/common.c: Likewise. + * testsuite/ld-elfvsb/main.c: Likewise. + * testsuite/ld-elfvsb/sh1.c: Likewise. + * testsuite/ld-elfvsb/test.c: Likewise. + * testsuite/ld-pe/aligncomm-1.c: Likewise. + * testsuite/ld-pe/aligncomm-2.c: Likewise. + * testsuite/ld-pe/aligncomm-3.c: Likewise. + * testsuite/ld-pe/aligncomm-4.c: Likewise. + * testsuite/ld-plugin/pr23958.c: Likewise. + * testsuite/ld-size/size-1b.c: Likewise. + * testsuite/ld-size/size-2b.c: Likewise. + * testsuite/ld-size/size-3a.c: Likewise. + * testsuite/ld-size/size-3b.c: Likewise. + * testsuite/ld-size/size-3c.c: Likewise. + * testsuite/ld-size/size-4b.c: Likewise. + * testsuite/ld-size/size-5b.c: Likewise. + * testsuite/ld-size/size-6a.c: Likewise. + * testsuite/ld-size/size-7a.c: Likewise. + * testsuite/ld-size/size-8a.c: Likewise. + * testsuite/ld-size/size-9b.c: Likewise. + * testsuite/ld-size/size-10b.c: Likewise. + +2020-06-16 Alan Modra + + * emulparams/tic30aout.sh: Delete file. + * scripttempl/tic30aout.sc: Delete file. + * Makefile.am: Remove etic30aout.c from ALL_EMULATION_SOURCES and + delete dependency. + * configure.tgt: Delete tic30-*-*aout* entry. + * testsuite/ld-scripts/sane1.d: Delete tic30-*-aout mention. + * testsuite/ld-scripts/segment-start.d: Likewise. + * Makefile.in: Regenerate. + * po/BLD-POTFILES.in: Regenerate. + +2020-06-15 Max Filippov + + * emultempl/xtensaelf.em (XSHAL_ABI): Remove macro definition. + (XTHAL_ABI_UNDEFINED, XTHAL_ABI_WINDOWED, XTHAL_ABI_CALL0): New + macros. + (elf32xtensa_abi): New declaration. + (xt_config_info_unpack_and_check): Set elf32xtensa_abi if it is + undefined. Use xtensa_abi_choice instead of XSHAL_ABI to test + ABI tag consistency. + (xtensa_add_config_info): Use xtensa_abi_choice instead of + XSHAL_ABI to format ABI tag. + (PARSE_AND_LIST_PROLOGUE): Define OPTION_ABI_WINDOWED, + OPTION_ABI_CALL0 and declare elf32xtensa_abi. + (PARSE_AND_LIST_LONGOPTS): Add entries for --abi-windowed and + --abi-call0. + (PARSE_AND_LIST_OPTIONS): Add help text for --abi-windowed and + --abi-call0. + (PARSE_AND_LIST_ARGS_CASES): Add handlers for --abi-windowed and + --abi-call0. + * ld.texi: Add description for options --abi-windowed and + --abi-call0. + +2020-06-15 Roland McGrath + + * NEWS: Mention -z start-stop-visibility=... option for ELF. + * ld.texi (Options): Document -z start-stop-visibility=... option. + * ldmain.c (main): Initialize link_info.start_stop_visibility. + * emultempl/elf.em (gld${EMULATION_NAME}_handle_option): + Parse -z start-stop-visibility=... option. + +2020-06-15 Alan Modra + + * testsuite/ld-scripts/include.exp: Don't load ld-lib.exp. + * testsuite/ld-scripts/phdrs3.exp: Likewise. + * testsuite/ld-scripts/rgn-at.exp: Likewise. + * testsuite/ld-scripts/rgn-over.exp: Likewise. + * testsuite/ld-scripts/sort.exp: Likewise. + * testsuite/ld-discard/discard.exp: Likewise. Use is_elf_format. + +2020-06-15 Alan Modra + + PR 26103 + * testsuite/ld-linkonce/ref1.s, + * testsuite/ld-linkonce/ref2.s, + * testsuite/ld-linkonce/sym1.s, + * testsuite/ld-linkonce/sym2.s, + * testsuite/ld-linkonce/sym3.s: New test files. + * testsuite/ld-linkonce/linkonce.exp: Run tests for PE too. + Add pr26103 test. Remove unnecessary load_lib. + +2020-06-15 Alan Modra + + * testsuite/ld-linkonce/zeroeh_x.s: Rename from x.s. + * testsuite/ld-linkonce/zeroeh_y.s: Rename from y.s. + * testsuite/ld-linkonce/zeroehl32.d: Adjust for renaming. Support + big-endian output. Run for powerpc. + +2020-06-11 Alan Modra + + * testsuite/ld-plugin/lto.exp (lto_link_tests): Move lto-6, + pr12760, pr23818 and pr23958 tests to.. + (lto_link_elf_tests): ..here. + +2020-06-11 Nick Clifton + + * testsuite/ld-elf/pr26094-1b.c (main): Change return type to + int. + +2020-06-10 Alan Modra + + * testsuite/ld-elf/linux-x86.exp: Build tests when non-native. + (check_pr25749b): Add optional args. Set expected pass file + from args. Run -1b and -2a tests with passall.out. + * testsuite/ld-elf/passall.out: New file. + * testsuite/ld-elf/pr25749-1.c: Adjust to pass with older glibc. + * testsuite/ld-elf/pr25749-2.c: Likewise. + * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Use + regexp_diff to compare expected output from running binary. + +2020-06-10 H.J. Lu + + PR ld/26094 + * testsuite/ld-elf/pr26094-1.ver: New fike. + * testsuite/ld-elf/pr26094-1a.c: Likewise. + * testsuite/ld-elf/pr26094-1a.rd: Likewise. + * testsuite/ld-elf/pr26094-1b.c: Likewise. + * testsuite/ld-elf/pr26094-1b.rd: Likewise. + * testsuite/ld-elf/pr26094-1c.c: Likewise. + * testsuite/ld-elf/shared.exp: Run ld/26094 tests. + +2020-06-09 H.J. Lu + + PR ld/18801 + * testsuite/ld-i386/i386.exp: Run ifunc-textrel-1a, + ifunc-textrel-1b, ifunc-textrel-2a and ifunc-textrel-2b. + * testsuite/ld-x86-64/x86-64.exp: Likewise. + * testsuite/ld-i386/ifunc-textrel-1a.d: Likewise. + * testsuite/ld-i386/ifunc-textrel-1b.d: Likewise. + * testsuite/ld-i386/ifunc-textrel-2a.d: Likewise. + * testsuite/ld-i386/ifunc-textrel-2b.d: Likewise. + * testsuite/ld-x86-64/ifunc-textrel-1.s: Likewise. + * testsuite/ld-x86-64/ifunc-textrel-1a.d: Likewise. + * testsuite/ld-x86-64/ifunc-textrel-1b.d: Likewise. + * testsuite/ld-x86-64/ifunc-textrel-2.s: Likewise. + * testsuite/ld-x86-64/ifunc-textrel-2a.d: Likewise. + * testsuite/ld-x86-64/ifunc-textrel-2b.d: Likewise. + * testsuite/ld-i386/pr18801a.d: Expect warning for IFUNC + resolvers. + * testsuite/ld-i386/pr18801b.d: Likewise. + * estsuite/ld-x86-64/pr18801a.d: Likewise. + * estsuite/ld-x86-64/pr18801b.d: Likewise. + +2020-06-09 Alan Modra + + PR 26065 + * testsuite/ld-elf/shared.exp: Compile dl4main.c -fPIC. + (dl4e, dl4f): Expect dl4a.out. + * testsuite/ld-elf/dl4e.out: Delete. + +2020-06-07 H.J. Lu + + * testsuite/ld-elf/shared.exp: Pass $LFLAGS to PR ld/21703 + shared test. + +2020-06-07 H.J. Lu + + * testsuite/ld-elf/shared.exp: Xfail pr20995/pr20995-2 for + tic6x-*-*. + +2020-06-07 H.J. Lu + + * testsuite/ld-elf/pr11304.d: Skip tic6x-*-elf. + +2020-06-06 Alan Modra + + * testsuite/ld-elf/comm-data.exp: Don't xfail arm or bfin-linux. + +2020-06-06 Alan Modra + + * lexsup.c (ld_options): Accept -plugin and -plugin-opt when + !ENABLE_PLUGINS. + * testsuite/lib/ld-lib.exp (check_plugin_api_available): Adjust. + +2020-06-05 Nelson Chu + + * testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Rename to + attr-merge-priv-spec-01.d. + * testsuite/ld-riscv-elf/attr-merge-priv-spec-c.s: Set spec to 1.11. + * testsuite/ld-riscv-elf/attr-merge-priv-spec-d.s: Empty priv spec set. + * testsuite/ld-riscv-elf/attr-merge-priv-spec-02.d: New testcase. + * testsuite/ld-riscv-elf/attr-merge-priv-spec-03.d: Likewise. + * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise. + * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise. + * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise. + * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise. + * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise. + * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated. + +2020-06-05 Nelson Chu + + * testsuite/ld-riscv-elf/attr-merge-arch-01.d: The CSR isn't used, + so ignore the -mpriv-spec setting. + * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise. + * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise. + * testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise. + * testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise. + * testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise. + * testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise. + * testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise. + * testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise. + * testsuite/ld-riscv-elf/call-relax.d: Add -mno-arch-attr. + +2020-06-04 H.J. Lu + + PR ld/26080 + * testsuite/ld-elf/comm-data.exp: Remove copy_reloc. + * testsuite/ld-elf/comm-data2r.rd: Removed. + * testsuite/ld-elf/comm-data2r.sd: Likewise. + * testsuite/ld-elf/comm-data2r.xd: Likewise. + +2020-06-04 Alan Modra + + * testsuite/config/default.exp: Remove global directive outside + proc body. + * testsuite/ld-bootstrap/bootstrap.exp: Likewise. + * testsuite/ld-elf/compress.exp: Likewise. + * testsuite/ld-elf/elf.exp: Likewise. + * testsuite/ld-elf/exclude.exp: Likewise. + * testsuite/ld-elf/frame.exp: Likewise. + * testsuite/ld-elf/indirect.exp: Likewise. + * testsuite/ld-elf/linux-x86.exp: Likewise. + * testsuite/ld-elf/shared.exp: Likewise. + * testsuite/ld-elf/tls.exp: Likewise. + * testsuite/ld-elf/tls_common.exp: Likewise. + * testsuite/ld-elfcomm/elfcomm.exp: Likewise. + * testsuite/ld-elfweak/elfweak.exp: Likewise. + * testsuite/ld-frv/fdpic.exp: Likewise. + * testsuite/ld-frv/tls.exp: Likewise. + * testsuite/ld-gc/gc.exp: Likewise. + * testsuite/ld-i386/i386.exp: Likewise. + * testsuite/ld-i386/no-plt.exp: Likewise. + * testsuite/ld-ifunc/ifunc.exp: Likewise. + * testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise. + * testsuite/ld-nios2/nios2.exp: Likewise. + * testsuite/ld-plugin/lto.exp: Likewise. + * testsuite/ld-plugin/plugin.exp: Likewise. + * testsuite/ld-powerpc/export-class.exp: Likewise. + * testsuite/ld-scripts/align.exp: Likewise. + * testsuite/ld-scripts/crossref.exp: Likewise. + * testsuite/ld-scripts/defined.exp: Likewise. + * testsuite/ld-scripts/overlay-size.exp: Likewise. + * testsuite/ld-scripts/provide.exp: Likewise. + * testsuite/ld-scripts/weak.exp: Likewise. + * testsuite/ld-selective/selective.exp: Likewise. + * testsuite/ld-sh/rd-sh.exp: Likewise. + * testsuite/ld-size/size.exp: Likewise. + * testsuite/ld-srec/srec.exp: Likewise. + * testsuite/ld-x86-64/mpx.exp: Likewise. + * testsuite/ld-x86-64/no-plt.exp: Likewise. + * testsuite/ld-x86-64/x86-64.exp: Likewise. + +2020-06-04 Alan Modra + + * testsuite/ld-dynamic/export-dynamic-symbol-2.d: Match output for + mips-sgi-irix6. + * testsuite/ld-dynamic/export-dynamic-symbol-glob.d: Likewise. + * testsuite/ld-dynamic/export-dynamic-symbol-list-2.d: Likewise. + * testsuite/ld-dynamic/export-dynamic-symbol-list-glob.d: Likewise. + * testsuite/ld-dynamic/export-dynamic-symbol.exp: Exclude targets + with poor PIE support. + +2020-06-04 Alan Modra + + * testsuite/ld-plugin/lto.exp (pr12758.exe): Add NOPIE_LDFLAGS. + * testsuite/ld-unique/unique.exp: Add NOPIE_LDFLAGS to unique + executable and dynamic executable tests. + +2020-06-03 H.J. Lu + + * testsuite/config/default.exp (NOSANTIZE_CFLAGS): New. + * testsuite/ld-elf/linux-x86.exp: Add $NOSANTIZE_CFLAGS to + tests with run_ld_link_exec_tests. + * testsuite/ld-elf/shared.exp: Add $NOSANTIZE_CFLAGS to tests + with run_ld_link_tests. + * testsuite/ld-elf/tls.exp: Likewise. + * testsuite/ld-elfweak/elfweak.exp: Add $NOSANTIZE_CFLAGS to + tests with ld_link. + * testsuite/ld-gc/gc.exp: Add $NOSANTIZE_CFLAGS to cflags. + * testsuite/ld-plugin/lto.exp: Add $NOSANTIZE_CFLAGS to tests + with run_ld_link_tests.a + * testsuite/ld-plugin/plugin.exp: Append $NOSANTIZE_CFLAGS to + CFLAGS. + * testsuite/ld-selective/selective.exp: Add $NOSANTIZE_CFLAGS + to cflags and cxxflags. + * testsuite/ld-srec/srec.exp: Append $NOSANTIZE_CFLAGS to CC + and CXX. + * testsuite/ld-x86-64/plt-main-ibt-x32.dd: Updated for + -fsanitize=undefined. + * testsuite/ld-x86-64/plt-main-ibt.dd: Likewise. + * testsuite/ld-x86-64/x86-64.exp: Add $NOSANTIZE_CFLAGS to + tests with run_cc_link_tests and run_ld_link_tests. + +2020-06-03 Fangrui Song + H.J. Lu + + PR ld/25910 + * NEWS: Mention --export-dynamic-symbol[-list]. + * ld.texi: Document --export-dynamic-symbol[-list]. + * ldgram.y: Pass current_dynamic_list_p to + lang_append_dynamic_list. + * ldlang.c (current_dynamic_list_p): New. + (ang_append_dynamic_list): Updated to take a pointer to + struct bfd_elf_dynamic_list * argument instead of using + link_info.dynamic_list. + (lang_append_dynamic_list_cpp_typeinfo): Pass + &link_info.dynamic_list to ang_append_dynamic_list. + (lang_append_dynamic_list_cpp_new): Likewise. + * ldlang.h (current_dynamic_list_p): New. + (lang_append_dynamic_list): Add a pointer to + struct bfd_elf_dynamic_list * argument. + * ldlex.h (option_values): Add OPTION_EXPORT_DYNAMIC_SYMBOL and + OPTION_EXPORT_DYNAMIC_SYMBOL_LIST. + * lexsup.c (ld_options): Add entries for + OPTION_EXPORT_DYNAMIC_SYMBOL and + OPTION_EXPORT_DYNAMIC_SYMBOL_LIST. + (parse_args): Handle --export-dynamic-symbol and + --export-dynamic-symbol-list. + * testsuite/ld-dynamic/export-dynamic-symbol-1.d: New. + * testsuite/ld-dynamic/export-dynamic-symbol-2.d: New. + * testsuite/ld-dynamic/export-dynamic-symbol-glob.d: New. + * testsuite/ld-dynamic/export-dynamic-symbol-list-1.d: New. + * testsuite/ld-dynamic/export-dynamic-symbol-list-2.d: New. + * testsuite/ld-dynamic/export-dynamic-symbol-list-glob.d: New. + * testsuite/ld-dynamic/export-dynamic-symbol.exp: New. + * testsuite/ld-dynamic/export-dynamic-symbol.s: New. + * testsuite/ld-dynamic/foo-bar.list: New. + * testsuite/ld-dynamic/foo.list: New. + * testsuite/ld-dynamic/foo.s: New. + * testsuite/ld-dynamic/fstar.list: New. + * testsuite/ld-elf/dlempty.list: New. + * testsuite/ld-elf/shared.exp: Add tests for + --export-dynamic-symbol and --export-dynamic-symbol-list. + +2020-06-03 Jan Beulich + + * testsuite/ld-elf/linux-x86.exp: Make copied source files + writeable. + +2020-05-28 Nick Clifton + + PR 26047 + * ldelf.c (ldelf_after_open): Fail if attempting to link one + executable into another. Ensure that the test is made for all + forms of linking. + +2020-05-28 H.J. Lu + + * NEWS: Mention --enable-textrel-check=yes is default for + Linux/x86 targets. + * configure.tgt (ac_default_ld_textrel_check): Set to yes if + unset for Linux/x86 targets. + +2020-05-28 H.J. Lu + + PR ld/20824 + * NEWS: Mention --enable-textrel-check=[no|yes|warning|error]. + * configure.ac: Add --enable-textrel-check=[no|yes|warning|error]. + (DEFAULT_LD_TEXTREL_CHECK): New AC_DEFINE_UNQUOTED. + (DEFAULT_LD_TEXTREL_CHECK_WARNING): Likewise. + * ldmain.c (main): Initialize link_info.textrel_check to + DEFAULT_LD_TEXTREL_CHECK. + * lexsup.c (ld_options): Check DEFAULT_LD_TEXTREL_CHECK_WARNING. + * config.in: Regenerated. + * configure: Likewise. + +2020-05-28 Nick Clifton + + * lexsup.c (parse_args): Generate an error if a name is not + provided to the -Map option. + (ld_options): Mention that the -Map option supports a directory + name as an argument. + * NEWS: Remove mention of support for an empty string as an + argument to -Map. + * ld.texi: Likewise. + +2020-05-27 Hans-Peter Nilsson + + PR ld/22909 + * testsuite/ld-elf/pr19539.d: Don't xfail for cris*-*-*. + +2020-05-27 Rasmus Villemoes + Nick Clifton + + * lexsup.c (parse_args): If the map filename is defined but empty + create a name based upon the output file name. If the name is + defined but refers to a directory create a file inside the + directory based on the output file name. + * ld.texi: Document the new feature. + * testsuite/ld-script/map-address.exp: Add test of new feature. + * NEWS: Mention the new feature. + +2020-05-27 H.J. Lu + + PR ld/22909 + * NEWS: Mention --warn-textrel. + * ld.texi: Update -z text/notext/textoff. Add --warn-textrel. + Remove --warn-shared-textrel. + * ldlex.h (option_values): Rename OPTION_WARN_SHARED_TEXTREL to + OPTION_WARN_TEXTREL. + * lexsup.c (ld_options): Add --warn-textrel. Obsolete + --warn-shared-textrel. + (parse_args): Updated. + (elf_shlib_list_options): Check link_info.textrel_check. + * emultempl/elf.em: Updated. + * testsuite/ld-elf/pr19539.d: Replace -z notext with + --warn-textrel. Expect a warning. + * testsuite/ld-i386/warn1.d: Update expected warning. + +2020-05-26 H.J. Lu + + * testsuite/ld-ifunc/ifunc-23a-x86.d: Skip *-*-lynxos *-*-nto*. + * testsuite/ld-ifunc/ifunc-24a-x86.d: Likewise. + * testsuite/ld-ifunc/ifunc-25a-x86.d: Likewise. + +2020-05-25 H.J. Lu + + * testsuite/ld-x86-64/x86-64.exp: Pass -z notext to linker. + +2020-05-25 H.J. Lu + + * testsuite/ld-elf/eh6.d: Pass -z notext to linker. + * testsuite/ld-elf/ehdr_start-shared.d: Likewise. + * testsuite/ld-elf/pr19539.d: Likewise. + * testsuite/ld-elfvers/vers.exp: Likewise. + * testsuite/ld-elfvsb/elfvsb.exp: Likewise. + * testsuite/ld-i386/i386.exp: Likewise. + * testsuite/ld-i386/nogot1.d: Likewise. + * testsuite/ld-i386/pr19539.d: Likewise. + * testsuite/ld-i386/pr19636-2a.d: Likewise. + * testsuite/ld-i386/pr19636-2b.d: Likewise. + * testsuite/ld-i386/pr19636-2c.d: Likewise. + * testsuite/ld-i386/pr19636-2d.d: Likewise. + * testsuite/ld-i386/pr19636-2e.d: Likewise. + * testsuite/ld-i386/pr19636-3d.d: Likewise. + * testsuite/ld-i386/pr19636-3e.d: Likewise. + * testsuite/ld-i386/pr19939b.d: Likewise. + * testsuite/ld-i386/undefweaka.d: Likewise. + * testsuite/ld-i386/undefweakb.d: Likewise. + * testsuite/ld-shared/shared.exp: Likewise. + * testsuite/ld-size/size.exp: Likewise. + * testsuite/ld-unique/unique.exp: Likewise. + * testsuite/ld-x86-64/pie1.d: Likewise. + * testsuite/ld-x86-64/pr19539a.d: Likewise. + * testsuite/ld-x86-64/pr19539b.d: Likewise. + * testsuite/ld-x86-64/pr19636-1d.d: Likewise. + * testsuite/ld-x86-64/pr19636-1e.d: Likewise. + * testsuite/ld-x86-64/pr19807-1a.d: Likewise. + * testsuite/ld-x86-64/pr19807-1b.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/pr19939b.d: Likewise. + * testsuite/ld-x86-64/x86-64.exp: Likewise. + +2020-05-24 Fangrui Song + + PR ld/26018 + * lexsup.c (parse_args): Simplify. + * testsuite/ld-elf/dl4e.out: New. + * testsuite/ld-elf/shared.exp: Updated for PR ld/26018 tests. + +2020-05-23 H.J. Lu + + PR ld/26018 + * testsuite/ld-i386/i386.exp: Add a -Bsymbolic-functions test. + * testsuite/ld-x86-64/x86-64.exp: Likewise. + * testsuite/ld-i386/pr26018.d: New file. + * testsuite/ld-x86-64/pr26018.d: Likewise. + * testsuite/ld-x86-64/pr26018.s: Likewise. + +2020-05-21 Alan Modra + + * deffilep.y: Replace "if (x) free (x)" with "free (x)" thoughout. + * emultempl/elf.em: Likewise. + * emultempl/msp430.em: Likewise. + * emultempl/pe.em: Likewise. + * emultempl/pep.em: Likewise. + * emultempl/ppc64elf.em: Likewise. + * emultempl/xtensaelf.em: Likewise. + * ldelf.c: Likewise. + * ldfile.c: Likewise. + * ldmain.c: Likewise. + * ldmisc.c: Likewise. + * lexsup.c: Likewise. + * pe-dll.c: Likewise. + +2020-05-20 Nelson Chu + + * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Updated + priv attributes according to the -mpriv-spec option. + * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise. + * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise. + * testsuite/ld-riscv-elf/attr-merge-priv-spec-a.s: Likewise. + * testsuite/ld-riscv-elf/attr-merge-priv-spec-b.s: Likewise. + * testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Likewise. + * testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise. + * testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise. + * testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise. + * testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise. + * testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise. + * testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise. + +2020-05-20 Alan Modra + + PR 25993 + * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't copy + other_bfd_filename for bfd_set_filename, and test result of + bfd_set_filename call. Don't create a new is->filename, simply + copy from bfd filename. Free new_name after bfd_set_filename. + * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise. + +2020-05-19 Siddhesh Poyarekar + + * testsuite/ld-aarch64/aarch64-elf.exp: New test + emit-relocs-560. + * testsuite/ld-aarch64/emit-relocs-560.d: New file. + * testsuite/ld-aarch64/emit-relocs-560.s: New file. + +2020-05-19 Alan Modra + + * emultempl/beos.em (sort_by_file_name): Use bfd_get_filename + rather than accessing bfd->filename directly. + * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise. + * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise. + * emultempl/spuelf.em (embedded_spu_file): Likewise. + * ldlang.c (input_statement_is_archive_path, wild_sort), + (check_excluded_libs): Likewise. + * ldmain.c (add_archive_element): Likewise. + * ldmisc.c (vfinfo): Likewise. + * pe-dll.c (auto_export, generate_edata, pe_create_import_fixup), + (pe_dll_generate_implib, pe_process_import_defs): Likewise. + * plugin.c (plugin_object_p): Likewise. + +2020-05-18 Douglas B Rupp + + * ldemul.h (ldemul_print_symbol): New. + (ld_emulation_xfer_type) + + * ldmain.c (add_archive_element): Fix s/claimi/claim/ typo + in info message. + +2020-05-18 Nick Clifton + + * po/sv.po: Update Swedish translation. + +2020-05-18 Nick Clifton + + PR 25993 + * emultempl/pe.em (_after_open): Check for duplicate filename + pointers before renaming the dll. + * emultempl/pep.em (_after_open): Likewise. + +2020-05-13 Nick Clifton + + PR 25979 + * lexsup.c (elf_shlib_list_options): Include the default value for + the hash style in the output text. + +2020-05-11 Alan Modra + + * testsuite/ld-powerpc/pcrelopt.s: Add lxvp and stxvp. + * testsuite/ld-powerpc/pcrelopt.d: Update. + +2020-05-11 Alan Modra + + * testsuite/ld-powerpc/callstub-1.d: Use -mpower10/-Mpower10 in + place of -mfuture/-Mfuture. + * testsuite/ld-powerpc/notoc2.d: Likewise. + * testsuite/ld-powerpc/powerpc.exp: Likewise. + * testsuite/ld-powerpc/tlsgd.d: Likewise. + * testsuite/ld-powerpc/tlsie.d: Likewise. + * testsuite/ld-powerpc/tlsld.d: Likewise. + +2020-05-11 Nick Clifton + + * po/es.po: Updated Spanish translation. + +2020-05-01 Wilco Dijkstra + + PR ld/25665 + * testsuite/ld-aarch64/farcall-group.s: New large group test. + * testsuite/ld-aarch64/farcall-group.d: New test driver. + * testsuite/ld-aarch64/aarch64-elf.exp: Run the new test. + +2020-05-01 Alan Modra + + PR 25882 + * ldlang.c (lang_check): Call bfd_merge_private_bfd_data for + shared libraries. + +2020-05-01 Alan Modra + + * po/BLD-POTFILES.in: Regenerate. + +2020-04-30 Alex Coplan + + * testsuite/ld-aarch64/erratum843419_tls_ie.d: Use udf in disassembly. + * testsuite/ld-aarch64/farcall-b-section.d: Likewise. + * testsuite/ld-aarch64/farcall-back.d: Likewise. + * testsuite/ld-aarch64/farcall-bl-section.d: Likewise. + +2020-04-30 Nick Clifton + + * testsuite/ld-elf/compress1c.d: XFAIL if thet target linker does + not support the -shared command line option. + * /ld-elf/compressed1c.d: Likewise. + * /ld-elf/compressed1e.d: Likewise. + * /ld-elf/dynamic1.d: Likewise. + * /ld-elf/dynsym1.d: Likewise. + * /ld-elf/ehdr_start-shared.d: Likewise. + * /ld-elf/exclude3b.d: Likewise. + * /ld-elf/global1.d: Likewise. + * /ld-elf/hash.d: Likewise. + * /ld-elf/local1.d: Likewise. + * /ld-elf/mbind1b.d: Likewise. + * /ld-elf/now-1.d: Likewise. + * /ld-elf/now-2.d: Likewise. + * /ld-elf/now-3.d: Likewise. + * /ld-elf/now-4.d: Likewise. + * /ld-elf/pr12975.d: Likewise. + * /ld-elf/pr13177.d: Likewise. + * /ld-elf/pr13195.d: Likewise. + * /ld-elf/pr16322.d: Likewise. + * /ld-elf/pr16498a.d: Likewise. + * /ld-elf/pr16498b.d: Likewise. + * /ld-elf/pr17615.d: Likewise. + * /ld-elf/pr19162.d: Likewise. + * /ld-elf/pr19698.d: Likewise. + * /ld-elf/pr20513c.d: Likewise. + * /ld-elf/pr20513d.d: Likewise. + * /ld-elf/pr21389a.d: Likewise. + * /ld-elf/pr21389b.d: Likewise. + * /ld-elf/pr21389c.d: Likewise. + * /ld-elf/pr21562a.d: Likewise. + * /ld-elf/pr21562b.d: Likewise. + * /ld-elf/pr21562c.d: Likewise. + * /ld-elf/pr21562d.d: Likewise. + * /ld-elf/pr21562e.d: Likewise. + * /ld-elf/pr21562f.d: Likewise. + * /ld-elf/pr21562g.d: Likewise. + * /ld-elf/pr21562h.d: Likewise. + * /ld-elf/pr21562i.d: Likewise. + * /ld-elf/pr21562j.d: Likewise. + * /ld-elf/pr21562k.d: Likewise. + * /ld-elf/pr21562l.d: Likewise. + * /ld-elf/pr21562m.d: Likewise. + * /ld-elf/pr21562n.d: Likewise. + * /ld-elf/pr21903a.d: Likewise. + * /ld-elf/pr21903b.d: Likewise. + * /ld-elf/pr22269b.d: Likewise. + * /ld-elf/pr22393-1a.d: Likewise. + * /ld-elf/pr22393-1b.d: Likewise. + * /ld-elf/pr23658-1c.d: Likewise. + * /ld-elf/pr25708.d: Likewise. + * /ld-elf/rpath-1.d: Likewise. + * /ld-elf/rpath-2.d: Likewise. + * /ld-elf/runpath-1.d: Likewise. + * /ld-elf/runpath-2.d: Likewise. + * /ld-elf/sizeofb.d: Likewise. + * /ld-elf/startofb.d: Likewise. + * /ld-elf/strtab.d: Likewise. + * /ld-elf/textaddr2.d: Likewise. + * /ld-elf/textaddr5.d: Likewise. + * /ld-elf/textaddr6.d: Likewise. + * /ld-elf/unknown2.d: Likewise. + * /ld-undefined/entry-3.d: Likewise. + * /ld-undefined/entry-4.d: Likewise. + * /ld-elf/mbind1c.d: XFAIL if the target linker does not support + the -pie option. + * /ld-elf/pie.d: Likewise. + * /ld-elf/pr19539.d: Likewise. + * /ld-elf/pr21903d.d: Likewise. + * /ld-elf/pr22269a.d: Likewise. + * /ld-elf/pr22393-1c.d: Likewise. + * /ld-elf/pr22393-1d.d: Likewise. + * /ld-elf/pr22423.d: Likewise. + * /ld-elf/loadaddr1.d: Expect to fail on the rx-linux target. + * /ld-elf/loadaddr2.d: Likewise. + * /ld-elf/pr22393-1e.d: Likewise. + * /ld-elf/pr22393-1f.d: Likewise. + * /ld-elf/textaddr1.d: Likewise. + * /ld-elf/textaddr4.d: Likewise. + +2020-04-30 Yoshinori Sato + + * emulparams/elf32rx_linux.sh: New rx-linux emulation. + * emultempl/rxlinux.em: New. + * configure.tgt: Add rx-linux. + * Makefile.am: Add eelf32rx_linux.c + * Makefile.in: Regenerate. + +2020-04-29 Max Filippov + + * testsuite/ld-xtensa/relax-diff1.d: New test definition. + * testsuite/ld-xtensa/relax-diff1.s: New test source. + * testsuite/ld-xtensa/relax-ndiff.d: New test definition. + * testsuite/ld-xtensa/relax-ndiff.s: New test source. + * testsuite/ld-xtensa/xtensa.exp: (relax-diff1) + (relax-ndiff): New tests. + +2020-04-29 Stephen Casner + + PR 25829 + * testsuite/ld-scripts/default-script.exp: Add --image-base=0 to + LDFLAGS for targets *-*-mingw64 x86_64-*-cygwin. + * testsuite/ld-scripts/default-script1.d: No longer have to skip + test for those targets. + * testsuite/ld-scripts/default-script2.d: Likewise. + * testsuite/ld-scripts/default-script3.d: Likewise. + * testsuite/ld-scripts/default-script4.d: Likewise. + +2020-04-27 Tamar Christina + + * pe-dll.c (pe_detail_list): Add pe-bigobj-i386. + +2020-04-22 Max Filippov + + PR ld/25861 + * testsuite/ld-xtensa/relax-loc.d: New test definition. + * testsuite/ld-xtensa/relax-loc.s: New test source. + * testsuite/ld-xtensa/xtensa.exp (relax-loc): New test. + +2020-04-22 Fangrui Song + + PR ld/25806 + * ldlang.h (struct lang_input_statement_struct): Add extra_search_path. + * ldlang.c (current_input_file): New. + (ldirname): New. + (new_afile): Add from_filename parameter. Set extra_search_path. + (lang_add_input_file): Pass current_input_file to new_afile. + (load_symbols): Set current_input_file. + * ldfile.c (ldfile_open_file): If extra_search_path has been set + then scan it for the file that needs to be opened. + * ld.texi: Document the new behaviour. + * NEWS: Mention the new feature. + +2020-04-22 Alan Modra + + * testsuite/ld-scripts/default-script1.d: Correct mingw skip. + * testsuite/ld-scripts/default-script2.d: Likewise. + * testsuite/ld-scripts/default-script3.d: Likewise. + * testsuite/ld-scripts/default-script4.d: Likewise. + +2020-04-21 Stephen Casner + + PR 25829 + * testsuite/ld-scripts/script.exp (check_script) + (extract_symbol_test): Make test addresses fit in 16 bits. + * testsuite/ld-scripts/memory.t: Likewise. + * testsuite/ld-scripts/memory_sym.t (TXT_LENGTH): Likewise. + * testsuite/ld-scripts/default-script.t (_START): Likewise. + * testsuite/ld-scripts/default-script1.d: Likewise. + * testsuite/ld-scripts/default-script2.d: Likewise. + * testsuite/ld-scripts/default-script3.d: Likewise. + * testsuite/ld-scripts/default-script4.d: Likewise. + * testsuite/ld-scripts/empty-address-1.t: Likewise. + * testsuite/ld-scripts/empty-address-1.d: Likewise. + * testsuite/ld-scripts/empty-address-2a.d: Likewise. + * testsuite/ld-scripts/empty-address-2b.d: Likewise. + * testsuite/ld-misc/start.s: .long -> .dc.a to allow relocation to + fit target address size. + * testsuite/ld-scripts/empty-address-1.s: Likewise. + * testsuite/ld-scripts/empty-address-2.s: Likewise. + +2020-04-21 H.J. Lu + + PR ld/25849 + * ldelfgen.c (ldelf_map_segments): Call + elf_backend_strip_zero_sized_dynamic_sections. + * testsuite/ld-alpha/tlsbinr.rd: Updated. + +2020-04-20 Alan Modra + + * testsuite/ld-powerpc/tlsopt5.s: Rename foo to aaaaa. + * testsuite/ld-powerpc/tlsopt5.d: Adjust to suit. + * testsuite/ld-powerpc/tlsopt6.d: Likewise. + +2020-04-18 Rainer Orth + + * testsuite/ld-elf/warn1.d: Don't xfail on 64-bit Solaris/SPARC. + * testsuite/ld-elf/warn2.d: Likewise. + +2020-04-18 H.J. Lu + + * testsuite/ld-elf/elf.exp (ASFLAGS): Add "--defsym NO_SET=1" for + alpha target. + * testsuite/ld-elf/pr19789.s: Use "=" if NO_SET is defined. + +2020-04-16 Stephen Casner + + PR 18963 + * testsuite/ld-scripts/pr18963.t: Reduce section sizes to fit in + 16-bit address space. + * testsuite/ld-scripts/pr18963.d: Likewise. + +2020-04-17 Juan Manuel Guerrero + Jan W. Jagersma + + * scripttempl/i386go32.sc: Provide symbol _environ. Link in + .ctors and .dtors. Discard LTO sections. + +2020-04-17 Nick Clifton + + * testsuite/config/default.exp: If not already set then create the + CCC_OVERRIDE_OPTIONS environment variable to help when running the + testsuite with clang. + * testsuite/ld-elf/pr22269-1.c: Add a missing return statement. + * testsuite/ld-elfvers/vers.exp: Add checks to detect if files + were built before attempting to copy them. + +2020-04-15 Fangrui Song + + PR binutils/24613 + * lexsup.c (parse_args): Change RM_GENERATE_WARNING and + RM_GENERATE_ERROR to RM_DIAGNOSE. + * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Change + RM_GENERATE_ERROR to RM_DIAGNOSE. + * emultempl/elf.em (ld_${EMULATION_NAME}_emulation): Likewise. + +2020-04-14 Stephen Casner + + PR ld/25677 + * emulparams/pdp11.sh (SCRIPT_NAME): Change to pdp11. + (EXTRA_EM_FILE): New, add emulation file pdp11. + * scripttempl/pdp11.sc: New, derived from aout.sc without + irrelevant input sections. + * emultempl/pdp11.em (_add_options, _handle_option) + (_list_options): New. Add options -z, --imagic for pdp11-aout. + (_before_parse): Make --omagic be default instead of --nmagic. + (_get_script): Modify special-case linker script for --imagic. + * lexsup.c (parse_args): Explictly set config.text_read_only for -n. + * ld.texi (Options): Add documentation of PDP11-specific options. + (Options): Fix unrelated typo to --no-compact-branches. + * gen-doc.texi: @set PDP11. + * testsuite/ld-pdp11/pdp11.exp: New, start pdp11 testing. + * testsuite/ld-pdp11/sections.s: New, source for options tests. + * testsuite/ld-pdp11/imagic.d: New, test --imagic format. + * testsuite/ld-pdp11/imagicz.d: New, test -z (imagic) format. + * testsuite/ld-pdp11/nmagic.d: New, test --nmagic format. + * testsuite/ld-pdp11/omagic.d: New, test --omagic format. + +2020-04-14 H.J. Lu + + PR binutils/25707 + * testsuite/ld-arm/armthumb-lib.sym: Updated. + * testsuite/ld-arm/farcall-mixed-app.sym: Likewise. + * testsuite/ld-arm/farcall-mixed-app2.sym: Likewise. + * testsuite/ld-arm/fdpic-main-m.sym: Likewise. + * testsuite/ld-arm/fdpic-main.sym: Likewise. + * testsuite/ld-arm/fdpic-shared-m.sym: Likewise. + * testsuite/ld-arm/fdpic-shared.sym: Likewise. + * testsuite/ld-arm/mixed-app.sym: Likewise. + * testsuite/ld-arm/mixed-lib.sym: Likewise. + * testsuite/ld-arm/preempt-app.sym: Likewise. + * testsuite/ld-elf/hash.d: Likewise. + * testsuite/ld-elf/pr13195.d: Likewise. + * testsuite/ld-elfvsb/hidden2.d: Likewise. + * testsuite/ld-mips-elf/hash2.d: Likewise. + +2020-04-10 Rainer Orth + + * testsuite/ld-shared/shared.exp: Remove dangling comments. + xfail shared non PIC tests on Solaris. + 2020-04-09 Rainer Orth * testsuite/ld-elf/shared.exp: Add -Av9 to AFLAGS_PIC on sparc*-*-*.