Skip to content

Commit

Permalink
Check for aarch64 when not using .init_arrays
Browse files Browse the repository at this point in the history
Reviewers: vvereschaka

Subscribers: kristof.beyls, #sanitizers, llvm-commits

Tags: #sanitizers, #llvm

Differential Revision: https://reviews.llvm.org/D72005
  • Loading branch information
Sterling-Augustine committed Jan 2, 2020
1 parent 97864f4 commit 108daf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler-rt/lib/crt/crtbegin.c
Expand Up @@ -52,7 +52,7 @@ __attribute__((section(".init_array"),
__asm__(".pushsection .init,\"ax\",@progbits\n\t"
"call " __USER_LABEL_PREFIX__ "__do_init\n\t"
".popsection");
#elif defined(__arm__)
#elif defined(__arm__) || defined(__aarch64__)
__asm__(".pushsection .init,\"ax\",%progbits\n\t"
"bl " __USER_LABEL_PREFIX__ "__do_init\n\t"
".popsection");
Expand Down Expand Up @@ -101,7 +101,7 @@ __attribute__((section(".fini_array"),
__asm__(".pushsection .fini,\"ax\",@progbits\n\t"
"call " __USER_LABEL_PREFIX__ "__do_fini\n\t"
".popsection");
#elif defined(__arm__)
#elif defined(__arm__) || defined(__aarch64__)
__asm__(".pushsection .fini,\"ax\",%progbits\n\t"
"bl " __USER_LABEL_PREFIX__ "__do_fini\n\t"
".popsection");
Expand Down

0 comments on commit 108daf7

Please sign in to comment.