]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r309748 (by glebius):
authordim <dim@FreeBSD.org>
Tue, 18 Sep 2018 20:46:55 +0000 (20:46 +0000)
committerdim <dim@FreeBSD.org>
Tue, 18 Sep 2018 20:46:55 +0000 (20:46 +0000)
commite6f528b258c28c7046de0df6acfea82e27ace7de
treee8a2b6734c011fae373c7d6f5a560c8a15bb193d
parentad9993ad84c3acc41fd431370e57c1441d9f2868
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
sys/amd64/amd64/elf_machdep.c