1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-22 15:47:37 +01:00

[X86-64]: Instead of auto-generating _u_context_i.h, hardcode the

necessary offsets in offsets.h as is done for other
	  platforms.  This fixes cross-builds.
This commit is contained in:
Arun Sharma 2007-08-06 19:58:12 -06:00 committed by David Mosberger-Tang
parent fad8b04c9f
commit 3afd613545

29
src/x86_64/offsets.h Normal file
View file

@ -0,0 +1,29 @@
/* This used to be a generated file. But then it breaks cross compilation.
* So use the method used by other architectures.
*/
#ifndef OFFSETS_H
#define OFFSETS_H
#define REG_OFFSET_RAX 144
#define REG_OFFSET_RBX 128
#define REG_OFFSET_RCX 152
#define REG_OFFSET_RDX 136
#define REG_OFFSET_RDI 104
#define REG_OFFSET_RSI 112
#define REG_OFFSET_RSP 160
#define REG_OFFSET_RBP 120
#define REG_OFFSET_R8 40
#define REG_OFFSET_R9 48
#define REG_OFFSET_R10 56
#define REG_OFFSET_R11 64
#define REG_OFFSET_R12 72
#define REG_OFFSET_R13 80
#define REG_OFFSET_R14 88
#define REG_OFFSET_R15 96
#define REG_OFFSET_R15 96
#define REG_OFFSET_R15 96
#define REG_OFFSET_RIP 168
#define REG_OFFSET_FPREGS_PTR 224
#define FPREG_OFFSET_MXCR 24
#endif /* OFFSETS_H */