libc configure check for relro
Jakub Jelinek
jakub@redhat.com
Sun Jul 3 13:05:00 GMT 2011
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
More information about the Libc-alpha
mailing list