We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 749d9cf commit 3d72290Copy full SHA for 3d72290
libcpu/aarch64/link.lds.S
@@ -20,6 +20,13 @@ OUTPUT_ARCH(aarch64)
20
#define ARCH_RAM_OFFSET 0
21
#endif
22
23
+PHDRS
24
+{
25
+ text PT_LOAD FLAGS(5); /* PF_R(4) | PF_X(1) = 0x5 (RX) */
26
+ data PT_LOAD FLAGS(6); /* PF_R(4) | PF_W(2) = 0x6 (RW) */
27
+ stack PT_LOAD FLAGS(6); /* PF_R | PF_W */
28
+}
29
+
30
SECTIONS
31
{
32
_text_offset = ARCH_TEXT_OFFSET;
@@ -89,7 +96,7 @@ SECTIONS
89
96
__usbh_class_info_end__ = .;
90
97
91
98
PROVIDE(__text_end = .);
92
- }
99
+ } :text
93
100
94
101
.eh_frame_hdr :
95
102
@@ -113,7 +120,7 @@ SECTIONS
113
120
*(.sdata)
114
121
*(.sdata.*)
115
122
*(.rel.local)
116
123
+ } :data
117
124
118
125
. = ALIGN(8);
119
126
.ctors :
0 commit comments