Skip to content

Commit

Permalink
bugfix fixed macro comment directive
Browse files Browse the repository at this point in the history
  • Loading branch information
kuyoonjo committed Aug 30, 2021
1 parent 2365347 commit ae7b1bf
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/co/context/prefix_arm64.S
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@
* macros
*/
#ifdef __ELF__
# define ELF
# define EXTERN_ASM
#else
# define ELF //
# define EXTERN_ASM _
#endif

Expand Down Expand Up @@ -91,20 +89,26 @@
*/
.macro function name, export=0
.macro endfunc
ELF .size \name, . - \name
#ifdef __ELF__
.size \name, . - \name
#endif
.purgem endfunc
.endm

.text
.align CPU_BYTE_SIZE
.if \export
.global EXTERN_ASM\name
ELF .type EXTERN_ASM\name, %function
ELF .hidden EXTERN_ASM\name
#ifdef __ELF__
.type EXTERN_ASM\name, %function
.hidden EXTERN_ASM\name
#endif
EXTERN_ASM\name:
.else
ELF .type \name, %function
ELF .hidden \name
#ifdef __ELF__
.type \name, %function
.hidden \name
#endif
\name:
.endif
.endm
Expand Down

0 comments on commit ae7b1bf

Please sign in to comment.