Skip to content

Commit

Permalink
rust: target: move relocation-model to command-line flag
Browse files Browse the repository at this point in the history
Architectures may still override it.

Signed-off-by: Miguel Ojeda <[email protected]>
  • Loading branch information
ojeda committed Mar 14, 2022
1 parent acc574f commit 883b79d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,7 @@ KBUILD_RUSTFLAGS := $(rust_common_flags) \
-Cpanic=abort -Cembed-bitcode=n -Clto=n \
-Cforce-unwind-tables=n -Ccodegen-units=1 \
-Csymbol-mangling-version=v0 \
-Crelocation-model=static \
-Dclippy::float_arithmetic

KBUILD_AFLAGS_KERNEL :=
Expand Down
1 change: 0 additions & 1 deletion scripts/generate_rust_target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ fn main() {
ts.push("frame-pointer", "may-omit");
ts.push("function-sections", false);
ts.push("position-independent-executables", true);
ts.push("relocation-model", "static");
ts.push(
"stack-probes",
vec![("kind".to_string(), Value::String("none".to_string()))],
Expand Down

0 comments on commit 883b79d

Please sign in to comment.