[aarch64]Fixup linker warning #10466

This commit is contained in:
GUI 2025-07-08 14:10:04 +08:00 committed by GitHub
parent 749d9cf84c
commit 3d72290b38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 2 deletions

View File

@ -20,6 +20,13 @@ OUTPUT_ARCH(aarch64)
#define ARCH_RAM_OFFSET 0
#endif
PHDRS
{
text PT_LOAD FLAGS(5); /* PF_R(4) | PF_X(1) = 0x5 (RX) */
data PT_LOAD FLAGS(6); /* PF_R(4) | PF_W(2) = 0x6 (RW) */
stack PT_LOAD FLAGS(6); /* PF_R | PF_W */
}
SECTIONS
{
_text_offset = ARCH_TEXT_OFFSET;
@ -89,7 +96,7 @@ SECTIONS
__usbh_class_info_end__ = .;
PROVIDE(__text_end = .);
}
} :text
.eh_frame_hdr :
{
@ -113,7 +120,7 @@ SECTIONS
*(.sdata)
*(.sdata.*)
*(.rel.local)
}
} :data
. = ALIGN(8);
.ctors :