Browse Source

Add dummy tcb-offsets.h

* 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@gmail.com>
Khem Raj 14 years ago
parent
commit
8b63e7d52e
2 changed files with 2 additions and 1 deletions
  1. 1 1
      extra/scripts/gen-as-const.awk
  2. 1 0
      libpthread/nptl/sysdeps/pthread/tcb-offsets.h

+ 1 - 1
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;
 }
 

+ 1 - 0
libpthread/nptl/sysdeps/pthread/tcb-offsets.h

@@ -0,0 +1 @@
+/* This is overridden by generated tcb-offsets.h on arches which need it.  */