Support for PIE builds (was [PATCH] Remove the autoconf build system)

Stefan (metze) Metzmacher metze at samba.org
Fri May 31 08:20:15 MDT 2013


Am 27.05.2013 17:35, schrieb David Disseldorp:
> On Mon, 27 May 2013 10:46:34 -0400
> Simo <idra at samba.org> wrote:
> 
>>> Only the long running daemons should be compiled with PIE support!  
>>
>> Well it doesn't really hurt, for net and wbinfo etc...
>> They shouldn't be started frequently enough to matter.
>> It's easier to be consistent and build all binaries the same way I 
>> think, however if it is simple enough I am not opposed to being able to 
>> specify which binaries should be PIE and which ones shouldn't.
>>
>> But if it is an all or nothing thing as I think it is, then we should 
>> have them all PIE.
>> I am certainly opposed to a fixed list of binaries set once in some 
>> file. If you need to select it should be a command line option or an 
>> environment variable so that it can be passed down by build systems and 
>> spec files.
> 
> I completely agree, if the user configures with PIE builds enabled, then
> we should not be switching it off for specific binaries unless
> explicitly requested.
> 
> For now, I'll propose global (with/without)-pie configure time
> arguments. Patch to follow...

Somehow the pie flags are used for library code...

I'm getting this on debian squeeze i686:

[3784/4022] abi_check: bin/default/source3/libsmbldap.so

warning: The current binary is a PIE (Position Independent Executable),
which
GDB does NOT currently support.  Most debugger features will fail if used
in this session.

metze

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20130531/044ab1cb/attachment.pgp>


More information about the samba-technical mailing list