Skip to content

Commit fcd97ed

Browse files
committed
lowfat: get rid of absolute relocation that prevents PIC
1 parent 510fc75 commit fcd97ed

File tree

1 file changed

+1
-2
lines changed
  • llvm-4.0.0.src/projects/compiler-rt/lib/lowfat

1 file changed

+1
-2
lines changed

llvm-4.0.0.src/projects/compiler-rt/lib/lowfat/lowfat.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,8 +579,7 @@ __asm__ (
579579
"\t.type lowfat_stack_pivot,@function\n"
580580
"lowfat_stack_pivot:\n"
581581
"\tmovq %rsp, %rdi\n"
582-
"\tmovabsq $lowfat_stack_pivot_2, %rax\n"
583-
"\tcallq *%rax\n"
582+
"\tcall lowfat_stack_pivot_2\n"
584583
"\tmovq %rax, %rsp\n"
585584
"\tretq\n"
586585
);

0 commit comments

Comments
 (0)