File tree Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Original file line number Diff line number Diff line change
1
+ ## 0.2.4+1
2
+
3
+ - Explicitly tell linker to create position dependent or position independent executable
4
+ ([ #113 ] ( https://github.com/dart-lang/native/issues/133 ) ).
5
+
1
6
## 0.2.4
2
7
3
8
- Added ` includes ` for specifying include directories.
Original file line number Diff line number Diff line change @@ -161,14 +161,18 @@ class RunCBuilder {
161
161
// which the static library is linked is PIC, PIE or neither. Then
162
162
// we could use the same option for the static library.
163
163
if (staticLibrary != null ) '-fPIC' ,
164
- if (executable != null ) '-fPIE' ,
164
+ if (executable != null ) ...[
165
+ // Generate position-independent code for executables.
166
+ '-fPIE' ,
167
+ // Tell the linker to generate a position-independent executable.
168
+ '-pie' ,
169
+ ],
165
170
] else ...[
171
+ // Disable generation of any kind of position-independent code.
166
172
'-fno-PIC' ,
167
173
'-fno-PIE' ,
168
- if (compiler.tool == clang) ...[
169
- '-z' ,
170
- 'notext' ,
171
- ]
174
+ // Tell the linker to generate a position-dependent executable.
175
+ if (executable != null ) '-no-pie' ,
172
176
],
173
177
if (std != null ) '-std=$std ' ,
174
178
if (language == Language .cpp) ...[
Original file line number Diff line number Diff line change 1
1
name : native_toolchain_c
2
2
description : >-
3
3
A library to invoke the native C compiler installed on the host machine.
4
- version : 0.2.4
4
+ version : 0.2.4+1
5
5
repository : https://github.com/dart-lang/native/tree/main/pkgs/native_toolchain_c
6
6
7
7
topics :
You can’t perform that action at this time.
0 commit comments