X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=ld%2FChangeLog;h=fb831d997bb1a3b04b90bac1e2de8776c047a621;hb=9ed0136bff648c2f32d7462d3ab9205b61778837;hp=4f57be86dedce20a61daa23681719f89e06a7c1f;hpb=3f2e9699234ca31d083bc93ea6e03903f10baeaf;p=binutils-gdb.git diff --git a/ld/ChangeLog b/ld/ChangeLog index 4f57be86ded..fb831d997bb 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,1174 @@ +2020-11-26 Alan Modra + + PR 26936 + * testsuite/ld-elf/pr26936.d: Pass --gen-debug to gas rather than -g. + Only run when -shared -z options are supported. + * testsuite/ld-elf/pr26936b.s: Define more entry symbols. + +2020-11-25 H.J. Lu + + PR ld/26936 + * testsuite/ld-elf/pr26936.d: New file. + * testsuite/ld-elf/pr26936a.s: Likewise. + * testsuite/ld-elf/pr26936b.s: Likewise. + * testsuite/ld-elf/pr26936c.s: Likewise. + +2020-11-25 Alan Modra + + * ldlang.c (lang_output_section_statement_lookup): Change "create" + parameter to a tristate, if 2 then always create a new output + section statement. Update all callers, with + lang_enter_output_section_statement using "2". + (map_input_to_output_sections): Don't ignore SPECIAL constraint + here. + * ldlang.h (lang_output_section_statement_type): Update prototype. + (lang_output_section_find): Update. + +2020-11-24 H.J. Lu + + PR gold/26939 + * testsuite/ld-x86-64/pr26939-x32.d: New file. + * testsuite/ld-x86-64/pr26939.d: Likewise. + * testsuite/ld-x86-64/pr26939.s: Likewise. + * testsuite/ld-x86-64/x86-64.exp: Run PR gold/26939 tests. + +2020-11-23 H.J. Lu + + PR ld/26918 + * testsuite/ld-s390/pr26918-1.d: New file. + * testsuite/ld-s390/pr26918-1.s: Likewise. + * testsuite/ld-s390/s390.exp: Run all *.d tests. + +2020-11-23 Shahab Vahedi + + * testsuite/ld-arc/tls_ie-01.d: Use a more general pattern. + +2020-11-21 Nelson Chu + + * emultempl/riscvelf.em (riscv_elf_before_allocation): Change + link_info.relax_pass from 3 to 4. + * testsuite/ld-riscv-elf/pcgp-relax.d: New testcase. + * testsuite/ld-riscv-elf/pcgp-relax.s: Likewise. + * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated. + +2020-11-20 Nick Alcock + + * testsuite/ld-ctf/data-func-conflicted.d: Shrink the expected + size of the type section now that function types are being + deduplicated properly. + +2020-11-20 Nick Alcock + + * testsuite/ld-ctf/array.d: Adjust for nonzero flags word and + public symbols in the data section rather than variables: use + sysv hash style to keep test results the same on non-GNU targets. + * testsuite/ld-ctf/diag-cttname-null.d: Likewise. + * testsuite/ld-ctf/diag-cuname.d: Likewise. + * testsuite/ld-ctf/diag-parlabel.d: Likewise. + * testsuite/ld-ctf/slice.d: Likewise. + * testsuite/ld-ctf/function.d: Likewise, but in the function section. + * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Adjust for nonzero + flags word. + * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise. + * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise. + * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise. + * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise. + * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise. + * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise. + * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise. + * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise. + * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise. + * testsuite/ld-ctf/cycle-1.d: Likewise. + * testsuite/ld-ctf/cycle-2.A.d: Likewise. + * testsuite/ld-ctf/cycle-2.B.d: Likewise. + * testsuite/ld-ctf/cycle-2.C.d: Likewise. + * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise. + * testsuite/ld-ctf/super-sub-cycles.d: Likewise. + * testsuite/ld-ctf/data-func-1.c: New test. + * testsuite/ld-ctf/data-func-2.c: Likewise. + * testsuite/ld-ctf/data-func-conflicted.d: Likewise. + +2020-11-20 Nick Alcock + + * ldelfgen.c (struct ctf_strsym_iter_cb_arg): Rename to... + (struct ctf_strtab_iter_cb_arg): ... this, changing fields: + : Remove. + : Remove. + : Rename to... + : ... this. + (ldelf_ctf_strtab_iter_cb): Adjust. + (ldelf_ctf_symbols_iter_cb): Remove. + (ldelf_new_dynsym_for_ctf): New, tell libctf about a single + symbol. + (ldelf_examine_strtab_for_ctf): Rename to... + (ldelf_acquire_strings_for_ctf): ... this, only doing the strtab + portion and not symbols. + * ldelfgen.h: Adjust declarations accordingly. + * ldemul.c (ldemul_examine_strtab_for_ctf): Rename to... + (ldemul_acquire_strings_for_ctf): ... this. + (ldemul_new_dynsym_for_ctf): New. + * ldemul.h: Adjust declarations accordingly. + * ldlang.c (ldlang_ctf_apply_strsym): Rename to... + (ldlang_ctf_acquire_strings): ... this. + (ldlang_ctf_new_dynsym): New. + (lang_write_ctf): Call ldemul_new_dynsym_for_ctf with NULL to do + the actual symbol shuffle. + * ldlang.h (struct elf_strtab_hash): Adjust accordingly. + * ldmain.c (bfd_link_callbacks): Wire up new/renamed callbacks. + + * emultempl/aix.em: Adjust for emulation changes: + ldemul_examine_strtab_for_ctf renamed to + ldemul_acquire_strings_for_ctf, new ldemul_new_dynsym_for_ctf. + * emultempl/armcoff.em: Likewise. + * emultempl/beos.em: Likewise. + * emultempl/elf.em: Likewise. + * emultempl/elf-generic.em: Likewise. + * emultempl/linux.em: Likewise. + * emultempl/msp430.em: Likewise. + * emultempl/pe.em: Likewise. + * emultempl/pep.em: Likewise. + * emultempl/ticoff.em: Likewise. + * emultempl/vanilla.em: Likewise. + +2020-11-20 Nick Alcock + + * ldlang.c (ctf_output): This is a ctf_dict_t now. + (lang_ctf_errs_warnings): Rename ctf_file_t to ctf_dict_t. + (ldlang_open_ctf): Adjust comment. + (lang_merge_ctf): Use ctf_dict_close, not ctf_file_close. + * ldelfgen.h (ldelf_examine_strtab_for_ctf): Rename ctf_file_t to + ctf_dict_t. Change opaque declaration accordingly. + * ldelfgen.c (ldelf_examine_strtab_for_ctf): Adjust. + * ldemul.h (examine_strtab_for_ctf): Likewise. + (ldemul_examine_strtab_for_ctf): Likewise. + * ldeuml.c (ldemul_examine_strtab_for_ctf): Likewise. + +2020-11-20 Jozef Lawrynowicz + + * testsuite/ld-elf/retain3.s: Move symbolic reference into writeable + .data section from read-only .text section. + * testsuite/ld-elf/retain5.d: Don't pass --print-gc-sections for test + that doesn't require it. + * testsuite/ld-elf/retain6a.d: Adjust test. + * testsuite/ld-elf/retain6main.s: Move symbolic reference into writeable + .data section from read-only .text section. + +2020-11-18 Alan Modra + + * testsuite/ld-powerpc/group1.d, + * testsuite/ld-powerpc/group1.s, + * testsuite/ld-powerpc/group1.sym, + * testsuite/ld-powerpc/group2.d, + * testsuite/ld-powerpc/group2.s, + * testsuite/ld-powerpc/group2.sym, + * testsuite/ld-powerpc/group3.s, + * testsuite/ld-powerpc/group3.sym: New test files. + * testsuite/ld-powerpc/powerpc.exp: Run new tests. + +2020-11-18 Jozef Lawrynowicz + + * NEWS: Announce support for SHF_GNU_RETAIN. + * ld.texi (garbage collection): Document SHF_GNU_RETAIN. + (Output Section Discarding): Likewise. + * testsuite/ld-elf/elf.exp: Run new tests. + * testsuite/ld-elf/retain1.s: New test. + * testsuite/ld-elf/retain1a.d: New test. + * testsuite/ld-elf/retain1b.d: New test. + * testsuite/ld-elf/retain2.d: New test. + * testsuite/ld-elf/retain2.ld: New test. + * testsuite/ld-elf/retain2.map: New test. + * testsuite/ld-elf/retain3.d: New test. + * testsuite/ld-elf/retain3.s: New test. + * testsuite/ld-elf/retain4.d: New test. + * testsuite/ld-elf/retain4.s: New test. + * testsuite/ld-elf/retain5.d: New test. + * testsuite/ld-elf/retain5.map: New test. + * testsuite/ld-elf/retain5lib.s: New test. + * testsuite/ld-elf/retain5main.s: New test. + * testsuite/ld-elf/retain6a.d: New test. + * testsuite/ld-elf/retain6b.d: New test. + * testsuite/ld-elf/retain6lib.s: New test. + * testsuite/ld-elf/retain6main.s: New test. + +2020-11-17 Alan Modra + + PR 26882 + * testsuite/ld-powerpc/dotsym3.d: Add "-z notext" to ld options. + * testsuite/ld-powerpc/dotsym4.d: Likewise. + * testsuite/ld-powerpc/ppc476-shared.d: Likewise. + * testsuite/ld-powerpc/ppc476-shared2.d: Likewise. + * testsuite/ld-powerpc/powerpc.exp: Likewise for various tests. + * testsuite/ld-undefined/weak-fundef.s: Add BLPLT variant. + * testsuite/ld-undefined/weak-undef.exp: Define BLPLT for ppc32. + +2020-11-16 Nick Clifton + + * po/es.po: Updated Spanish translation. + +2020-11-16 Shahab Vahedi + + * testsuite/ld-arc/tls_ie-01.d: Update the dump command. + +2020-11-14 Borislav Petkov + + * testsuite/ld-x86-64/pe-x86-64-4.od: Adjust regexes. + * testsuite/ld-x86-64/tlsld3.dd: Likewise. + * testsuite/ld-x86-64/tlsld4.dd: Likewise. + +2020-11-13 H.J. Lu + + PR ld/26869 + * ldelf.c (ldelf_before_allocation): Set rel_from_abs to 1 for + __ehdr_start. + * testsuite/ld-i386/i386.exp: Run pr26869. + * testsuite/ld-i386/pr26869.d: New file. + * testsuite/ld-i386/pr26869.s: Likewise. + +2020-11-09 Andreas Schwab + + * Makefile.am (development.exp): Fix regexp. + * Makefile.in: Regenerate. + +2020-11-06 Nick Clifton + + * lexsup.c (parse_args): Add more checks of the mapfile. If it is + a directory use the basename of the output file as the file + component. If the % character is present, replace it with the + full output filepath. + * testsuite/ld-scripts/map-address.exp: Add test of % + functionality. + * ld.texi: Document the new behaviour. + +2020-11-06 Nick Clifton + + * po/sr.po: Updated Serbian translation. + +2020-11-03 Nick Clifton + + * emulparams/x86-64-level.sh + (PARSE_AND_LIST_ARGS_CASE_Z_X86_64_LEVEL): Fix indentation. + +2020-11-02 Alan Modra + + PR 26806 + * testsuite/ld-plugin/lto-19.h, + * testsuite/ld-plugin/lto-19a.c, + * testsuite/ld-plugin/lto-19b.c, + * testsuite/ld-plugin/lto-19c.c: New test. + * testsuite/ld-plugin/pr26806.c, + * testsuite/ld-plugin/pr26806.d: New test. + * testsuite/ld-plugin/lto.exp: Run them. + +2020-10-30 H.J. Lu + + PR gas/26703 + * NEWS: Mention -z x86-64-baseline. + * ld.texi: Document -z x86-64-baseline. + * emulparams/x86-64-level.sh: Handle -z x86-64-baseline. + * testsuite/ld-elf/x86-feature-1a.rd: Update. + * testsuite/ld-elf/x86-feature-1b.rd: Likewise. + * testsuite/ld-elf/x86-feature-1c.rd: Likewise. + * testsuite/ld-elf/x86-feature-1d.rd: Likewise. + * testsuite/ld-elf/x86-feature-1e.rd: Likewise. + * testsuite/ld-i386/pr23372c.d: Likewise. + * testsuite/ld-i386/pr23486c.d: Likewise. + * testsuite/ld-i386/pr23486d.d: Likewise. + * testsuite/ld-i386/pr24322a.d: Likewise. + * testsuite/ld-i386/pr24322b.d: Likewise. + * testsuite/ld-i386/property-1a.r: Likewise. + * testsuite/ld-i386/property-2a.r: Likewise. + * testsuite/ld-i386/property-3.r: Likewise. + * testsuite/ld-i386/property-3a.r: Likewise. + * testsuite/ld-i386/property-4.r: Likewise. + * testsuite/ld-i386/property-4a.r: Likewise. + * testsuite/ld-i386/property-5.r: Likewise. + * testsuite/ld-i386/property-5a.r: Likewise. + * testsuite/ld-i386/property-7a.r: Likewise. + * testsuite/ld-i386/property-x86-3.d: Likewise. + * testsuite/ld-i386/property-x86-4a.d: Likewise. + * testsuite/ld-i386/property-x86-5.d: Likewise. + * testsuite/ld-i386/property-x86-cet1.d: Likewise. + * testsuite/ld-i386/property-x86-cet2a.d: Likewise. + * testsuite/ld-i386/property-x86-cet5a.d: Likewise. + * testsuite/ld-i386/property-x86-cet5b.d: 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-i386/property-x86-isa1.d: Likewise. + * testsuite/ld-i386/property-x86-isa2.d: Likewise. + * testsuite/ld-i386/property-x86-isa3.d: Likewise. + * 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/pr23372c-x32.d: Likewise. + * testsuite/ld-x86-64/pr23372c.d: Likewise. + * testsuite/ld-x86-64/pr23486c-x32.d: Likewise. + * testsuite/ld-x86-64/pr23486c.d: Likewise. + * testsuite/ld-x86-64/pr23486d-x32.d: Likewise. + * testsuite/ld-x86-64/pr23486d.d: Likewise. + * testsuite/ld-x86-64/pr24322a-x32.d: Likewise. + * testsuite/ld-x86-64/pr24322a.d: Likewise. + * testsuite/ld-x86-64/pr24322b-x32.d: Likewise. + * testsuite/ld-x86-64/pr24322b.d: Likewise. + * testsuite/ld-x86-64/pr24458a-x32.d: Likewise. + * testsuite/ld-x86-64/pr24458a.d: Likewise. + * testsuite/ld-x86-64/pr24458b-x32.d: Likewise. + * testsuite/ld-x86-64/pr24458b.d: Likewise. + * testsuite/ld-x86-64/pr24458c-x32.d: Likewise. + * testsuite/ld-x86-64/pr24458c.d: Likewise. + * testsuite/ld-x86-64/property-1a.r: Likewise. + * testsuite/ld-x86-64/property-2a.r: Likewise. + * testsuite/ld-x86-64/property-3.r: Likewise. + * testsuite/ld-x86-64/property-3a.r: Likewise. + * testsuite/ld-x86-64/property-4.r: Likewise. + * testsuite/ld-x86-64/property-4a.r: Likewise. + * testsuite/ld-x86-64/property-5.r: Likewise. + * testsuite/ld-x86-64/property-5a.r: Likewise. + * testsuite/ld-x86-64/property-7a.r: Likewise. + * testsuite/ld-x86-64/property-x86-3-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-3.d: Likewise. + * testsuite/ld-x86-64/property-x86-4a-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-4a.d: Likewise. + * testsuite/ld-x86-64/property-x86-5-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-5.d: Likewise. + * testsuite/ld-x86-64/property-x86-cet1-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-cet1.d: Likewise. + * testsuite/ld-x86-64/property-x86-cet2a-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-cet2a.d: Likewise. + * testsuite/ld-x86-64/property-x86-cet5a-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-cet5a.d: Likewise. + * testsuite/ld-x86-64/property-x86-cet5b-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-cet5b.d: 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-isa1-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-isa1.d: Likewise. + * testsuite/ld-x86-64/property-x86-isa2-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-isa2.d: Likewise. + * testsuite/ld-x86-64/property-x86-isa3-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-isa3.d: Likewise. + * testsuite/ld-x86-64/property-x86-ibt5.d: 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. + * testsuite/ld-i386/i386.exp: Run property-x86-isa4. + * testsuite/ld-i386/property-x86-isa4.d: New file. + * testsuite/ld-x86-64/property-x86-isa4-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-isa4.d: Likewise. + * ld/testsuite/ld-x86-64/x86-64.exp: Run property-x86-isa4 + and property-x86-isa4-x32. + +2020-10-26 H.J. Lu + + * testsuite/ld-elfweak/elfweak.exp: Pass $NOLTO_CFLAGS to CC. + +2020-10-26 Nick Clifton + + PR 26626 + * ldmain.c (undefined_symbol): Use the keyword undefined-symbol + when invoking the error handling script for undefined symbols. + * ld.texi: Update documentation. + +2020-10-26 Cooper Qu + + * emulparams/cskyelf.sh (TEXT_START_ADDR): Change to 0x60000000. + (DATA_ADDR) : Define. + (OTHER_SYMBOLS) : Define. + (OTHER_BSS_SYMBOLS) : Set symbol __sbss__. + (OTHER_BSS_END_SYMBOLS) : Set symbol __ebss__. + * ld/emulparams/cskyelf_linux.sh : Don't include cskyelf.sh. + * testsuite/ld-csky/data.d : Fix '/s*' to match spaces. + * testsuite/ld-csky/hilo16.d : Likewise. + +2020-10-23 H.J. Lu + + * testsuite/config/default.exp (plug_opt): Set only if compiler + is available. + +2020-10-22 H.J. Lu + + * testsuite/ld-plugin/lto.exp (plug_opt): Moved to ... + * testsuite/config/default.exp (plug_opt): Here. New. + * testsuite/ld-bootstrap/bootstrap.exp: Skip when linker is + compiled with -fprofile-generate=. + +2020-10-22 H.J. Lu + + * testsuite/config/default.exp (NOLTO_CFLAGS): New. + * ld/testsuite/ld-elfcomm/elfcomm.exp: Add $NOLTO_CFLAGS to CC. + * testsuite/ld-elfvers/vers.exp: Likewise. + * testsuite/ld-elfvsb/elfvsb.exp: Likewise. + * testsuite/ld-gc/gc.exp: Likewise. + * testsuite/ld-plugin/plugin.exp: Likewise. + * testsuite/ld-scripts/crossref.exp: Likewise. + * testsuite/ld-selective/selective.exp: Likewise. + * testsuite/ld-undefined/undefined.exp: Likewise. + * testsuite/ld-srec/srec.exp: Add $NOLTO_CFLAGS to CC. Override + CXXFLAGS. + * testsuite/lib/ld-lib.exp (run_ld_link_tests): Prepend -fno-lto + to cflags. + +2020-10-19 Alan Modra + + * testsuite/config/default.exp: Provide dummy libraries for + alpha-dec-vms. + (compiler_supports): New proc. Use it for compiler tests. + * testsuite/lib/ld-lib.exp (default_ld_assemble): Don't die if + subdir not set. + (run_ld_link_tests): Pass LDFLAGS to ld. + * testsuite/ld-checks/checks.exp (section_check): Likewise. + * testsuite/ld-scripts/assert.exp: Likewise. + * testsuite/ld-scripts/extern.exp: Likewise. + * testsuite/ld-scripts/log2.exp: Likewise. + * testsuite/ld-scripts/map-address.exp: Likewise. + * testsuite/ld-scripts/script.exp: Likewise. + * testsuite/ld-scripts/sizeof.exp: Likewise. + +2020-10-16 Andrew Burgess + + * ldlang.c (lang_process): Add extra call to + lang_do_memory_regions, and pass parameter. + (lang_do_memory_regions): Add parameter, only define origin and + length when requested. Reindent. + * testsuite/ld-scripts/provide-10.d: New file. + * testsuite/ld-scripts/provide-10.map: New file. + * testsuite/ld-scripts/provide-11.d: New file. + * testsuite/ld-scripts/provide-11.map: New file. + * testsuite/ld-scripts/provide-12.d: New file. + * testsuite/ld-scripts/provide-12.map: New file. + * testsuite/ld-scripts/provide-9.d: New file. + * testsuite/ld-scripts/provide-9.map: New file. + * testsuite/ld-scripts/provide-9.t: New file. + +2020-10-16 Andrew Burgess + + * ld.texi (Options): Extend the description of --defsym. + +2020-10-16 Nick Clifton + + PR 26626 + * ldmain.c (undefined_symbol): If an error handlign script is + available, call it. + * ldfile.c (error_handling_script): Declare. + (ldfile_open_file): If a library cannot be found and an error + handling script is available, call it. + * ldmain.h (error_handling_script): Prototype. + * ldlex.h (OPTION_ERROR_HANDLING_SCRIPT): Define. + * lexsup.c (ld_options): Add --error-handling-script. + (parse_args): Add support for --errror-handling-script. + * ld.texi: Document the new feature. + * configure.ac: Add --error-handling-script option to disable + support for the new feature. + * NEWS: Mention the new feature. + * config.in: Regenerate. + * configure: Regenerate. + +2020-10-16 Nelson Chu + + * testsuite/ld-riscv-elf/ifunc-plt-got-overwrite.s: New testcase. + * testsuite/ld-riscv-elf/ifunc-plt-got-overwrite.d: Likewise. + * testsuite/ld-riscv-elf/ifunc-plt-got-overwrite-exe.rd: Likewise. + * testsuite/ld-riscv-elf/ifunc-plt-got-overwrite-pic.rd: Likewise. + * testsuite/ld-riscv-elf/ifunc-plt-got-overwrite-pie.rd: Likewise. + * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated. + +2020-10-16 Nelson Chu + + * emulparams/elf32lriscv-defs.sh: Add IREL_IN_PLT. + * testsuite/ld-ifunc/ifunc.exp: Enable ifunc tests for RISC-V. + * testsuite/ld-riscv-elf/ld-riscv-elf.exp (run_dump_test_ifunc): + New dump test for ifunc. There are two arguments, 'target` and + `output`. The `target` is rv32 or rv64, and the `output` is used + to choose which output you want to test (exe, pie or .so). + * testsuite/ld-riscv-elf/ifunc-reloc-call-01.s: New testcase. + * testsuite/ld-riscv-elf/ifunc-reloc-call-01.d: Likewise. + * testsuite/ld-riscv-elf/ifunc-reloc-call-01-exe.rd: Likewise. + * testsuite/ld-riscv-elf/ifunc-reloc-call-01-pic.rd: Likewise. + * testsuite/ld-riscv-elf/ifunc-reloc-call-01-pie.rd: Likewise. + * testsuite/ld-riscv-elf/ifunc-reloc-call-02.s: Likewise. + * testsuite/ld-riscv-elf/ifunc-reloc-call-02.d: Likewise. + * testsuite/ld-riscv-elf/ifunc-reloc-call-02-exe.rd: Likewise. + * testsuite/ld-riscv-elf/ifunc-reloc-call-02-pic.rd: Likewise. + * testsuite/ld-riscv-elf/ifunc-reloc-call-02-pie.rd: Likewise. + * testsuite/ld-riscv-elf/ifunc-reloc-data.s: Likewise. + * testsuite/ld-riscv-elf/ifunc-reloc-data.d: Likewise. + * testsuite/ld-riscv-elf/ifunc-reloc-data-exe.rd: Likewise. + * testsuite/ld-riscv-elf/ifunc-reloc-data-pic.rd: Likewise. + * testsuite/ld-riscv-elf/ifunc-reloc-data-pie.rd: Likewise. + * testsuite/ld-riscv-elf/ifunc-reloc-got.s: Likewise. + * testsuite/ld-riscv-elf/ifunc-reloc-got.d: Likewise. + * testsuite/ld-riscv-elf/ifunc-reloc-got-exe.rd: Likewise. + * testsuite/ld-riscv-elf/ifunc-reloc-got-pic.rd: Likewise. + * testsuite/ld-riscv-elf/ifunc-reloc-got-pie.rd: Likewise. + * testsuite/ld-riscv-elf/ifunc-reloc-pcrel.s: Likewise. + * testsuite/ld-riscv-elf/ifunc-reloc-pcrel.d: Likewise. + * testsuite/ld-riscv-elf/ifunc-reloc-pcrel-exe.rd: Likewise. + * testsuite/ld-riscv-elf/ifunc-reloc-pcrel-pic.rd: Likewise. + * testsuite/ld-riscv-elf/ifunc-reloc-pcrel-pie.rd: Likewise. + * testsuite/ld-riscv-elf/ifunc-nonplt.s: Likewise. + * testsuite/ld-riscv-elf/ifunc-nonplt.d: Likewise. + * testsuite/ld-riscv-elf/ifunc-nonplt-exe.rd: Likewise. + * testsuite/ld-riscv-elf/ifunc-nonplt-pic.rd: Likewise. + * testsuite/ld-riscv-elf/ifunc-nonplt-pie.rd: Likewise. + * testsuite/ld-riscv-elf/ifunc-plt-01.s: Likewise. + * testsuite/ld-riscv-elf/ifunc-plt-01.d: Likewise. + * testsuite/ld-riscv-elf/ifunc-plt-01-exe.rd: Likewise. + * testsuite/ld-riscv-elf/ifunc-plt-01-pic.rd: Likewise. + * testsuite/ld-riscv-elf/ifunc-plt-01-pie.rd: Likewise. + * testsuite/ld-riscv-elf/ifunc-plt-02.s: Likewise. + * testsuite/ld-riscv-elf/ifunc-plt-02.d: Likewise. + * testsuite/ld-riscv-elf/ifunc-plt-02-exe.rd: Likewise. + * testsuite/ld-riscv-elf/ifunc-plt-02-pic.rd: Likewise. + * testsuite/ld-riscv-elf/ifunc-plt-02-pie.rd: Likewise. + * testsuite/ld-riscv-elf/ifunc-seperate-resolver.s: Likewise. + * testsuite/ld-riscv-elf/ifunc-seperate-caller.s: Likewise. + * testsuite/ld-riscv-elf/ifunc-seperate-exe.d: Likewise. + * testsuite/ld-riscv-elf/ifunc-seperate-pic.d: Likewise. + * testsuite/ld-riscv-elf/ifunc-seperate-pie.d: Likewise. + * testsuite/ld-riscv-elf/ifunc-seperate-caller-pcrel.s: Likewise. + * testsuite/ld-riscv-elf/ifunc-seperate-pcrel-pic.d: Likewise. + * testsuite/ld-riscv-elf/ifunc-seperate-pcrel-pie.d: Likewise. + +2020-10-09 H.J. Lu + + PR gas/26703 + * NEWS: Mention -z x86-64-v[234]. + * ld.texi: Document -z x86-64-v[234]. + * emulparams/elf32_x86_64.sh: Use x86-64-level.sh. + * emulparams/elf_i386.sh: Likewise. + * emulparams/elf_x86_64.sh: Likewise. + * emulparams/x86-64-level.sh: New file. + * testsuite/ld-elf/x86-feature-1a.rd: Update. + * testsuite/ld-elf/x86-feature-1b.rd: Likewise. + * testsuite/ld-elf/x86-feature-1c.rd: Likewise. + * testsuite/ld-elf/x86-feature-1d.rd: Likewise. + * testsuite/ld-elf/x86-feature-1e.rd: Likewise. + * testsuite/ld-i386/pr23372c.d: Likewise. + * testsuite/ld-i386/pr23486c.d: Likewise. + * testsuite/ld-i386/pr23486d.d: Likewise. + * testsuite/ld-i386/pr24322a.d: Likewise. + * testsuite/ld-i386/pr24322b.d: Likewise. + * testsuite/ld-i386/property-1a.r: Likewise. + * testsuite/ld-i386/property-2a.r: Likewise. + * testsuite/ld-i386/property-3.r: Likewise. + * testsuite/ld-i386/property-3a.r: Likewise. + * testsuite/ld-i386/property-4.r: Likewise. + * testsuite/ld-i386/property-4a.r: Likewise. + * testsuite/ld-i386/property-5.r: Likewise. + * testsuite/ld-i386/property-5a.r: Likewise. + * testsuite/ld-i386/property-7a.r: Likewise. + * testsuite/ld-i386/property-x86-3.d: Likewise. + * testsuite/ld-i386/property-x86-4a.d: Likewise. + * testsuite/ld-i386/property-x86-5.d: Likewise. + * testsuite/ld-i386/property-x86-cet1.d: Likewise. + * testsuite/ld-i386/property-x86-cet2a.d: Likewise. + * testsuite/ld-i386/property-x86-cet5a.d: Likewise. + * testsuite/ld-i386/property-x86-cet5b.d: 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-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/pr23372c-x32.d: Likewise. + * testsuite/ld-x86-64/pr23372c.d: Likewise. + * testsuite/ld-x86-64/pr23486c.d: Likewise. + * testsuite/ld-x86-64/pr23486d-x32.d: Likewise. + * testsuite/ld-x86-64/pr23486d.d: Likewise. + * testsuite/ld-x86-64/pr24322a-x32.d: Likewise. + * testsuite/ld-x86-64/pr24322a.d: Likewise. + * testsuite/ld-x86-64/pr24322b-x32.d: Likewise. + * testsuite/ld-x86-64/pr24322b.d: Likewise. + * testsuite/ld-x86-64/pr24458a-x32.d: Likewise. + * testsuite/ld-x86-64/pr24458a.d: Likewise. + * testsuite/ld-x86-64/pr24458b-x32.d: Likewise. + * testsuite/ld-x86-64/pr24458b.d: Likewise. + * testsuite/ld-x86-64/pr24458c-x32.d: Likewise. + * testsuite/ld-x86-64/pr24458c.d: Likewise. + * testsuite/ld-x86-64/property-1a.r: Likewise. + * testsuite/ld-x86-64/property-2a.r: Likewise. + * testsuite/ld-x86-64/property-3.r: Likewise. + * testsuite/ld-x86-64/property-3a.r: Likewise. + * testsuite/ld-x86-64/property-4.r: Likewise. + * testsuite/ld-x86-64/property-4a.r: Likewise. + * testsuite/ld-x86-64/property-5.r: Likewise. + * testsuite/ld-x86-64/property-5a.r: Likewise. + * testsuite/ld-x86-64/property-7a.r: Likewise. + * testsuite/ld-x86-64/property-x86-3-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-3.d: Likewise. + * testsuite/ld-x86-64/property-x86-4a-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-4a.d: Likewise. + * testsuite/ld-x86-64/property-x86-5-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-5.d: Likewise. + * testsuite/ld-x86-64/property-x86-cet1-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-cet1.d: Likewise. + * testsuite/ld-x86-64/property-x86-cet2a-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-cet2a.d: Likewise. + * testsuite/ld-x86-64/property-x86-cet5a-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-cet5a.d: Likewise. + * testsuite/ld-x86-64/property-x86-cet5b-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-cet5b.d: 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. + * 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. + * testsuite/ld-i386/i386.exp: Run property-x86-6, + property-x86-isa1, property-x86-isa2 and property-x86-isa3. + * testsuite/ld-i386/property-x86-1.S: Updated to the current + GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_ISA_1_NEEDED + values. + * testsuite/ld-i386/property-x86-2.S: Likewise. + * testsuite/ld-i386/property-x86-3.s: Likewise. + * testsuite/ld-x86-64/pr23372d.s: Likewise. + * testsuite/ld-x86-64/pr23372e.s: Likewise. + * testsuite/ld-x86-64/pr23372f.s: Likewise. + * testsuite/ld-x86-64/pr23486c.s: Likewise. + * testsuite/ld-x86-64/pr23486d.s: Likewise. + * testsuite/ld-x86-64/property-x86-1.S: Likewise. + * testsuite/ld-x86-64/property-x86-2.S: Likewise. + * testsuite/ld-x86-64/property-x86-3.s: Likewise. + * testsuite/ld-x86-64/property-x86-5a.s: Likewise. + * testsuite/ld-x86-64/property-x86-5b.s: Likewise. + * testsuite/ld-i386/property-x86-6.d: New file. + * testsuite/ld-i386/property-x86-isa1.d: Likewise. + * testsuite/ld-i386/property-x86-isa2.d: Likewise. + * testsuite/ld-i386/property-x86-isa3.d: Likewise. + * testsuite/ld-x86-64/property-x86-6-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-6.d: Likewise. + * testsuite/ld-x86-64/property-x86-6.s: Likewise. + * testsuite/ld-x86-64/property-x86-isa1-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-isa1.d: Likewise. + * testsuite/ld-x86-64/property-x86-isa1.s: Likewise. + * testsuite/ld-x86-64/property-x86-isa2-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-isa2.d: Likewise. + * testsuite/ld-x86-64/property-x86-isa3-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-isa3.d: Likewise. + * testsuite/ld-x86-64/simple.s: Likewise. + * ld/testsuite/ld-x86-64/x86-64.exp: Run property-x86-6, + property-x86-6-x32, property-x86-isa1, property-x86-isa1-x32, + property-x86-isa2, property-x86-isa2-x32, property-x86-isa3-x32 + and property-x86-isa3. + +2020-10-06 H.J. Lu + + * testsuite/ld-i386/property-3.r: Updated for Fedora binary + annotation plugin for GCC. + * testsuite/ld-i386/property-4.r: Likewise. + * testsuite/ld-i386/property-5.r: Likewise. + * testsuite/ld-x86-64/property-3.r: Likewise. + * testsuite/ld-x86-64/property-4.r: Likewise. + * testsuite/ld-x86-64/property-5.r: Likewise. + +2020-10-06 H.J. Lu + + PR ld/26711 + * testsuite/ld-i386/i386.exp: Run ld/26711 tests. + * testsuite/ld-x86-64/x86-64.exp: Likewise. + * testsuite/ld-i386/pr26711-1.d: Likewise. + * testsuite/ld-i386/pr26711-2.d: Likewise. + * testsuite/ld-i386/pr26711-3.d: Likewise. + * testsuite/ld-x86-64/pr26711-1-x32.d: Likewise. + * testsuite/ld-x86-64/pr26711-1.d: Likewise. + * testsuite/ld-x86-64/pr26711-2-x32.d: Likewise. + * testsuite/ld-x86-64/pr26711-2.d: Likewise. + * testsuite/ld-x86-64/pr26711-3-x32.d: Likewise. + * testsuite/ld-x86-64/pr26711-3.d: Likewise. + * testsuite/ld-x86-64/pr26711.s: Likewise. + +2020-10-06 Brandon Bergren + + * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64lppc_fbsd.c. + Include $(DEPDIR)/eelf64lppc_fbsd.Pc. + * configure.tgt: Add powerpc64le-*-freebsd*. + * emulparams/elf64lppc_fbsd.sh: New file. + * Makefile.in: Regenerate. + * po/BLD-POTFILES.in: Regenerate. + +2020-10-05 T.K. Chia + + PR gas/26694 + * testsuite/ld-i386/ljmp.s, + * testsuite/ld-i386/ljmp1.d, + * testsuite/ld-i386/ljmp1.s, + * testsuite/ld-i386/ljmp2.d, + * testsuite/ld-i386/ljmp2.s, + * testsuite/ld-x86-64/ljmp1.d, + * testsuite/ld-x86-64/ljmp2.d: New testcases. + * testsuite/ld-i386/i386.exp, + * testsuite/ld-x86-64/x86-64.exp: Run them. + +2020-10-05 Nick Clifton + + * lexsup.c (parse_args): Generate an error or warning message when + multiple short options are used together. + +2020-10-01 H.J. Lu + + PR 26681 + * testsuite/ld-elf/pr26681.s: New test. + * testsuite/ld-elf/pr26681.d: New test driver. + * testsuite/ld-elf/pr26681.l: New test output. + +2020-09-30 H.J. Lu + + PR ld/26675 + * plugin.c (plugin_notice): Override the IR definition before + all LTO symbols have been read for non-ELF targets. + +2020-09-30 Jeremy Drake + + PR 26588 + * emultempl/pe.em (_finish): Generate an import library for DLLs, + even if they have no exports. + * emultempl/pep.em (_finish): Likewise. + +2020-09-28 Alan Modra + + * testsuite/ld-powerpc/tlsget.d, + * testsuite/ld-powerpc/tlsget.s, + * testsuite/ld-powerpc/tlsget.wf, + * testsuite/ld-powerpc/tlsget2.d. + * testsuite/ld-powerpc/tlsget2.wf: New testcases. + * testsuite/ld-powerpc/powerpc.exp: Run them. + +2020-09-26 Alan Modra + + * testsuite/ld-powerpc/elfv2so.d, + * testsuite/ld-powerpc/notoc2.d, + * testsuite/ld-powerpc/tlsdesc.wf, + * testsuite/ld-powerpc/tlsdesc2.d, + * testsuite/ld-powerpc/tlsdesc2.wf, + * testsuite/ld-powerpc/tlsopt5.d, + * testsuite/ld-powerpc/tlsopt5.wf, + * testsuite/ld-powerpc/tlsopt6.d, + * testsuite/ld-powerpc/tlsopt6.wf: Update __glink_PLTresolve. + +2020-09-24 Alan Modra + + PR 26655 + * emultempl/ppc64elf.em (params): Add ppc_edit. + (ppc_before_allocation): Split off some edit functions to.. + (ppc_edit): ..this, new function. + +2020-09-22 Frediano Ziglio + + * emultempl/pe.em (set_entry_point): Only use the DLL entry point + for DLLs. + * emultempl/pep.em (set_entry_point): Likewise. + +2020-09-16 Mikael Pettersson + + * testsuite/ld-elf/shared.exp: Add -Av9 to AFLAGS_PIE on sparc. + * testsuite/ld-elf/tls.exp: Add -Av9 to AFLAGS_PIC on sparc. + +2020-09-16 H.J. Lu + + PR ld/26583 + * testsuite/ld-x86-64/pe-x86-64-1.od: New file. + * testsuite/ld-x86-64/pe-x86-64-1a.obj.bz2: Likewise. + * testsuite/ld-x86-64/pe-x86-64-1b.obj.bz2: Likewise. + * testsuite/ld-x86-64/pe-x86-64-1c.obj.bz2: Likewise. + * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise. + * testsuite/ld-x86-64/pe-x86-64-2a.obj.bz2: Likewise. + * testsuite/ld-x86-64/pe-x86-64-2b.obj.bz2: Likewise. + * testsuite/ld-x86-64/pe-x86-64-2c.obj.bz2: Likewise. + * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise. + * testsuite/ld-x86-64/pe-x86-64-3a.obj.bz2: Likewise. + * testsuite/ld-x86-64/pe-x86-64-3b.obj.bz2: Likewise. + * testsuite/ld-x86-64/pe-x86-64-3c.obj.bz2: Likewise. + * testsuite/ld-x86-64/pe-x86-64-3d.obj.bz2: Likewise. + * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise. + * testsuite/ld-x86-64/pe-x86-64-4a.obj.bz2: Likewise. + * testsuite/ld-x86-64/pe-x86-64-4b.obj.bz2: Likewise. + * testsuite/ld-x86-64/pe-x86-64-4c.obj.bz2: Likewise. + * testsuite/ld-x86-64/pe-x86-64-4d.obj.bz2: Likewise. + * testsuite/ld-x86-64/pe-x86-64.exp: Likewise. + * testsuite/lib/ld-lib.exp (run_ld_link_tests): Handle bz2 binary + inputs. + +2020-09-16 Alan Modra + + * plugin.c (asymbol_from_plugin_symbol): Adjust elf_symbol_from + invocation. + +2020-09-15 H.J. Lu + + * ldelf.c (ldelf_after_open): Check bfd_target_elf_flavour first. + +2020-09-15 Hans-Peter Nilsson + + PR ld/26589 + * testsuite/ld-elf/pr26589.d, testsuite/ld-elf/locref3.s: New test. + +2020-09-13 Alan Modra + + PR 26391 + * testsuite/ld-elf/pr26391.nd: Adjust to match powerpc64 function + descriptors. + +2020-09-12 H.J. Lu + + PR ld/26391 + * NEWS: Mention "-z unique-symbol". + * emultempl/elf.em (gld${EMULATION_NAME}_handle_option): Handle + "-z unique-symbol" and "-z nounique-symbol". + * ld.texi: Document "-z unique-symbol" and "-z nounique-symbol". + * lexsup.c (elf_static_list_options): Add "-z unique-symbol" and + "-z nounique-symbol". + * testsuite/ld-elf/elf.exp: Add PR ld/26391 tests. + * testsuite/ld-elf/pr26391.nd: New file. + * testsuite/ld-elf/pr26391.out: Likewise. + * testsuite/ld-elf/pr26391a.c: Likewise. + * testsuite/ld-elf/pr26391b.c: Likewise. + * testsuite/ld-elf/pr26391c.c: Likewise. + * testsuite/ld-elf/pr26391d.c: Likewise. + +2020-09-11 Jeremy Drake + + PR 26588 + * emultempl/pe.em (_finish): Only generate a import library if not + exporting relocs. + * emultempl/pep.em: Likewise. + +2020-09-10 Siddhesh Poyarekar + + * testsuite/ld-aarch64/emit-relocs-560.d: Expect error instead + of valid output. + +2020-09-10 H.J. Lu + + PR ld/26590 + * testsuite/ld-elf/pr26590.err: New file. + * testsuite/ld-elf/pr26590a.c: Likewise. + * testsuite/ld-elf/pr26590b.c: Likewise. + * testsuite/ld-elf/pr26590c.c: Likewise. + * testsuite/ld-elf/pr26590d.c: Likewise. + * testsuite/ld-elf/shared.exp: Run ld/26590 tests. + +2020-09-10 Alan Modra + + * testsuite/ld-elf/pr26580-2.sd: Accept undefined symbol. + +2020-09-10 Alan Modra + + * testsuite/ld-plugin/lto-18b.c (select): Remove. + * testsuite/ld-plugin/lto-18c.c (select): Remove. + * testsuite/ld-plugin/lto.exp: Build archives for lto-18 too, + and run static versions of the test. + +2020-09-09 Alan Modra + + * testsuite/ld-plugin/lto-18a.c, + * testsuite/ld-plugin/lto-18b.c, + * testsuite/ld-plugin/lto-18c.c, + * testsuite/ld-plugin/lto-18d.c, + * testsuite/ld-plugin/lto-18.out: New test. + * testsuite/ld-plugin/lto.exp: Run it. + +2020-09-08 Jozef Lawrynowicz + + * testsuite/ld-msp430-elf/msp430-elf.exp: Run new tests. + * testsuite/ld-msp430-elf/uleb128.s: New test. + * testsuite/ld-msp430-elf/uleb128_430.d: New test. + * testsuite/ld-msp430-elf/uleb128_430x.d: New test. + +2020-09-08 Alan Modra + + * testsuite/ld-elf/pr26580-a.s, + * testsuite/ld-elf/pr26580-b.s, + * testsuite/ld-elf/pr26580-1.sd, + * testsuite/ld-elf/pr26580-2.sd: New tests + * testsuite/ld-elf/comm-data.exp: Run new tests. + * testsuite/ld-elf/pr26580-a.c, + * testsuite/ld-elf/pr26580-b.c, + * testsuite/ld-elf/pr26580-3.out, + * testsuite/ld-elf/pr26580-4.out: New tests. + * testsuite/ld-elf/shared.exp: Run new tests. + +2020-09-04 Alan Modra + + * testsuite/ld-plugin/lto.exp: Don't run pr15146 tests. + * testsuite/ld-plugin/pr15146.d: Delete. + * testsuite/ld-plugin/pr15146a.c: Delete. + * testsuite/ld-plugin/pr15146b.c: Delete. + * testsuite/ld-plugin/pr15146c.c: Delete. + * testsuite/ld-plugin/pr15146d.c: Delete. + +2020-09-03 H.J. Lu + + * testsuite/config/default.exp: Change NOSANTIZE_CFLAGS to + NOSANITIZE_CFLAGS. + * testsuite/ld-elf/dwarf.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-elfcomm/elfcomm.exp: Likewise. + * testsuite/ld-elfvers/vers.exp: Likewise. + * testsuite/ld-elfvsb/elfvsb.exp: Likewise. + * testsuite/ld-elfweak/elfweak.exp: Likewise. + * testsuite/ld-gc/gc.exp: Likewise. + * testsuite/ld-plugin/lto.exp: Likewise. + * testsuite/ld-plugin/plugin.exp: Likewise. + * testsuite/ld-scripts/crossref.exp: Likewise. + * testsuite/ld-selective/selective.exp: Likewise. + * testsuite/ld-shared/shared.exp: Likewise. + * testsuite/ld-size/size.exp: Likewise. + * testsuite/ld-srec/srec.exp: Likewise. + * testsuite/ld-x86-64/x86-64.exp: Likewise. + +2020-09-03 Nelson Chu + + * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Remove + the useless `warnings` keywords. + * 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. + +2020-09-03 Nelson Chu + + * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Update the + message from error to warning. + * testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: New testcases. + * testsuite/ld-riscv-elf/attr-merge-arch-failed-02a.s: Likewise. + * testsuite/ld-riscv-elf/attr-merge-arch-failed-02b.s: Likewise. + * testsuite/ld-riscv-elf/attr-merge-arch-failed-02c.s: Likewise. + * testsuite/ld-riscv-elf/attr-merge-arch-failed-02d.s: Likewise. + * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated. + +2020-09-03 Kito Cheng + + * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Updated. + * testsuite/ld-riscv-elf/attr-merge-arch-failed-01a.s: Likewise. + * testsuite/ld-riscv-elf/attr-merge-arch-failed-01b.s: Likewise. + +2020-09-03 Alan Modra + + * testsuite/ld-scripts/sysroot-prefix.exp (single_sysroot_prefix_test): + Log $scriptname. + +2020-08-30 H.J. Lu + + * testsuite/ld-elf/dwarf.exp: Append $NOSANTIZE_CFLAGS to CFLAGS. + * testsuite/ld-elf/shared.exp: Likewise. + * testsuite/ld-elfvsb/elfvsb.exp: Likewise. + * testsuite/ld-shared/shared.exp: Likewise. + * testsuite/ld-size/size.exp: Likewise. + +2020-08-28 Jozef Lawrynowicz + + * emultempl/msp430.em (input_section_exists): New. + (check_array_section_alignment): New. + (gld${EMULATION_NAME}_finish): New. + * scripttempl/elf32msp430.sc: Add ALIGN directives before the + definition of __*_array_start symbols. + * testsuite/ld-msp430-elf/finiarray-warn.ld: New test. + * testsuite/ld-msp430-elf/finiarray-warn.r: New test. + * testsuite/ld-msp430-elf/initarray-nowarn.ld: New test. + * testsuite/ld-msp430-elf/initarray-warn.ld: New test. + * testsuite/ld-msp430-elf/initarray-warn.r: New test. + * testsuite/ld-msp430-elf/initarray.s: New test. + * testsuite/ld-msp430-elf/msp430-elf.exp: Run new tests. + * testsuite/ld-msp430-elf/preinitarray-warn.ld: New test. + * testsuite/ld-msp430-elf/preinitarray-warn.r: New test. + +2020-08-28 Jozef Lawrynowicz + + * ldmisc.c (vfinfo): Support new "%pU" format specifier. + +2020-08-28 Cooper Qu + + * emulparams/cskyelf.sh: Support attribute section. + * testsuite/ld-csky/tls-le-v1.d: Match .csky.attributes section. + * ld/testsuite/ld-csky/tls-le.d: Likewise. + * testsuite/ld-elf/non-contiguous.ld: Ignore .csky.attributes + section. + +2020-08-28 Nick Clifton + + PR 19011 + * testsuite/lib/ld-lib.exp (ld_link_defsyms): For PE based targets + define the __main and ___main symbols in terms of the main symbol. + +2020-08-28 Alan Modra + + PR 19011 + * testsuite/ld-plugin/plugin.exp: Use modified CFLAGS throughout + file. Add --image-base for pecoff. + +2020-08-28 Nelson Chu + + testsuite/ld-riscv-elf/lib-nopic-01a.s: Use R_RISCV_JAL rather + than R_RISCV_CALL. + testsuite/ld-riscv-elf/lib-nopic-01b.d: Likewise. + testsuite/ld-riscv-elf/lib-nopic-01b.s: Likewise. + +2020-08-27 Jozef Lawrynowicz + + * emultempl/msp430.em: Remove unused variable "buf". + +2020-08-27 Nick Alcock + + * ldlang.c (dump_ctf_errs): Unquote CTF error messages. + (ldlang_open_ctf): Likewise. + (lang_merge_ctf): Likewise. + (lang_write_ctf): Likewise. + * testsuite/ld-ctf/diag-ctf-version-f.d: Adjust. + * testsuite/ld-ctf/diag-cttname-invalid.d: Adjust. + * testsuite/ld-ctf/diag-decompression-failure.d: Adjust. + * testsuite/ld-ctf/diag-parname.d: Adjust. + * testsuite/ld-ctf/diag-unsupported-flag.d: Adjust. + * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Adjust. + * testsuite/ld-ctf/diag-wrong-magic-number.d: Adjust. + +2020-08-27 Nick Alcock + + * ldlang.c (lang_ctf_errs_warnings): Support calls with NULL fp. + Adjust for new err parameter to ctf_errwarning_next. Only + check for assertion failures when fp is non-NULL. + (ldlang_open_ctf): Call it on open errors. + * testsuite/ld-ctf/ctf.exp: Always use the C locale to avoid + breaking the diags tests. + +2020-08-27 Jeremy Drake + + PR 19011 + * emultempl/pe.em (DEFAULT_DLL_CHARACTERISTICS): Define. + (pe_dll_characteristics): Initialise to DEFAULT_DLL_CHARACTERISTICS. + (add_options): Add options to disable DLL characteristics. + (list_options): List the new options. + (handle_options): Handle the new options. + * emultempl/pep.em: Similar changes to above. + (NT_EXE_IMAGE_BASE): Default to an address above 4G. + (NT_DLL_IMAGE_BASE, NT_DLL_AUTO_IMAGE_BASE, + (NT_DLL_AUTO_IMAGE_MASK): Likewise. + * ld.texi: Document the new options. + * pe-dll.c (pe_dll_enable_reloc_section): Change to default to + true. + (generate_reloc): Do nothing if there is no reloc section. + (pe_exe_fill_sections): Only assign the reloc section contents if + the section exists. + * testsuite/ld-pe/pe.exp: Add the --disable-reloc-section flag to + the .secrel32 tests. + * testsuite/ld-scripts/provide-8.d: Expect for fail on PE targets. + * NEWS: Mention the change in DLL generation. + +2020-08-26 H.J. Lu + + * testsuite/ld-elf/indirect.exp: Append $NOSANTIZE_CFLAGS to CC. + * testsuite/ld-elf/shared.exp: Likewise. + * testsuite/ld-elfcomm/elfcomm.exp: Likewise. + * testsuite/ld-elfvers/vers.exp: Likewise. + * testsuite/ld-elfvsb/elfvsb.exp: Likewise. + * testsuite/ld-elfweak/elfweak.exp: Likewise. + * testsuite/ld-plugin/lto.exp: Likewise. + * testsuite/ld-plugin/plugin.exp: Likewise. + * testsuite/ld-scripts/crossref.exp: Likewise. + +2020-08-26 Alan Modra + + PR 26499 + * emultempl/spuelf.em (spu_elf_relink): Check for NULL tmp_file_list. + +2020-08-26 Alan Modra + + PR 26431 + * pe-dll.c (auto_export): Don't call bsearch with zero count. + +2020-08-25 Alan Modra + + * testsuite/ld-libs/libs.exp: Don't run on sh-pe, tic30 or tic54x. + * testsuite/ld-scripts/data.d: xfail tic4x and tic54x. + * testsuite/ld-scripts/empty-address-2a.d: xfail tic54x. + * testsuite/ld-scripts/empty-address-2b.d: Likewise. + * testsuite/ld-scripts/include-1.d: xfail tic4x and tic54x. + * testsuite/ld-scripts/provide-1.d: xfail tic54x. + * testsuite/ld-scripts/provide-2.d: Likewise. + * testsuite/ld-scripts/provide-4.d: Likewise. + +2020-08-24 Alan Modra + + * testsuite/ld-sparc/tlssunbin32.rd: Update for new readelf output. + * testsuite/ld-sparc/tlssunbin64.rd: Likewise. + +2020-08-24 Alan Modra + + * testsuite/ld-powerpc/tls32.d: Update for TPREL_HA/LO optimisation. + * testsuite/ld-powerpc/tlsexe32.d: Likewise. + * testsuite/ld-powerpc/tlsldopt32.d: Likewise. + * testsuite/ld-powerpc/tlsmark32.d: Likewise. + * testsuite/ld-powerpc/tlsopt4_32.d: Likewise. + * testsuite/ld-powerpc/tprel.s, + * testsuite/ld-powerpc/tprel.d, + * testsuite/ld-powerpc/tprel32.d: New tests. + * testsuite/ld-powerpc/tprelbad.s, + * testsuite/ld-powerpc/tprelbad.d: New test. + * testsuite/ld-powerpc/powerpc.exp: Run them. + 2020-08-22 H.J. Lu PR ld/26382