This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] xtensa: gas: don't keep relocations for constants
- From: Max Filippov <jcmvbkbc at gmail dot com>
- To: Romain Naour <romain dot naour at gmail dot com>
- Cc: Nick Clifton <nickc at redhat dot com>, binutils at sourceware dot org, Sterling Augustine <augustine dot sterling at gmail dot com>, Eric Tsai <erictsai at cadence dot com>, linux-xtensa at linux-xtensa dot org
- Date: Sun, 3 Feb 2019 05:36:13 -0800
- Subject: Re: [PATCH] xtensa: gas: don't keep relocations for constants
- References: <20190128092137.22150-1-jcmvbkbc@gmail.com> <be4f2ffc-3ce8-175b-2910-21174a407113@redhat.com> <CAMo8BfKSGOnp8fEJaf9D4cmYZGojijC4Vj=x2iDnzLAFb1jNcQ@mail.gmail.com> <fdc601bd-27dc-70b1-9212-7ae1511bac15@redhat.com> <CAMo8BfJraw+Y7A_Gs_mV0E0FvK=cA9yTLRs2U_kwV2fNSpo3Sw@mail.gmail.com> <f3ab67d9-3c5f-05ac-0cfa-8fa19b9c2ddb@gmail.com> <894c8196-19ae-c59e-b9f8-86146e852eb5@gmail.com>
Hi Romain,
On Sun, Feb 3, 2019 at 3:20 AM Romain Naour <romain.naour@gmail.com> wrote:
> I tested the patch using Binutils 2.32, the toolchain build is ok but the kernel
> doesn't boot.
This is because the section .note.gnu.build-id that is inserted at the
beginning of the kernel. This was fixed by the commit 4119ba211bc4
(xtensa: add NOTES section to the linker script) in the linux mainline
which was backported to a number of stable kernels, but not into the
4.16.y
I've changed kernel version to 4.19 in the buildroot, it builds and boots
successfully.
--
Thanks.
-- Max