Skip to content

Commit ee96750

Browse files
committed
[native_toolchain_c] Enable relocations in RO secionts
1 parent 5177659 commit ee96750

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkgs/native_toolchain_c/lib/src/cbuilder/run_cbuilder.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ class RunCBuilder {
160160
] else ...[
161161
'-fno-PIC',
162162
'-fno-PIE',
163+
'-z',
164+
'notext',
163165
],
164166
for (final MapEntry(key: name, :value) in defines.entries)
165167
if (value == null) '-D$name' else '-D$name=$value',

0 commit comments

Comments
 (0)