Skip to content

Commit

Permalink
loader/aarch64: attempt to avoid text relocations in the unknown code
Browse files Browse the repository at this point in the history
  • Loading branch information
airlied authored and charles-lunarg committed Dec 15, 2021
1 parent 24373f2 commit a11162f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion loader/unknown_ext_chain_gas_aarch64.S
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ terminError\num:
mov x0, x11 // Vulkan instance pointer (first arg)
mov x1, VK_DEBUG_REPORT_ERROR_BIT_EXT // The error logging bit (second arg)
mov x2, #0 // Zero (third arg)
ldr x3, =termin_error_string // The error string (fourth arg)
adrp x9, termin_error_string
add x3, x9, #:lo12:termin_error_string // The error string (fourth arg)
ldr x4, [x11, x10] // The function name (fifth arg)
bl loader_log // Log the error message before we crash
mov x0, #0
Expand Down

0 comments on commit a11162f

Please sign in to comment.