Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 228867 - dev-lang/fpc=2.2.0: executable stacks should be fixed
Summary: dev-lang/fpc=2.2.0: executable stacks should be fixed
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Maintainers for Miscelleneous Language Packages [OBSOLETE]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-22 10:54 UTC by Peter Hüwe
Modified: 2008-06-26 21:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Output log of scanelf (scanelf-execstack.log,101.58 KB, text/plain)
2008-06-22 11:12 UTC, Peter Hüwe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Hüwe 2008-06-22 10:54:55 UTC
Emerging fpc on amd64 with FEATURES="strict stricter" fails with QA concerns about executable stacks




Reproducible: Always

Steps to Reproduce:
1.FEATURES="strict stricter" ACCEPT_KEYWORDS="~amd64" emerge fpc 
2.
3.

Actual Results:  
Emerge fails

Expected Results:  
emerge finishes successfully
Comment 1 Peter Hüwe 2008-06-22 11:12:13 UTC
Created attachment 157993 [details]
Output log of scanelf
Comment 2 Harald van Dijk (RETIRED) gentoo-dev 2008-06-23 16:21:39 UTC
I would be happy to try to patch fpc to mark the generated object files as not requiring executable stacks, but I'm not sure there are no cases where they do. George, do you know?
Comment 3 George Shapovalov (RETIRED) gentoo-dev 2008-06-23 18:13:53 UTC
Sorry, I am not really versed on hardened :(. For Ada it was Kevin Quinn who did all related stuff, although in the end there were issues with backend and trampolines (don't ask) so we ended up pax-marking stuff to avoid warnings. See any of the later gnat-gxx ebuilds for how this was done. Plus a few lines in gnatbuild.eclass
(basically just
inherit pax-utils   and
pax-mark E $(find ${GNATBOOT} -name gnat1)

But this is just a workaround rather than fix..
Comment 4 Harald van Dijk (RETIRED) gentoo-dev 2008-06-26 21:19:28 UTC
I have asked upstream, and fpc itself does not use or generate any dynamic code, and lazarus does not do so either anymore. However, other libraries do. Because of that, if fpc's behaviour changes, a new compiler option will need to be added to keep it possible to mark the stack as executable, and compiler options is surely not an area in which it is good to diverge from upstream. I have opened a report there, and I suggest we leave fpc as is for now, that we wait for a newer version that will fix this.