Skip to content

Commit 70dedbb

Browse files
committed
Don't use pie on Android
1 parent 244bb14 commit 70dedbb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustc_back/target/arm_linux_androideabi.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ pub fn target() -> Target {
1616
// Many of the symbols defined in compiler-rt are also defined in libgcc. Android
1717
// linker doesn't like that by default.
1818
base.pre_link_args.push("-Wl,--allow-multiple-definition".to_string());
19+
// FIXME #17437 (and #17448): Android doesn't support position dependant executables anymore.
20+
base.position_independant_executables = false;
1921

2022
Target {
2123
data_layout: "e-p:32:32:32\

0 commit comments

Comments
 (0)