This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Support PIE on Solaris 12
- From: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Tue, 01 Sep 2015 14:02:48 +0200
- Subject: Re: Support PIE on Solaris 12
- Authentication-results: sourceware.org; auth=none
- References: <yddd1yb7fgm dot fsf at lokon dot CeBiTec dot Uni-Bielefeld dot DE> <CAMe9rOr8Y059NZ2D2uP2TLwyipzBrWDrNRtTDP7eqnYZKQdi7A at mail dot gmail dot com>
"H.J. Lu" <hjl.tools@gmail.com> writes:
> @@ -868,6 +868,8 @@
> #define DF_1_GLOBAUDIT 0x01000000
> #define DF_1_SINGLETON 0x02000000
>
> +#define DF_1_PIE 0x08000000
>
> You don't need a blank line before DF_1_PIE. Should we always set
> DF_1_PIE for PIE?
I had it to mark the gap in the flags. Solaris 11 (and 12) has
#define DF_1_STUB 0x04000000 /* stub object */
between the two. It's documented in the Linkers and Libraries Guide:
http://docs.oracle.com/cd/E36784_01/html/E36857/chapter6-42444.html
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University