fix(userspace/libc): mark ABI and build ID notes as used to prevent optimization removal

Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
2025-03-24 00:38:03 +00:00
parent d06b6d3270
commit 27356b7826
4 changed files with 5 additions and 5 deletions

View File

@ -90,7 +90,7 @@ const struct
Elf_Nhdr header;
char name[4];
__UINT32_TYPE__ desc[4];
} __abi_tag __attribute__((aligned(4), section(".note.ABI-tag"))) = {
} __abi_tag __attribute__((used, aligned(4), section(".note.ABI-tag"))) = {
.header = {
.n_namesz = 4, /* "FNX" + '\0' */
.n_descsz = sizeof(__UINT32_TYPE__) * 4, /* Description Size */