OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

167 lines
6.2 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../glibc/glibc-2.11-branch-update.patch
  5. # Copyright (C) 2010 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. diff --git a/ChangeLog b/ChangeLog
  17. index bb4e4d5..b03035f 100644
  18. --- a/ChangeLog
  19. +++ b/ChangeLog
  20. @@ -1,3 +1,29 @@
  21. +2010-05-26 H.J. Lu <hongjiu.lu@intel.com>
  22. +
  23. + [BZ #11640]
  24. + * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
  25. + Properly check family and model.
  26. +
  27. +2010-05-26 Takashi Yoshii <takashi.yoshii.zj@renesas.com>
  28. +
  29. + * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
  30. +
  31. +2010-05-21 Ulrich Drepper <drepper@redhat.com>
  32. +
  33. + * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
  34. + symbol reference.
  35. +
  36. +2010-05-19 Andreas Schwab <schwab@redhat.com>
  37. +
  38. + * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
  39. + symbol reference.
  40. +
  41. +2010-05-21 Andreas Schwab <schwab@redhat.com>
  42. +
  43. + * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
  44. + * sunrpc/clnt_udp.c (clntudp_control): Likewise.
  45. + * sunrpc/clnt_unix.c (clntunix_control): Likewise.
  46. +
  47. 2010-05-12 Andrew Stubbs <ams@codesourcery.com>
  48. * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
  49. diff --git a/elf/dl-runtime.c b/elf/dl-runtime.c
  50. index a52120d..6847eda 100644
  51. --- a/elf/dl-runtime.c
  52. +++ b/elf/dl-runtime.c
  53. @@ -1,5 +1,5 @@
  54. /* On-demand PLT fixup for shared objects.
  55. - Copyright (C) 1995-2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  56. + Copyright (C) 1995-2009, 2010 Free Software Foundation, Inc.
  57. This file is part of the GNU C Library.
  58. The GNU C Library is free software; you can redistribute it and/or
  59. @@ -144,7 +144,8 @@ _dl_fixup (
  60. /* And now perhaps the relocation addend. */
  61. value = elf_machine_plt_value (l, reloc, value);
  62. - if (__builtin_expect (ELFW(ST_TYPE) (sym->st_info) == STT_GNU_IFUNC, 0))
  63. + if (sym != NULL
  64. + && __builtin_expect (ELFW(ST_TYPE) (sym->st_info) == STT_GNU_IFUNC, 0))
  65. value = ((DL_FIXUP_VALUE_TYPE (*) (void)) DL_FIXUP_VALUE_ADDR (value)) ();
  66. /* Finally, fix up the plt itself. */
  67. @@ -231,8 +232,9 @@ _dl_profile_fixup (
  68. ? LOOKUP_VALUE_ADDRESS (result)
  69. + defsym->st_value : 0);
  70. - if (__builtin_expect (ELFW(ST_TYPE) (defsym->st_info)
  71. - == STT_GNU_IFUNC, 0))
  72. + if (defsym != NULL
  73. + && __builtin_expect (ELFW(ST_TYPE) (defsym->st_info)
  74. + == STT_GNU_IFUNC, 0))
  75. value = ((DL_FIXUP_VALUE_TYPE (*) (void))
  76. DL_FIXUP_VALUE_ADDR (value)) ();
  77. }
  78. @@ -369,7 +371,7 @@ _dl_profile_fixup (
  79. struct audit_ifaces *afct = GLRO(dl_audit);
  80. for (unsigned int cnt = 0; cnt < GLRO(dl_naudit); ++cnt)
  81. {
  82. - if (afct->ARCH_LA_PLTENTER != NULL
  83. + if (afct->ARCH_LA_PLTENTER != NULL
  84. && (reloc_result->enterexit
  85. & (LA_SYMB_NOPLTENTER << (2 * (cnt + 1)))) == 0)
  86. {
  87. diff --git a/sunrpc/clnt_tcp.c b/sunrpc/clnt_tcp.c
  88. index 1552be8..d26a126 100644
  89. --- a/sunrpc/clnt_tcp.c
  90. +++ b/sunrpc/clnt_tcp.c
  91. @@ -399,6 +399,7 @@ clnttcp_control (CLIENT *cl, int request, char *info)
  92. /* This will set the xid of the NEXT call */
  93. *(u_long *)ct->ct_mcall = htonl (*(u_long *)info - 1);
  94. /* decrement by 1 as clnttcp_call() increments once */
  95. + break;
  96. case CLGET_VERS:
  97. /*
  98. * This RELIES on the information that, in the call body,
  99. diff --git a/sunrpc/clnt_udp.c b/sunrpc/clnt_udp.c
  100. index 62ee3a1..360e26a 100644
  101. --- a/sunrpc/clnt_udp.c
  102. +++ b/sunrpc/clnt_udp.c
  103. @@ -582,6 +582,7 @@ clntudp_control (CLIENT *cl, int request, char *info)
  104. /* This will set the xid of the NEXT call */
  105. *(u_long *)cu->cu_outbuf = htonl(*(u_long *)info - 1);
  106. /* decrement by 1 as clntudp_call() increments once */
  107. + break;
  108. case CLGET_VERS:
  109. /*
  110. * This RELIES on the information that, in the call body,
  111. diff --git a/sunrpc/clnt_unix.c b/sunrpc/clnt_unix.c
  112. index db3ea31..bca1273 100644
  113. --- a/sunrpc/clnt_unix.c
  114. +++ b/sunrpc/clnt_unix.c
  115. @@ -376,6 +376,7 @@ clntunix_control (CLIENT *cl, int request, char *info)
  116. /* This will set the xid of the NEXT call */
  117. *(u_long *) ct->ct_mcall = htonl (*(u_long *)info - 1);
  118. /* decrement by 1 as clntunix_call() increments once */
  119. + break;
  120. case CLGET_VERS:
  121. /*
  122. * This RELIES on the information that, in the call body,
  123. diff --git a/sysdeps/unix/sysv/linux/sh/sh4/register-dump.h b/sysdeps/unix/sysv/linux/sh/sh4/register-dump.h
  124. index e3c9c0e..92df085 100644
  125. --- a/sysdeps/unix/sysv/linux/sh/sh4/register-dump.h
  126. +++ b/sysdeps/unix/sysv/linux/sh/sh4/register-dump.h
  127. @@ -1,5 +1,5 @@
  128. /* Dump registers.
  129. - Copyright (C) 1999, 2000, 2009 Free Software Foundation, Inc.
  130. + Copyright (C) 1999, 2000, 2009, 2010 Free Software Foundation, Inc.
  131. This file is part of the GNU C Library.
  132. The GNU C Library is free software; you can redistribute it and/or
  133. @@ -58,7 +58,7 @@ register_dump (int fd, struct sigcontext *ctx)
  134. {
  135. char regs[22][8];
  136. char fpregs[34][8];
  137. - struct iovec iov[112];
  138. + struct iovec iov[22 * 2 + 34 * 2 + 2];
  139. size_t nr = 0;
  140. #define ADD_STRING(str) \
  141. diff --git a/sysdeps/x86_64/multiarch/init-arch.c b/sysdeps/x86_64/multiarch/init-arch.c
  142. index 0fe2f86..198fcaa 100644
  143. --- a/sysdeps/x86_64/multiarch/init-arch.c
  144. +++ b/sysdeps/x86_64/multiarch/init-arch.c
  145. @@ -62,12 +62,12 @@ __init_cpu_features (void)
  146. unsigned int eax = __cpu_features.cpuid[COMMON_CPUID_INDEX_1].eax;
  147. unsigned int extended_family = (eax >> 20) & 0xff;
  148. unsigned int extended_model = (eax >> 12) & 0xf0;
  149. - if (__cpu_features.family == 0x0f)
  150. + if (family == 0x0f)
  151. {
  152. family += extended_family;
  153. model += extended_model;
  154. }
  155. - else if (__cpu_features.family == 0x06)
  156. + else if (family == 0x06)
  157. model += extended_model;
  158. }
  159. /* This spells out "AuthenticAMD". */