X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=ld%2FChangeLog;h=fe4b7d8f6903ec8ca075c08c36fac38045d65612;hb=a74e1cb34453a5111104302315e407c01b9c2fb0;hp=0f1da7fafabaaa509bb942fd93c1016d6776c445;hpb=5789f845fbf67d271e0f5ff154eb03319b551211;p=binutils-gdb.git diff --git a/ld/ChangeLog b/ld/ChangeLog index 0f1da7fafab..fe4b7d8f690 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,873 @@ +2022-01-22 Nick Clifton + + * 2.38 release branch created. + +2022-01-21 Nick Clifton + + * po/sr.po: Updated Serbian translation. + +2022-01-17 Nick Clifton + + * Makefile.in: Regenerate. + * po/ld.pot: Regenerate. + +2022-01-11 Martin Storsjö + + * pe-dll.c (make_head): Prefix the symbol name with the dll name. + (make_tail, make_one, make_singleton_name_thunk): Likewise. + (make_import_fixup_entry, make_runtime_pseudo_reloc): Likewise. + (pe_create_runtime_relocator_reference): Likewise. + (pe_dll_generate_implib): Set dll_symname_len. + (pe_process_import_defs): Likewise. + +2021-12-16 Nick Clifton + + PR 28686 + * testsuite/ld-avr/avr-prop-7.d: Adjust expected output. + * testsuite/ld-avr/avr-prop-8.d: Likewise. + * testsuite/ld-avr/pr13402.d: Likewise. + +2021-11-30 Nick Clifton + + * scripttempl/pru.sc (.pru_irq_map): Define output section. + * testsuite/ld-pru/pru_irq_map-1.d: New test. + * testsuite/ld-pru/pru_irq_map-2.d: New test. + * testsuite/ld-pru/pru_irq_map.s: New test. + +2021-11-17 Jeremy Drake + + * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Set to 0 for + Cygwin targets. + * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Likewise. + +2021-11-17 Nick Clifton + + PR 28452 + * ldgram.y: Add support for PT_GNU_RELRO and PT_GNU_PROPERTY. + * ldgram.c: Regenerate. + +2021-11-15 Roland McGrath + + * testsuite/ld-aarch64/dt_textrel.d: Pass explicit -z notext in + case ld was configured with --enable-textrel-check=error. + * testsuite/ld-aarch64/pr22764.d: Likewise. + * testsuite/ld-aarch64/pr20402.d: Likewise. + +2021-10-25 Nick Alcock + + * testsuite/ld-ctf/nonrepresentable-member.*: New test. + +2021-10-25 Nick Alcock + + * testsuite/ld-ctf/array.d: Change --ctf=.ctf to --ctf. + * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise. + * 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/conflicting-enums.d: Likewise. + * testsuite/ld-ctf/conflicting-typedefs.d: Likewise. + * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise. + * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise. + * testsuite/ld-ctf/cross-tu-into-cycle.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/data-func-conflicted.d: Likewise. + * 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/enum-forward.d: Likewise. + * testsuite/ld-ctf/enums.d: Likewise. + * testsuite/ld-ctf/forward.d: Likewise. + * testsuite/ld-ctf/function.d: Likewise. + * testsuite/ld-ctf/nonrepresentable.d: Likewise. + * testsuite/ld-ctf/slice.d: Likewise. + * testsuite/ld-ctf/super-sub-cycles.d: Likewise. + +2021-09-30 Dimitar Dimitrov + + * scripttempl/pru.sc (.resource_table): Align the output + section, not the first symbol. + +2021-09-27 Nick Alcock + + * configure: Regenerate. + +2021-09-21 Nick Clifton + + * ldlang.c (lang_end): When computing the entry point, only + try the start address of the entry section when creating an + executable. + * ld.texi (Entry point): Update description of heuristic used to + choose the entry point. + testsuite/ld-alpha/tlspic.rd: Update expected entry point address. + testsuite/ld-arm/tls-gdesc-got.d: Likewise. + testsuite/ld-i386/tlsnopic.rd: Likewise. + testsuite/ld-ia64/tlspic.rd: Likewise. + testsuite/ld-sparc/gotop32.rd: Likewise. + testsuite/ld-sparc/gotop64.rd: Likewise. + testsuite/ld-sparc/tlssunnopic32.rd: Likewise. + testsuite/ld-sparc/tlssunnopic64.rd: Likewise. + testsuite/ld-sparc/tlssunpic32.rd: Likewise. + testsuite/ld-sparc/tlssunpic64.rd: Likewise. + testsuite/ld-tic6x/shlib-1.rd: Likewise. + testsuite/ld-tic6x/shlib-1b.rd: Likewise. + testsuite/ld-tic6x/shlib-1r.rd: Likewise. + testsuite/ld-tic6x/shlib-1rb.rd: Likewise. + testsuite/ld-tic6x/shlib-noindex.rd: Likewise. + testsuite/ld-x86-64/pr14207.d: Likewise. + testsuite/ld-x86-64/tlsdesc.rd: Likewise. + testsuite/ld-x86-64/tlspic.rd: Likewise. + testsuite/ld-x86-64/tlspic2.rd: Likewise. + +2021-09-15 Claudiu Zissulescu + + * testsuite/ld-arc/got-weak.d: Update file. + +2021-09-14 Claudiu Zissulescu + + * ld-arc/got-weak.d: New file. + * ld-arc/got-weak.s: Likewise. + +2021-07-26 Roland McGrath + + * testsuite/ld-x86-64/x86-64.exp (Build textrel-1): Use --warn-textrel. + +2021-07-06 Michael Matz + + PR ld/28021 + * testsuite/ld-riscv-elf/relax-twice.ver: New. + * testsuite/ld-riscv-elf/relax-twice-1.s: New. + * testsuite/ld-riscv-elf/relax-twice-2.s: New. + * testsuite/ld-riscv-elf/ld-riscv-elf.exp + (run_relax_twice_test): New, and call it. + +2021-07-03 Nick Clifton + + * configure: Regenerate. + * po/ld.pot: Regenerate. + +2021-07-03 Nick Clifton + + * 2.37 release branch created. + +2021-06-22 Nelson Chu + + * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated. + * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.d: New testcase. + * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.s: Likewise. + * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.d: New testcase. + Should report error since the %pcrel_lo with addend refers to + %got_pcrel_hi. + * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.s: Likewise. + * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.d: New testcase. + Should report error since the %got_pcrel_hi with addend. + * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.s: Likewise. + * testsuite/ld-riscv-elf/pcrel-lo-addend-3.ld: Likewise. + +2021-06-19 H.J. Lu + + PR ld/27998 + * testsuite/ld-i386/i386.exp: Run PR ld/27998 tests. + * testsuite/ld-i386/pr27998a.d: New file. + * testsuite/ld-i386/pr27998a.s: Likewise. + * testsuite/ld-i386/pr27998b.d: Likewise. + * testsuite/ld-i386/pr27998b.s: Likewise. + +2021-06-19 H.J. Lu + + * testsuite/ld-x86-64/textrel-1.err: New file. + * testsuite/ld-x86-64/textrel-1a.s: Likewise. + * testsuite/ld-x86-64/textrel-1b.s: Likewise. + * testsuite/ld-x86-64/x86-64.exp: Run textrel-1 tests. + +2021-06-18 H.J. Lu + + * testsuite/ld-elf/property-and-1.d: Skip am33_2.0, hppa-hpux + and mn10300. + Pass --generate-missing-build-notes=no to assembler. Allow + other note sections for xtensa. + * testsuite/ld-elf/property-and-2.d: Likewise. + * testsuite/ld-elf/property-and-3.d: Likewise. + * testsuite/ld-elf/property-and-4.d: Likewise. + * testsuite/ld-elf/property-or-1.d: Likewise. + * testsuite/ld-elf/property-or-2.d: Likewise. + * testsuite/ld-elf/property-or-3.d: Likewise. + * testsuite/ld-elf/property-or-4.d: Likewise. + +2021-06-18 H.J. Lu + + * ld.texi: Move -z unique-symbol after -z undefs. + +2021-06-18 H.J. Lu + + * testsuite/ld-elf/property-and-1.d: New file. + * testsuite/ld-elf/property-and-1.s: Likewise. + * testsuite/ld-elf/property-and-2.d: Likewise. + * testsuite/ld-elf/property-and-2.s: Likewise. + * testsuite/ld-elf/property-and-3.d: Likewise. + * testsuite/ld-elf/property-and-3.s: Likewise. + * testsuite/ld-elf/property-and-4.d: Likewise. + * testsuite/ld-elf/property-and-empty.s: Likewise. + * testsuite/ld-elf/property-or-1.d: Likewise. + * testsuite/ld-elf/property-or-1.s: Likewise. + * testsuite/ld-elf/property-or-2.d: Likewise. + * testsuite/ld-elf/property-or-2.s: Likewise. + * testsuite/ld-elf/property-or-3.d: Likewise. + * testsuite/ld-elf/property-or-3.s: Likewise. + * testsuite/ld-elf/property-or-4.d: Likewise. + * testsuite/ld-elf/property-or-empty.s: Likewise. + +2021-06-17 H.J. Lu + + PR ld/27973 + * testsuite/ld-x86-64/x86-64.exp: Pass $NOPIE_LDFLAGS and + $NOPIE_CFLAGS to protected-func-1 without PIE. + +2021-06-17 H.J. Lu + + PR ld/27973 + * testsuite/ld-x86-64/x86-64.exp: Run protected function tests. + * testsuite/ld-x86-64/protected-func-1.h: New file. + * testsuite/ld-x86-64/protected-func-1a.s: Likewise. + * testsuite/ld-x86-64/protected-func-1b.c: Likewise. + +2021-06-17 Fangrui Song + + * ldlex.h (enum option_values): Add OPTION_NO_PIE. + * lexsup.c (struct ld_options): Add -no-pie. + (parse_args): Handle -no-pie. + * ld.texi: Document -no-pie. + +2021-06-15 Alan Modra + + * testsuite/ld-pie/vaddr-0.d: Update expected output. + +2021-06-11 Alan Modra + + PR 27952 + * ldelf.c (ldelf_after_open): Error on input PIEs too. + +2021-06-09 Nick Clifton + + PR 27666 + * testsuite/ld-sparc/sparc.exp: Do not run the sparctests or + sparc64tests for Solaris2 targets. + +2021-06-03 Alan Modra + + PR 2589 + * ld.texi (link-time runtime library search path): Mention + plugin library path. Correct order of search. + +2021-05-31 Nelson Chu + Lifang Xia + + PR 27566 + * emultempl/riscvelf.em (after_allocation): Call + riscv_set_data_segment_info to set data segment phase before relaxing. + * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated. + * testsuite/ld-riscv-elf/relro-relax-lui.d: New testcase. + * testsuite/ld-riscv-elf/relro-relax-lui.s: Likewise. + * testsuite/ld-riscv-elf/relro-relax-pcrel.d: Likewise. + * testsuite/ld-riscv-elf/relro-relax-pcrel.s: Likewise. + +2021-05-28 H.J. Lu + + PR ld/27905 + * testsuite/ld-i386/pcrel16-2.d: xfail. + * testsuite/ld-x86-64/pcrel16-2.d: Likewise. + +2021-05-26 H.J. Lu + + PR ld/27905 + * testsuite/ld-i386/code16.d: New file. + * testsuite/ld-i386/code16.t: Likewise. + * testsuite/ld-x86-64/code16.d: Likewise. + * testsuite/ld-x86-64/code16.t: Likewise. + * testsuite/ld-i386/i386.exp: Run code16. + * testsuite/ld-x86-64/x86-64.exp: Likewise. + +2021-05-26 H.J. Lu + + * testsuite/ld-x86-64/ilp32-12.d: New file. + * testsuite/ld-x86-64/ilp32-12.s: Likewise. + * testsuite/ld-x86-64/x86-64.exp: Run ilp32-12. + +2021-05-14 Nelson Chu + + * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated. + * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d: Renamed from + pcrel-lo-addend-2. + * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.s: Likewise. + * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.d: New testcase. + * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.s: Likewise. + +2021-05-13 Fangrui Song + + PR 27834 + * ldlex.h (enum option_values): Add OPTION_NO_SYMBOLIC. + * lexsup.c (ld_options): Add -Bno-symbolic. + (parse_args): Handle -Bno-symbolic. + * ld.texi: Document -Bno-symbolic. + * NEWS: Mention -Bno-symbolic. + * testsuite/ld-elf/shared.exp: Add a test. + +2021-05-12 Richard Earnshaw + + * testsuite/ld-arm/arm-elf.exp (farcall test for v8-m.mainline): + Correct expected output. + +2021-05-11 Roland McGrath + + * testsuite/ld-x86-64/rela.d: Fix regexp not to presume a specific + address layout, so it works for e.g. --target=x86-64-elf. + +2021-05-11 Nick Clifton + + PR 27113 + * Makefile.am (install-data-local): Also delete libdep.dll.a if it + is present. + * Makefile.in: Regenerate. + +2021-05-10 Dimitar Dimitrov + + * testsuite/ld-elf/group8a.d: Remove pru from XFAIL list. + * testsuite/ld-elf/group8b.d: Ditto. + * testsuite/ld-elf/group9a.d: Ditto. + * testsuite/ld-elf/group9b.d: Ditto. + * testsuite/ld-elf/pr12851.d: Ditto. + * testsuite/ld-elf/pr22677.d: Ditto. + * testsuite/lib/ld-lib.exp (check_gc_sections_available): Remove + pru from list. + +2021-05-10 Dimitar Dimitrov + + * scripttempl/pru.sc (.resource_table): Add ALIGN directive. + Use symbols for memory sizes. + +2021-05-08 Mike Frysinger + + * Makefile.am (html-local, doc/ld/index.html): New targets. + * Makefile.in: Regenerate. + +2021-05-08 Mike Frysinger + + * Makefile.am (AM_MAKEINFOFLAGS): Add --no-split. + * Makefile.in: Regenerate. + +2021-05-07 Jan Beulich + + * testsuite/ld-x86-64/rela.d: New. + * testsuite/ld-x86-64/x86-64.exp: Run new test. + +2021-05-07 Nick Clifton + + * ldelfgen.c (compare_link_order): Ignore section size when + performing a relocateable link. + +2021-05-07 Alan Modra + + * ldexp.c (update_definedness): Don't return false for absolute + symbols. + * ldmain.c (multiple_definition): Print "warning: " in message + when not a hard error. + +2021-05-07 Alan Modra + + * testsuite/ld-elf/pr27825-1.d: Correct xfail. + * testsuite/ld-elf/pr27825-2.d: Likewise. + +2021-05-06 Stafford Horne + + PR 27746 + testsuite/ld-or1k/or1k.exp (or1kplttests): Add tests for linking + along with gotha() relocations. + testsuite/ld-or1k/gotha1.dd: New file. + testsuite/ld-or1k/gotha1.s: New file. + testsuite/ld-or1k/gotha2.dd: New file. + testsuite/ld-or1k/gotha2.s: New file + testsuite/ld-or1k/pltlib.s (x): Define size to avoid link + failure. + +2021-05-06 Nick Alcock + + * testsuite/ld-ctf/ctf.exp: Use -gctf, not -gt. + * testsuite/lib/ld-lib.exp: Likewise. + * testsuite/ld-ctf/nonrepresentable-1.c: New test for nonrepresentable types. + * testsuite/ld-ctf/nonrepresentable-2.c: Likewise. + * testsuite/ld-ctf/nonrepresentable.d: Likewise. + * testsuite/ld-ctf/array.d: Larger type section. + * testsuite/ld-ctf/data-func-conflicted.d: Likewise. + * testsuite/ld-ctf/enums.d: Likewise. + * testsuite/ld-ctf/conflicting-enums.d: Don't compare types. + * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Changed type order. + * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise. + * testsuite/ld-ctf/slice.d: Adjust for improved slice emission. + +2021-05-05 H.J. Lu + + PR ld/27825 + * testsuite/ld-elf/pr27825-1.d: New file. + * testsuite/ld-elf/pr27825-1a.s: Likewise. + * testsuite/ld-elf/pr27825-1b.s: Likewise. + * testsuite/ld-elf/pr27825-2.d: Likewise. + * testsuite/ld-elf/pr27825-2a.s: Likewise. + * testsuite/ld-elf/pr27825-2b.s: Likewise. + +2021-05-05 Alan Modra + + * testsuite/ld-powerpc/empty.s: New file. + * testsuite/ld-powerpc/undefweak.d, + * testsuite/ld-powerpc/undefweak.s: New testcase. + * testsuite/ld-powerpc/powerpc.exp: Run it. + +2021-05-03 Alan Modra + + * testsuite/ld-s390/tlspic_64.rd: Adjust expected output for + named section symbols. + +2021-04-28 Nick Clifton + + * testsuite/ld-elf/anno-sym.s: New test source file. + * testsuite/ld-elf/anno-sym.d: New test driver. + * testsuite/ld-elf/anno-sym.l: New test error output. + +2021-04-26 Jan Beulich + + * testsuite/ld-i386/pcrel16-2.s, testsuite/ld-i386/pcrel16-2.d, + testsuite/ld-x86-64/pcrel16-2.d: New. + * testsuite/ld-i386/i386.exp: Run new test. + * testsuite/ld-x86-64/x86-64.exp: Likewise. + +2021-04-23 H.J. Lu + + PR ld/27771 + * testsuite/ld-bootstrap/bootstrap.exp: Create a symbolic link + to tmpdir/ldscripts only if it doesn't exist. + +2021-04-22 Jan Beulich + + PR ld/26659 + * testsuite/ld-pe/pr26659-weak-undef-sym.d: Relax for Cygwin. + +2021-04-21 Nick Clifton + + * testsuite/ld-aarch64/variant_pcs-now.d: Adjust expected output + to allow for named section symbols. + * testsuite/ld-aarch64/variant_pcs-r.d: Likewise. + * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise. + * testsuite/ld-alpha/tlsbin.rd: Likewise. + * testsuite/ld-alpha/tlsbinr.rd: Likewise. + * testsuite/ld-alpha/tlspic.rd: Likewise. + * testsuite/ld-arm/rodata-merge-map.sym: Likewise. + * testsuite/ld-arm/script-type.sym: Likewise. + * testsuite/ld-cris/libdso-2.d: Likewise. + * testsuite/ld-cris/pr16044.d: Likewise. + * testsuite/ld-elf/sec64k.exp: Likewise. + * testsuite/ld-ia64/tlsbin.rd: Likewise. + * testsuite/ld-ia64/tlspic.rd: Likewise. + * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise. + * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise. + * testsuite/ld-mmix/bspec1.d: Likewise. + * testsuite/ld-mmix/bspec2.d: Likewise. + * testsuite/ld-mmix/local1.d: Likewise. + * testsuite/ld-mmix/local3.d: Likewise. + * testsuite/ld-mmix/local5.d: Likewise. + * testsuite/ld-mmix/local7.d: Likewise. + * testsuite/ld-mmix/undef-3.d: Likewise. + * testsuite/ld-powerpc/tlsso.r: Likewise. + * testsuite/ld-powerpc/tlsso32.r: Likewise. + * testsuite/ld-powerpc/tlstocso.r: Likewise. + * testsuite/ld-s390/tlsbin.rd: Likewise. + * testsuite/ld-s390/tlsbin_64.rd: Likewise. + * testsuite/ld-s390/tlspic.rd: Likewise. + * testsuite/ld-s390/tlspic_64.rd: Likewise. + * testsuite/ld-sparc/gotop32.rd: Likewise. + * testsuite/ld-sparc/gotop64.rd: Likewise. + * testsuite/ld-sparc/tlssunbin32.rd: Likewise. + * testsuite/ld-sparc/tlssunbin64.rd: Likewise. + * testsuite/ld-sparc/tlssunnopic32.rd: Likewise. + * testsuite/ld-sparc/tlssunnopic64.rd: Likewise. + * testsuite/ld-sparc/tlssunpic32.rd: Likewise. + * testsuite/ld-sparc/tlssunpic64.rd: Likewise. + * testsuite/ld-tic6x/common.d: Likewise. + * testsuite/ld-tic6x/shlib-1.rd: Likewise. + * testsuite/ld-tic6x/shlib-1b.rd: Likewise. + * testsuite/ld-tic6x/shlib-1r.rd: Likewise. + * testsuite/ld-tic6x/shlib-1rb.rd: Likewise. + * testsuite/ld-tic6x/shlib-app-1.rd: Likewise. + * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise. + * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise. + * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise. + * testsuite/ld-tic6x/shlib-noindex.rd: Likewise. + * testsuite/ld-tic6x/static-app-1.rd: Likewise. + * testsuite/ld-tic6x/static-app-1b.rd: Likewise. + * testsuite/ld-tic6x/static-app-1r.rd: Likewise. + * testsuite/ld-tic6x/static-app-1rb.rd: Likewise. + +2021-04-20 Clément Chigot + + PR binutils/21700 + * testsuite/ld-powerpc/aix52.exp: Add new test. + * testsuite/ld-powerpc/aix-neg-reloc-32.d: New test. + * testsuite/ld-powerpc/aix-neg-reloc-64.d: New test. + * testsuite/ld-powerpc/aix-neg-reloc.ex: New test. + * testsuite/ld-powerpc/aix-neg-reloc.s: New test. + +2021-04-13 Nick Clifton + + * ld.texi (Options): Add note about the effect of --as-needed on + the --rpath and --rpath-link options on Linux based systems. + +2021-04-13 Alan Modra + + PR 27722 + * libdep_plugin.c (str2vec): Don't pass a potentially signed char + to isspace. + +2021-04-12 Alan Modra + + * configure.ac (--enable-checking): Add support. + * config.in: Regenerate. + * configure: Regenerate. + +2021-04-12 Alan Modra + + * emultempl/mipself.em (mips_create_output_section_statements): + Pass base type of hash table to is_elf_hash_table. + * ldelf.c (ldelf_after_open): Likewise. + +2021-04-12 Alan Modra + + PR 27719 + * ldlang.c (lang_mark_undefineds, undef_start_stop): Test that + the symbol hash table is the correct type before accessing + elf_link_hash_entry symbols. + * plugin.c (is_visible_from_outside): Likewise. + * emultempl/armelf.em (ld${EMULATION_NAME}_finish): Likewise. + * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise. + +2021-04-09 Alan Modra + + * testsuite/ld-powerpc/inlinepcrel-1.d: Update expected output. + * testsuite/ld-powerpc/inlinepcrel-2.d: Likewise. + * testsuite/ld-powerpc/notoc2.d: Likewise. + * testsuite/ld-powerpc/notoc3.d: Likewise. + * testsuite/ld-powerpc/pcrelopt.d: Likewise. + * testsuite/ld-powerpc/startstop.d: Likewise. + * testsuite/ld-powerpc/tlsget.d: Likewise. + * testsuite/ld-powerpc/tlsget2.d: Likewise. + * testsuite/ld-powerpc/tlsld.d: Likewise. + * testsuite/ld-powerpc/weak1.d: Likewise. + * testsuite/ld-powerpc/weak1so.d: Likewise. + +2021-04-06 Jan Beulich + + * pe-dll.c (generate_reloc): Bail immediately when .reloc is + being discarded. Warn when relocated entry is above .reloc. + +2021-04-05 Alan Modra + + * configure.ac: Move initfini-array arg handling earlier. Don't + check for string.h, strings.h, stdlib.h, or locale.h. Do check + for inttypes.h, stdint.h, sys/types.h. Don't check for + setlocale, free, getev or strstr. + (AC_ISC_POSIX): Don't invoke. + * sysdep.h: Include string.h and stdlib.h unconditionally. Test + HAVE_SYS_TYPE_H and HAVE_SYS_STAT_H. Remove strstr, free and + getenv fallback declarations. + * ld.h: Don't test HAVE_LOCALE_H. + * ldmain.c: Don't test HAVE_SETLOCALE. + * config.in: Regenerate. + * configure: Regenerate. + +2021-04-01 Tamar Christina + + PR ld/26659 + * testsuite/ld-pe/pe.exp: Add test. + * testsuite/ld-pe/pr26659-weak-undef-sym.d: New test. + * testsuite/ld-pe/pr26659-weak-undef-sym.s: New test. + +2021-04-01 Martin Liska + + * ldbuildid.c (strneq): Remove strneq and use startswith. + (validate_build_id_style): Likewise. + (compute_build_id_size): Likewise. + +2021-03-31 Alan Modra + + * sysdep.h (POISON_BFD_BOOLEAN): Define. + * configure.ac (elf_list_options, elf_shlib_list_options=false), + (elf_plt_unwind_list_options=false): Replace FALSE with false, + and TRUE with true. + * emulparams/call_nop.sh, * emulparams/cet.sh, + * emulparams/dynamic_undefined_weak.sh, + * emulparams/elf32b4300.sh, * emulparams/elf32lm32.sh, + * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh, + * emulparams/elf32visium.sh, * emulparams/elf_x86_64.sh, + * emulparams/extern_protected_data.sh, * emulparams/plt_unwind.sh, + * emulparams/reloc_overflow.sh, * emulparams/static.sh, + * emulparams/x86-64-lam.sh, * emultempl/aarch64elf.em, + * emultempl/aix.em, * emultempl/alphaelf.em, + * emultempl/armcoff.em, * emultempl/armelf.em, + * emultempl/avrelf.em, * emultempl/beos.em, * emultempl/bfin.em, + * emultempl/cr16elf.em, * emultempl/crxelf.em, + * emultempl/cskyelf.em, * emultempl/elf.em, * emultempl/genelf.em, + * emultempl/hppaelf.em, * emultempl/linux.em, + * emultempl/m68hc1xelf.em, * emultempl/metagelf.em, + * emultempl/mipself.em, * emultempl/mmix-elfnmmo.em, + * emultempl/mmixelf.em, * emultempl/mmo.em, * emultempl/msp430.em, + * emultempl/nios2elf.em, * emultempl/pdp11.em, * emultempl/pe.em, + * emultempl/pep.em, * emultempl/ppc32elf.em, + * emultempl/ppc64elf.em, * emultempl/rxelf.em, + * emultempl/rxlinux.em, * emultempl/scoreelf.em, + * emultempl/solaris2.em, * emultempl/spuelf.em, + * emultempl/ticoff.em, * emultempl/v850elf.em, * emultempl/vms.em, + * emultempl/xtensaelf.em, * emultempl/z80.em, * ld.h, + * ldbuildid.c, * ldbuildid.h, * ldcref.c, * ldctor.c, * ldctor.h, + * ldelf.c, * ldelf.h, * ldelfgen.c, * ldelfgen.h, * ldemul.c, + * ldemul.h, * ldexp.c, * ldexp.h, * ldfile.c, * ldfile.h, + * ldgram.y, * ldlang.c, * ldlang.h, * ldmain.c, * ldmain.h, + * ldmisc.c, * ldmisc.h, * ldwrite.c, * lexsup.c, * mri.c, + * pe-dll.c, * pe-dll.h, * pep-dll.h, * plugin.c, * plugin.h, + * testplug.c, * testplug2.c, * testplug3.c, * testplug4.c: Replace + bfd_boolean with bool, FALSE with false, and TRUE with true. + * configure: Regenerate. + +2021-03-31 Alan Modra + + * elf-hints-local.h: Include stdint.h in place of bfd_stdint.h. + * emultempl/nds32elf.em: Likewise. + * testsuite/ld-elf/mbind2b.c: Likewise. + * testsuite/ld-elf/pr18718.c: Likewise. + * testsuite/ld-elf/pr18720a.c: Likewise. + * testsuite/ld-elf/pr25749-1.c: Likewise. + * testsuite/ld-elf/pr25749-1a.c: Likewise. + * testsuite/ld-elf/pr25749-1b.c: Likewise. + * testsuite/ld-elf/pr25749-1c.c: Likewise. + * testsuite/ld-elf/pr25749-1d.c: Likewise. + * testsuite/ld-elf/pr25749-2.c: Likewise. + * testsuite/ld-elf/pr25754-1a.c: Likewise. + * testsuite/ld-elf/pr25754-2a.c: Likewise. + * testsuite/ld-elf/pr25754-3a.c: Likewise. + * testsuite/ld-elf/pr25754-4a.c: Likewise. + * testsuite/ld-elf/pr25754-5a.c: Likewise. + * testsuite/ld-elf/pr25754-6a.c: Likewise. + +2021-03-29 Alan Modra + + * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Simplify + boolean expression. + * lexsup.c (parse_args): Likewise. + * pe-dll.c (pe_dll_id_target): Likewise. + +2021-03-25 Nick Alcock + + * testsuite/ld-ctf/array.d: Only check that the data object + section is nonempty: do not check its exact size. + * testsuite/ld-ctf/diag-parlabel.d: Likewise. + * testsuite/ld-ctf/slice.d: Likewise. + * testsuite/ld-ctf/data-func-conflicted.d: Likewise, and for the + func info section too. + * testsuite/ld-ctf/function.d: Likewise, for the func info section. + +2021-03-22 Martin Liska + + * emultempl/aix.em: Replace usage of CONST_STRNEQ with startswith. + * emultempl/beos.em: Likewise. + * emultempl/elf.em: Likewise. + * emultempl/pe.em: Likewise. + * emultempl/pep.em: Likewise. + * emultempl/xtensaelf.em: Likewise. + * ldctor.c (ctor_prio): Likewise. + * ldelf.c (ldelf_try_needed): Likewise. + (ldelf_parse_ld_so_conf): Likewise. + (ldelf_after_open): Likewise. + (output_rel_find): Likewise. + (ldelf_place_orphan): Likewise. + * ldfile.c (ldfile_add_library_path): Likewise. + * ldlang.c (lang_add_input_file): Likewise. + * ldmain.c (get_sysroot): Likewise. + (get_emulation): Likewise. + (add_archive_element): Likewise. + * ldwrite.c (unsplittable_name): Likewise. + (clone_section): Likewise. + * lexsup.c (parse_args): Likewise. + * pe-dll.c (is_import): Likewise. + (pe_implied_import_dll): Likewise. + +2021-03-19 H.J. Lu + + PR ld/27590 + * testsuite/ld-x86-64/pr27590.rd: New file. + * testsuite/ld-x86-64/pr27590a.obj.bz2: Likewise. + * testsuite/ld-x86-64/pr27590b.obj.bz2: Likewise. + * testsuite/ld-x86-64/x86-64.exp: Run ld/27590 test. + +2021-03-20 Alan Modra + + PR 27590 + * ldlang.c (lang_gc_sections): Clear SEC_EXCLUDE when relocatable + for all sections except .stabstr. + +2021-03-19 Alan Modra + + PR 27590 + * testsuite/ld-elf/pr27590a.d: Match relocs using label, and + R_MIPS_NONE. + * testsuite/ld-elf/pr27590b.d: Likewise. + +2021-03-18 H.J. Lu + + PR ld/27590 + * testsuite/ld-elf/pr27590.s: New file. + * testsuite/ld-elf/pr27590a.d: Likewise. + * testsuite/ld-elf/pr27590b.d: Likewise. + * testsuite/ld-i386/i386.exp: Also run ld/27193 test with + --reduce-memory-overheads. + +2021-03-18 H.J. Lu + + PR ld/27587 + * testsuite/ld-x86-64/pr27587.err: New file. + * testsuite/ld-x86-64/pr27587a.obj.bz2: Likewise. + * testsuite/ld-x86-64/pr27587b.obj.bz2: Likewise. + * testsuite/ld-x86-64/x86-64.exp: Run PR ld/27587 test. + +2021-03-18 Nick Alcock + + * testsuite/ld-ctf/slice.c: Check slices of enums too. + * testsuite/ld-ctf/slice.d: Results adjusted. + +2021-03-16 Nick Clifton + + * pe-dll.c (pe_find_cdecl_alias_match): Use memmove to overwrite + lname string. + +2021-03-15 Jan Beulich + + * pe-dll.c (generate_reloc): Drop padding to reloc_s->size. + +2021-03-12 Alan Modra + + * Makefile.am (ALL_EMULATION_SOURCES): Move riscv files to.. + (ALL_64_EMULATION_SOURCES): ..here. + * Makefile.in: Regenerate. + +2021-03-12 Clément Chigot + + * emultempl/aix.em: Ensure .tdata section is removed + if empty, even with -r flag. + * scripttempl/aix.sc: Handle TLS sections. + * testsuite/ld-powerpc/aix52.exp: Add new tests. + * testsuite/ld-powerpc/aix-tls-reloc-32.d: New test. + * testsuite/ld-powerpc/aix-tls-reloc-64.d: New test. + * testsuite/ld-powerpc/aix-tls-reloc.ex: New test. + * testsuite/ld-powerpc/aix-tls-reloc.s: New test. + * testsuite/ld-powerpc/aix-tls-section-32.d: New test. + * testsuite/ld-powerpc/aix-tls-section-64.d: New test. + * testsuite/ld-powerpc/aix-tls-section.ex: New test. + * testsuite/ld-powerpc/aix-tls-section.s: New test. + +2021-03-12 Clément Chigot + + * scripttempl/aix.sc: Add .te to .data section. + * testsuite/ld-powerpc/aix52.exp: Add test structure for AIX7+. + Add aix-largetoc-1 test. + * testsuite/ld-powerpc/aix-largetoc-1-32.d: New test. + * testsuite/ld-powerpc/aix-largetoc-1-64.d: New test. + * testsuite/ld-powerpc/aix-largetoc-1.ex: New test. + * testsuite/ld-powerpc/aix-largetoc-1.s: New test. + +2021-03-12 Alan Modra + + * testsuite/ld-gc/gc.exp: Pass "-image-base 0" to ld for PE, and + arrange to define __main for some run_dump_test tests. + * testsuite/ld-gc/pr13683.d: Accept more symbols. + * testsuite/ld-gc/pr14265.d: Likewise, and ordering. + * testsuite/ld-scripts/crossref.exp: Pass "-image-base 0" to ld for PE. + * testsuite/ld-srec/srec.exp: Likewise. + * testsuite/lib/ld-lib.exp (ld_link_defsyms): Use is_pecoff_format. + +2021-03-11 Nelson Chu + + * emultempl/riscvelf.em (after_allocation): Run ldelf_map_segments + many times if riscv_restart_relax_sections returns TRUE. + * testsuite/ld-riscv-elf/restart-relax.d: New testcase. Before + applying this patch, the call won't be relaxed to jal; But now we + have more chances to do relaxations. + * testsuite/ld-riscv-elf/restart-relax.s: Likewise. + * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated. + +2021-03-10 Jan Beulich + + * testsuite/ld-scripts/pr22267.t: Avoid symbol value with more + than 32 set bits. + * testsuite/ld-scripts/pr22267.d: Adjust expectation and drop + comment. + * scripttempl/mcorepe.sc: Use PROVIDE() for _stack. + +2021-03-09 Jan Beulich + + * testsuite/ld-pe/reloc.s: Add entry point symbols. Increase + alignment to 4k. + * testsuite/ld-pe/reloc.d: xfail for mcore. + +2021-03-09 Jan Beulich + + * testsuite/ld-scripts/alignof.exp, + testsuite/ld-scripts/data.exp, + testsuite/ld-scripts/default-script.exp, + testsuite/ld-scripts/log2.exp, + testsuite/ld-scripts/print-memory-usage.exp, + testsuite/ld-scripts/sizeof.exp, + testsuite/ld-undefined/weak-undef.exp: Set image base to zero + for PE/COFF. + * testsuite/ld-scripts/default-script1.d, + testsuite/ld-scripts/default-script2.d, + testsuite/ld-scripts/default-script3.d, + testsuite/ld-scripts/default-script4.d: Drop xfail and comment. + +2021-03-05 H.J. Lu + + PR ld/27425 + PR ld/27432 + * ldelf.c (ldelf_set_output_arch): New function. + * ldelf.h (ldelf_set_output_arch): New prototype. + * emultempl/elf.em (LDEMUL_SET_OUTPUT_ARCH): Default to + ldelf_set_output_arch. + * ld-x86-64/pe-x86-64-1.od: Expect __executable_start. + * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise. + * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise. + * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise. + * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise. + * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise. + * testsuite/ld-x86-64/pe-x86-64-6.obj.bz2: New file. + * testsuite/ld-x86-64/pe-x86-64-6.od: Likewise. + * testsuite/ld-x86-64/pe-x86-64.exp: Run ld/27425 test. + +2021-03-04 Jan Beulich + + * testsuite/ld-scripts/map-address.exp: Set image base to zero + for PE/COFF. + * testsuite/ld-scripts/map-address.t: Place .text. + +2021-03-04 Jan Beulich + + * ldexp.c (ldexp_is_final_sym_absolute): New. + * ldexp.h (ldexp_is_final_sym_absolute): Declare. + * pe-dll.c (generate_reloc): Skip absolute symbols. + * testsuite/ld-pe/reloc.s, testsuite/ld-pe/reloc.d: New. + * testsuite/ld-pe/pe.exp: Run new test. + 2021-03-03 Alan Modra PR 27500 @@ -906,7 +1776,7 @@ For older changes see ChangeLog-2020 -Copyright (C) 2021 Free Software Foundation, Inc. +Copyright (C) 2021-2022 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright