diff options
author | Sergey Fedorov <[email protected]> | 2022-10-19 18:49:45 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2022-10-19 23:49:45 +1300 |
commit | 567725ed303b6738493c80efaf93dc4c1e65a9c9 (patch) | |
tree | 75f141047050eee63c05d613491595a7a9380afa /addr2line.c | |
parent | fc3137ef54562c3c3290245c0f62e0bb193c3145 (diff) |
Fix and improve coroutines for Darwin (macOS) ppc/ppc64. (#5975)
Notes
Notes:
Merged-By: ioquatix <[email protected]>
Diffstat (limited to 'addr2line.c')
-rw-r--r-- | addr2line.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/addr2line.c b/addr2line.c index fe4ad84423..0d45ec9414 100644 --- a/addr2line.c +++ b/addr2line.c @@ -869,8 +869,11 @@ typedef struct { int type; } DebugInfoValue; -/* TODO: Big Endian */ +#if defined(WORDS_BIGENDIAN) +#define MERGE_2INTS(a,b,sz) (((uint64_t)(a)<<sz)|(b)) +#else #define MERGE_2INTS(a,b,sz) (((uint64_t)(b)<<sz)|(a)) +#endif static uint16_t get_uint16(const uint8_t *p) |