]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
LVU: adjust locview tests further
authorAlexandre Oliva <aoliva@redhat.com>
Thu, 21 Sep 2017 01:57:02 +0000 (22:57 -0300)
committerAlexandre Oliva <aoliva@redhat.com>
Thu, 21 Sep 2017 01:57:02 +0000 (22:57 -0300)
Compute offsets so as to use constants.

Skip message about relocations in locview-2.

XFAIL dw5 tests on nds32, relocations in loclist prevent dumping.

binutils/testsuite/binutils-all/locview-1.s
binutils/testsuite/binutils-all/locview-2.s
binutils/testsuite/binutils-all/readelf.exp
binutils/testsuite/binutils-all/readelf.locview-2

index bde98bd88d6c6cfcf779615666dcffec57c12b3f..d9d9b5b77a2a99f5ec9c546e9a4ee63ad5148214 100644 (file)
@@ -65,7 +65,7 @@
        .byte   0x1     /* DW_AT_decl_line */
        .4byte  .LIint-.LIbase  /* DW_AT_type */
        .4byte  .LFB0   /* DW_AT_low_pc */
-       .4byte  .LFE0-.LFB0     /* DW_AT_high_pc */
+       .4byte  1 /* .LFE0-.LFB0 */     /* DW_AT_high_pc */
        .uleb128 0x1    /* DW_AT_frame_base */
        .byte   0x9c    /* DW_OP_call_frame_cfa */
                        /* DW_AT_GNU_all_call_sites */
index 141e30ece5f2685a682d12ba18b11cb0637575f3..d9b1d587595a5e2c08c66f577da9af6b27ae9070 100644 (file)
@@ -66,7 +66,7 @@
        .byte   0x1     /* DW_AT_decl_line */
        .4byte  .LIint-.LIbase  /* DW_AT_type */
        .4byte  .LFB0   /* DW_AT_low_pc */
-       .4byte  .LFE0-.LFB0     /* DW_AT_high_pc */
+       .4byte  1 /* .LFE0-.LFB0 */     /* DW_AT_high_pc */
        .uleb128 0x1    /* DW_AT_frame_base */
        .byte   0x9c    /* DW_OP_call_frame_cfa */
                        /* DW_AT_call_all_calls */
        .byte   0x6     /* DW_LLE_base_address (*.LLST0) */
        .4byte  .LVL0   /* Base address (*.LLST0) */
        .byte   0x4     /* DW_LLE_offset_pair (*.LLST0) */
-       .uleb128 .LVL0-.LVL0    /* Location list begin address (*.LLST0) */
-       .uleb128 .LVL0-.LVL0    /* Location list end address (*.LLST0) */
+       .uleb128 0 /* .LVL0-.LVL0 */    /* Location list begin address (*.LLST0) */
+       .uleb128 0 /* .LVL0-.LVL0 */    /* Location list end address (*.LLST0) */
        .uleb128 0x2    /* Location expression size */
        .byte   0x30    /* DW_OP_lit0 */
        .byte   0x9f    /* DW_OP_stack_value */
        .byte   0x4     /* DW_LLE_offset_pair (*.LLST0) */
-       .uleb128 .LVL0-.LVL0    /* Location list begin address (*.LLST0) */
-       .uleb128 .LFE0-.LVL0    /* Location list end address (*.LLST0) */
+       .uleb128 0 /* .LVL0-.LVL0 */    /* Location list begin address (*.LLST0) */
+       .uleb128 1 /* .LFE0-.LVL0 */    /* Location list end address (*.LLST0) */
        .uleb128 0x2    /* Location expression size */
        .byte   0x32    /* DW_OP_lit2 */
        .byte   0x9f    /* DW_OP_stack_value */
        .byte   0x6     /* DW_LLE_base_address (*.LLST1) */
        .4byte  .LVL0   /* Base address (*.LLST1) */
        .byte   0x4     /* DW_LLE_offset_pair (*.LLST1) */
-       .uleb128 .LVL0-.LVL0    /* Location list begin address (*.LLST1) */
-       .uleb128 .LVL0-.LVL0    /* Location list end address (*.LLST1) */
+       .uleb128 0 /* .LVL0-.LVL0 */    /* Location list begin address (*.LLST1) */
+       .uleb128 0 /* .LVL0-.LVL0 */    /* Location list end address (*.LLST1) */
        .uleb128 0x2    /* Location expression size */
        .byte   0x31    /* DW_OP_lit1 */
        .byte   0x9f    /* DW_OP_stack_value */
        .byte   0x4     /* DW_LLE_offset_pair (*.LLST1) */
-       .uleb128 .LVL0-.LVL0    /* Location list begin address (*.LLST1) */
-       .uleb128 .LFE0-.LVL0    /* Location list end address (*.LLST1) */
+       .uleb128 0 /* .LVL0-.LVL0 */    /* Location list begin address (*.LLST1) */
+       .uleb128 1 /* .LFE0-.LVL0 */    /* Location list end address (*.LLST1) */
        .uleb128 0x2    /* Location expression size */
        .byte   0x33    /* DW_OP_lit3 */
        .byte   0x9f    /* DW_OP_stack_value */
        .byte   0x6     /* DW_LLE_base_address (*.LLST2) */
        .4byte  .LVL0   /* Base address (*.LLST2) */
        .byte   0x4     /* DW_LLE_offset_pair (*.LLST2) */
