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


On Tue, Jul 12, 2011 at 7:27 PM, Roland McGrath <roland@hack.frob.com> wrote:
> This seems to me like a bona fide bug in ld.
>
> It doesn't produce a PT_GNU_RELRO at all when there is a .data.rel.ro and
> -z relro and so clearly it should. ?Yet when there is no .data.rel.ro and
> only a .data.rel (and -z relro), it produces a PT_GNU_RELRO covering
> nothing by .dynamic (which is correct).
>
> The ld implementation relating to relro is rather byzantine and I haven't
> made any sense of it so far. ?Perhaps someone like you or Andreas who knows
> the ld code better could figure out what's going on.
>

Jakub, do you know how relro should work in this case?

Thanks.

-- 
H.J.


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