Patchwork [3/3,RFC,MIPS] Define GNU_STACK ABI

login
register
mail settings
Submitter Dragan Mladjenovic
Date June 27, 2019, 9:50 p.m.
Message ID <1561672142-5907-4-git-send-email-dmladjenovic@wavecomp.com>
Download mbox | patch
Permalink /patch/33468/
State New
Headers show

Comments

Dragan Mladjenovic - June 27, 2019, 9:50 p.m.
* sysdeps/unix/sysv/linux/mips/ldsodefs.h (VALID_ELF_ABIVERSION):
	Bump max ABI version for ELFOSABI_SYSV to 6.
	* sysdeps/unix/sysv/linux/mips/libc-abis (GNU_STACK): New ABI.
---
 sysdeps/unix/sysv/linux/mips/ldsodefs.h | 2 +-
 sysdeps/unix/sysv/linux/mips/libc-abis  | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

-- 
1.9.1

Patch

diff --git a/sysdeps/unix/sysv/linux/mips/ldsodefs.h b/sysdeps/unix/sysv/linux/mips/ldsodefs.h

index 8dde855..ce7b2f9 100644

--- a/sysdeps/unix/sysv/linux/mips/ldsodefs.h

+++ b/sysdeps/unix/sysv/linux/mips/ldsodefs.h

@@ -34,7 +34,7 @@  extern void _dl_static_init (struct link_map *map);

 #undef VALID_ELF_ABIVERSION
 #define VALID_ELF_ABIVERSION(osabi,ver)			\
   (ver == 0						\
-   || (osabi == ELFOSABI_SYSV && ver < 4)		\

+   || (osabi == ELFOSABI_SYSV && ver < 6)		\

    || (osabi == ELFOSABI_GNU && ver < LIBC_ABI_MAX))
 
 #endif /* ldsodefs.h */
diff --git a/sysdeps/unix/sysv/linux/mips/libc-abis b/sysdeps/unix/sysv/linux/mips/libc-abis

index eaea558..cdf413b 100644

--- a/sysdeps/unix/sysv/linux/mips/libc-abis

+++ b/sysdeps/unix/sysv/linux/mips/libc-abis

@@ -16,3 +16,5 @@  UNIQUE

 MIPS_O32_FP64   mips*-*-linux*
 # Absolute (SHN_ABS) symbols working correctly.
 ABSOLUTE
+# Non-executable stack support working correctly

+MIPS_GNU_STACK mips*-*-linux*