This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: libc configure check for relro


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


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