On Monday 10 April 2006 20:23, Ian Romanick wrote: > Kristian Høgsberg wrote: > > I just added the attached patch to our rawhide RPM for mesa. It just > > adds the following snippet to all assembler files (generated or > > handwritten): > > > > #ifdef __ELF__ > > .section .note.GNU-stack,"",%progbits > > #endif > > Is this this right ifdef? Are there other ELF platforms where this > would cause problems?
Arbitrarily named sections are supported on every ELF target I know of. Ones that the linker doesn't know about are expected to be ignored. Can't hurt to make it #if defined(__ELF__) && defined(linux) though. I don't think .note.GNU-stack is meaningful anywhere else. - ajax
pgpcATgME0hx1.pgp
Description: PGP signature