[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PIE and static libraries



On Sun, May 22, 2016 at 12:23:59PM +0500, Andrey Rahmatullin wrote:
> On Sun, May 22, 2016 at 08:48:19AM +0200, Andreas Metzler wrote:
> > https://lintian.debian.org/tags/hardening-no-pie.html says "It is
> > unlikely to work when compiling static libraries or executables (gcc
> > -static)."
> > 
> > However e.g. https://wiki.debian.org/Hardening does not mention this
> > problem. Is the former incorrect or the latter incomplete?
> dpkg-buildflags(1) mentions it. https://wiki.debian.org/Hardening doesn't
> seem like a good place to repeat all things discussed in that manpage.
> 
> Also, this is a third thread on d-devel@ about PIE and shared libraries
> for the past week.
Sorry, I was assuming that the problem mentioned is about not being able
to compile such static libraries into both shared objects and executables.
The part about static executables may be worth mentioning in
dpkg-buildflags(1) too (though static executables are not a common thing
in the archive).

-- 
WBR, wRAR

Attachment: signature.asc
Description: PGP signature


Reply to: