Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Feb 2020 16:31:27 +0100
From:      Paul Floyd <pjfloyd@wanadoo.fr>
To:        freebsd-toolchain@freebsd.org
Subject:   RO Elf program headers
Message-ID:  <9AAE92C0-4FD7-43DF-A805-EFEE7EA06B56@wanadoo.fr>

index | next in thread | raw e-mail

Hi

I’ve been working on getting Valgrind to work again on FreeBSD.

Probably the biggest problem at the moment is that Valgrind doesn’t (yet) handle the read-only program headers.

If I run “readelf -l libc++.so.1.0” on Linux I see two LOAD headers, the first one “R E” (read-execute) and the second one “RW” (read-write). If I do the same on FreeBSD then I see a third program header which is “R” (read-only), before the other two.

My questions are
- Does anyone know when this extra header was added? (I assume that it was added sometime in the past 5 years or so)
- What is in these segments, and is it safe to assume that multiple shared libraries can map the same RO content to the same address?

A+
Paul

help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9AAE92C0-4FD7-43DF-A805-EFEE7EA06B56>