PATCH: Increase the size of .data.rel section for -z relro check

Jakub Jelinek jakub@redhat.com
Fri Jul 15 13:53:00 GMT 2011


Hi!

On Thu, Jul 14, 2011 at 07:47:18PM -0700, Roland McGrath wrote:
> Thanks for the explanation.  I still don't really understand why ld
> doesn't produce a PT_GNU_RELRO for that test (which gold does).  But I
> gleaned enough to adjust the test so that F15's ld, and trunk ld, and
> trunk gold all pass it.

BTW, if you just want a reliable short testcase for glibc configury, e.g.

extern void _exit (int x);
int _start (void) { _exit (1); return 42; }
const void *const relro[] = { &_start, &_exit, 0 };

will work, because then there is .got.plt.

	Jakub



More information about the Libc-alpha mailing list