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

@ -67,7 +67,7 @@ const struct
Elf_Nhdr header;
char name[4];
__UINT8_TYPE__ desc[20];
} __build_id __attribute__((aligned(4), section(".note.build-id"))) = {
} __build_id __attribute__((used, aligned(4), section(".note.build-id"))) = {
.header = {
.n_namesz = 4, /* "FNX" + '\0' */
.n_descsz = sizeof(__UINT8_TYPE__) * 20, /* Description Size */