platform_bionic/libc/arch-arm
Nick Kralevich 6eee1fc68f crtend*: Add GNU_STACK note
Add a GNU_STACK marker to crtend* files. This tells the linker
that these files do not require an executable stack.

When linking, a missing GNU_STACK marker in any .o file can prevent
the compiler from automatically marking the final executable as NX
safe (executable stack not required).  In Android, we normally work
around this by adding -Wa,--noexecstack / -Wl,-z,noexecstack.
For files like crtend.S / crtend_so.S, which are included in every
executable / shared library, it's better to add the GNU_STACK note
directly to the assembly file.  This allows the compiler to
automatically mark the final executable as NX safe without any
special command line options.

References: http://www.gentoo.org/proj/en/hardened/gnu-stack.xml

Change-Id: I07bd058f9f60ddd8b146e0fb36ba26ff84c0357d
2012-08-10 14:12:00 -07:00
..
bionic crtend*: Add GNU_STACK note 2012-08-10 14:12:00 -07:00
include libc: Define new symbol visibility macros 2012-01-31 22:19:09 +01:00
syscalls Add unshare() syscall. 2012-08-10 12:57:43 -07:00
syscalls.mk Add unshare() syscall. 2012-08-10 12:57:43 -07:00