From 13a05a472080b90b252385cb1ab88aca84dd704c Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Fri, 30 Dec 2011 22:04:24 +0100 Subject: libc/uClibc: add latest version Add 0.9.32.1 Signed-off-by: "Yann E. MORIN" diff --git a/config/libc/uClibc.in b/config/libc/uClibc.in index 8ba4a68..074fe2a 100644 --- a/config/libc/uClibc.in +++ b/config/libc/uClibc.in @@ -21,6 +21,11 @@ choice # Don't remove next line # CT_INSERT_VERSION_BELOW +config LIBC_UCLIBC_V_0_9_32_1 + bool + prompt "0.9.32.1" + select LIBC_UCLIBC_0_9_32_or_later + config LIBC_UCLIBC_V_0_9_32 bool prompt "0.9.32" @@ -86,6 +91,7 @@ config LIBC_VERSION prompt "Enter date (YYYYMMDD)" if LIBC_UCLIBC_V_specific_date # Don't remove next line # CT_INSERT_VERSION_STRING_BELOW + default "0.9.32.1" if LIBC_UCLIBC_V_0_9_32_1 default "0.9.32" if LIBC_UCLIBC_V_0_9_32 default "0.9.31" if LIBC_UCLIBC_V_0_9_31 default "0.9.30.3" if LIBC_UCLIBC_V_0_9_30_3 diff --git a/patches/uClibc/0.9.32.1/100-fix-TLS-DTPREL-TPREL-macros.patch b/patches/uClibc/0.9.32.1/100-fix-TLS-DTPREL-TPREL-macros.patch new file mode 100644 index 0000000..4491d26 --- /dev/null +++ b/patches/uClibc/0.9.32.1/100-fix-TLS-DTPREL-TPREL-macros.patch @@ -0,0 +1,40 @@ +ldso/mips: workaround for missing TLS macros in elfinterpret.c + +These macros declarations are missing, so gcc believes the code is calling +a function, so any later linking will fail. + +Work this around by copying the mcaros from: + libpthread/nptl/sysdeps/mips/dl-tls.h + +We can't include the header because of incompatible symbol declarations, +so we just copy the macros for now. + +----> THIS IS A DIRTY HACK! <---- + +Signed-off-by: "Yann E. MORIN" + +diff -durN uClibc-0.9.32.orig/ldso/ldso/mips/elfinterp.c uClibc-0.9.32/ldso/ldso/mips/elfinterp.c +--- uClibc-0.9.32.orig/ldso/ldso/mips/elfinterp.c 2011-06-08 21:35:20.000000000 +0200 ++++ uClibc-0.9.32/ldso/ldso/mips/elfinterp.c 2011-09-12 14:02:37.553628824 +0200 +@@ -34,6 +34,21 @@ + + #define OFFSET_GP_GOT 0x7ff0 + ++/* The thread pointer points 0x7000 past the first static TLS block. */ ++#define TLS_TP_OFFSET 0x7000 ++ ++/* Dynamic thread vector pointers point 0x8000 past the start of each ++ * TLS block. */ ++#define TLS_DTV_OFFSET 0x8000 ++ ++/* Compute the value for a GOTTPREL reloc. */ ++#define TLS_TPREL_VALUE(sym_map, sym_val) \ ++ ((sym_map)->l_tls_offset + sym_val - TLS_TP_OFFSET) ++ ++/* Compute the value for a DTPREL reloc. */ ++#define TLS_DTPREL_VALUE(sym_val) \ ++ (sym_val - TLS_DTV_OFFSET) ++ + unsigned long __dl_runtime_resolve(unsigned long sym_index, + unsigned long old_gpreg) + { -- cgit v0.10.2-6-g49f6