source: clfs-sysroot/patches/glibc-2.6.1-hppa_nptl-1.patch@ cc0e990

Last change on this file since cc0e990 was 93fcbff, checked in by Joe Ciccone <jciccone@…>, 17 years ago

Updated Glibc to 2.6.1.

  • Property mode set to 100644
File size: 4.0 KB
RevLine 
[fd94a60]1Submitted By: Joe Ciccone <jciccone@linuxfromscratch.org>
2Date: 2006-11-30
3Initial Package Version: 2.5
[00520f6]4 Rediffed against 2.6 by Joe Ciccone
[fd94a60]5Upstream Status: In CVS
6Origin: http://lists.parisc-linux.org/pipermail/parisc-linux/2006-July/029549.html
7Description: Adds the TLS reloc numbers to elf.h
8 Works around a bug in the data initialization.
9 Adds a missing macro.
10
[00520f6]11diff -Naur glibc-2.6.orig/elf/elf.h glibc-2.6/elf/elf.h
12--- glibc-2.6.orig/elf/elf.h 2007-07-04 21:13:57.000000000 -0400
13+++ glibc-2.6/elf/elf.h 2007-07-04 21:14:25.000000000 -0400
14@@ -1710,6 +1710,8 @@
[fd94a60]15 #define R_PARISC_LTOFF_FPTR14R 62 /* LT-rel. fct ptr, right 14 bits. */
16 #define R_PARISC_FPTR64 64 /* 64 bits function address. */
17 #define R_PARISC_PLABEL32 65 /* 32 bits function address. */
18+#define R_PARISC_PLABEL21L 66 /* Left 21 bits of fdesc address */
19+#define R_PARISC_PLABEL14R 70 /* Right 14 bits of fdesc address */
20 #define R_PARISC_PCREL64 72 /* 64 bits PC-rel. address. */
21 #define R_PARISC_PCREL22F 74 /* 22 bits PC-rel. address. */
22 #define R_PARISC_PCREL14WR 75 /* PC-rel. address, right 14 bits. */
[00520f6]23@@ -1770,6 +1772,29 @@
[fd94a60]24 #define R_PARISC_LTOFF_TP16F 229 /* 16 bits LT-TP-rel. address. */
25 #define R_PARISC_LTOFF_TP16WF 230 /* 16 bits LT-TP-rel. address. */
26 #define R_PARISC_LTOFF_TP16DF 231 /* 16 bits LT-TP-rel. address. */
27+
28+#define R_PARISC_GNU_VTENTRY 232
29+#define R_PARISC_GNU_VTINHERIT 233
30+#define R_PARISC_TLS_GD21L 234 /* GD 21-bit left */
31+#define R_PARISC_TLS_GD14R 235 /* GD 14-bit right */
32+#define R_PARISC_TLS_GDCALL 236 /* GD call to __t_g_a */
33+#define R_PARISC_TLS_LDM21L 237 /* LD module 21-bit left */
34+#define R_PARISC_TLS_LDM14R 238 /* LD module 14-bit right */
35+#define R_PARISC_TLS_LDMCALL 239 /* LD module call to __t_g_a */
36+#define R_PARISC_TLS_LDO21L 240 /* LD offset 21-bit left */
37+#define R_PARISC_TLS_LDO14R 241 /* LD offset 14-bit right */
38+#define R_PARISC_TLS_DTPMOD32 242 /* DTP module 32-bit */
39+#define R_PARISC_TLS_DTPMOD64 243 /* DTP module 64-bit */
40+#define R_PARISC_TLS_DTPOFF32 244 /* DTP offset 32-bit */
41+#define R_PARISC_TLS_DTPOFF64 245 /* DTP offset 32-bit */
42+
43+#define R_PARISC_TLS_LE21L R_PARISC_TPREL21L
44+#define R_PARISC_TLS_LE14R R_PARISC_TPREL14R
45+#define R_PARISC_TLS_IE21L R_PARISC_LTOFF_TP21L
46+#define R_PARISC_TLS_IE14R R_PARISC_LTOFF_TP14R
47+#define R_PARISC_TLS_TPREL32 R_PARISC_TPREL32
48+#define R_PARISC_TLS_TPREL64 R_PARISC_TPREL64
49+
50 #define R_PARISC_HIRESERVE 255
51
52 /* Legal values for p_type field of Elf32_Phdr/Elf64_Phdr. */
[00520f6]53diff -Naur glibc-2.6.orig/elf/rtld.c glibc-2.6/elf/rtld.c
54--- glibc-2.6.orig/elf/rtld.c 2007-07-04 21:13:57.000000000 -0400
55+++ glibc-2.6/elf/rtld.c 2007-07-04 21:14:25.000000000 -0400
[fd94a60]56@@ -379,14 +379,14 @@
57 know it is available. We do not have to clear the memory if we
58 do not have to use the temporary bootstrap_map. Global variables
59 are initialized to zero by default. */
60-#ifndef DONT_USE_BOOTSTRAP_MAP
61+#if !defined DONT_USE_BOOTSTRAP_MAP
62 # ifdef HAVE_BUILTIN_MEMSET
63 __builtin_memset (bootstrap_map.l_info, '\0', sizeof (bootstrap_map.l_info));
64 # else
65- for (size_t cnt = 0;
66- cnt < sizeof (bootstrap_map.l_info) / sizeof (bootstrap_map.l_info[0]);
67- ++cnt)
68- bootstrap_map.l_info[cnt] = 0;
69+ /* Clear the whole bootstrap_map structure */
70+ for (char *cnt = (char *)&(bootstrap_map);
71+ cnt < ((char *)&(bootstrap_map) + sizeof (bootstrap_map));
72+ *cnt++ = '\0');
73 # endif
74 # if USE___THREAD
75 bootstrap_map.l_tls_modid = 0;
[00520f6]76diff -Naur glibc-2.6.orig/sysdeps/unix/sysv/linux/getcwd.c glibc-2.6/sysdeps/unix/sysv/linux/getcwd.c
77--- glibc-2.6.orig/sysdeps/unix/sysv/linux/getcwd.c 2007-07-04 21:13:56.000000000 -0400
78+++ glibc-2.6/sysdeps/unix/sysv/linux/getcwd.c 2007-07-04 21:14:25.000000000 -0400
[fd94a60]79@@ -31,6 +31,9 @@
80
81 #include <kernel-features.h>
82
83+#ifndef MAX
84+# define MAX(a, b) ((a) < (b) ? (b) : (a))
85+#endif
86
87 /* If we compile the file for use in ld.so we don't need the feature
88 that getcwd() allocates the buffers itself. */
Note: See TracBrowser for help on using the repository browser.