Skip to content

Commit 27458d9

Browse files
authored
Add static to inline statement, Fix JuliaLang#45181 (#17)
Just inline meant the symbol did not get compiled so we got an undefined reference error.
1 parent 237a983 commit 27458d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stackwalk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ _os_tsd_get_direct(unsigned long slot)
789789
// Unconditionally defined ptrauth_strip (instead of using the ptrauth.h header)
790790
// since libsystem will likely be compiled with -mbranch-protection, and we currently are not.
791791
// code from https://github.com/llvm/llvm-project/blob/7714e0317520207572168388f22012dd9e152e9e/compiler-rt/lib/sanitizer_common/sanitizer_ptrauth.h
792-
inline uint64_t ptrauth_strip(uint64_t __value, unsigned int __key) {
792+
static inline uint64_t ptrauth_strip(uint64_t __value, unsigned int __key) {
793793
// On the stack the link register is protected with Pointer
794794
// Authentication Code when compiled with -mbranch-protection.
795795
// Let's strip the PAC unconditionally because xpaclri is in the NOP space,

0 commit comments

Comments
 (0)