From 8b63e7d52e4519a47fa1365f2e19d35de0db3a9d Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 19 Feb 2010 08:01:00 -0800 Subject: 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 --- extra/scripts/gen-as-const.awk | 2 +- libpthread/nptl/sysdeps/pthread/tcb-offsets.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 f9ec31672..013bd6e85 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 000000000..3fe13702e --- /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. */ -- cgit v1.2.3