diff --git a/lib/loongarch64/efi_stub.S b/lib/loongarch64/efi_stub.S index 464eae5..b3fba1d 100644 --- a/lib/loongarch64/efi_stub.S +++ b/lib/loongarch64/efi_stub.S @@ -1 +1,4 @@ /* This stub is a stub to make the build happy */ +#if defined(__ELF__) && defined(__linux__) + .section .note.GNU-stack,"",%progbits +#endif