]> CyberLeo.Net >> Repos - FreeBSD/stable/9.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)
commitc683c18298788eb517a6d10b7adc55678a7cdef5
tree6bc5e07fc7c77f37921c77bdd29f45baedde836f
parent386271068b4c1d27d61a9d0358c8d60867f9b9f0
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/9@338756 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/amd64/amd64/elf_machdep.c