[fpc-pascal] Executable stack in shared library
Matthias Klumpp
matthias at nlinux.org
Sat May 22 19:25:05 CEST 2010
On Sat, 22 May 2010 14:03:57 +0200, Jonas Maebe <jonas.maebe at elis.ugent.be>
wrote:
> On 22 May 2010, at 14:00, Matthias Klumpp wrote:
>
>>> That suggests that one of the object files used to link this library is
>>> missing a ".note.GNU-stack" section for some reason.
>> How can I detect which one it is? (How can I list the sections of an
>> object
>> file?)
>
> readelf -S
>
> If you compile the library with the -Cn parameter, the linking step will
be
> skipped and the compiler will generate a file called link.res that (a.o.)
> contains all object files that will be linked into the library.
I checked the files, all .o files had the section. But there was also an
.or file of the new FPC resource system in INPUT() this file had no
.note.GNU-stack section.
Is that relevant?
Matthias
More information about the fpc-pascal
mailing list