diff options
| author | Mark Wielaard <[email protected]> | 2018-06-08 15:07:16 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2018-06-10 17:02:22 +0200 |
| commit | a1a3aa9460d2bbc5172c4eae1fd9c20b8a1a5eae (patch) | |
| tree | 9754ce2734a2301af9fa4fcb75e18f8d661dedbb /tests/varlocs.c | |
| parent | 7e30fb282d32fe3e082f66c936db4b2988c290dc (diff) | |
tests: Fix cfi_debug_bias assert in varlocs.
It is only a consistency issue if we actually have an cfi_debug and the
cfi_debug_bias is not zero (because they come from the same file as the
other debug data).
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'tests/varlocs.c')
| -rw-r--r-- | tests/varlocs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/varlocs.c b/tests/varlocs.c index 2ddd3d8f..99c38878 100644 --- a/tests/varlocs.c +++ b/tests/varlocs.c @@ -1121,7 +1121,8 @@ main (int argc, char *argv[]) cfi_debug = dwfl_module_dwarf_cfi (mod, &cfi_debug_bias); cfi_eh = dwfl_module_eh_cfi (mod, &cfi_eh_bias); - assert (cfi_debug_bias == 0); // No bias needed, same file. + // No bias needed, same file. + assert (cfi_debug == NULL || cfi_debug_bias == 0); // We are a bit forgiving for object files. There might be // relocations we don't handle that are needed in some |
