Re: [PATCH] x86/Kconfig: Allow X86_X32_ABI with llvm-objcopy in some cases

From: Andy Lutomirski
Date: Tue Jul 05 2022 - 20:09:28 EST


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