Skip to content

Commit

Permalink
Use nostart-stop-gc instead of link-dead-code
Browse files Browse the repository at this point in the history
Fixes symbol errors when linking code using linkme crate.

Reference:
- dtolnay/linkme#94
  • Loading branch information
ckane committed Nov 7, 2024
1 parent 0a0f986 commit 6d83d78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ rustflags = [
#"-Z", "pre-link-arg=-static",
"-C", "link-arg=--image-base",
"-C", "link-arg=0xffffe00000000000",
"-C", "link-dead-code",
"-C", "link-arg=-znostart-stop-gc",
#"-C", "link-arg=-z",
#"-C", "link-arg=norelro",
"-C", "code-model=kernel",
Expand Down

0 comments on commit 6d83d78

Please sign in to comment.