소스 검색

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 15 년 전
부모
커밋
8b63e7d52e
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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.  */