]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Change the samantic of struct link_map l_addr member.
authorkib <kib@FreeBSD.org>
Wed, 20 May 2020 22:08:26 +0000 (22:08 +0000)
committerkib <kib@FreeBSD.org>
Wed, 20 May 2020 22:08:26 +0000 (22:08 +0000)
commit4826b105b99943c0d215184946ce0b1cb52490e1
tree5517a5bc3d5a0561ac09d45528e86f70da898760
parent7265cef26798498ab38d2f1fd3b2838869fd984c
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