1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00

fix TRACE macro

modified:   stub/src/arm64-linux.elf-entry.S
	modified:   stub/src/arm64-linux.elf-fold.S
This commit is contained in:
John Reiser 2017-12-26 15:43:01 -08:00
parent 79e65503a9
commit 9dfd624901
2 changed files with 6 additions and 2 deletions

View File

@ -81,7 +81,9 @@ __NR_write = 0x40 // 64
#define DEBUG 0
#endif /*}*/
#if DEBUG //{
#define TRACE(arg) stp lr,x0,[sp,#-2*8]!; mov x0,arg; bl trace; ldr lr,[sp],#2*8
#define TRACE(arg) \
stp lr,x0,[sp,#-2*8]!; mov x0,arg; bl trace; \
ldp lr,x0,[sp],#2*8
#else //}{
#define TRACE(arg) /*empty*/
#endif //}

View File

@ -58,7 +58,9 @@ PATH_MAX= 4096
#define DEBUG 0
#endif /*}*/
#if DEBUG //{
#define TRACE(arg) stp lr,x0,[sp,#-2*8]!; mov x0,arg; bl trace; ldr lr,[sp],#2*8
#define TRACE(arg) \
stp lr,x0,[sp,#-2*8]!; mov x0,arg; bl trace; \
ldp lr,x0,[sp],#2*8
#else //}{
#define TRACE(arg) /*empty*/
#endif //}