mbox series

[v3,0/3] x86: Move CET infrastructure to x86_64

Message ID 20240108125025.1389849-1-adhemerval.zanella@linaro.org
Headers show
Series x86: Move CET infrastructure to x86_64 | expand

Message

Adhemerval Zanella Netto Jan. 8, 2024, 12:50 p.m. UTC
And removes i686 support now that CET is x86_64 only.   The --enable-cet
now issues an error with i686-linux-gnu.

Adhemerval Zanella (3):
  x86: Move CET infrastructure to x86_64
  i386: Remove CET support
  i386: Fail if configured with --enable-cet

 INSTALL                                       |   3 +-
 NEWS                                          |   4 +-
 manual/install.texi                           |   3 +-
 sysdeps/i386/__longjmp.S                      |  73 ------
 sysdeps/i386/add_n.S                          |  25 --
 sysdeps/i386/bsd-_setjmp.S                    |  21 --
 sysdeps/i386/bsd-setjmp.S                     |  21 --
 sysdeps/i386/configure                        |   8 +-
 sysdeps/i386/configure.ac                     |   7 +-
 sysdeps/i386/crti.S                           |   2 -
 sysdeps/i386/dl-tlsdesc.S                     |   3 -
 sysdeps/i386/dl-trampoline.S                  |   4 -
 sysdeps/i386/i386-mcount.S                    |   2 -
 sysdeps/i386/i686/add_n.S                     |  25 --
 sysdeps/i386/i686/memcmp.S                    |   4 +-
 sysdeps/i386/i686/multiarch/memcmp-sse4.S     |   4 +-
 .../i386/i686/multiarch/memcpy-ssse3-rep.S    |   8 +-
 sysdeps/i386/i686/multiarch/memcpy-ssse3.S    |   4 +-
 sysdeps/i386/i686/multiarch/memset-sse2-rep.S |   4 +-
 sysdeps/i386/i686/multiarch/memset-sse2.S     |   4 +-
 sysdeps/i386/i686/multiarch/strcat-sse2.S     |   4 +-
 sysdeps/i386/i686/multiarch/strcpy-sse2.S     |   4 +-
 sysdeps/i386/setjmp.S                         |  21 --
 sysdeps/i386/start.S                          |   1 -
 sysdeps/i386/sub_n.S                          |  25 --
 sysdeps/i386/sysdep.h                         |  11 +
 .../unix/sysv/linux/i386/____longjmp_chk.S    |  37 ---
 sysdeps/unix/sysv/linux/i386/getcontext.S     |  56 ----
 sysdeps/unix/sysv/linux/i386/makecontext.S    | 123 ---------
 sysdeps/unix/sysv/linux/i386/setcontext.S     | 101 +-------
 sysdeps/unix/sysv/linux/i386/swapcontext.S    | 139 ----------
 sysdeps/unix/sysv/linux/i386/sysdep.h         |   5 -
 sysdeps/unix/sysv/linux/i386/ucontext_i.sym   |   4 -
 sysdeps/unix/sysv/linux/i386/vfork.S          |  24 +-
 sysdeps/unix/sysv/linux/x86/Makefile          |  27 --
 sysdeps/unix/sysv/linux/x86_64/Makefile       |  27 ++
 .../linux/{x86 => x86_64}/include/asm/prctl.h |   0
 .../{x86 => x86_64}/tst-cet-property-1.c      |   0
 .../{x86 => x86_64}/tst-cet-property-2.c      |   0
 .../{x86 => x86_64}/tst-cet-property-dep-2.S  |   0
 .../{x86 => x86_64}/tst-cet-setcontext-1.c    |   0
 .../linux/{x86 => x86_64}/tst-cet-vfork-1.c   |   0
 sysdeps/x86/Makefile                          | 238 -----------------
 sysdeps/x86/sysdep.h                          |  44 ----
 sysdeps/x86_64/Makefile                       | 243 ++++++++++++++++++
 sysdeps/x86_64/sysdep.h                       |  42 +++
 sysdeps/{x86 => x86_64}/tst-cet-legacy-1.c    |   0
 .../tst-cet-legacy-10-static.c                |   0
 sysdeps/{x86 => x86_64}/tst-cet-legacy-10.c   |   0
 .../tst-cet-legacy-10a-static.c               |   0
 sysdeps/{x86 => x86_64}/tst-cet-legacy-10a.c  |   0
 sysdeps/{x86 => x86_64}/tst-cet-legacy-1a.c   |   0
 sysdeps/{x86 => x86_64}/tst-cet-legacy-2.c    |   0
 sysdeps/{x86 => x86_64}/tst-cet-legacy-2a.c   |   0
 sysdeps/{x86 => x86_64}/tst-cet-legacy-3.c    |   0
 sysdeps/{x86 => x86_64}/tst-cet-legacy-4.c    |   0
 sysdeps/{x86 => x86_64}/tst-cet-legacy-4a.c   |   0
 sysdeps/{x86 => x86_64}/tst-cet-legacy-4b.c   |   0
 sysdeps/{x86 => x86_64}/tst-cet-legacy-4c.c   |   0
 sysdeps/{x86 => x86_64}/tst-cet-legacy-5.c    |   0
 sysdeps/{x86 => x86_64}/tst-cet-legacy-5a.c   |   0
 sysdeps/{x86 => x86_64}/tst-cet-legacy-5b.c   |   0
 sysdeps/{x86 => x86_64}/tst-cet-legacy-6.c    |   0
 sysdeps/{x86 => x86_64}/tst-cet-legacy-6a.c   |   0
 sysdeps/{x86 => x86_64}/tst-cet-legacy-6b.c   |   0
 sysdeps/{x86 => x86_64}/tst-cet-legacy-7.c    |   0
 sysdeps/{x86 => x86_64}/tst-cet-legacy-8.c    |   0
 .../{x86 => x86_64}/tst-cet-legacy-9-static.c |   0
 sysdeps/{x86 => x86_64}/tst-cet-legacy-9.c    |   0
 .../{x86 => x86_64}/tst-cet-legacy-mod-1.c    |   0
 .../{x86 => x86_64}/tst-cet-legacy-mod-2.c    |   0
 .../{x86 => x86_64}/tst-cet-legacy-mod-4.c    |   0
 .../{x86 => x86_64}/tst-cet-legacy-mod-5.c    |   0
 .../{x86 => x86_64}/tst-cet-legacy-mod-5a.c   |   0
 .../{x86 => x86_64}/tst-cet-legacy-mod-5b.c   |   0
 .../{x86 => x86_64}/tst-cet-legacy-mod-5c.c   |   0
 .../{x86 => x86_64}/tst-cet-legacy-mod-6.c    |   0
 .../{x86 => x86_64}/tst-cet-legacy-mod-6a.c   |   0
 .../{x86 => x86_64}/tst-cet-legacy-mod-6b.c   |   0
 .../{x86 => x86_64}/tst-cet-legacy-mod-6c.c   |   0
 .../{x86 => x86_64}/tst-cet-legacy-mod-6d.c   |   0
 .../tst-shstk-legacy-1-extra.S                |   0
 .../tst-shstk-legacy-1a-static.c              |   0
 sysdeps/{x86 => x86_64}/tst-shstk-legacy-1a.c |   0
 .../tst-shstk-legacy-1b-static.c              |   0
 sysdeps/{x86 => x86_64}/tst-shstk-legacy-1b.c |   0
 .../tst-shstk-legacy-1c-static.c              |   0
 sysdeps/{x86 => x86_64}/tst-shstk-legacy-1c.c |   0
 .../tst-shstk-legacy-1d-static.c              |   0
 sysdeps/{x86 => x86_64}/tst-shstk-legacy-1d.c |   0
 .../tst-shstk-legacy-1e-static.c              |   0
 .../tst-shstk-legacy-1e-static.sh             |   0
 sysdeps/{x86 => x86_64}/tst-shstk-legacy-1e.c |   0
 .../{x86 => x86_64}/tst-shstk-legacy-1e.sh    |   0
 sysdeps/{x86 => x86_64}/tst-shstk-legacy-1f.c |   0
 sysdeps/{x86 => x86_64}/tst-shstk-legacy-1g.c |   0
 .../{x86 => x86_64}/tst-shstk-legacy-1g.sh    |   0
 .../{x86 => x86_64}/tst-shstk-legacy-mod-1.c  |   0
 98 files changed, 357 insertions(+), 1048 deletions(-)
 rename sysdeps/unix/sysv/linux/{x86 => x86_64}/include/asm/prctl.h (100%)
 rename sysdeps/unix/sysv/linux/{x86 => x86_64}/tst-cet-property-1.c (100%)
 rename sysdeps/unix/sysv/linux/{x86 => x86_64}/tst-cet-property-2.c (100%)
 rename sysdeps/unix/sysv/linux/{x86 => x86_64}/tst-cet-property-dep-2.S (100%)
 rename sysdeps/unix/sysv/linux/{x86 => x86_64}/tst-cet-setcontext-1.c (100%)
 rename sysdeps/unix/sysv/linux/{x86 => x86_64}/tst-cet-vfork-1.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-cet-legacy-1.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-cet-legacy-10-static.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-cet-legacy-10.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-cet-legacy-10a-static.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-cet-legacy-10a.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-cet-legacy-1a.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-cet-legacy-2.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-cet-legacy-2a.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-cet-legacy-3.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-cet-legacy-4.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-cet-legacy-4a.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-cet-legacy-4b.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-cet-legacy-4c.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-cet-legacy-5.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-cet-legacy-5a.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-cet-legacy-5b.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-cet-legacy-6.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-cet-legacy-6a.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-cet-legacy-6b.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-cet-legacy-7.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-cet-legacy-8.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-cet-legacy-9-static.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-cet-legacy-9.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-cet-legacy-mod-1.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-cet-legacy-mod-2.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-cet-legacy-mod-4.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-cet-legacy-mod-5.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-cet-legacy-mod-5a.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-cet-legacy-mod-5b.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-cet-legacy-mod-5c.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-cet-legacy-mod-6.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-cet-legacy-mod-6a.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-cet-legacy-mod-6b.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-cet-legacy-mod-6c.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-cet-legacy-mod-6d.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-shstk-legacy-1-extra.S (100%)
 rename sysdeps/{x86 => x86_64}/tst-shstk-legacy-1a-static.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-shstk-legacy-1a.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-shstk-legacy-1b-static.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-shstk-legacy-1b.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-shstk-legacy-1c-static.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-shstk-legacy-1c.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-shstk-legacy-1d-static.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-shstk-legacy-1d.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-shstk-legacy-1e-static.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-shstk-legacy-1e-static.sh (100%)
 rename sysdeps/{x86 => x86_64}/tst-shstk-legacy-1e.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-shstk-legacy-1e.sh (100%)
 rename sysdeps/{x86 => x86_64}/tst-shstk-legacy-1f.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-shstk-legacy-1g.c (100%)
 rename sysdeps/{x86 => x86_64}/tst-shstk-legacy-1g.sh (100%)
 rename sysdeps/{x86 => x86_64}/tst-shstk-legacy-mod-1.c (100%)