[fpc-pascal] Executable stack in shared library

2010-05-21 Thread Matthias Klumpp
Hi! I package a Freepascal project for Debian which uses a shared library. If I run the quality analysis on those packages, I get a warning, that the shared library has an executable stack. [1] Why does it have one, if it is not necessary? How can I disable this in FPC? Thanks and kind regards

Re: [fpc-pascal] Executable stack in shared library

2010-05-21 Thread Tomas Hajny
On Fri, May 21, 2010 18:50, Matthias Klumpp wrote: Hi, I package a Freepascal project for Debian which uses a shared library. If I run the quality analysis on those packages, I get a warning, that the shared library has an executable stack. [1] Why does it have one, if it is not necessary?

Re: [fpc-pascal] Executable stack in shared library

2010-05-21 Thread Matthias Klumpp
Which shared library (out of those listed) is supposed to be used with FPC? As far as I can see, none of these libraries comes from FPC, it's probably just that one of FPC packages uses it - what are we supposed to do with that? The package is not listed there because the package only lists

Re: [fpc-pascal] Executable stack in shared library

2010-05-21 Thread Jonas Maebe
On 21 May 2010, at 18:50, Matthias Klumpp wrote: I package a Freepascal project for Debian which uses a shared library. If I run the quality analysis on those packages, I get a warning, that the shared library has an executable stack. Which version of FPC are you using? We have been adding

Re: [fpc-pascal] Executable stack in shared library

2010-05-21 Thread Matthias Klumpp
Hi! Thank you for the information! I use FPC 2.4.0 but get this warning... Here's the output of readelf -l on the shared library: Elf file type is DYN (Shared object file) Entry point 0xf3db0 There are 4 program headers, starting at offset 64 Program Headers: Type

Re: [fpc-pascal] Executable stack in shared library

2010-05-21 Thread Jonas Maebe
On 21 May 2010, at 20:13, Matthias Klumpp wrote: Thank you for the information! I use FPC 2.4.0 but get this warning... Then I don't know what the problem is. I cannot reproduce it. It seems like the E flag is set. That suggests that one of the object files used to link this library is