]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Change the samantic of struct link_map l_addr member.
authorKonstantin Belousov <kib@FreeBSD.org>
Wed, 20 May 2020 22:08:26 +0000 (22:08 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Wed, 20 May 2020 22:08:26 +0000 (22:08 +0000)
commit2c6d9dc0bbd887a50e7ff0c6af3499ff265f1a16
tree5517a5bc3d5a0561ac09d45528e86f70da898760
parentea6020830c8f88e2b844ae9700c8ef58fbb51c75
Change the samantic of struct link_map l_addr member.

It previously returned the object map base address, while all other
ELF operating systems return load offset, i.e. the difference between
map base and the link base.

Explain the meaning of the field in the man page.

Stop filling the mips-only l_offs member, which is apparently unused.

PR: 246561
Requested by: Damjan Jovanovic <damjan.jov@gmail.com>
Reviewed by: emaste, jhb, cem (previous version)
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D24918
lib/libc/gen/dlinfo.3
libexec/rtld-elf/rtld.c
sys/sys/link_elf.h