This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: libc configure check for relro
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Roland McGrath <roland at hack dot frob dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Sun, 3 Jul 2011 06:47:45 +0200
- Subject: Re: libc configure check for relro
- References: <20110703000942.E7C912C16B@topped-with-meat.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Sat, Jul 02, 2011 at 05:09:42PM -0700, Roland McGrath wrote:
> You made this change (54beacab):
>
> 2004-09-20 Jakub Jelinek <jakub@redhat.com>
>
> * configure.in (libc_cv_z_relro): Only set to yes if linker script
> contains DATA_SEGMENT_RELRO_END.
>
> I want to rewrite the test based on grepping the linker script with a
> proper empirical test for the necessary linker behavior. Can you tell me
> what was the specific misbehavior of older linkers that grokked -z relro
> but didn't use DATA_SEGMENT_RELRO_END that you needed to check for?
See http://sources.redhat.com/ml/libc-hacker/2004-09/msg00069.html
IA-64 doesn't define COMMONPAGESIZE, thus it doesn't attempt to align the
relro segment correctly (to end on a page boundary), but probably creates
PT_GNU_RELRO segment anyway.
Jakub