Re: ld -r: Don't merge with member of output section group
[deliverable/binutils-gdb.git] / ld / ChangeLog
index 7f7fef6be58853603cb8d515dca9a3af71c33bdf..3b0ff7cea25baaa59c278be44a024debb33866a2 100644 (file)
@@ -1,3 +1,338 @@
+2019-07-19  Alan Modra  <amodra@gmail.com>
+
+       PR 24819
+       * testsuite/ld-elf/pr24819.d: xfail for genelf targets.
+
+2019-07-18  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/24819
+       * emultempl/elf32.em (elf_orphan_compatible): Return FALSE for
+       member of output section group when doing a relocatable link.
+       * testsuite/ld-elf/pr24819.d: New file.
+       * testsuite/ld-elf/pr24819.s: Likewise.
+
+2019-07-13  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-powerpc/tlsso.r: Update.
+       * testsuite/ld-powerpc/tlsso32.g: Update.
+       * testsuite/ld-powerpc/tlsso32.r: Update.
+       * testsuite/ld-powerpc/tlstocso.r: Update.
+       * testsuite/ld-cris/tls-dso-dtpoffd2.d: Update.
+       * testsuite/ld-cris/tls-dso-dtpoffd4.d: Update.
+       * testsuite/ld-cris/tls-dso-tpoffgotcomm1.d: Update.
+       * testsuite/ld-cris/tls-gd-1.d: Update.
+       * testsuite/ld-cris/tls-gd-1h.d: Update.
+       * testsuite/ld-cris/tls-gd-2.d: Update.
+       * testsuite/ld-cris/tls-gd-2h.d: Update.
+       * testsuite/ld-cris/tls-ie-10.d: Update.
+       * testsuite/ld-cris/tls-ie-11.d: Update.
+       * testsuite/ld-cris/tls-ie-8.d: Update.
+       * testsuite/ld-cris/tls-ie-9.d: Update.
+       * testsuite/ld-cris/tls-js1.d: Update.
+       * testsuite/ld-cris/tls-ld-4.d: Update.
+       * testsuite/ld-cris/tls-ld-5.d: Update.
+       * testsuite/ld-cris/tls-ld-6.d: Update.
+       * testsuite/ld-cris/tls-ld-7.d: Update.
+       * testsuite/ld-cris/tls-ldgd-14.d: Update.
+       * testsuite/ld-cris/tls-ldgd-15.d: Update.
+       * testsuite/ld-cris/tls-ldgdx-14.d: Update.
+       * testsuite/ld-cris/tls-ldgdx-15.d: Update.
+       * testsuite/ld-cris/tls-local-54.d: Update.
+       * testsuite/ld-cris/tls-local-60.d: Update.
+       * testsuite/ld-cris/tls-local-61.d: Update.
+       * testsuite/ld-cris/tls-local-63.d: Update.
+       * testsuite/ld-cris/tls-local-64.d: Update.
+       * testsuite/ld-cris/tls-ok-30.d: Update.
+       * testsuite/ld-cris/tls-ok-32.d: Update.
+       * testsuite/ld-cris/tls-ok-34.d: Update.
+       * testsuite/ld-mips-elf/tls-multi-got-1.got: Update.
+       * testsuite/ld-mips-elf/tls-multi-got-1.r: Update.
+       * testsuite/ld-mips-elf/tlsdyn-pie-o32.d: Update.
+       * testsuite/ld-mips-elf/tlsdyn-pie-o32.got: Update.
+       * testsuite/ld-mips-elf/tlslib-o32-hidden.got: Update.
+       * testsuite/ld-mips-elf/tlslib-o32-ver.got: Update.
+       * testsuite/ld-mips-elf/tlslib-o32.got: Update.
+       * testsuite/ld-s390/tlspic.rd: Update.
+       * testsuite/ld-s390/tlspic_64.rd: Update.
+       * testsuite/ld-sparc/tlssunnopic32.rd: Update.
+       * testsuite/ld-sparc/tlssunnopic64.rd: Update.
+       * testsuite/ld-sparc/tlssunpic32.rd: Update.
+       * testsuite/ld-sparc/tlssunpic64.rd: Update.
+
+2019-07-13  Alan Modra  <amodra@gmail.com>
+
+       PR 24786
+       * ldlang.h (enum section_type): Add first_overlay_section.
+       * ldlang.c (lang_add_section): Adjust switch statement.
+       (map_input_to_output_sections): Likewise.
+       (lang_size_sections_1): Always set last_os for first overlay section.
+       (lang_leave_overlay): Set sectype to first_overlay_section.
+
+2019-07-08  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-powerpc/callstub-1.d: Pass -melf64ppc to ld.
+       * testsuite/ld-powerpc/callstub-2.d: Likewise.
+
+2019-07-04  Jan Beulich  <jbeulich@suse.com>
+
+       * testsuite/ld-elf/group9.s: Correct argument of .type.
+
+2019-07-02  Nick Clifton  <nickc@redhat.com>
+
+       PR 24753
+       * emultempl/aarch64elf.em (_aarch64_add_stub_section): Include the
+       LINKER_CREATED section flag when creating the stub section.
+
+2019-07-02  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
+
+       * testsuite/ld-arm/arm-elf.exp: Add tests.
+       * testsuite/ld-arm/cmse_main.s: New test.
+       * testsuite/ld-arm/cmse_main_sec_debug.d: Likewise.
+       * testsuite/ld-arm/cmse_sec_debug.s: Likewise.
+
+2019-07-01  Nick Clifton  <nickc@redhat.com>
+
+       PR 23839
+       * testsuite/ld-arm/unwind-4.d: Adjust for corrected calculation of
+       exidx relocs.
+
+2019-06-28  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-powerpc/callstub-1.d,
+       * testsuite/ld-powerpc/callstub-1.s: New test.
+       * testsuite/ld-powerpc/callstub-2.d,
+       * testsuite/ld-powerpc/callstub-2.s: New test.
+       * testsuite/ld-powerpc/powerpc.exp: Run them.
+
+2019-06-25  Jan Beulich  <jbeulich@suse.com>
+
+       * plugin.c (get_lto_kind, get_lto_resolution,
+       get_lto_visibility): Rename "index" to "idx".
+
+2019-06-24  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/24721
+       * testsuite/ld-x86-64/x86-64.exp: Run PR ld/24721 tests.
+       * testsuite/ld-x86-64/pr24721-x32.d: New file.
+       * testsuite/ld-x86-64/pr24721.d: Likewise.
+       * testsuite/ld-x86-64/pr24721.map: Likewise.
+       * testsuite/ld-x86-64/pr24721a.s: Likewise.
+       * testsuite/ld-x86-64/pr24721b.s: Likewise.
+
+2019-06-23  Alan Modra  <amodra@gmail.com>
+
+       PR 24704
+       * testsuite/ld-powerpc/elfv2exe.d: Update.
+       * testsuite/ld-powerpc/elfv2so.d: Update.
+
+2019-06-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+       * testsuite/ld-aarch64/aarch64-elf.exp: Add emit-relocs-22 and -23.
+       * testsuite/ld-aarch64/emit-relocs-22.d: New test.
+       * testsuite/ld-aarch64/emit-relocs-22.s: New test.
+       * testsuite/ld-aarch64/emit-relocs-23.d: New test.
+       * testsuite/ld-aarch64/emit-relocs-23.s: New test.
+
+2019-06-14  Alan Modra  <amodra@gmail.com>
+
+       * Makefile.in: Regenerate.
+       * configure: Regenerate.
+
+2019-06-14  Alan Modra  <amodra@gmail.com>
+
+       PR 24662
+       * testsuite/ld-alpha/tlsbin.rd: Update.
+       * testsuite/ld-alpha/tlsbinr.rd: Update.
+       * testsuite/ld-alpha/tlspic.rd: Update.
+
+2019-06-07  Maciej W. Rozycki  <macro@wdc.com>
+
+       * ld.texi (Options): Also document `-rpath' option restrictions
+       in the description of the option itself.
+
+2019-06-06  Sudakshina Das  <sudi.das@arm.com>
+
+       * testsuite/ld-aarch64/aarch64-elf.exp: Add new tests.
+       * testsuite/ld-aarch64/property-bti-pac4-a.d: New test.
+       * testsuite/ld-aarch64/property-bti-pac4-b.d: New test.
+       * testsuite/ld-aarch64/property-bti-pac4.s: New test.
+
+2019-06-06  Sudakshina Das  <sudi.das@arm.com>
+
+       * NEWS: Update options names.
+       * emultempl/aarch64elf.em (OPTION_FORCE_BTI, OPTION_PAC_PLT): Remove.
+       (PARSE_AND_LIST_LONGOPTS): Remove force-bti and pac-plt.
+       (PARSE_AND_LIST_OPTIONS): Update to -z.
+       (PARSE_AND_LIST_ARGS_CASE_Z_AARCH64): New.
+       (PARSE_AND_LIST_ARGS_CASE_Z): Add PARSE_AND_LIST_ARGS_CASE_Z_AARCH64.
+       (PARSE_AND_LIST_ARGS_CASES): Move cases for these options.
+       * testsuite/ld-aarch64/bti-pac-plt-1.d: Update option.
+       * testsuite/ld-aarch64/bti-pac-plt-2.d: Likewise.
+       * testsuite/ld-aarch64/bti-plt-1.d: Likewise.
+       * testsuite/ld-aarch64/bti-plt-2.d: Likewise.
+       * testsuite/ld-aarch64/bti-plt-3.d: Likewise.
+       * testsuite/ld-aarch64/bti-plt-4.d: Likewise.
+       * testsuite/ld-aarch64/bti-plt-6.d: Likewise.
+       * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
+       * testsuite/ld-aarch64/bti-warn.d: Likewise.
+       * testsuite/ld-aarch64/pac-plt-1.d: Likewise.
+       * testsuite/ld-aarch64/pac-plt-2.d: Likewise.
+
+2019-05-30  Nick Clifton  <nickc@redhat.com>
+
+       PR 24627
+       * testsuite/ld-elf/ver_def.vd: Update expected output.
+
+2019-05-30  Alan Modra  <amodra@gmail.com>
+
+       PR 24596
+       * emulparams/m9s12zelf.sh (TEMPLATE_NAME): Set to generic.
+       (EXTRA_EM_FILE): Define to genelf.
+       * testsuite/lib/ld-lib.exp (uses_genelf): Add s12z.
+
+2019-05-30  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/lib/ld-lib.exp (run_ld_link_tests): Support procedure
+       calls in optional "xfail" args.
+       (run_ld_link_exec_tests): Likewise.
+       (is_generic): New.
+       (uses_genelf): Rename from is_generic_elf.  Delete bogus semicolons.
+       * testsuite/ld-scripts/align.exp: Rename is_generic_elf call.
+       * testsuite/ld-elf/elf.exp: Use is_generic and uses_genelf.  Delete
+       xfail_implib var.
+       * testsuite/ld-elf/sec64k.exp: Use is_generic.
+       * testsuite/ld-elf/shared.exp: Likewise.
+       * testsuite/ld-discard/extern.d: Use is_generic in xfail.
+       * testsuite/ld-discard/start.d: Likewise.
+       * testsuite/ld-discard/static.d: Likewise.
+       * testsuite/ld-elf/attributes.d: Likewise.
+       * testsuite/ld-elf/group1.d: Likewise.
+       * testsuite/ld-elf/group3b.d: Likewise.
+       * testsuite/ld-elf/group8a.d: Likewise.
+       * testsuite/ld-elf/group8b.d: Likewise.
+       * testsuite/ld-elf/group9a.d: Likewise.
+       * testsuite/ld-elf/group9b.d: Likewise.
+       * testsuite/ld-elf/linkonce2.d: Likewise.
+       * testsuite/ld-elf/merge2.d: Likewise.
+       * testsuite/ld-elf/merge3.d: Likewise.
+       * testsuite/ld-elf/pr12851.d: Likewise.
+       * testsuite/ld-elf/pr12975.d: Likewise.
+       * testsuite/ld-elf/pr13177.d: Likewise.
+       * testsuite/ld-elf/pr13195.d: Likewise.
+       * testsuite/ld-elf/pr17550c.d: Likewise.
+       * testsuite/ld-elf/pr17550d.d: Likewise.
+       * testsuite/ld-elf/pr17615.d: Likewise.
+       * testsuite/ld-elf/pr21562a.d: Likewise.
+       * testsuite/ld-elf/pr21562b.d: Likewise.
+       * testsuite/ld-elf/pr21562c.d: Likewise.
+       * testsuite/ld-elf/pr21562d.d: Likewise.
+       * testsuite/ld-elf/pr21562i.d: Likewise.
+       * testsuite/ld-elf/pr21562j.d: Likewise.
+       * testsuite/ld-elf/pr21562k.d: Likewise.
+       * testsuite/ld-elf/pr21562l.d: Likewise.
+       * testsuite/ld-elf/pr21562m.d: Likewise.
+       * testsuite/ld-elf/pr21562n.d: Likewise.
+       * testsuite/ld-elf/pr22677.d: Likewise.
+       * testsuite/ld-elf/pr22836-1a.d: Likewise.
+       * testsuite/ld-elf/pr22836-1b.d: Likewise.
+       * testsuite/ld-elf/warn3.d: Likewise.
+       * testsuite/ld-elf/warn1.d: Likewise and xfail sparc solaris
+       targets rather than notarget.
+       * testsuite/ld-elf/compressed1d.d: Use uses_genelf in xfail.
+       * testsuite/ld-elf/orphan-10.d: Likewise.
+       * testsuite/ld-elf/orphan-9.d: Likewise.
+       * testsuite/ld-elf/orphan-region.d: Likewise.
+       * testsuite/ld-elf/orphan.d: Likewise.
+       * testsuite/ld-elf/orphan3.d: Likewise.
+       * testsuite/ld-elf/pr20528a.d: Likewise.
+       * testsuite/ld-elf/pr20528b.d: Likewise.
+       * testsuite/ld-elf/pr23658-1a.d: Likewise.
+       * testsuite/ld-elf/pr23658-1b.d: Likewise.
+       * testsuite/ld-elf/pr349.d: Likewise.
+       * testsuite/ld-elf/warn2.d: Likewise and xfail sparc solaris
+       targets rather than notarget.
+       * testsuite/ld-elf/merge.d: Correct ms1-*-* to mt-*-*.
+
+2019-05-28  Faraz Shahbazker  <fshahbazker@wavecomp.com>
+
+       * testsuite/ld-mips-elf/undefweak-overflow.s: Remove test case
+       for pcrel_hi/pcrel_lo.
+       * testsuite/ld-mips-elf/undefweak-overflow.d: Update to match.
+       * testsuite/ld-mips-elf/reloc-pcrel-r6.s: New test source.
+       * testsuite/ld-mips-elf/reloc-pcrel-r6.d: New test linker script.
+       * testsuite/ld-mips-elf/reloc-pcrel-r6.ld: New test.
+       * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
+
+2019-05-28  Alan Modra  <amodra@gmail.com>
+
+       PR 24596
+       * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Check that
+       the output is coff before accessing coff tdata.
+       * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
+
+2019-05-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+       * testsuite/ld-aarch64/variant_pcs-now.d: Use --hash-style=sysv.
+       * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
+
+2019-05-27  Alan Modra  <amodra@gmail.com>
+
+       PR 24596
+       * emultempl/genelf.em (gld${EMULATION_NAME}_after_open): Set
+       BFS_KEEP on group signature symbol.
+
+2019-04-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+       * testsuite/ld-aarch64/aarch64-elf.exp: Add new tests.
+       * testsuite/ld-aarch64/variant_pcs-1.s: New asm for tests.
+       * testsuite/ld-aarch64/variant_pcs-2.s: New asm for tests.
+       * testsuite/ld-aarch64/variant_pcs-now.d: New test.
+       * testsuite/ld-aarch64/variant_pcs-r.d: New test.
+       * testsuite/ld-aarch64/variant_pcs-shared.d: New test.
+       * testsuite/ld-aarch64/variant_pcs.ld: New linker script for tests.
+
+2019-05-24  Alan Modra  <amodra@gmail.com>
+
+       * po/BLD-POTFILES.in: Regenerate.
+
+2019-05-24  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-powerpc/notoc2.d,
+       * testsuite/ld-powerpc/notoc2.s: New test.
+       * testsuite/ld-powerpc/powerpc.exp: Run it.
+
+2019-05-24  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-powerpc/pcrelopt.s,
+       * testsuite/ld-powerpc/pcrelopt.d,
+       * testsuite/ld-powerpc/pcrelopt.sec: New test.
+       * testsuite/ld-powerpc/powerpc.exp: Run it.
+
+2019-05-23  Jose E. Marchesi  <jose.marchesi@oracle.com>
+
+       * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64bpf.c.
+       * Makefile.in (prefix): Regenerate.
+       * configure.tgt (targ_extra_ofiles): Add case for bpf-*-* targets.
+       * emulparams/elf64bpf.sh: New file.
+       * testsuite/lib/ld-lib.exp (check_gc_sections_available): Add
+       bpf-*-* to the list of targets not supporting gc-sections.
+       * testsuite/ld-bpf/bar.s: New file.
+       * testsuite/ld-bpf/jump-1.d: Likewise.
+       * testsuite/ld-bpf/foo.s: Likewise.
+       * testsuite/ld-bpf/call-1.d: Likewise.
+       * testsuite/ld-bpf/bpf.exp: Likewise.
+       * testsuite/ld-bpf/baz.s: Likewise.
+
+2019-05-23  Alan Modra  <amodra@gmail.com>
+
+       PR 24576
+       * ldfile.c (enum script_open_style): New.
+       (struct script_name_list): New.
+       (ldfile_open_command_file_1): Take a script_open_style param
+       rather than booleans.  Adjust callers.  Only fail when -T or
+       default -T script is invoked twice.
+       (ldfile_try_open_bfd): Revert last change.
+
 2019-05-22  Julius Werner  <jwerner@chromium.org>
            Nick Clifton  <nickc@redhat.com>
 
This page took 0.025869 seconds and 4 git commands to generate.