History log of /external/elfutils/tests/run-addrcfi.sh
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
aa19e593d3a5ba53571064ca133597ca9f14f840 25-Mar-2015 H.J. Lu <hjl.tools@gmail.com> tests: Add testfile-x32 to run-addrcfi.sh

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
/external/elfutils/tests/run-addrcfi.sh
b4b2de9f1f1fb694b77371a61f808a1641bbafea 07-Jan-2015 Mark Wielaard <mjw@redhat.com> libdw: Robustify eh_frame_hdr and encoded-values reading.

Sanity check and keep track of binary_search_table data buffer length.
Add bounds check to encoded value reading. Also fix a bug when reading
the eh_frame header data from an other endian ELF image. Add a testcase
that would fail the new sanity checks because of the endian bug.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/tests/run-addrcfi.sh
a02d90ae12c5386b85332536b516da435150dd88 25-Jan-2014 Mark Wielaard <mjw@redhat.com> backends: arm_cfi SP (r13) is restored from CFA by default.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/tests/run-addrcfi.sh
b92af19f2110999579a65a5dceab532c97979559 03-Jan-2014 Mark Wielaard <mjw@redhat.com> backends: Add aarch64 abi_cfi.

Setup initial CIE values for aarch64 for use with dwarf_frame functions.
Register info prefix should be the empty string (not NULL) when not used.
Add an EM_AARCH64 testcase to tests/run-addrcfi.sh to check both issues.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/tests/run-addrcfi.sh
3dec3e110bb2a2453156868e1221dc8192399e3e 06-Oct-2013 Mark Wielaard <mjw@redhat.com> backends: ppc_abi_cfi reg1 use DW_CFA_val_offset not DW_CFA_val_expression.

Register rules using expressions are stored using an offset from the
start of the .eh_frame or .debug_frame ELF section data. Since abi_cfi
rules aren't stored in those ELF sections they should use neither
DW_CFA_expression nor DW_CFA_val_expression. The only backend that used
DW_CFA_val_expression was ppc_cfi.c. It was easier to express the same
rule using DW_CFA_val_offset than to change the code to handle register
rules using expressions. On most architectures this did work by accident.
See the definition of struct dwarf_frame_register value in libdw/cfi.h to
see why. But on ia64 the abi_cfi data and actual frame data were placed
too far apart and caused a crash in tests/run-addrcfi.sh for ppc32.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/tests/run-addrcfi.sh
92e47d616d15beec31c406ce254e639faa8fac2b 02-Sep-2013 Mark Wielaard <mjw@redhat.com> 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 <mjw@redhat.com>
/external/elfutils/tests/run-addrcfi.sh
79b9181ff552e54bacc74fc0b0699e6133645c6b 28-Aug-2013 Mark Wielaard <mjw@redhat.com> tests: Add s390 and s390x addrcfi testcases.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/tests/run-addrcfi.sh
d3f164551f3f5d9ebd47cd4c055873ba1658a1b6 28-Aug-2013 Mark Wielaard <mjw@redhat.com> tests: Add ppc32 and ppc64 addrcfi testcases.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/tests/run-addrcfi.sh
292b1787b6ccc429ebba177600dffdb5b33443f7 27-Aug-2013 Mark Wielaard <mjw@redhat.com> tests: Add run-addrcfi.sh test for libdw cfi dwarf_frame_* functions.

We require architecture backends to implement the ebl abi_cfi hook
to provide the ABI's default CFI program as used by the libdw dwarf cfi
functions. There is the addrcfi test program that prints the return
address, cfa location expression and register states as returned by
various dwarf_cfi_* and dwarf_frame functions. But that has to be run
by hand. The new run-addrcfi.sh tests hooks addrcfi up to some existing
architecture specific test files and known addresses to more easily
(and automaticly) check that the default CFI program is implemented
correctly and to test the libdw cfi frame info functionality.

Only i386 and x86_64 are tested for now since other backends don't have
the abi_cfi hook yet.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/tests/run-addrcfi.sh