Re: [PATCH v7 02/12] x86: Use symbol name in jump table for PIE support

2019-05-20 Thread Thomas Garnier
On Mon, May 20, 2019 at 4:20 PM Thomas Garnier wrote: > > From: Thomas Garnier > > Replace the %c constraint with %P. The %c is incompatible with PIE > because it implies an immediate value whereas %P reference a symbol. > Change the _ASM_PTR reference to .long for expected relocation size and >

[PATCH v7 02/12] x86: Use symbol name in jump table for PIE support

2019-05-20 Thread Thomas Garnier
From: Thomas Garnier Replace the %c constraint with %P. The %c is incompatible with PIE because it implies an immediate value whereas %P reference a symbol. Change the _ASM_PTR reference to .long for expected relocation size and add a long padding to ensure entry alignment. Position Independent