Some systems don't add a PT_GNU_EH_FRAME segment by default, but the deleted test depends on it so that it can get at the .eh_frame_hdr table through the phdrs from the remote memory ELF image. Request one explicitly with -fasynchronous-unwind-tables.
Signed-off-by: Mark Wielaard <[email protected]> --- tests/ChangeLog | 5 +++++ tests/Makefile.am | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/ChangeLog b/tests/ChangeLog index 9d229c9..51513b8 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,8 @@ +2014-12-12 Mark Wielaard <[email protected]> + + * Makefile.am (deleted_lib_so_CFLAGS): Add + -fasynchronous-unwind-tables. + 2014-12-10 Josh Stone <[email protected]> * run-addr2line-i-test.sh: Test 0x5f0 to make sure linkage_name is diff --git a/tests/Makefile.am b/tests/Makefile.am index 5b38113..ad9baf4 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -414,7 +414,7 @@ debugaltlink_LDADD = $(libdw) $(libelf) buildid_LDADD = $(libdw) $(libelf) deleted_LDADD = ./deleted-lib.so deleted_lib_so_LDFLAGS = -shared -rdynamic -deleted_lib_so_CFLAGS = -fPIC +deleted_lib_so_CFLAGS = -fPIC -fasynchronous-unwind-tables aggregate_size_LDADD = $(libdw) $(libelf) vdsosyms_LDADD = $(libdw) $(libelf) -- 2.1.0
