mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 10:05:06 +03:00
Auto merge of #72116 - petrhosek:fuchsia-ld-flags, r=tmandry
Update the Fuchsia linker defaults This updates the linker defaults aligning them with Clang. Specifically, we use 4K pages on all platforms, we always use BIND_NOW, we prefer all loadable segments be separate and page aligned, and we support RELR relocations.
This commit is contained in:
@@ -9,7 +9,14 @@ pub fn opts() -> TargetOptions {
|
||||
"--eh-frame-hdr".to_string(),
|
||||
"--hash-style=gnu".to_string(),
|
||||
"-z".to_string(),
|
||||
"max-page-size=4096".to_string(),
|
||||
"-z".to_string(),
|
||||
"now".to_string(),
|
||||
"-z".to_string(),
|
||||
"rodynamic".to_string(),
|
||||
"-z".to_string(),
|
||||
"separate-loadable-segments".to_string(),
|
||||
"--pack-dyn-relocs=relr".to_string(),
|
||||
],
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user