diff options
author | Kirill Stoimenov <kstoimenov@google.com> | 2022-03-16 15:35:12 +0000 |
---|---|---|
committer | Kirill Stoimenov <kstoimenov@google.com> | 2022-03-16 17:35:15 +0000 |
commit | d6aa3aa2da644d9ad7dbc876ea42d33cfccae23e (patch) | |
tree | 6aa83c66e67d26fd2143662665008ec38647fa1e | |
parent | 448c89415b7a161c952bcb3b5b7ecdc9e7ea0b5e (diff) | |
download | llvm-d6aa3aa2da644d9ad7dbc876ea42d33cfccae23e.zip llvm-d6aa3aa2da644d9ad7dbc876ea42d33cfccae23e.tar.gz llvm-d6aa3aa2da644d9ad7dbc876ea42d33cfccae23e.tar.bz2 |
[ASan] Added .section statement to each function so they can be removed by --gc-sections.
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D121813
-rw-r--r-- | compiler-rt/lib/asan/asan_rtl_x86_64.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/asan/asan_rtl_x86_64.S b/compiler-rt/lib/asan/asan_rtl_x86_64.S index 9dcb862..e5e5fc4 100644 --- a/compiler-rt/lib/asan/asan_rtl_x86_64.S +++ b/compiler-rt/lib/asan/asan_rtl_x86_64.S @@ -4,7 +4,6 @@ #if defined(__x86_64__) #include "sanitizer_common/sanitizer_platform.h" -.section .text .file "asan_rtl_x86_64.S" #define NAME(n, reg, op, s, i) n##_##op##_##i##_##s##_##reg @@ -15,6 +14,7 @@ #define FLABEL(reg, op, s, i) NAME(.fail, reg, op, s, i) #define BEGINF(reg, op, s, i) \ +.section .text.FNAME(reg, op, s, i),"ax",@progbits ;\ .globl FNAME(reg, op, s, i) ;\ ASM_TYPE_FUNCTION(FNAME(reg, op, s, i)) ;\ .cfi_startproc ;\ |