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: PATCH: Increase the size of .data.rel section for -z relro check


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


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