Skip to content

Commit

Permalink
Merge pull request #7 from oberrich/patch-1
Browse files Browse the repository at this point in the history
Fix lld-link LTO builds
  • Loading branch information
JustasMasiulis authored Jun 21, 2024
2 parents a355541 + f47e37d commit 1fd4a2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/inline_syscall.inl
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ namespace jm {
template<std::uint32_t Hash>
struct syscall_holder {
[[gnu::section(
"_sysc")]] inline static JM_INLINE_SYSCALL_ENTRY_TYPE entry{ Hash };
"_sysc"), gnu::retain]] inline static JM_INLINE_SYSCALL_ENTRY_TYPE entry{ Hash };
};

// we instantiate the first entry with 0 hash to be able to get a pointer
Expand Down

0 comments on commit 1fd4a2b

Please sign in to comment.