]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
rtld/arm64: Remove checks for undefined symbols when processing TPREL64
authorMark Johnston <markj@FreeBSD.org>
Fri, 16 Jul 2021 02:26:25 +0000 (22:26 -0400)
committerMark Johnston <markj@FreeBSD.org>
Fri, 30 Jul 2021 00:32:58 +0000 (20:32 -0400)
commit61acafc6c67e1930803f70002d3a610f4314042a
treedb2eff69191d8c743e0387ea65ca35019839adfa
parent9ac0aec3a32c84599cfbcc9f70ca2e035a3ddc0b
rtld/arm64: Remove checks for undefined symbols when processing TPREL64

lld emits several GOT relocations referencing the null sumbol in libc.so
when compiled with -ftls-model=initial-exec.  This symbol is specified
to be undefined.

We generally do not handle dynamic TLS relocations against weak,
undefined symbols, so avoid printing a warning here.  This makes it
possible to compile libc.so using the initial-exec TLS model on arm64.

Reviewed by: jrtc27, kib
Sponsored by: The FreeBSD Foundation

(cherry picked from commit f238ebd1429312ac2a4cb9f764babc4b6f69721e)
libexec/rtld-elf/aarch64/reloc.c