uClibc-sigaction.patch 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. diff -Nur uClibc-0.9.32.1/libc/signal/sigaction.c uClibc.new/libc/signal/sigaction.c
  2. --- uClibc-0.9.32.1/libc/signal/sigaction.c 2011-12-30 12:11:07.000000000 +0100
  3. +++ uClibc.new/libc/signal/sigaction.c 2012-02-17 14:49:51.000000000 +0100
  4. @@ -82,6 +82,11 @@
  5. #ifndef LIBC_SIGACTION
  6. +# ifndef __UCLIBC_HAS_THREADS__
  7. +strong_alias(__libc_sigaction,sigaction)
  8. +libc_hidden_def(sigaction)
  9. +# else
  10. weak_alias(__libc_sigaction,sigaction)
  11. libc_hidden_weak(sigaction)
  12. +# endif
  13. #endif
  14. diff -Nur uClibc-0.9.32.1/libc/sysdeps/linux/arm/sigaction.c uClibc.new/libc/sysdeps/linux/arm/sigaction.c
  15. --- uClibc-0.9.32.1/libc/sysdeps/linux/arm/sigaction.c 2011-12-30 12:11:07.000000000 +0100
  16. +++ uClibc.new/libc/sysdeps/linux/arm/sigaction.c 2012-02-17 14:49:51.000000000 +0100
  17. @@ -96,6 +96,11 @@
  18. #ifndef LIBC_SIGACTION
  19. +# ifndef __UCLIBC_HAS_THREADS__
  20. +strong_alias(__libc_sigaction,sigaction)
  21. +libc_hidden_def(sigaction)
  22. +# else
  23. weak_alias(__libc_sigaction,sigaction)
  24. libc_hidden_weak(sigaction)
  25. +# endif
  26. #endif
  27. diff -Nur uClibc-0.9.32.1/libc/sysdeps/linux/avr32/sigaction.c uClibc.new/libc/sysdeps/linux/avr32/sigaction.c
  28. --- uClibc-0.9.32.1/libc/sysdeps/linux/avr32/sigaction.c 2011-12-30 12:11:07.000000000 +0100
  29. +++ uClibc.new/libc/sysdeps/linux/avr32/sigaction.c 2012-02-17 14:49:51.000000000 +0100
  30. @@ -38,6 +38,11 @@
  31. }
  32. #ifndef LIBC_SIGACTION
  33. -weak_alias(__libc_sigaction, sigaction)
  34. +# ifndef __UCLIBC_HAS_THREADS__
  35. +strong_alias(__libc_sigaction,sigaction)
  36. +libc_hidden_def(sigaction)
  37. +# else
  38. +weak_alias(__libc_sigaction,sigaction)
  39. libc_hidden_weak(sigaction)
  40. +# endif
  41. #endif
  42. diff -Nur uClibc-0.9.32.1/libc/sysdeps/linux/c6x/sigaction.c uClibc.new/libc/sysdeps/linux/c6x/sigaction.c
  43. --- uClibc-0.9.32.1/libc/sysdeps/linux/c6x/sigaction.c 2011-12-30 12:11:07.000000000 +0100
  44. +++ uClibc.new/libc/sysdeps/linux/c6x/sigaction.c 2012-02-17 14:49:51.000000000 +0100
  45. @@ -75,10 +75,16 @@
  46. }
  47. #ifndef LIBC_SIGACTION
  48. +# ifndef __UCLIBC_HAS_THREADS__
  49. +strong_alias(__libc_sigaction,sigaction)
  50. +libc_hidden_def(sigaction)
  51. +# else
  52. weak_alias(__libc_sigaction,sigaction)
  53. libc_hidden_weak(sigaction)
  54. +# endif
  55. #endif
  56. +
  57. /* NOTE: Please think twice before making any changes to the bits of
  58. code below. GDB needs some intimate knowledge about it to
  59. recognize them as signal trampolines, and make backtraces through
  60. diff -Nur uClibc-0.9.32.1/libc/sysdeps/linux/i386/sigaction.c uClibc.new/libc/sysdeps/linux/i386/sigaction.c
  61. --- uClibc-0.9.32.1/libc/sysdeps/linux/i386/sigaction.c 2011-12-30 12:11:07.000000000 +0100
  62. +++ uClibc.new/libc/sysdeps/linux/i386/sigaction.c 2012-02-17 14:49:51.000000000 +0100
  63. @@ -95,8 +95,13 @@
  64. #ifndef LIBC_SIGACTION
  65. +# ifndef __UCLIBC_HAS_THREADS__
  66. +strong_alias(__libc_sigaction,sigaction)
  67. +libc_hidden_def(sigaction)
  68. +# else
  69. weak_alias(__libc_sigaction,sigaction)
  70. libc_hidden_weak(sigaction)
  71. +# endif
  72. #endif
  73. diff -Nur uClibc-0.9.32.1/libc/sysdeps/linux/mips/sigaction.c uClibc.new/libc/sysdeps/linux/mips/sigaction.c
  74. --- uClibc-0.9.32.1/libc/sysdeps/linux/mips/sigaction.c 2011-12-30 12:11:07.000000000 +0100
  75. +++ uClibc.new/libc/sysdeps/linux/mips/sigaction.c 2012-02-17 14:49:51.000000000 +0100
  76. @@ -100,8 +100,13 @@
  77. #ifndef LIBC_SIGACTION
  78. +# ifndef __UCLIBC_HAS_THREADS__
  79. +strong_alias(__libc_sigaction,sigaction)
  80. +libc_hidden_def(sigaction)
  81. +# else
  82. weak_alias(__libc_sigaction,sigaction)
  83. libc_hidden_weak(sigaction)
  84. +# endif
  85. #endif
  86. diff -Nur uClibc-0.9.32.1/libc/sysdeps/linux/sparc/sigaction.c uClibc.new/libc/sysdeps/linux/sparc/sigaction.c
  87. --- uClibc-0.9.32.1/libc/sysdeps/linux/sparc/sigaction.c 2011-12-30 12:11:07.000000000 +0100
  88. +++ uClibc.new/libc/sysdeps/linux/sparc/sigaction.c 2012-02-17 14:49:51.000000000 +0100
  89. @@ -65,11 +65,18 @@
  90. return ret;
  91. }
  92. +
  93. #ifndef LIBC_SIGACTION
  94. +# ifndef __UCLIBC_HAS_THREADS__
  95. +strong_alias(__libc_sigaction,sigaction)
  96. +libc_hidden_def(sigaction)
  97. +# else
  98. weak_alias(__libc_sigaction,sigaction)
  99. libc_hidden_weak(sigaction)
  100. +# endif
  101. #endif
  102. +
  103. static void
  104. __rt_sigreturn_stub(void)
  105. {
  106. diff -Nur uClibc-0.9.32.1/libc/sysdeps/linux/x86_64/sigaction.c uClibc.new/libc/sysdeps/linux/x86_64/sigaction.c
  107. --- uClibc-0.9.32.1/libc/sysdeps/linux/x86_64/sigaction.c 2011-12-30 12:11:07.000000000 +0100
  108. +++ uClibc.new/libc/sysdeps/linux/x86_64/sigaction.c 2012-02-17 14:49:51.000000000 +0100
  109. @@ -99,8 +99,13 @@
  110. #ifndef LIBC_SIGACTION
  111. +# ifndef __UCLIBC_HAS_THREADS__
  112. +strong_alias(__libc_sigaction,sigaction)
  113. +libc_hidden_def(sigaction)
  114. +# else
  115. weak_alias(__libc_sigaction,sigaction)
  116. libc_hidden_weak(sigaction)
  117. +# endif
  118. #endif
  119. diff -Nur uClibc-0.9.32.1/libc/sysdeps/linux/xtensa/sigaction.c uClibc.new/libc/sysdeps/linux/xtensa/sigaction.c
  120. --- uClibc-0.9.32.1/libc/sysdeps/linux/xtensa/sigaction.c 2011-12-30 12:11:07.000000000 +0100
  121. +++ uClibc.new/libc/sysdeps/linux/xtensa/sigaction.c 2012-02-17 14:49:51.000000000 +0100
  122. @@ -34,6 +34,11 @@
  123. }
  124. #ifndef LIBC_SIGACTION
  125. -weak_alias(__libc_sigaction, sigaction)
  126. +# ifndef __UCLIBC_HAS_THREADS__
  127. +strong_alias(__libc_sigaction,sigaction)
  128. +libc_hidden_def(sigaction)
  129. +# else
  130. +weak_alias(__libc_sigaction,sigaction)
  131. libc_hidden_weak(sigaction)
  132. +# endif
  133. #endif