Thread overview
[Issue 6387] New: scanelf (from pax-utils) criticizes dmd generated object files
Jul 27, 2011
Marco Leise
Aug 29, 2011
Marco Leise
Aug 29, 2011
yebblies
July 27, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6387

           Summary: scanelf (from pax-utils) criticizes dmd generated
                    object files
           Product: D
           Version: D2
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: Marco.Leise@gmx.de


--- Comment #0 from Marco Leise <Marco.Leise@gmx.de> 2011-07-26 18:09:24 PDT ---
Created an attachment (id=1012)
noexecstack patch for dmd compiler

On Gentoo Linux the package manager runs "scanelf" to check for vulnerabilities and compatibility issues of installed binaries and issues QA warnings.

scanelf -qyAF "%e %p" /usr/lib/libdruntime.a /usr/lib/libphobos2.a

The output of this is what I see on screen when installing dmd from the sources
included in the zip file on the digital mars ftp server.
I discussed this with some people on #gentoo and someone mentioned a missing
».note.GNU-stack« section. That was in fact the key. A gentoo hacker came up
with a simple patch for the dmd backend that makes it emit that section and the
warnings are now gone!
If there are no implications with this it should be the default on GNU Linux (I
think).

A note on ».note.GNU-stack«: http://en.chys.info/2010/12/note-gnu-stack/

The role of pax-utils in gentoo: http://www.gentoo.org/proj/en/hardened/pax-utils.xml

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 29, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6387


Marco Leise <Marco.Leise@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #1 from Marco Leise <Marco.Leise@gmx.de> 2011-08-28 23:41:14 PDT ---
The patch has now been merged into the dmd source on GitHub.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 29, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6387


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies@gmail.com


--- Comment #2 from yebblies <yebblies@gmail.com> 2011-08-30 00:14:03 EST ---
For reference, that is

https://github.com/D-Programming-Language/dmd/pull/276

https://github.com/D-Programming-Language/dmd/commit/2d906bd48ba6ebf0068b9c43f4fe79c8187bbe5f

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------