ld, gold: remove support for -z bndplt (MPX prefix)
authorMartin Liska <mliska@suse.cz>
Thu, 8 Dec 2022 08:12:13 +0000 (09:12 +0100)
committerMartin Liska <mliska@suse.cz>
Wed, 14 Dec 2022 07:48:13 +0000 (08:48 +0100)
commit8ad93045edcff5128fccc8bff23848f2cfae6453
tree5296a7e2552a1a8329c925fe266a649fd2d821a2
parentd0517d6e333c4b6aaae411648628e2923e1f83aa
ld, gold: remove support for -z bndplt (MPX prefix)

bfd/ChangeLog:

* elf-linker-x86.h (struct elf_linker_x86_params): Remove
bndplt.
* elf64-x86-64.c (elf_x86_64_scan_relocs): Ignore
        R_X86_64_PLT32_BND.
(elf_x86_64_relocate_section): Similarly here.
(elf_x86_64_link_setup_gnu_properties): Ignore bndplt.
* elfxx-x86.c: Likewise.
* elfxx-x86.h: Likewise.

gold/ChangeLog:

* NEWS: Document -z bndplt.
* options.h (class General_options): Remove bndplt option.
* x86_64.cc (class Output_data_plt_x86_64_bnd): Remove.
(Target_x86_64::do_make_data_plt): Do not use
Output_data_plt_x86_64_bnd.
(Target_x86_64::Scan::get_reference_flags): Likewise.
(Target_x86_64::Scan::check_non_pic): Likewise.
(Target_x86_64::Scan::local): Likewise.
(Target_x86_64::Scan::global): Likewise.

ld/ChangeLog:

