PIE support

View: New views
2 Messages — Rating Filter:   Alert me  

PIE support

by Kostik Belousov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

There is a patch, that should provide more or less proper support for
PIE (Position Independent Executables). Besides being desirable feature
itself, this is needed to be able to execute PIE binaries, both native
FreeBSD and Linux images, with sysctl security.bsd.map_at_zero=0.
In particular, Samba port is affected.

gdb does not work for PIE binaries, I believe this is a gdb shortcoming.

Patch was reviewed by Alexander Kabaev, discussed with Bjoern A. Zeeb,
who tested i386 and amd64, and tested by Boris Samorodov for Linux
binaries.

I am asking for general testing for the patch. Also, I would ask the
architecture maintainers to look for the per-arch mapbase address
selected for the PIE binaries.

http://people.freebsd.org/~kib/misc/pie.5.patch


attachment0 (203 bytes) Download Attachment

Re: PIE support

by Steve Kargl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Oct 08, 2009 at 05:59:00PM +0300, Kostik Belousov wrote:
>
> gdb does not work for PIE binaries, I believe this is a gdb shortcoming.
>

gdb 7.0 was released on Oct 6th.  It appears to work fine with PIE.
(Yes, I know that gdb 7.0 is unlikely to appear in FreeBSD.)

--
Steve
_______________________________________________
freebsd-arch@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@..."