OSDN Git Service

Add dummy tcb-offsets.h
authorKhem Raj <raj.khem@gmail.com>
Fri, 19 Feb 2010 16:01:00 +0000 (08:01 -0800)
committerKhem Raj <raj.khem@gmail.com>
Fri, 19 Feb 2010 16:05:30 +0000 (08:05 -0800)
* 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>
extra/scripts/gen-as-const.awk
libpthread/nptl/sysdeps/pthread/tcb-offsets.h [new file with mode: 0644]

index f9ec316..013bd6e 100644 (file)
@@ -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 (file)
index 0000000..3fe1370
--- /dev/null
@@ -0,0 +1 @@
+/* This is overridden by generated tcb-offsets.h on arches which need it.  */