Skip to content

Commit 0e6a025

Browse files
committed
Use TEXT_SECTION macro in orc
1 parent 032f4d7 commit 0e6a025

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

compiler-rt/lib/orc/elfnix_tls.aarch64.S

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@
1313
// The content of this file is aarch64-only
1414
#if defined(__arm64__) || defined(__aarch64__)
1515

16+
#include "builtins/assembly.h"
17+
1618
#define REGISTER_SAVE_SPACE_SIZE 32 * 24
1719

18-
#if defined(COMPILER_RT_EXECUTE_ONLY_CODE)
19-
.section .text,"axy",@progbits,unique,0
20-
#else
21-
.text
22-
#endif
20+
TEXT_SECTION
2321

2422
// returns address of TLV in x0, all other registers preserved
2523
// TODO: add fast-path for repeat access

compiler-rt/lib/orc/sysv_reenter.arm64.S

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@
1313
// The content of this file is arm64-only
1414
#if defined(__arm64__) || defined(__aarch64__)
1515

16-
#if defined(__ELF__) && defined(COMPILER_RT_EXECUTE_ONLY_CODE)
17-
.section .text,"axy",@progbits,unique,0
18-
#else
19-
.text
20-
#endif
16+
#include "builtins/assembly.h"
17+
18+
TEXT_SECTION
2119

2220
// Saves GPRs, calls __orc_rt_resolve
2321
.globl __orc_rt_sysv_reenter

0 commit comments

Comments
 (0)