This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: weird ro mapping generate by ld-linux.so
- From: Andreas Schwab <schwab at redhat dot com>
- To: Mathieu Lacage <mathieu dot lacage-Re5JQEeQqe8AvxtiuMwx3w at public dot gmane dot org>
- Cc: libc-help at sourceware dot org
- Date: Wed, 15 Sep 2010 14:33:39 +0200
- Subject: Re: weird ro mapping generate by ld-linux.so
- References: <AANLkTikUxbanQWYjy-2+Q8_QZa_+SH-pYg=jzWQL4Hg2@mail.gmail.com>
Mathieu Lacage <mathieu.lacage-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
writes:
> now, if I look at the second RW PT_LOAD mapping described in the elf
> file, its p_vaddr is 0x00000030cf483db8. Since the base address is
> zero, I should find the corresponding data in memory at the same
> address but the memory mappings generated by the dynamic loader is RO
> at this address (the third mapping).
That's the relro stuff, look for a GNU_RELRO program header.
Andreas.
--
Andreas Schwab, schwab@redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84 5EC7 45C6 250E 6F00 984E
"And now for something completely different."