Merge branch 'master' into 'master'
Add BTI landing pads for aarch64 See merge request glvnd/libglvnd!262
This commit is contained in:
commit
c8ee0055df
|
@ -90,6 +90,7 @@ extern char glx_entrypoint_end[];
|
|||
|
||||
#define STUB_SIZE 16
|
||||
#define STUB_ASM_ARCH(slot) \
|
||||
"hint #34\n" \
|
||||
"adrp x16, entrypointFunctions + " slot "*8\n" \
|
||||
"ldr x16, [x16, #:lo12:(entrypointFunctions + " slot "*8)]\n" \
|
||||
"br x16\n"
|
||||
|
|
|
@ -69,6 +69,7 @@
|
|||
* table then does a branch without link to the function address.
|
||||
*/
|
||||
#define STUB_ASM_CODE(slot) \
|
||||
"hint #34\n\t" \
|
||||
"stp x1, x0, [sp, #-16]!\n\t" \
|
||||
"adrp x0, :got:_glapi_Current\n\t" \
|
||||
"ldr x0, [x0, #:got_lo12:_glapi_Current]\n\t" \
|
||||
|
|
Loading…
Reference in New Issue