Skip to content

Commit

Permalink
Don't use pie on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
emberian committed Nov 4, 2014
1 parent 244bb14 commit 70dedbb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/librustc_back/target/arm_linux_androideabi.rs
Expand Up @@ -16,6 +16,8 @@ pub fn target() -> Target {
// Many of the symbols defined in compiler-rt are also defined in libgcc. Android
// linker doesn't like that by default.
base.pre_link_args.push("-Wl,--allow-multiple-definition".to_string());
// FIXME #17437 (and #17448): Android doesn't support position dependant executables anymore.
base.position_independant_executables = false;

Target {
data_layout: "e-p:32:32:32\
Expand Down

0 comments on commit 70dedbb

Please sign in to comment.