lkml.org 
[lkml]   [2022]   [Jul]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] x86/Kconfig: Allow X86_X32_ABI with llvm-objcopy in some cases
From
On 7/1/22 14:04, Alex Xu (Hello71) wrote:
> According to the comment and commit message, there are issues compiling
> with IBT and/or compressed debug sections. Therefore, the condition
> should be restricted to when those are enabled.

This whole situation is gross. We code in the vDSO that needs to
dereference a genuinely 64-bit pointer. The x32 toolchain doesn't
understand this, so we have a massive hack using objcopy. I see a few
solutions:

1. Keep the hack alive, with further hacks like this patch.

2. Drop the x32 vDSO.

3. Drop x32.

4. Get gcc and/or clang to add actual support for this.

I admit I'm partial to solution #3. I wonder how practical #4 is.

--Andy

\
 
 \ /
  Last update: 2022-07-06 02:10    [W:1.446 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site