]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r309748 (by glebius):
authordim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 18 Sep 2018 20:46:55 +0000 (20:46 +0000)
committerdim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 18 Sep 2018 20:46:55 +0000 (20:46 +0000)
commit7c844f5a6b6461b830dc4d8ffa53d920bb300dfd
treeb5eb3f763fef135c7c61a7c85810958ce3e08892
parentbf9696037b1ec62fe069d4a2b13ab14015ab1777
MFC r309748 (by glebius):

Treat R_X86_64_PLT32 relocs as R_X86_64_PC32.

If we load a binary that is designed to be a library, it produces
relocatable code via assembler directives in the assembly itself
(rather than compiler options).  This emits R_X86_64_PLT32 relocations,
which are not handled by the kernel linker.

Submitted by: gallatin
Reviewed by: kib
PR: 231451

git-svn-id: svn://svn.freebsd.org/base/stable/10@338756 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/amd64/amd64/elf_machdep.c