This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PR 878: fix -pie


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]