Skip to content

Commit c4b0250

Browse files
authored
Merge pull request #3 from Foundation-Devices/1.91.1-xous-arm-pie
SFT-4115: target.json: use PIE relocation model
2 parents fc05c8c + 7f08a5e commit c4b0250

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

armv7a-unknown-xous-elf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"arch": "arm",
1515
"features": "+v7,+thumb2,+thumb-mode,+vfp4d16,+d32,+neon,+strict-align",
1616
"executables": true,
17-
"relocation-model": "static",
17+
"relocation-model": "pie",
1818
"supports-stack-protector": true,
1919
"os": "xous"
2020
}

rebuild.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ rm -f $dest_lib_path/*.rlib
118118
# TODO: Use below to remove duplicates
119119
# previous_libraries=$(ls -1 $src_path/*.rlib || echo "")
120120

121-
RUSTFLAGS="$RUSTFLAGS --cfg keyos --check-cfg=cfg(keyos)" cargo build \
121+
RUSTFLAGS="$RUSTFLAGS --cfg keyos --check-cfg=cfg(keyos) -C relocation-model=pie" cargo build \
122122
--target ${target} \
123123
-Zbinary-dep-depinfo \
124124
--release \

0 commit comments

Comments
 (0)