glibc/sysdeps/unix/sysv/linux/hppa/Makefile
Florian Weimer 0499a353a6 elf: Add elf/check-wx-segment, a test for the presence of WX segments
Writable, executable segments defeat security hardening.  The
existing check for DT_TEXTREL does not catch this.

hppa and SPARC currently keep the PLT in an RWX load segment.
2020-03-02 14:25:20 +01:00

17 lines
508 B
Makefile

# Used by *context() functions
ifeq ($(subdir),stdlib)
gen-as-const-headers += ucontext_i.sym
endif
ifeq ($(subdir),elf)
# Supporting non-executable stacks on HPPA requires changes to both
# the Linux kernel and glibc. The kernel currently needs an executable
# stack for syscall restarts and signal returns.
test-xfail-check-execstack = yes
# On hppa, the PLT is executable because it contains an executable
# trampoline used during lazy binding.
test-xfail-check-wx-segment = *
endif # $(subdir) == elf