1
0

003-fix-missing-ef_reg-defs-with-musl.patch 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. diff -uprN a/include/libunwind-mips.h b/include/libunwind-mips.h
  2. --- a/include/libunwind-mips.h 2012-10-06 12:54:38.000000000 +0800
  3. +++ b/include/libunwind-mips.h 2016-06-08 13:55:55.029436442 +0800
  4. @@ -111,6 +111,42 @@ typedef enum
  5. }
  6. mips_regnum_t;
  7. +#ifndef __GLIBC__
  8. +#include <sys/reg.h>
  9. +
  10. +/* musl as of 1.1.14 does not export these */
  11. +#define EF_REG0 6
  12. +#define EF_REG1 7
  13. +#define EF_REG2 8
  14. +#define EF_REG3 9
  15. +#define EF_REG4 10
  16. +#define EF_REG5 11
  17. +#define EF_REG6 12
  18. +#define EF_REG7 13
  19. +#define EF_REG8 14
  20. +#define EF_REG9 15
  21. +#define EF_REG10 16
  22. +#define EF_REG11 17
  23. +#define EF_REG12 18
  24. +#define EF_REG13 19
  25. +#define EF_REG14 20
  26. +#define EF_REG15 21
  27. +#define EF_REG16 22
  28. +#define EF_REG17 23
  29. +#define EF_REG18 24
  30. +#define EF_REG19 25
  31. +#define EF_REG20 26
  32. +#define EF_REG21 27
  33. +#define EF_REG22 28
  34. +#define EF_REG23 29
  35. +#define EF_REG24 30
  36. +#define EF_REG25 31
  37. +#define EF_REG28 34
  38. +#define EF_REG29 35
  39. +#define EF_REG30 36
  40. +#define EF_REG31 37
  41. +#endif
  42. +
  43. typedef enum
  44. {
  45. UNW_MIPS_ABI_O32,