This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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] Sanity check PIE displacement #2


> Date: Sat, 13 Feb 2010 21:12:06 +0100
> From: Jan Kratochvil <jan.kratochvil@redhat.com>
> 
> +	  /* Check of the alignment against max (p_align) of PT_LOAD segments
> +	     cannot be used here as in LM_ADDR_CHECK for PIC libraries as at
> +	     least amd64 PIE executables have 2MB p_align while Linux kernel
> +	     loads them with arbitrary 4KB displacement.  As in this case there
> +	     is no LM_ADDR_FROM_LINK_MAP to verify the possible offset GDB has
> +	     to depend just on MINPAGESIZE.  */

To me this sounds as if you've found a bug in the Linux kernel and/or
ld.so.  I'd argue the warning is totally appropriate.


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