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