(Fwd) wrong expected section attributes for .interp
H. J. Lu
hjl@lucon.org
Mon Oct 20 16:12:00 GMT 2003
Send me a complete testcase. I will fix it.
H.J.
On Sat, Oct 18, 2003 at 12:28:55PM +0200, pageexec@freemail.hu wrote:
> hello,
>
> i'm not sure if you read this mail, i'm resending it in just in case.
>
> ------- Forwarded message follows -------
> From: Self <pageexec@freemail.hu>
> To: hjl@gnu.org
> Subject: wrong expected section attributes for .interp
> Copies to: pappy@gentoo.org, solar@gentoo.org
> Send reply to: pageexec@freemail.hu
> Date sent: Sat, 20 Sep 2003 12:54:26 +0200
>
> hello,
>
> while working on Hardened Gentoo and position independent
> executable support we ran into an apparent bug in bfd.
> here:
>
> http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/bfd/elf.c?rev=1.192&content-type=text/x-cvsweb-markup&cvsroot=src
>
> you committed a change that defines expected section
> attributes for a select set of hardcoded section names.
> the bug we found is the .interp entry which should have
> SHF_ALLOC instead of 0, otherwise you will either get
> a warning (if you compile glibc which produces an .interp
> section from C and marks it with "a") or an invalid output
> (when you produce the .interp from assembly and don't mark
> it allocatable) because the resulting executable will not
> have a PT_INTERP segment. so the fix is easy and we would
> appreciate if it went into bfd/binutils before 2.15 ships.
>
> thanks in advance,
>
> PaX Team
> ------- End of forwarded message -------
More information about the Binutils
mailing list