This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] PR 878: fix -pie
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Gwenole Beauchesne <gbeauchesne at mandriva dot com>
- Cc: binutils at sources dot redhat dot com, hongjiu dot lu at intel dot com
- Date: Fri, 6 May 2005 12:30:49 +0200
- Subject: Re: [PATCH] PR 878: fix -pie
- References: <Pine.LNX.4.58.0505061154420.13659@thalys.mandrakesoft.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Fri, May 06, 2005 at 12:17:47PM +0200, Gwenole Beauchesne wrote:
> --- binutils-2.16.90.0.2/ld/emultempl/elf32.em.ld-pie-init-fini-syms 2005-04-29 19:50:30.000000000 +0200
> +++ binutils-2.16.90.0.2/ld/emultempl/elf32.em 2005-04-30 07:58:17.739644900 +0200
> @@ -1495,7 +1495,7 @@ gld${EMULATION_NAME}_provide_bound_symbo
> static void
> gld${EMULATION_NAME}_provide_init_fini_syms (void)
> {
> - if (!link_info.relocatable && !link_info.shared)
> + if (!link_info.relocatable && (!link_info.shared || link_info.pie))
(! link_info.shared || link_info.pie) is link_info.executable.
Jakub