* NEWS: Document -z bndplt.
* emulparams/elf_x86_64.sh: Remove bndplt option.
* ld.texi: Likewise.
* testsuite/ld-x86-64/x86-64.exp:
* testsuite/ld-x86-64/bnd-branch-1-now.d: Removed.
* testsuite/ld-x86-64/bnd-branch-1.d: Removed.
* testsuite/ld-x86-64/bnd-branch-1.s: Removed.
* testsuite/ld-x86-64/bnd-ifunc-1-now.d: Removed.
* testsuite/ld-x86-64/bnd-ifunc-1.d: Removed.
* testsuite/ld-x86-64/bnd-ifunc-1.s: Removed.
* testsuite/ld-x86-64/bnd-ifunc-2-now.d: Removed.
* testsuite/ld-x86-64/bnd-ifunc-2.d: Removed.
* testsuite/ld-x86-64/bnd-ifunc-2.s: Removed.
* testsuite/ld-x86-64/bnd-plt-1-now.d: Removed.
* testsuite/ld-x86-64/bnd-plt-1.d: Removed.
* testsuite/ld-x86-64/mpx.exp: Removed.
* testsuite/ld-x86-64/mpx1.out: Removed.
* testsuite/ld-x86-64/mpx1a.c: Removed.
* testsuite/ld-x86-64/mpx1a.rd: Removed.
* testsuite/ld-x86-64/mpx1b.c: Removed.
* testsuite/ld-x86-64/mpx1c.c: Removed.
* testsuite/ld-x86-64/mpx1c.rd: Removed.
* testsuite/ld-x86-64/mpx2.out: Removed.
* testsuite/ld-x86-64/mpx2a.c: Removed.
* testsuite/ld-x86-64/mpx2a.rd: Removed.
* testsuite/ld-x86-64/mpx2b.c: Removed.
* testsuite/ld-x86-64/mpx2c.c: Removed.
* testsuite/ld-x86-64/mpx2c.rd: Removed.
* testsuite/ld-x86-64/mpx3.dd: Removed.
* testsuite/ld-x86-64/mpx3a.s: Removed.
* testsuite/ld-x86-64/mpx3b.s: Removed.
* testsuite/ld-x86-64/mpx3n.dd: Removed.
* testsuite/ld-x86-64/mpx4.dd: Removed.
* testsuite/ld-x86-64/mpx4a.s: Removed.
* testsuite/ld-x86-64/mpx4b.s: Removed.
* testsuite/ld-x86-64/mpx4n.dd: Removed.
* testsuite/ld-x86-64/pr20800a.S: Removed.
* testsuite/ld-x86-64/pr20800b.S: Removed.
* testsuite/ld-x86-64/pr21038a-now.d: Removed.
* testsuite/ld-x86-64/pr21038a.d: Removed.
* testsuite/ld-x86-64/pr21038a.s: Removed.
* testsuite/ld-x86-64/pr21038b-now.d: Removed.
* testsuite/ld-x86-64/pr21038b.d: Removed.
* testsuite/ld-x86-64/pr21038b.s: Removed.
* testsuite/ld-x86-64/pr21038c-now.d: Removed.
* testsuite/ld-x86-64/pr21038c.d: Removed.
* testsuite/ld-x86-64/pr21038c.s: Removed.
54 files changed:
bfd/elf-linker-x86.h
bfd/elf64-x86-64.c
bfd/elfxx-x86.c
bfd/elfxx-x86.h
gold/NEWS
gold/options.h
gold/x86_64.cc
ld/NEWS
ld/emulparams/elf_x86_64.sh
ld/ld.texi
ld/testsuite/ld-x86-64/bnd-branch-1-now.d [deleted file]
ld/testsuite/ld-x86-64/bnd-branch-1.d [deleted file]
ld/testsuite/ld-x86-64/bnd-branch-1.s [deleted file]
ld/testsuite/ld-x86-64/bnd-ifunc-1-now.d [deleted file]
ld/testsuite/ld-x86-64/bnd-ifunc-1.d [deleted file]
ld/testsuite/ld-x86-64/bnd-ifunc-1.s [deleted file]
ld/testsuite/ld-x86-64/bnd-ifunc-2-now.d [deleted file]
ld/testsuite/ld-x86-64/bnd-ifunc-2.d [deleted file]
ld/testsuite/ld-x86-64/bnd-ifunc-2.s [deleted file]
ld/testsuite/ld-x86-64/bnd-plt-1-now.d [deleted file]
ld/testsuite/ld-x86-64/bnd-plt-1.d [deleted file]
ld/testsuite/ld-x86-64/mpx.exp [deleted file]
ld/testsuite/ld-x86-64/mpx1.out [deleted file]
ld/testsuite/ld-x86-64/mpx1a.c [deleted file]
ld/testsuite/ld-x86-64/mpx1a.rd [deleted file]
ld/testsuite/ld-x86-64/mpx1b.c [deleted file]
ld/testsuite/ld-x86-64/mpx1c.c [deleted file]
ld/testsuite/ld-x86-64/mpx1c.rd [deleted file]
ld/testsuite/ld-x86-64/mpx2.out [deleted file]
ld/testsuite/ld-x86-64/mpx2a.c [deleted file]
ld/testsuite/ld-x86-64/mpx2a.rd [deleted file]
ld/testsuite/ld-x86-64/mpx2b.c [deleted file]
ld/testsuite/ld-x86-64/mpx2c.c [deleted file]
ld/testsuite/ld-x86-64/mpx2c.rd [deleted file]
ld/testsuite/ld-x86-64/mpx3.dd [deleted file]
ld/testsuite/ld-x86-64/mpx3a.s [deleted file]
ld/testsuite/ld-x86-64/mpx3b.s [deleted file]
ld/testsuite/ld-x86-64/mpx3n.dd [deleted file]
ld/testsuite/ld-x86-64/mpx4.dd [deleted file]
ld/testsuite/ld-x86-64/mpx4a.s [deleted file]
ld/testsuite/ld-x86-64/mpx4b.s [deleted file]
ld/testsuite/ld-x86-64/mpx4n.dd [deleted file]
ld/testsuite/ld-x86-64/pr20800a.S [deleted file]
ld/testsuite/ld-x86-64/pr20800b.S [deleted file]
ld/testsuite/ld-x86-64/pr21038a-now.d [deleted file]
ld/testsuite/ld-x86-64/pr21038a.d [deleted file]
ld/testsuite/ld-x86-64/pr21038a.s [deleted file]
ld/testsuite/ld-x86-64/pr21038b-now.d [deleted file]
ld/testsuite/ld-x86-64/pr21038b.d [deleted file]
ld/testsuite/ld-x86-64/pr21038b.s [deleted file]
ld/testsuite/ld-x86-64/pr21038c-now.d [deleted file]
ld/testsuite/ld-x86-64/pr21038c.d [deleted file]
ld/testsuite/ld-x86-64/pr21038c.s [deleted file]
ld/testsuite/ld-x86-64/x86-64.exp