0007-add-AT_MINSIGSTKSZ-to-elf.h-from-linux-v4.18.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From 053ba4fecfe092ccabf2c2ca29ace8b91798a6c4 Mon Sep 17 00:00:00 2001
  2. From: Szabolcs Nagy <nsz@port70.net>
  3. Date: Wed, 22 Aug 2018 17:51:25 +0000
  4. Subject: [PATCH 7/8] add AT_MINSIGSTKSZ to elf.h from linux v4.18
  5. new in linux commit 94b07c1f8c39c6d839df35fa28ffd1785d385897
  6. currently only supported on aarch64:
  7. Stateful CPU architecture extensions may require the signal frame
  8. to grow to a size that exceeds the arch's MINSIGSTKSZ #define.
  9. However, changing this #define is an ABI break.
  10. To allow userspace the option of determining the signal frame size
  11. in a more forwards-compatible way, this patch adds a new auxv entry
  12. tagged with AT_MINSIGSTKSZ, which provides the maximum signal frame
  13. size that the process can observe during its lifetime.
  14. ---
  15. include/elf.h | 1 +
  16. 1 file changed, 1 insertion(+)
  17. diff --git a/include/elf.h b/include/elf.h
  18. index c2297353..4a8843c7 100644
  19. --- a/include/elf.h
  20. +++ b/include/elf.h
  21. @@ -1035,6 +1035,7 @@ typedef struct {
  22. #define AT_L3_CACHESIZE 46
  23. #define AT_L3_CACHEGEOMETRY 47
  24. +#define AT_MINSIGSTKSZ 51
  25. typedef struct {
  26. --
  27. 2.17.1