Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2008-10

Executable stack

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Jonas Maebe
to Jonas Maebe
Jonas Maebe wrote 9 lines
On 19 Oct 2008, at 12:00, wrote: > A new feature of the Fedora-rpm-build tools is that it searches for > executables that permit to execute code on the stack. > It seems like that fpc allows this, but is it also necessary? So is > it > possible to disallow this in the compiler, or is that impossible? http://bugs.freepascal.org/view.php?id=11563

And I still don't know why executable stacks are suddenly enabled automatically under Linux if libc is linked, and whether the proper solution for the compiler is to use that linker parameter, whether it should somehow annotate the object files, or something else.

Jonas

Reply by email

Unknown author
to Jonas Maebe
Show quoted text 16 lines
On 19 Oct 2008, at 12:22, Jonas Maebe wrote: > On 19 Oct 2008, at 12:00, wrote: > >> A new feature of the Fedora-rpm-build tools is that it searches for >> executables that permit to execute code on the stack. >> It seems like that fpc allows this, but is it also necessary? So is >> it >> possible to disallow this in the compiler, or is that impossible? > > http://bugs.freepascal.org/view.php?id=11563 And I still don't know why executable stacks are suddenly enabled automatically under Linux if libc is linked, and whether the proper solution for the compiler is to use that linker parameter, whether it should somehow annotate the object files, or something else.

Does this help?
fpc.i386: E: statically-linked-binary /usr/lib/fpc/2.2.2/ppc386 fpc.i386: E: missing-PT_GNU_STACK-section /usr/lib/fpc/2.2.2/ppc386

That's a message I get when checking the fpc-2.2.2 rpm's from Fedora. This message is generated on all executable in the rpm.

I'll add the linker-option to the fpc.cfg in the Fedora(10) rpm's.

Joost.

Reply by email