1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-25 16:47:38 +01:00

Plug in `ALIAS' attribute

This commit is contained in:
Tommi Rantala 2012-09-19 14:45:11 +03:00
parent 7d471b1440
commit 5e7e890a0b
2 changed files with 2 additions and 2 deletions

View file

@ -76,6 +76,6 @@ unw_backtrace (void **buffer, int size)
} }
extern int backtrace (void **buffer, int size) extern int backtrace (void **buffer, int size)
WEAK __attribute__((alias("unw_backtrace"))); WEAK ALIAS(unw_backtrace);
#endif /* !UNW_REMOTE_ONLY */ #endif /* !UNW_REMOTE_ONLY */

View file

@ -87,7 +87,7 @@ write_maps(char *fname)
#endif #endif
#ifdef __GNUC__ #ifdef __GNUC__
int c(int x) NOINLINE __attribute__((alias("b"))); int c(int x) NOINLINE ALIAS(b);
#define compiler_barrier() asm volatile(""); #define compiler_barrier() asm volatile("");
#else #else
int c(int x); int c(int x);