From mboxrd@z Thu Jan 1 00:00:00 1970 From: kernelrocks@gmail.com (Aleix Roca Nonell) Date: Wed, 7 Nov 2018 08:18:14 +0100 Subject: Unsupported relocation type: R_X86_64_PLT32 In-Reply-To: <20181103131653.GB2327@rocks.localdomain> References: <20181103125439.GA2327@rocks.localdomain> <20181103131653.GB2327@rocks.localdomain> Message-ID: <20181107071814.GA3947@rocks> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org (reminder just in case the email was missed!) On Sat, Nov 03, 2018 at 02:16:53PM +0100, Aleix Roca Nonell wrote: > On Sat, Nov 03, 2018 at 01:54:39PM +0100, Aleix Roca Nonell wrote: > > Hi all! > > > > In my attempt to write my first useful kernel patch, I'm tracking down > > a possibly kernel regression on my laptop's wireless driver. I'm > > trying to use git bisect to narrow down the problem and I'm having > > trouble compiling a Linux kernel 4.14 from Linus tree in my Arch > > Linux. > > > > The error I'm getting is "Unsupported relocation type: R_X86_64_PLT32" > > > > I have read about gcc enabling -fPIC by default from gcc-6 so I have > > tried compiling with gcc-{8,7,5,4.9} with and without > > "-fno-pic -no-pic" by running > > > > make CC="gcc-5 -fno-pic -no-pic" > > > > with no luck. I was expecting those R_X86_64_PLT32 relocations not to > > be generated with this options but there is something I have still not > > understood. > > > > I have been able to compile the kernel after applying greg's stable > > tree patch [1] (and [2,3] for gcc-8) but the kernel refuses to boot. > > > > Any help/comments on either the problem or the followed methodology will be > > appreciated! > > > > Thank you! :D > > > > [1] - https://lore.kernel.org/patchwork/patch/892780/ > > [2] - https://lore.kernel.org/patchwork/patch/868613/ > > [3] - https://lore.kernel.org/patchwork/patch/934722/ > > Sorry, I meant "-fno-pie -no-pie" instead of "-fno-pic -no-pic" From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1gKI6Z-0004Ws-DK for kernelnewbies@kernelnewbies.org; Wed, 07 Nov 2018 02:18:23 -0500 Received: by mail-wr1-x442.google.com with SMTP id y3-v6so15901746wrh.10 for ; Tue, 06 Nov 2018 23:18:22 -0800 (PST) Received: from rocks (199.red-83-40-145.dynamicip.rima-tde.net. [83.40.145.199]) by smtp.gmail.com with ESMTPSA id a127-v6sm285389wmh.24.2018.11.06.23.18.19 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Tue, 06 Nov 2018 23:18:20 -0800 (PST) Date: Wed, 7 Nov 2018 08:18:14 +0100 From: Aleix Roca Nonell To: Kernel Newbies Mailing List Subject: Re: Unsupported relocation type: R_X86_64_PLT32 Message-ID: <20181107071814.GA3947@rocks> References: <20181103125439.GA2327@rocks.localdomain> <20181103131653.GB2327@rocks.localdomain> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20181103131653.GB2327@rocks.localdomain> List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org Message-ID: <20181107071814.VWsCRP8Rj_xxlYr64XBngue38cc-v7cqik2vPVekJhE@z> (reminder just in case the email was missed!) On Sat, Nov 03, 2018 at 02:16:53PM +0100, Aleix Roca Nonell wrote: > On Sat, Nov 03, 2018 at 01:54:39PM +0100, Aleix Roca Nonell wrote: > > Hi all! > > > > In my attempt to write my first useful kernel patch, I'm tracking down > > a possibly kernel regression on my laptop's wireless driver. I'm > > trying to use git bisect to narrow down the problem and I'm having > > trouble compiling a Linux kernel 4.14 from Linus tree in my Arch > > Linux. > > > > The error I'm getting is "Unsupported relocation type: R_X86_64_PLT32" > > > > I have read about gcc enabling -fPIC by default from gcc-6 so I have > > tried compiling with gcc-{8,7,5,4.9} with and without > > "-fno-pic -no-pic" by running > > > > make CC="gcc-5 -fno-pic -no-pic" > > > > with no luck. I was expecting those R_X86_64_PLT32 relocations not to > > be generated with this options but there is something I have still not > > understood. > > > > I have been able to compile the kernel after applying greg's stable > > tree patch [1] (and [2,3] for gcc-8) but the kernel refuses to boot. > > > > Any help/comments on either the problem or the followed methodology will be > > appreciated! > > > > Thank you! :D > > > > [1] - https://lore.kernel.org/patchwork/patch/892780/ > > [2] - https://lore.kernel.org/patchwork/patch/868613/ > > [3] - https://lore.kernel.org/patchwork/patch/934722/ > > Sorry, I meant "-fno-pie -no-pie" instead of "-fno-pic -no-pic" _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies