Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
fn main() {
println!("cargo:rerun-if-changed=target.json");
println!("cargo:rerun-if-changed=layout.ld");
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool!

5 changes: 5 additions & 0 deletions layout.ld
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,9 @@ SECTIONS
*(.comment)
*(COMMON)
}
/* Strip symbols from the output binary (comment out to get symbols) */
/DISCARD/ : {
*(.symtab)
*(.strtab)
}
}
5 changes: 1 addition & 4 deletions target.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
"code-model": "small",
"relocation-model": "static",
"pre-link-args": {
"ld.lld": [
"-s",
"--script=layout.ld"
]
"ld.lld": ["--script=layout.ld"]
}
}