1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-05-19 19:45:17 +02:00
libunwind-eh_elf/src/ia64/mk_cursor_i
Tommi Rantala 354b3fd45b Allow IA64 cross-compilation
Change the way we generate the cursor header files, so that we do not
need to invoke IA64 binaries, which would fail when cross-compiling
libunwind.

Adopt the strategy used in the Linux kernel build system, and parse our
annotated offset information from the assembler file produced by the
compiler.
2012-07-31 16:03:53 +03:00

8 lines
187 B
Bash
Executable file

#!/bin/sh
test -z "$1" && exit 1
echo "/* GENERATED */"
echo "#ifndef cursor_i_h"
echo "#define cursor_i_h"
sed -ne 's/^->"\(\S*\)" \(\d*\)/#define \1 \2/p' < $1 || exit $?
echo "#endif"