Re: i386 kernel modules unusable due to .plt sections

2021-08-27 Thread Tijl Coosemans
On Fri, 27 Aug 2021 11:32:43 -0400 Mark Johnston wrote: > On Fri, Aug 27, 2021 at 05:29:34PM +0200, Tijl Coosemans wrote: >> On Fri, 27 Aug 2021 17:24:58 +0300 Konstantin Belousov >> wrote: >>> On Fri, Aug 27, 2021 at 03:41:30PM +0200, Tijl Coosemans wrote: I use devel/llvm* to build base

Re: i386 kernel modules unusable due to .plt sections

2021-08-27 Thread Mark Johnston
On Fri, Aug 27, 2021 at 05:29:34PM +0200, Tijl Coosemans wrote: > On Fri, 27 Aug 2021 17:24:58 +0300 Konstantin Belousov > wrote: > > On Fri, Aug 27, 2021 at 03:41:30PM +0200, Tijl Coosemans wrote: > >> I use devel/llvm* to build base and just switched to llvm12. It seems > >> that on i386 clang12

Re: i386 kernel modules unusable due to .plt sections

2021-08-27 Thread Tijl Coosemans
On Fri, 27 Aug 2021 17:24:58 +0300 Konstantin Belousov wrote: > On Fri, Aug 27, 2021 at 03:41:30PM +0200, Tijl Coosemans wrote: >> I use devel/llvm* to build base and just switched to llvm12. It seems >> that on i386 clang12 uses R_386_PLT32 relocations for some calls to at >> least memset, memcpy

Re: i386 kernel modules unusable due to .plt sections

2021-08-27 Thread Konstantin Belousov
On Fri, Aug 27, 2021 at 03:41:30PM +0200, Tijl Coosemans wrote: > Hi, > > I use devel/llvm* to build base and just switched to llvm12. It seems > that on i386 clang12 uses R_386_PLT32 relocations for some calls to at > least memset, memcpy and __stack_chk_fail (clang11 uses R_386_PC32). > These ar

i386 kernel modules unusable due to .plt sections

2021-08-27 Thread Tijl Coosemans
Hi, I use devel/llvm* to build base and just switched to llvm12. It seems that on i386 clang12 uses R_386_PLT32 relocations for some calls to at least memset, memcpy and __stack_chk_fail (clang11 uses R_386_PC32). These are converted to R_386_JMP_SLOT relocations by the linker which aren't suppor