Skip to content

Commit 158a56a

Browse files
josephlrrbradford
authored andcommitted
target: reflect the fact that we're a static binary
A firmware blob is an _extermely_ static binary, and our `target.json` settings should reflect this. It also saves us some code size to use a "static" relocation model. Signed-off-by: Joe Richey <joerichey@google.com>
1 parent 9fb7659 commit 158a56a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

target.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
"panic-strategy": "abort",
1313
"disable-redzone": true,
1414
"features": "-mmx,-sse,+soft-float",
15+
"dynamic-linking-available": false,
16+
"code-model": "small",
17+
"relocation-model": "static",
1518
"pre-link-args": {
1619
"ld.lld": [
1720
"-s",

0 commit comments

Comments
 (0)