lkml.org 
[lkml]   [2020]   [Jan]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH] x86/tools/relocs: Add _etext and __end_of_kernel_reserve to S_REL
    On Fri, Jan 10, 2020 at 09:38:28PM +0100, Borislav Petkov wrote:
    > On Fri, Jan 10, 2020 at 03:23:49PM -0500, Arvind Sankar wrote:
    > > Pre-2.23 binutils makes symbols defined outside sections absolute, so
    > > these two symbols break the build on old linkers.
    >
    > -ENOTENOUGHINFO
    >
    > Which old linkers, how exactly do they break the build, etc etc?
    >
    > Please give exact reproduction steps.
    >
    > Thx.
    >

    binutils-2.21 and -2.22. An x86-64 defconfig will fail with
    Invalid absolute R_X86_64_32S relocation: _etext
    and after fixing that one, with
    Invalid absolute R_X86_64_32S relocation: __end_of_kernel_reserve

    Similar errors with 32-bit defconfig.

    Should I resend with that added to the commit message?

    \
     
     \ /
      Last update: 2020-01-10 21:50    [W:4.142 / U:0.164 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site