mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-08-17 17:24:16 +00:00
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:
@@ -69,7 +69,7 @@ const struct
|
|||||||
Elf_Nhdr header;
|
Elf_Nhdr header;
|
||||||
char name[4];
|
char name[4];
|
||||||
__UINT32_TYPE__ desc[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 = {
|
.header = {
|
||||||
.n_namesz = 4, /* "FNX" + '\0' */
|
.n_namesz = 4, /* "FNX" + '\0' */
|
||||||
.n_descsz = sizeof(__UINT32_TYPE__) * 4, /* Description Size */
|
.n_descsz = sizeof(__UINT32_TYPE__) * 4, /* Description Size */
|
||||||
@@ -84,7 +84,7 @@ const struct
|
|||||||
Elf_Nhdr header;
|
Elf_Nhdr header;
|
||||||
char name[4];
|
char name[4];
|
||||||
__UINT8_TYPE__ desc[20];
|
__UINT8_TYPE__ desc[20];
|
||||||
} __build_id __attribute__((aligned(4), section(".note.build-id"))) = {
|
} __build_id __attribute__((used, aligned(4), section(".note.build-id"))) = {
|
||||||
.header = {
|
.header = {
|
||||||
.n_namesz = 4, /* "FNX" + '\0' */
|
.n_namesz = 4, /* "FNX" + '\0' */
|
||||||
.n_descsz = sizeof(__UINT8_TYPE__) * 20, /* Description Size */
|
.n_descsz = sizeof(__UINT8_TYPE__) * 20, /* Description Size */
|
||||||
|
@@ -90,7 +90,7 @@ const struct
|
|||||||
Elf_Nhdr header;
|
Elf_Nhdr header;
|
||||||
char name[4];
|
char name[4];
|
||||||
__UINT32_TYPE__ desc[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 = {
|
.header = {
|
||||||
.n_namesz = 4, /* "FNX" + '\0' */
|
.n_namesz = 4, /* "FNX" + '\0' */
|
||||||
.n_descsz = sizeof(__UINT32_TYPE__) * 4, /* Description Size */
|
.n_descsz = sizeof(__UINT32_TYPE__) * 4, /* Description Size */
|
||||||
|
@@ -90,7 +90,7 @@ const struct
|
|||||||
Elf_Nhdr header;
|
Elf_Nhdr header;
|
||||||
char name[4];
|
char name[4];
|
||||||
__UINT32_TYPE__ desc[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 = {
|
.header = {
|
||||||
.n_namesz = 4, /* "FNX" + '\0' */
|
.n_namesz = 4, /* "FNX" + '\0' */
|
||||||
.n_descsz = sizeof(__UINT32_TYPE__) * 4, /* Description Size */
|
.n_descsz = sizeof(__UINT32_TYPE__) * 4, /* Description Size */
|
||||||
|
@@ -67,7 +67,7 @@ const struct
|
|||||||
Elf_Nhdr header;
|
Elf_Nhdr header;
|
||||||
char name[4];
|
char name[4];
|
||||||
__UINT8_TYPE__ desc[20];
|
__UINT8_TYPE__ desc[20];
|
||||||
} __build_id __attribute__((aligned(4), section(".note.build-id"))) = {
|
} __build_id __attribute__((used, aligned(4), section(".note.build-id"))) = {
|
||||||
.header = {
|
.header = {
|
||||||
.n_namesz = 4, /* "FNX" + '\0' */
|
.n_namesz = 4, /* "FNX" + '\0' */
|
||||||
.n_descsz = sizeof(__UINT8_TYPE__) * 20, /* Description Size */
|
.n_descsz = sizeof(__UINT8_TYPE__) * 20, /* Description Size */
|
||||||
|
Reference in New Issue
Block a user