view dynload/TODO @ 166:d5705f226298

- added portasm support for adding .section .note.GNU-stack "hints" marking generated .o files from assembly files as not needing an executable stack * needed to be done manually in assembly files, in contrast to C translation units where gcc adds such hints automatically * this is for security, and better/easier integration of dyncall into other projects and builds, as dyncall doesn't need an executable stack * thanks to Thorsten Behrens for bringing this up to our intention and providing a first analysis * currently only done on Linux, but will be added across other platforms (where applicable) after some testing
author cslag
date Thu, 05 Jan 2017 11:07:29 +0100
parents 3729a99ef03c
children
line wrap: on
line source

- RTLD_LAZY in darwin, why not in unix?
- Failed On Open Solaris 11:
  
In file included from dynload_syms.c:28:
dynload_syms_elf.c:56: error: syntax error before "Elf_Dyn"
dynload_syms_elf.c:56: warning: data definition has no type or storage class
dynload_syms_elf.c: In function `dlSymsInit':
dynload_syms_elf.c:155: error: `pDyn' undeclared (first use in this function)
dynload_syms_elf.c:155: error: (Each undeclared identifier is reported only once
dynload_syms_elf.c:155: error: for each function it appears in.)
dynload_syms_elf.c:155: error: syntax error before ')' token
dynload_syms_elf.c:160: error: `DT_NULL' undeclared (first use in this function)
dynload_syms_elf.c:163: error: `DT_STRTAB' undeclared (first use in this function)
dynload_syms_elf.c:164: error: `DT_SYMTAB' undeclared (first use in this function)
dynload_syms_elf.c:165: error: `DT_HASH' undeclared (first use in this function)
make: *** [dynload_syms.o] Error 1