Skip to content

Commit 108daf7

Browse files
Check for aarch64 when not using .init_arrays
Reviewers: vvereschaka Subscribers: kristof.beyls, #sanitizers, llvm-commits Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D72005
1 parent 97864f4 commit 108daf7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler-rt/lib/crt/crtbegin.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ __attribute__((section(".init_array"),
5252
__asm__(".pushsection .init,\"ax\",@progbits\n\t"
5353
"call " __USER_LABEL_PREFIX__ "__do_init\n\t"
5454
".popsection");
55-
#elif defined(__arm__)
55+
#elif defined(__arm__) || defined(__aarch64__)
5656
__asm__(".pushsection .init,\"ax\",%progbits\n\t"
5757
"bl " __USER_LABEL_PREFIX__ "__do_init\n\t"
5858
".popsection");
@@ -101,7 +101,7 @@ __attribute__((section(".fini_array"),
101101
__asm__(".pushsection .fini,\"ax\",@progbits\n\t"
102102
"call " __USER_LABEL_PREFIX__ "__do_fini\n\t"
103103
".popsection");
104-
#elif defined(__arm__)
104+
#elif defined(__arm__) || defined(__aarch64__)
105105
__asm__(".pushsection .fini,\"ax\",%progbits\n\t"
106106
"bl " __USER_LABEL_PREFIX__ "__do_fini\n\t"
107107
".popsection");

0 commit comments

Comments
 (0)