Skip to content

Commit

Permalink
lowfat: get rid of absolute relocation that prevents PIC
Browse files Browse the repository at this point in the history
  • Loading branch information
ddcc committed Sep 24, 2020
1 parent 510fc75 commit fcd97ed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions llvm-4.0.0.src/projects/compiler-rt/lib/lowfat/lowfat.c
Original file line number Diff line number Diff line change
Expand Up @@ -579,8 +579,7 @@ __asm__ (
"\t.type lowfat_stack_pivot,@function\n"
"lowfat_stack_pivot:\n"
"\tmovq %rsp, %rdi\n"
"\tmovabsq $lowfat_stack_pivot_2, %rax\n"
"\tcallq *%rax\n"
"\tcall lowfat_stack_pivot_2\n"
"\tmovq %rax, %rsp\n"
"\tretq\n"
);
Expand Down

0 comments on commit fcd97ed

Please sign in to comment.