summaryrefslogtreecommitdiffstats
path: root/backends/arm_init.c
diff options
context:
space:
mode:
authorMark Wielaard <[email protected]>2013-09-02 16:46:50 +0200
committerMark Wielaard <[email protected]>2013-09-03 11:43:19 +0200
commit92e47d616d15beec31c406ce254e639faa8fac2b (patch)
treec0df7b450863f22e36c0bc798d174962a6e92564 /backends/arm_init.c
parent79b9181ff552e54bacc74fc0b0699e6133645c6b (diff)
backends: Hook abi_cfi for arm.
New arm_abi_cfi that defines initial CFA, rules for callee-saved regs, including VFP ones and return register. Note the DWARF abi extension for ARM says that "registers intentionally unused" should also be initialized as if by DW_CFA_same_value. The example given is "an integer-only function might be included in one executable file for targets with VFP and another for targets without". We don't currently do this yet. See the DWARF and calling convention documents: DWARF for the ARM Architecture ABI r2.09 http://infocenter.arm.com/help/topic/com.arm.doc.ihi0040b/IHI0040B_aadwarf.pdf Procedure Call Standard for the ARM Architecture ABI r2.09 http://infocenter.arm.com/help/topic/com.arm.doc.ihi0042e/IHI0042E_aapcs.pdf Also adds addrcfi arm testcase. Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'backends/arm_init.c')
-rw-r--r--backends/arm_init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/arm_init.c b/backends/arm_init.c
index 38bd4eb4..cf661cea 100644
--- a/backends/arm_init.c
+++ b/backends/arm_init.c
@@ -1,5 +1,5 @@
/* Initialization of Arm specific backend library.
- Copyright (C) 2002, 2005, 2009 Red Hat, Inc.
+ Copyright (C) 2002, 2005, 2009, 2013 Red Hat, Inc.
This file is part of elfutils.
Written by Ulrich Drepper <[email protected]>, 2002.
@@ -62,6 +62,7 @@ arm_init (elf, machine, eh, ehlen)
HOOK (eh, auxv_info);
HOOK (eh, check_object_attribute);
HOOK (eh, return_value_location);
+ HOOK (eh, abi_cfi);
return MODVERSION;
}