diff options
author | Khem Raj <raj.khem@gmail.com> | 2010-02-19 08:01:00 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2010-02-19 08:05:30 -0800 |
commit | 8b63e7d52e4519a47fa1365f2e19d35de0db3a9d (patch) | |
tree | c303195ece7e1dab0469f37651340bc82af6b45c | |
parent | 4c15dd5a77e2df399ea3c4e6818cad4df42c0219 (diff) |
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>
-rw-r--r-- | extra/scripts/gen-as-const.awk | 2 | ||||
-rw-r--r-- | libpthread/nptl/sysdeps/pthread/tcb-offsets.h | 1 |
2 files changed, 2 insertions, 1 deletions
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. */ |