[git commit nptl_glibc_sync] Add dummy tcb-offsets.h

Khem Raj raj.khem at gmail.com
Wed Feb 10 14:24:03 UTC 2010


commit: http://git.uclibc.org/uClibc/commit/?id=8b63e7d52e4519a47fa1365f2e19d35de0db3a9d
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/nptl_glibc_sync

* This file is used during creation of real tcb-offsets.h
  because lowlevellock.h from i386 also include tcb-offsets.h
  and it is inturn included by tls.h and tls.h is used in
  the dummy C file generated from tcb-offsets.sym, it created
  a catch-22

Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
 extra/scripts/gen-as-const.awk                |    2 +-
 libpthread/nptl/sysdeps/pthread/tcb-offsets.h |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)
 create mode 100644 libpthread/nptl/sysdeps/pthread/tcb-offsets.h

diff --git a/extra/scripts/gen-as-const.awk b/extra/scripts/gen-as-const.awk
index f9ec316..013bd6e 100644
--- a/extra/scripts/gen-as-const.awk
+++ b/extra/scripts/gen-as-const.awk
@@ -26,7 +26,7 @@ NF == 1 { sub(/^.*$/, "& &"); }
 NF > 1 {
   name = $1;
   sub(/^[^ 	]+[ 	]+/, "");
-  printf "__asm__ (\"@@@name@@@%s@@@value@@@%%0@@@end@@@\" : : \"i\" (%s));\n",
+  printf "__asm__ (\"@@@name@@@%s@@@value@@@%%0@@@end@@@\" : : \"i\" ((long) %s));\n",
     name, $0;
 }
 
diff --git a/libpthread/nptl/sysdeps/pthread/tcb-offsets.h b/libpthread/nptl/sysdeps/pthread/tcb-offsets.h
new file mode 100644
index 0000000..3fe1370
--- /dev/null
+++ b/libpthread/nptl/sysdeps/pthread/tcb-offsets.h
@@ -0,0 +1 @@
+/* This is overridden by generated tcb-offsets.h on arches which need it.  */
-- 
1.6.3.3



More information about the uClibc-cvs mailing list