-       .uleb128 .LVL0-.LVL0    /* Location list begin address (*.LLST2) */
-       .uleb128 .LVL0-.LVL0    /* Location list end address (*.LLST2) */
+       .uleb128 0 /* .LVL0-.LVL0 */    /* Location list begin address (*.LLST2) */
+       .uleb128 0 /* .LVL0-.LVL0 */    /* Location list end address (*.LLST2) */
        .uleb128 0x2    /* Location expression size */
        .byte   0x34    /* DW_OP_lit4 */
        .byte   0x9f    /* DW_OP_stack_value */
        .byte   0x4     /* DW_LLE_offset_pair (*.LLST2) */
-       .uleb128 .LVL0-.LVL0    /* Location list begin address (*.LLST2) */
-       .uleb128 .LVL0-.LVL0    /* Location list end address (*.LLST2) */
+       .uleb128 0 /* .LVL0-.LVL0 */    /* Location list begin address (*.LLST2) */
+       .uleb128 0 /* .LVL0-.LVL0 */    /* Location list end address (*.LLST2) */
        .uleb128 0x2    /* Location expression size */
        .byte   0x35    /* DW_OP_lit5 */
        .byte   0x9f    /* DW_OP_stack_value */
        .byte   0x4     /* DW_LLE_offset_pair (*.LLST2) */
-       .uleb128 .LVL0-.LVL0    /* Location list begin address (*.LLST2) */
-       .uleb128 .LFE0-.LVL0    /* Location list end address (*.LLST2) */
+       .uleb128 0 /* .LVL0-.LVL0 */    /* Location list begin address (*.LLST2) */
+       .uleb128 1 /* .LFE0-.LVL0 */    /* Location list end address (*.LLST2) */
        .uleb128 0x2    /* Location expression size */
        .byte   0x36    /* DW_OP_lit6 */
        .byte   0x9f    /* DW_OP_stack_value */
        .uleb128 0x6    /* View list begin (*.LLST3) */
        .uleb128 0x7    /* View list end (*.LVUS3) */
        .byte   0x4     /* DW_LLE_offset_pair (*.LLST3) */
-       .uleb128 .LVL0-.LVL0    /* Location list begin address (*.LLST3) */
-       .uleb128 .LVL0-.LVL0    /* Location list end address (*.LLST3) */
+       .uleb128 0 /* .LVL0-.LVL0 */    /* Location list begin address (*.LLST3) */
+       .uleb128 0 /* .LVL0-.LVL0 */    /* Location list end address (*.LLST3) */
        .uleb128 0x2    /* Location expression size */
        .byte   0x34    /* DW_OP_lit4 */
        .byte   0x9f    /* DW_OP_stack_value */
        .uleb128 0x7    /* View list begin (*.LLST3) */
        .uleb128 0x8    /* View list end (*.LVUS3) */
        .byte   0x4     /* DW_LLE_offset_pair (*.LLST3) */
-       .uleb128 .LVL0-.LVL0    /* Location list begin address (*.LLST3) */
-       .uleb128 .LVL0-.LVL0    /* Location list end address (*.LLST3) */
+       .uleb128 0 /* .LVL0-.LVL0 */    /* Location list begin address (*.LLST3) */
+       .uleb128 0 /* .LVL0-.LVL0 */    /* Location list end address (*.LLST3) */
        .uleb128 0x2    /* Location expression size */
        .byte   0x35    /* DW_OP_lit5 */
        .byte   0x9f    /* DW_OP_stack_value */
        .uleb128 0x8    /* View list begin (*.LLST3) */
        .uleb128 0x0    /* View list end (*.LVUS3) */
        .byte   0x4     /* DW_LLE_offset_pair (*.LLST3) */
-       .uleb128 .LVL0-.LVL0    /* Location list begin address (*.LLST3) */
-       .uleb128 .LFE0-.LVL0    /* Location list end address (*.LLST3) */
+       .uleb128 0 /* .LVL0-.LVL0 */    /* Location list begin address (*.LLST3) */
+       .uleb128 1 /* .LFE0-.LVL0 */    /* Location list end address (*.LLST3) */
        .uleb128 0x2    /* Location expression size */
        .byte   0x36    /* DW_OP_lit6 */
        .byte   0x9f    /* DW_OP_stack_value */
index 5fbe8396a30fd911ec1bb9d4637e7527b789b52e..3cbc1d287ac73f58ae9873a5d332615333a1745d 100644 (file)
@@ -452,5 +452,5 @@ if ![istarget "riscv*-*-*"] then {
     readelf_find_size $tempfile
 
     # Make sure that readelf can decode the contents.
-    readelf_test -wiaoRlL $tempfile dw5.W {}
+    readelf_test -wiaoRlL $tempfile dw5.W { nds32*-elf }
 }
index 20437f2aa6784bc36dc40380718c7e4a74756051..f064ad78baef88154cf9256ad63282524041c6bb 100644 (file)
@@ -1,5 +1,5 @@
 Contents of the .*ebug_loclists section:
-
+#...
     Offset   Begin            End              Expression
 
     0000000c v0000002 v0000004 location view pair