Re: [Mesa-dev] [PATCH v2] mapi: avoid text relocation in x86 tsd stubs

2019-11-29 Thread Eric Engestrom
On Wednesday, 2019-11-27 10:20:04 -0800, Lepton Wu wrote: > OK, I didn't know there is a patch in mail list. BTW, it seems there is no > meaningful difference > with the generated code: when it's trying to align to 32 bytes border, > since the actual code size > is between 32 and 64, actually the

Re: [Mesa-dev] [PATCH v2] mapi: avoid text relocation in x86 tsd stubs

2019-11-27 Thread Lepton Wu
OK, I didn't know there is a patch in mail list. BTW, it seems there is no meaningful difference with the generated code: when it's trying to align to 32 bytes border, since the actual code size is between 32 and 64, actually the entry size is 64. So in this case, balign to 32 or 64 has same re

Re: [Mesa-dev] [PATCH v2] mapi: avoid text relocation in x86 tsd stubs

2019-11-27 Thread Jonathan Gray
On Sun, Nov 11, 2018 at 03:47:35PM +1100, Jonathan Gray wrote: > Make similiar changes to libglvnd to avoid a text relocation in > x86 tsd stubs fixing the build with lld. > > v2: > - store the address of the GOT in ebx required before calling PLT stub > - change .balign values to match X86_EN

[Mesa-dev] [PATCH v2] mapi: avoid text relocation in x86 tsd stubs

2018-11-10 Thread Jonathan Gray
Make similiar changes to libglvnd to avoid a text relocation in x86 tsd stubs fixing the build with lld. v2: - store the address of the GOT in ebx required before calling PLT stub - change .balign values to match X86_ENTRY_SIZE Signed-off-by: Jonathan Gray Cc: mesa-sta...@lists.freedesktop.o