source:
clfs-sysroot/patches/glibc-2.5-hppa_nptl-1.patch@
3e71b22
Last change on this file since 3e71b22 was fd94a60, checked in by , 18 years ago | |
---|---|
|
|
File size: 4.0 KB |
-
elf/elf.h
Submitted By: Joe Ciccone <jciccone@linuxfromscratch.org> Date: 2006-11-30 Initial Package Version: 2.5 Upstream Status: In CVS Origin: http://lists.parisc-linux.org/pipermail/parisc-linux/2006-July/029549.html Description: Adds the TLS reloc numbers to elf.h Works around a bug in the data initialization. Adds a missing macro. diff -Naur glibc-2.5.orig/elf/elf.h glibc-2.5/elf/elf.h
old new 1708 1708 #define R_PARISC_LTOFF_FPTR14R 62 /* LT-rel. fct ptr, right 14 bits. */ 1709 1709 #define R_PARISC_FPTR64 64 /* 64 bits function address. */ 1710 1710 #define R_PARISC_PLABEL32 65 /* 32 bits function address. */ 1711 #define R_PARISC_PLABEL21L 66 /* Left 21 bits of fdesc address */ 1712 #define R_PARISC_PLABEL14R 70 /* Right 14 bits of fdesc address */ 1711 1713 #define R_PARISC_PCREL64 72 /* 64 bits PC-rel. address. */ 1712 1714 #define R_PARISC_PCREL22F 74 /* 22 bits PC-rel. address. */ 1713 1715 #define R_PARISC_PCREL14WR 75 /* PC-rel. address, right 14 bits. */ … … 1768 1770 #define R_PARISC_LTOFF_TP16F 229 /* 16 bits LT-TP-rel. address. */ 1769 1771 #define R_PARISC_LTOFF_TP16WF 230 /* 16 bits LT-TP-rel. address. */ 1770 1772 #define R_PARISC_LTOFF_TP16DF 231 /* 16 bits LT-TP-rel. address. */ 1773 1774 #define R_PARISC_GNU_VTENTRY 232 1775 #define R_PARISC_GNU_VTINHERIT 233 1776 #define R_PARISC_TLS_GD21L 234 /* GD 21-bit left */ 1777 #define R_PARISC_TLS_GD14R 235 /* GD 14-bit right */ 1778 #define R_PARISC_TLS_GDCALL 236 /* GD call to __t_g_a */ 1779 #define R_PARISC_TLS_LDM21L 237 /* LD module 21-bit left */ 1780 #define R_PARISC_TLS_LDM14R 238 /* LD module 14-bit right */ 1781 #define R_PARISC_TLS_LDMCALL 239 /* LD module call to __t_g_a */ 1782 #define R_PARISC_TLS_LDO21L 240 /* LD offset 21-bit left */ 1783 #define R_PARISC_TLS_LDO14R 241 /* LD offset 14-bit right */ 1784 #define R_PARISC_TLS_DTPMOD32 242 /* DTP module 32-bit */ 1785 #define R_PARISC_TLS_DTPMOD64 243 /* DTP module 64-bit */ 1786 #define R_PARISC_TLS_DTPOFF32 244 /* DTP offset 32-bit */ 1787 #define R_PARISC_TLS_DTPOFF64 245 /* DTP offset 32-bit */ 1788 1789 #define R_PARISC_TLS_LE21L R_PARISC_TPREL21L 1790 #define R_PARISC_TLS_LE14R R_PARISC_TPREL14R 1791 #define R_PARISC_TLS_IE21L R_PARISC_LTOFF_TP21L 1792 #define R_PARISC_TLS_IE14R R_PARISC_LTOFF_TP14R 1793 #define R_PARISC_TLS_TPREL32 R_PARISC_TPREL32 1794 #define R_PARISC_TLS_TPREL64 R_PARISC_TPREL64 1795 1771 1796 #define R_PARISC_HIRESERVE 255 1772 1797 1773 1798 /* Legal values for p_type field of Elf32_Phdr/Elf64_Phdr. */ -
elf/rtld.c
diff -Naur glibc-2.5.orig/elf/rtld.c glibc-2.5/elf/rtld.c
old new 379 379 know it is available. We do not have to clear the memory if we 380 380 do not have to use the temporary bootstrap_map. Global variables 381 381 are initialized to zero by default. */ 382 #if ndefDONT_USE_BOOTSTRAP_MAP382 #if !defined DONT_USE_BOOTSTRAP_MAP 383 383 # ifdef HAVE_BUILTIN_MEMSET 384 384 __builtin_memset (bootstrap_map.l_info, '\0', sizeof (bootstrap_map.l_info)); 385 385 # else 386 for (size_t cnt = 0;387 cnt < sizeof (bootstrap_map.l_info) / sizeof (bootstrap_map.l_info[0]);388 ++cnt)389 bootstrap_map.l_info[cnt] = 0;386 /* Clear the whole bootstrap_map structure */ 387 for (char *cnt = (char *)&(bootstrap_map); 388 cnt < ((char *)&(bootstrap_map) + sizeof (bootstrap_map)); 389 *cnt++ = '\0'); 390 390 # endif 391 391 # if USE___THREAD 392 392 bootstrap_map.l_tls_modid = 0; -
sysdeps/unix/sysv/linux/getcwd.c
diff -Naur glibc-2.5.orig/sysdeps/unix/sysv/linux/getcwd.c glibc-2.5/sysdeps/unix/sysv/linux/getcwd.c
old new 31 31 32 32 #include <kernel-features.h> 33 33 34 #ifndef MAX 35 # define MAX(a, b) ((a) < (b) ? (b) : (a)) 36 #endif 34 37 35 38 /* If we compile the file for use in ld.so we don't need the feature 36 39 that getcwd() allocates the buffers itself. */
Note:
See TracBrowser
for help on using the repository browser.