diff options
| -rw-r--r-- | tests/ChangeLog | 5 | ||||
| -rw-r--r-- | tests/varlocs.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog index a2adfeed..25ed41e7 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,8 @@ +2018-06-08 Mark Wielaard <[email protected]> + + * varlocs.c (main): Only assert when cfi_debug_bias != 0 if there + actually is a cfi_debug. + 2018-06-07 Mark Wielaard <[email protected]> * run-readelf-loc.sh: Fix expected output for startx_length. 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 |
