Print st_bind with the correct number of bits.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 4 Aug 2011 15:10:35 +0000 (15:10 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 4 Aug 2011 15:10:35 +0000 (15:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136874 91177308-0d34-0410-b5e6-96231b3b80d8

31 files changed:
test/CodeGen/ARM/2010-12-15-elf-lcomm.ll
test/MC/ARM/elf-thumbfunc.s
test/MC/ELF/abs.s
test/MC/ELF/alias-reloc.s
test/MC/ELF/alias.s
test/MC/ELF/basic-elf-32.s
test/MC/ELF/basic-elf-64.s
test/MC/ELF/comdat.s
test/MC/ELF/common.s
test/MC/ELF/file.s
test/MC/ELF/got.s
test/MC/ELF/local-reloc.s
test/MC/ELF/merge.s
test/MC/ELF/noexec.s
test/MC/ELF/pic-diff.s
test/MC/ELF/pr9292.s
test/MC/ELF/relocation-386.s
test/MC/ELF/relocation.s
test/MC/ELF/rename.s
test/MC/ELF/set.s
test/MC/ELF/symref.s
test/MC/ELF/tls-i386.s
test/MC/ELF/tls.s
test/MC/ELF/type.s
test/MC/ELF/undef.s
test/MC/ELF/undef2.s
test/MC/ELF/weak.s
test/MC/ELF/weakref-plt.s
test/MC/ELF/weakref-reloc.s
test/MC/ELF/weakref.s
test/Scripts/elf-dump

index bf555fcb196487935ef36e05c18bab1e1459ac27..fbdf162a63fb6e93c6285a6f447ad57ba03e2b53 100644 (file)
@@ -21,7 +21,7 @@
 ; OBJ:          'array00'
 ; OBJ-NEXT:     'st_value', 0x00000000
 ; OBJ-NEXT:     'st_size', 0x00000050
-; OBJ-NEXT:     'st_bind', 0x00000000
+; OBJ-NEXT:     'st_bind', 0x0
 ; OBJ-NEXT:     'st_type', 0x00000001
 ; OBJ-NEXT:     'st_other', 0x00000000
 ; OBJ-NEXT:     'st_shndx', 0x00000004
index 792f299323a81341584b16589fa595440180e605..c9591f86c86958b8324e0fce20e01b5ad24bda45 100644 (file)
@@ -16,5 +16,5 @@ foo:
 @CHECK-NEXT:      'st_name', 0x00000001
 @CHECK-NEXT:      'st_value', 0x00000001
 @CHECK-NEXT:      'st_size', 0x00000000
-@CHECK-NEXT:      'st_bind', 0x00000001
+@CHECK-NEXT:      'st_bind', 0x1
 @CHECK-NEXT:      'st_type', 0x00000002
index 8e4d7f080de2fd67ffafea9536c0bfa36b4c9b53..18a5156868dd9b521a85d4c22d69bd29afc9d49c 100644 (file)
@@ -8,7 +8,7 @@
 
 // CHECK:      # Symbol 1
 // CHECK-NEXT: (('st_name', 0x00000001) # 'zed'
-// CHECK-NEXT:  ('st_bind', 0x00000000)
+// CHECK-NEXT:  ('st_bind', 0x0)
 // CHECK-NEXT:  ('st_type', 0x00000000)
 // CHECK-NEXT:  ('st_other', 0x00000000)
 // CHECK-NEXT:  ('st_shndx', 0x0000fff1)
index 9d7115618c05e4b6e628e660d1ff4a800591a88c..3accec5c22f10464c272f0770820c10dbf3ad80c 100644 (file)
@@ -33,7 +33,7 @@ foo2:
 
 // CHECK:       # Symbol 1
 // CHECK-NEXT:  (('st_name', 0x00000005) # 'bar'
-// CHECK-NEXT:   ('st_bind', 0x00000000)
+// CHECK-NEXT:   ('st_bind', 0x0)
 // CHECK-NEXT:   ('st_type', 0x00000000)
 // CHECK-NEXT:   ('st_other', 0x00000000)
 // CHECK-NEXT:   ('st_shndx', 0x00000001)
@@ -43,7 +43,7 @@ foo2:
 
 // CHECK:      # Symbol 6
 // CHECK-NEXT: (('st_name', 0x0000000e) # 'bar2'
-// CHECK-NEXT:  ('st_bind', 0x00000002)
+// CHECK-NEXT:  ('st_bind', 0x2)
 // CHECK-NEXT:  ('st_type', 0x00000000)
 // CHECK-NEXT:  ('st_other', 0x00000000)
 // CHECK-NEXT:  ('st_shndx', 0x00000004)
index 4afc2a324fb577e3e6830e26038d769620d87b6a..46cb4f697d234dd910e26a7269331198250cb94b 100644 (file)
@@ -18,7 +18,7 @@ bar4 = foo4
         .long foo2
 // CHECK:       # Symbol 1
 // CHECK-NEXT:  (('st_name', 0x00000005) # 'bar'
-// CHECK-NEXT:   ('st_bind', 0x00000000)
+// CHECK-NEXT:   ('st_bind', 0x0)
 // CHECK-NEXT:   ('st_type', 0x00000000)
 // CHECK-NEXT:   ('st_other', 0x00000000)
 // CHECK-NEXT:   ('st_shndx', 0x00000001)
@@ -27,7 +27,7 @@ bar4 = foo4
 // CHECK-NEXT:  ),
 // CHECK-NEXT:  # Symbol 2
 // CHECK-NEXT: (('st_name', 0x0000001d) # 'bar4'
-// CHECK-NEXT:  ('st_bind', 0x00000000)
+// CHECK-NEXT:  ('st_bind', 0x0)
 // CHECK-NEXT:  ('st_type', 0x00000002)
 // CHECK-NEXT:  ('st_other', 0x00000000)
 // CHECK-NEXT:  ('st_shndx', 0x00000001)
@@ -36,7 +36,7 @@ bar4 = foo4
 // CHECK-NEXT: ),
 // CHECK-NEXT:  # Symbol 3
 // CHECK-NEXT:  (('st_name', 0x00000001) # 'foo'
-// CHECK-NEXT:   ('st_bind', 0x00000000)
+// CHECK-NEXT:   ('st_bind', 0x0)
 // CHECK-NEXT:   ('st_type', 0x00000000)
 // CHECK-NEXT:   ('st_other', 0x00000000)
 // CHECK-NEXT:   ('st_shndx', 0x00000001)
@@ -45,7 +45,7 @@ bar4 = foo4
 // CHECK-NEXT: ),
 // CHECK-NEXT:  # Symbol 4
 // CHECK-NEXT:  (('st_name', 0x0000000e) # 'foo3'
-// CHECK-NEXT:   ('st_bind', 0x00000000)
+// CHECK-NEXT:   ('st_bind', 0x0)
 // CHECK-NEXT:   ('st_type', 0x00000000)
 // CHECK-NEXT:   ('st_other', 0x00000000)
 // CHECK-NEXT:   ('st_shndx', 0x00000001)
@@ -54,7 +54,7 @@ bar4 = foo4
 // CHECK-NEXT: ),
 // CHECK-NEXT: # Symbol 5
 // CHECK-NEXT: (('st_name', 0x00000018) # 'foo4'
-// CHECK-NEXT:  ('st_bind', 0x00000000)
+// CHECK-NEXT:  ('st_bind', 0x0)
 // CHECK-NEXT:  ('st_type', 0x00000002)
 // CHECK-NEXT:  ('st_other', 0x00000000)
 // CHECK-NEXT:  ('st_shndx', 0x00000001)
@@ -69,7 +69,7 @@ bar4 = foo4
 // CHECK-NEXT:  (('st_name', 0x00000000) # ''
 // CHECK:       # Symbol 9
 // CHECK-NEXT:  (('st_name', 0x00000013) # 'bar3'
-// CHECK-NEXT:   ('st_bind', 0x00000001)
+// CHECK-NEXT:   ('st_bind', 0x1)
 // CHECK-NEXT:   ('st_type', 0x00000000)
 // CHECK-NEXT:   ('st_other', 0x00000000)
 // CHECK-NEXT:   ('st_shndx', 0x00000001)
@@ -77,7 +77,7 @@ bar4 = foo4
 // CHECK-NEXT:   ('st_size', 0x0000000000000000)
 // CHECK:       # Symbol 10
 // CHECK-NEXT:  (('st_name', 0x00000009) # 'bar2'
-// CHECK-NEXT:   ('st_bind', 0x00000001)
+// CHECK-NEXT:   ('st_bind', 0x1)
 // CHECK-NEXT:   ('st_type', 0x00000000)
 // CHECK-NEXT:   ('st_other', 0x00000000)
 // CHECK-NEXT:   ('st_shndx', 0x00000000)
index 6a28a46f1fc235f73f8f8cac6c92a8de5b5f23ee..f8bfd0e842764743b1c278e706f8dd48d647beb7 100644 (file)
@@ -60,19 +60,19 @@ main:                                   # @main
 // CHECK:     ),
 // CHECK:   ])
 
-// CHECK: ('st_bind', 0x00000000)
+// CHECK: ('st_bind', 0x0)
 // CHECK: ('st_type', 0x00000003)
 
-// CHECK: ('st_bind', 0x00000000)
+// CHECK: ('st_bind', 0x0)
 // CHECK: ('st_type', 0x00000003)
 
-// CHECK: ('st_bind', 0x00000000)
+// CHECK: ('st_bind', 0x0)
 // CHECK: ('st_type', 0x00000003)
 
 // CHECK:   # 'main'
-// CHECK:   ('st_bind', 0x00000001)
+// CHECK:   ('st_bind', 0x1)
 // CHECK-NEXT: ('st_type', 0x00000002)
 
 // CHECK:   # 'puts'
-// CHECK:   ('st_bind', 0x00000001)
+// CHECK:   ('st_bind', 0x1)
 // CHECK-NEXT: ('st_type', 0x00000000)
index c3c6184fb7ff5c3c724f401d30b920357de7815f..48c50532e0d9b01210c3eb7d5915c6c505cafaba 100644 (file)
@@ -64,19 +64,19 @@ main:                                   # @main
 // CHECK:     ),
 // CHECK:   ])
 
-// CHECK: ('st_bind', 0x00000000)
+// CHECK: ('st_bind', 0x0)
 // CHECK: ('st_type', 0x00000003)
 
-// CHECK: ('st_bind', 0x00000000)
+// CHECK: ('st_bind', 0x0)
 // CHECK: ('st_type', 0x00000003)
 
-// CHECK: ('st_bind', 0x00000000)
+// CHECK: ('st_bind', 0x0)
 // CHECK: ('st_type', 0x00000003)
 
 // CHECK:   # 'main'
-// CHECK-NEXT: ('st_bind', 0x00000001)
+// CHECK-NEXT: ('st_bind', 0x1)
 // CHECK-NEXT: ('st_type', 0x00000002)
 
 // CHECK:   # 'puts'
-// CHECK-NEXT: ('st_bind', 0x00000001)
+// CHECK-NEXT: ('st_bind', 0x1)
 // CHECK-NEXT: ('st_type', 0x00000000)
index 1fe84b4697ee0b247911dda745a27fe7edcacadb..e74570382cbc927e6b05827ef0b917e2d7a4c562 100644 (file)
@@ -44,7 +44,7 @@
 
 // CHECK:      # Symbol 1
 // CHECK-NEXT: (('st_name', 0x00000001) # 'g1'
-// CHECK-NEXT:  ('st_bind', 0x00000000)
+// CHECK-NEXT:  ('st_bind', 0x0)
 // CHECK-NEXT:  ('st_type', 0x00000000)
 // CHECK-NEXT:  ('st_other', 0x00000000)
 // CHECK-NEXT:  ('st_shndx', 0x00000007)
@@ -53,7 +53,7 @@
 // CHECK-NEXT: ),
 // CHECK-NEXT: # Symbol 2
 // CHECK-NEXT: (('st_name', 0x00000004) # 'g2'
-// CHECK-NEXT:  ('st_bind', 0x00000000)
+// CHECK-NEXT:  ('st_bind', 0x0)
 // CHECK-NEXT:  ('st_type', 0x00000000)
 // CHECK-NEXT:  ('st_other', 0x00000000)
 // CHECK-NEXT:  ('st_shndx', 0x00000002)
@@ -63,7 +63,7 @@
 
 // CHECK:      # Symbol 13
 // CHECK-NEXT: (('st_name', 0x00000007) # 'g3'
-// CHECK-NEXT:  ('st_bind', 0x00000001)
+// CHECK-NEXT:  ('st_bind', 0x1)
 // CHECK-NEXT:  ('st_type', 0x00000000)
 // CHECK-NEXT:  ('st_other', 0x00000000)
 // CHECK-NEXT:  ('st_shndx', 0x00000000)
index 6d9c4f7915791eb059be1340bc5f429c249626cc..c6a97a0908c5489f14551a6683477b540a0e7c79 100644 (file)
@@ -9,7 +9,7 @@
        .comm   common1,1,1
 
 // CHECK: ('st_name', 0x00000001) # 'common1'
-// CHECK-NEXT: ('st_bind', 0x00000000)
+// CHECK-NEXT: ('st_bind', 0x0)
 // CHECK-NEXT: ('st_type', 0x00000001)
 // CHECK-NEXT: ('st_other', 0x00000000)
 // CHECK-NEXT: ('st_shndx',
@@ -23,7 +23,7 @@
        .comm   common2,1,1
 
 // CHECK: ('st_name', 0x00000009) # 'common2'
-// CHECK-NEXT: ('st_bind', 0x00000000)
+// CHECK-NEXT: ('st_bind', 0x0)
 // CHECK-NEXT: ('st_type', 0x00000001)
 // CHECK-NEXT: ('st_other', 0x00000000)
 // CHECK-NEXT: ('st_shndx',
@@ -35,7 +35,7 @@
 
 // CHECK:      # Symbol 3
 // CHECK-NEXT: (('st_name', 0x00000011) # 'common6'
-// CHECK-NEXT:  ('st_bind', 0x00000000)
+// CHECK-NEXT:  ('st_bind', 0x0)
 // CHECK-NEXT:  ('st_type', 0x00000001)
 // CHECK-NEXT:  ('st_other', 0x00000000)
 // CHECK-NEXT:  ('st_shndx', 0x00000004)
@@ -48,7 +48,7 @@
        .comm   common3,4,4
 
 // CHECK: ('st_name', 0x00000019) # 'common3'
-// CHECK-NEXT: ('st_bind', 0x00000001)
+// CHECK-NEXT: ('st_bind', 0x1)
 // CHECK-NEXT: ('st_type', 0x00000001)
 // CHECK-NEXT: ('st_other', 0x00000000)
 // CHECK-NEXT: ('st_shndx', 0x0000fff2)
@@ -68,7 +68,7 @@ foo:
        .comm   common4,40,16
 
 // CHECK: ('st_name', 0x00000025) # 'common4'
-// CHECK-NEXT: ('st_bind', 0x00000001)
+// CHECK-NEXT: ('st_bind', 0x1)
 // CHECK-NEXT: ('st_type', 0x00000001)
 // CHECK-NEXT: ('st_other', 0x00000000)
 // CHECK-NEXT: ('st_shndx', 0x0000fff2)
@@ -79,7 +79,7 @@ foo:
 
 // CHECK:      # Symbol 9
 // CHECK-NEXT: (('st_name', 0x0000002d) # 'common5'
-// CHECK-NEXT:  ('st_bind', 0x00000001)
+// CHECK-NEXT:  ('st_bind', 0x1)
 // CHECK-NEXT:  ('st_type', 0x00000001)
 // CHECK-NEXT:  ('st_other', 0x00000000)
 // CHECK-NEXT:  ('st_shndx', 0x0000fff2)
index 7a5ce64da3454a92b019b2d41ea80c3b217ea9ce..c8f8a41fe39a38f62f2dcd3a55f3557c2b6ffaa8 100644 (file)
@@ -6,7 +6,7 @@
 foa:
 // CHECK:    # Symbol 1
 // CHECK-NEXT:    (('st_name', 0x00000001) # 'foo'
-// CHECK-NEXT:     ('st_bind', 0x00000000)
+// CHECK-NEXT:     ('st_bind', 0x0)
 // CHECK-NEXT:     ('st_type', 0x00000004)
 // CHECK-NEXT:     ('st_other', 0x00000000)
 // CHECK-NEXT:     ('st_shndx', 0x0000fff1)
@@ -15,7 +15,7 @@ foa:
 // CHECK-NEXT:    ),
 // CHECK-NEXT:    # Symbol 2
 // CHECK-NEXT:    (('st_name', 0x00000005) # 'foa'
-// CHECK-NEXT:     ('st_bind', 0x00000000)
+// CHECK-NEXT:     ('st_bind', 0x0)
 // CHECK-NEXT:     ('st_type', 0x00000000)
 // CHECK-NEXT:     ('st_other', 0x00000000)
 // CHECK-NEXT:     ('st_shndx', 0x00000001)
index ad1cd36772c8db8bbbfabbbf0480977155ce7a41..a84987281818b1f1fd26471a27f2305cf2176602 100644 (file)
@@ -22,4 +22,4 @@
 // CHECK-NEXT:   ])
 
 // CHECK:     (('st_name', 0x00000005) # '_GLOBAL_OFFSET_TABLE_'
-// CHECK-NEXT: ('st_bind', 0x00000001)
+// CHECK-NEXT: ('st_bind', 0x1)
index 000e1e7876f3bebbf159dc4d489593376ea9a978..2d71cc893d875e37f0de23717bf4c923115a2c4e 100644 (file)
@@ -23,7 +23,7 @@ foo:
 // Symbol number 2 is section number 1
 // CHECK:    # Symbol 2
 // CHECK-NEXT:    (('st_name', 0x00000000) # ''
-// CHECK-NEXT:     ('st_bind', 0x00000000)
+// CHECK-NEXT:     ('st_bind', 0x0)
 // CHECK-NEXT:     ('st_type', 0x00000003)
 // CHECK-NEXT:     ('st_other', 0x00000000)
 // CHECK-NEXT:     ('st_shndx', 0x00000001)
index 7ab0d10d124069b1930fda10027758bd3c2cc7da..018a6a623e5d466177a170b1baa68f3714882ba4 100644 (file)
@@ -87,7 +87,7 @@ foo:
 // Symbol number 6 is section 5
 // CHECK:        # Symbol 6
 // CHECK-NEXT:    (('st_name', 0x00000000) # ''
-// CHECK-NEXT:     ('st_bind', 0x00000000)
+// CHECK-NEXT:     ('st_bind', 0x0)
 // CHECK-NEXT:     ('st_type', 0x00000003)
 // CHECK-NEXT:     ('st_other', 0x00000000)
 // CHECK-NEXT:     ('st_shndx', 0x00000005)
index 566a3c2a2fa832732a528e6ef4cbf09a5ae9004a..96966ae79e18985194fcc4edf973f164bcaee510 100644 (file)
@@ -15,7 +15,7 @@
 
 // CHECK:       # Symbol 4
 // CHECK-NEXT:  (('st_name', 0x00000000) # ''
-// CHECK-NEXT:   ('st_bind', 0x00000000)
+// CHECK-NEXT:   ('st_bind', 0x0)
 // CHECK-NEXT:   ('st_type', 0x00000003)
 // CHECK-NEXT:   ('st_other', 0x00000000)
 // CHECK-NEXT:   ('st_shndx', 0x00000004)
index 1e04d375c2544c9de4325d30601f4f4bc903908f..bffd1e6c60cf0fc8ee2b624c450183586c7fcd8d 100644 (file)
@@ -11,7 +11,7 @@
 
 // CHECK:         # Symbol 5
 // CHECK-NEXT:    (('st_name', 0x00000005) # 'baz'
-// CHECK-NEXT:     ('st_bind', 0x00000001)
+// CHECK-NEXT:     ('st_bind', 0x1)
 // CHECK-NEXT:     ('st_type', 0x00000000)
 // CHECK-NEXT:     ('st_other', 0x00000000)
 // CHECK-NEXT:     ('st_shndx', 0x00000000)
index 69f442f26dfc7e69e2ada7a666130ef1e4754af3..4d6db21e6cfd13e65b23a82c53eec29bdb801844 100644 (file)
@@ -8,7 +8,7 @@ mov %eax,bar
 
 
 // CHECK:      (('st_name', 0x00000005) # 'bar'
-// CHECK-NEXT:  ('st_bind', 0x00000001)
+// CHECK-NEXT:  ('st_bind', 0x1)
 // CHECK-NEXT:  ('st_type', 0x00000000)
 // CHECK-NEXT:  ('st_other', 0x00000000)
 // CHECK-NEXT:  ('st_shndx', 0x00000000)
@@ -17,7 +17,7 @@ mov %eax,bar
 // CHECK-NEXT: ),
 // CHECK-NEXT: # Symbol 5
 // CHECK-NEXT: (('st_name', 0x00000001) # 'foo'
-// CHECK-NEXT:  ('st_bind', 0x00000001)
+// CHECK-NEXT:  ('st_bind', 0x1)
 // CHECK-NEXT:  ('st_type', 0x00000000)
 // CHECK-NEXT:  ('st_other', 0x00000000)
 // CHECK-NEXT:  ('st_shndx', 0x00000000)
index a19da8ad09078a7a9ebdd53db9e4910edf7cf070..d3021164d2715139a0307a1e9e4172c41bce0862 100644 (file)
 // CHECK-NEXT: (('st_name', 0x00000035) # 'zed'
 // CHECK-NEXT:  ('st_value', 0x00000000)
 // CHECK-NEXT:  ('st_size', 0x00000000)
-// CHECK-NEXT:  ('st_bind', 0x00000000)
+// CHECK-NEXT:  ('st_bind', 0x0)
 // CHECK-NEXT:  ('st_type', 0x00000006)
 // CHECK-NEXT:  ('st_other', 0x00000000)
 // CHECK-NEXT:  ('st_shndx', 0x00000005)
 // CHECK-NEXT: (('st_name', 0x00000000) # ''
 // CHECK-NEXT:  ('st_value', 0x00000000)
 // CHECK-NEXT:  ('st_size', 0x00000000)
-// CHECK-NEXT:  ('st_bind', 0x00000000)
+// CHECK-NEXT:  ('st_bind', 0x0)
 // CHECK-NEXT:  ('st_type', 0x00000003)
 // CHECK-NEXT:  ('st_other', 0x00000000)
 // CHECK-NEXT:  ('st_shndx', 0x00000004)
index 163222263e9f577f582f0863581aed62a1c67df1..62cc05971a516ff85813827daa03ae7a437b8868 100644 (file)
@@ -115,7 +115,7 @@ bar:
 
 // CHECK:   # Symbol 2
 // CHECK: (('st_name', 0x00000000) # ''
-// CHECK:  ('st_bind', 0x00000000)
+// CHECK:  ('st_bind', 0x0)
 // CHECK:  ('st_type', 0x00000003)
 // CHECK:  ('st_other', 0x00000000)
 // CHECK:  ('st_shndx', 0x00000001)
index 05e28b6cf8f1b9f558289ae69bc112c320344140..f85f410da8860f731c0e4d0fdec0aed4779bcee7 100644 (file)
@@ -38,7 +38,7 @@ defined3:
 // Symbol 2 is section 1
 // CHECK:      # Symbol 2
 // CHECK-NEXT: (('st_name', 0x00000000) # ''
-// CHECK-NEXT:  ('st_bind', 0x00000000)
+// CHECK-NEXT:  ('st_bind', 0x0)
 // CHECK-NEXT:  ('st_type', 0x00000003)
 // CHECK-NEXT:  ('st_other', 0x00000000)
 // CHECK-NEXT:  ('st_shndx', 0x00000001)
index 69d6c910636f87b785186b0d96fd5c1bccc684c8..9c32947ba3f735d7749187378cceefc8a6815eef 100644 (file)
@@ -5,7 +5,7 @@
 .set kernbase,0xffffffff80000000
 
 // CHECK:         (('st_name', 0x00000001) # 'kernbase'
-// CHECK-NEXT:     ('st_bind', 0x00000000)
+// CHECK-NEXT:     ('st_bind', 0x0)
 // CHECK-NEXT:     ('st_type', 0x00000000)
 // CHECK-NEXT:     ('st_other', 0x00000000)
 // CHECK-NEXT:     ('st_shndx', 0x0000fff1)
@@ -25,7 +25,7 @@
 
 // Test that there is an undefined reference to bar
 // CHECK:      (('st_name', 0x0000000a) # 'bar'
-// CHECK-NEXT:  ('st_bind', 0x00000001)
+// CHECK-NEXT:  ('st_bind', 0x1)
 // CHECK-NEXT:  ('st_type', 0x00000000)
 // CHECK-NEXT:  ('st_other', 0x00000000)
 // CHECK-NEXT:  ('st_shndx', 0x00000000)
index 698e92df875e19d19802fd2632f7bdf0d94fcbbb..78afc0d89d1ee4ecca757b8e8dedfa02e1dc575a 100644 (file)
@@ -56,7 +56,7 @@ global1:
 
 // CHECK:      # Symbol 1
 // CHECK-NEXT: (('st_name', 0x00000013) # 'bar1@zed'
-// CHECK-NEXT:  ('st_bind', 0x00000000)
+// CHECK-NEXT:  ('st_bind', 0x0)
 // CHECK-NEXT:  ('st_type', 0x00000000)
 // CHECK-NEXT:  ('st_other', 0x00000000)
 // CHECK-NEXT:  ('st_shndx', 0x00000001)
@@ -65,7 +65,7 @@ global1:
 // CHECK-NEXT: ),
 // CHECK-NEXT: # Symbol 2
 // CHECK-NEXT: (('st_name', 0x00000025) # 'bar3@@zed'
-// CHECK-NEXT:  ('st_bind', 0x00000000)
+// CHECK-NEXT:  ('st_bind', 0x0)
 // CHECK-NEXT:  ('st_type', 0x00000000)
 // CHECK-NEXT:  ('st_other', 0x00000000)
 // CHECK-NEXT:  ('st_shndx', 0x00000001)
@@ -74,7 +74,7 @@ global1:
 // CHECK-NEXT: ),
 // CHECK-NEXT: # Symbol 3
 // CHECK-NEXT: (('st_name', 0x0000002f) # 'bar5@@zed'
-// CHECK-NEXT:  ('st_bind', 0x00000000)
+// CHECK-NEXT:  ('st_bind', 0x0)
 // CHECK-NEXT:  ('st_type', 0x00000000)
 // CHECK-NEXT:  ('st_other', 0x00000000)
 // CHECK-NEXT:  ('st_shndx', 0x00000001)
@@ -83,7 +83,7 @@ global1:
 // CHECK-NEXT: ),
 // CHECK-NEXT: # Symbol 4
 // CHECK-NEXT: (('st_name', 0x00000001) # 'defined1'
-// CHECK-NEXT:  ('st_bind', 0x00000000)
+// CHECK-NEXT:  ('st_bind', 0x0)
 // CHECK-NEXT:  ('st_type', 0x00000000)
 // CHECK-NEXT:  ('st_other', 0x00000000)
 // CHECK-NEXT:  ('st_shndx', 0x00000001)
@@ -92,7 +92,7 @@ global1:
 // CHECK-NEXT: ),
 // CHECK-NEXT: # Symbol 5
 // CHECK-NEXT: (('st_name', 0x0000000a) # 'defined2'
-// CHECK-NEXT:  ('st_bind', 0x00000000)
+// CHECK-NEXT:  ('st_bind', 0x0)
 // CHECK-NEXT:  ('st_type', 0x00000000)
 // CHECK-NEXT:  ('st_other', 0x00000000)
 // CHECK-NEXT:  ('st_shndx', 0x00000001)
@@ -101,7 +101,7 @@ global1:
 // CHECK-NEXT: ),
 // CHECK-NEXT: # Symbol 6
 // CHECK-NEXT: (('st_name', 0x00000000) # ''
-// CHECK-NEXT:  ('st_bind', 0x00000000)
+// CHECK-NEXT:  ('st_bind', 0x0)
 // CHECK-NEXT:  ('st_type', 0x00000003)
 // CHECK-NEXT:  ('st_other', 0x00000000)
 // CHECK-NEXT:  ('st_shndx', 0x00000001)
@@ -110,7 +110,7 @@ global1:
 // CHECK-NEXT: ),
 // CHECK-NEXT: # Symbol 7
 // CHECK-NEXT: (('st_name', 0x00000000) # ''
-// CHECK-NEXT:  ('st_bind', 0x00000000)
+// CHECK-NEXT:  ('st_bind', 0x0)
 // CHECK-NEXT:  ('st_type', 0x00000003)
 // CHECK-NEXT:  ('st_other', 0x00000000)
 // CHECK-NEXT:  ('st_shndx', 0x00000003)
@@ -119,7 +119,7 @@ global1:
 // CHECK-NEXT: ),
 // CHECK-NEXT: # Symbol 8
 // CHECK-NEXT: (('st_name', 0x00000000) # ''
-// CHECK-NEXT:  ('st_bind', 0x00000000)
+// CHECK-NEXT:  ('st_bind', 0x0)
 // CHECK-NEXT:  ('st_type', 0x00000003)
 // CHECK-NEXT:  ('st_other', 0x00000000)
 // CHECK-NEXT:  ('st_shndx', 0x00000004)
@@ -128,7 +128,7 @@ global1:
 // CHECK-NEXT: ),
 // CHECK-NEXT: # Symbol 9
 // CHECK-NEXT: (('st_name', 0x0000004a) # 'g1@@zed'
-// CHECK-NEXT:  ('st_bind', 0x00000001)
+// CHECK-NEXT:  ('st_bind', 0x1)
 // CHECK-NEXT:  ('st_type', 0x00000000)
 // CHECK-NEXT:  ('st_other', 0x00000000)
 // CHECK-NEXT:  ('st_shndx', 0x00000001)
@@ -137,7 +137,7 @@ global1:
 // CHECK-NEXT: ),
 // CHECK-NEXT: # Symbol 10
 // CHECK-NEXT: (('st_name', 0x00000042) # 'global1'
-// CHECK-NEXT:  ('st_bind', 0x00000001)
+// CHECK-NEXT:  ('st_bind', 0x1)
 // CHECK-NEXT:  ('st_type', 0x00000000)
 // CHECK-NEXT:  ('st_other', 0x00000000)
 // CHECK-NEXT:  ('st_shndx', 0x00000001)
@@ -146,7 +146,7 @@ global1:
 // CHECK-NEXT: ),
 // CHECK-NEXT: # Symbol 11
 // CHECK-NEXT: (('st_name', 0x0000001c) # 'bar2@zed'
-// CHECK-NEXT:  ('st_bind', 0x00000001)
+// CHECK-NEXT:  ('st_bind', 0x1)
 // CHECK-NEXT:  ('st_type', 0x00000000)
 // CHECK-NEXT:  ('st_other', 0x00000000)
 // CHECK-NEXT:  ('st_shndx', 0x00000000)
@@ -155,7 +155,7 @@ global1:
 // CHECK-NEXT: ),
 // CHECK-NEXT: # Symbol 12
 // CHECK-NEXT: (('st_name', 0x00000039) # 'bar6@zed'
-// CHECK-NEXT:  ('st_bind', 0x00000001)
+// CHECK-NEXT:  ('st_bind', 0x1)
 // CHECK-NEXT:  ('st_type', 0x00000000)
 // CHECK-NEXT:  ('st_other', 0x00000000)
 // CHECK-NEXT:  ('st_shndx', 0x00000000)
index 3adfefc015364826f0a25240a30c2116f8a30f42..7dde9b2ff3290bc9fcbede35892c42c709ddf44d 100644 (file)
@@ -13,7 +13,7 @@
 // CHECK:       (('st_name', 0x00000001) # 'foo1'
 // CHECK-NEXT:   ('st_value', 0x00000000)
 // CHECK-NEXT:   ('st_size', 0x00000000)
-// CHECK-NEXT:   ('st_bind', 0x00000001)
+// CHECK-NEXT:   ('st_bind', 0x1)
 // CHECK-NEXT:   ('st_type', 0x00000006)
 // CHECK-NEXT:   ('st_other', 0x00000000)
 // CHECK-NEXT:   ('st_shndx', 0x00000000)
@@ -22,7 +22,7 @@
 // CHECK-NEXT:  (('st_name', 0x00000006) # 'foo2'
 // CHECK-NEXT:   ('st_value', 0x00000000)
 // CHECK-NEXT:   ('st_size', 0x00000000)
-// CHECK-NEXT:   ('st_bind', 0x00000001)
+// CHECK-NEXT:   ('st_bind', 0x1)
 // CHECK-NEXT:   ('st_type', 0x00000006)
 // CHECK-NEXT:   ('st_other', 0x00000000)
 // CHECK-NEXT:   ('st_shndx', 0x00000000)
@@ -31,7 +31,7 @@
 // CHECK-NEXT:  (('st_name', 0x0000000b) # 'foo3'
 // CHECK-NEXT:   ('st_value', 0x00000000)
 // CHECK-NEXT:   ('st_size', 0x00000000)
-// CHECK-NEXT:   ('st_bind', 0x00000001)
+// CHECK-NEXT:   ('st_bind', 0x1)
 // CHECK-NEXT:   ('st_type', 0x00000006)
 // CHECK-NEXT:   ('st_other', 0x00000000)
 // CHECK-NEXT:   ('st_shndx', 0x00000000)
@@ -40,7 +40,7 @@
 // CHECK-NEXT:  (('st_name', 0x00000010) # 'foo4'
 // CHECK-NEXT:   ('st_value', 0x00000000)
 // CHECK-NEXT:   ('st_size', 0x00000000)
-// CHECK-NEXT:   ('st_bind', 0x00000001)
+// CHECK-NEXT:   ('st_bind', 0x1)
 // CHECK-NEXT:   ('st_type', 0x00000006)
 // CHECK-NEXT:   ('st_other', 0x00000000)
 // CHECK-NEXT:   ('st_shndx', 0x00000000)
@@ -49,7 +49,7 @@
 // CHECK-NEXT:  (('st_name', 0x00000015) # 'foo5'
 // CHECK-NEXT:   ('st_value', 0x00000000)
 // CHECK-NEXT:   ('st_size', 0x00000000)
-// CHECK-NEXT:   ('st_bind', 0x00000001)
+// CHECK-NEXT:   ('st_bind', 0x1)
 // CHECK-NEXT:   ('st_type', 0x00000006)
 // CHECK-NEXT:   ('st_other', 0x00000000)
 // CHECK-NEXT:   ('st_shndx', 0x00000000)
@@ -58,7 +58,7 @@
 // CHECK-NEXT:  (('st_name', 0x0000001a) # 'foo6'
 // CHECK-NEXT:   ('st_value', 0x00000000)
 // CHECK-NEXT:   ('st_size', 0x00000000)
-// CHECK-NEXT:   ('st_bind', 0x00000001)
+// CHECK-NEXT:   ('st_bind', 0x1)
 // CHECK-NEXT:   ('st_type', 0x00000006)
 // CHECK-NEXT:   ('st_other', 0x00000000)
 // CHECK-NEXT:   ('st_shndx', 0x00000000)
@@ -67,7 +67,7 @@
 // CHECK-NEXT:  (('st_name', 0x0000001f) # 'foo7'
 // CHECK-NEXT:   ('st_value', 0x00000000)
 // CHECK-NEXT:   ('st_size', 0x00000000)
-// CHECK-NEXT:   ('st_bind', 0x00000001)
+// CHECK-NEXT:   ('st_bind', 0x1)
 // CHECK-NEXT:   ('st_type', 0x00000006)
 // CHECK-NEXT:   ('st_other', 0x00000000)
 // CHECK-NEXT:   ('st_shndx', 0x00000000)
index 9acaa3384667e0a3b4eebf8fae00693f0581a1c5..7721b889224db0eb182b4a5058852d183683e1a6 100644 (file)
@@ -11,7 +11,7 @@ foobar:
        .long   43
 
 // CHECK:      (('st_name', 0x00000010) # 'foobar'
-// CHECK-NEXT:  ('st_bind', 0x00000000)
+// CHECK-NEXT:  ('st_bind', 0x0)
 // CHECK-NEXT:  ('st_type', 0x00000006)
 // CHECK-NEXT:  ('st_other', 0x00000000)
 // CHECK-NEXT:  ('st_shndx', 0x00000005)
@@ -21,7 +21,7 @@ foobar:
 
 // CHECK:       # Symbol 7
 // CHECK-NEXT:  (('st_name', 0x00000001) # 'foo1'
-// CHECK-NEXT:   ('st_bind', 0x00000001)
+// CHECK-NEXT:   ('st_bind', 0x1)
 // CHECK-NEXT:   ('st_type', 0x00000006)
 // CHECK-NEXT:   ('st_other', 0x00000000)
 // CHECK-NEXT:   ('st_shndx', 0x00000000)
@@ -30,7 +30,7 @@ foobar:
 // CHECK-NEXT:  ),
 // CHECK-NEXT:  # Symbol 8
 // CHECK-NEXT:  (('st_name', 0x00000006) # 'foo2'
-// CHECK-NEXT:   ('st_bind', 0x00000001)
+// CHECK-NEXT:   ('st_bind', 0x1)
 // CHECK-NEXT:   ('st_type', 0x00000006)
 // CHECK-NEXT:   ('st_other', 0x00000000)
 // CHECK-NEXT:   ('st_shndx', 0x00000000)
@@ -39,7 +39,7 @@ foobar:
 // CHECK-NEXT:  ),
 // CHECK-NEXT:  # Symbol 9
 // CHECK-NEXT:  (('st_name', 0x0000000b) # 'foo3'
-// CHECK-NEXT:   ('st_bind', 0x00000001)
+// CHECK-NEXT:   ('st_bind', 0x1)
 // CHECK-NEXT:   ('st_type', 0x00000006)
 // CHECK-NEXT:   ('st_other', 0x00000000)
 // CHECK-NEXT:   ('st_shndx', 0x00000000)
index 66361d57528bace79b8bb71e30a4b80f166af4ab..10d551ae8d69c32b697228b9b59f5018c5b00614 100644 (file)
@@ -14,7 +14,7 @@ bar:
 
 // CHECK:      # Symbol 4
 // CHECK-NEXT: (('st_name', 0x00000005) # 'bar'
-// CHECK-NEXT:  ('st_bind', 0x00000001)
+// CHECK-NEXT:  ('st_bind', 0x1)
 // CHECK-NEXT:  ('st_type', 0x00000001)
 // CHECK-NEXT:  ('st_other', 0x00000000)
 // CHECK-NEXT:  ('st_shndx', 0x00000001)
@@ -23,7 +23,7 @@ bar:
 // CHECK-NEXT: ),
 // CHECK-NEXT: # Symbol 5
 // CHECK-NEXT: (('st_name', 0x00000001) # 'foo'
-// CHECK-NEXT:  ('st_bind', 0x00000001)
+// CHECK-NEXT:  ('st_bind', 0x1)
 // CHECK-NEXT:  ('st_type', 0x00000002)
 // CHECK-NEXT:  ('st_other', 0x00000000)
 // CHECK-NEXT:  ('st_shndx', 0x00000001)
index bf071c030aec934d47445147502679d2c1a22be1..4b7f32de64e817777e89c926d0fb66f1db36c3bb 100644 (file)
@@ -36,7 +36,7 @@
 // CHECK-NEXT:  (('st_name', 0x00000001) # '.Lsym1'
 // CHECK:       # Symbol 7
 // CHECK-NEXT:  (('st_name', 0x00000008) # 'sym6'
-// CHECK-NEXT:   ('st_bind', 0x00000001)
+// CHECK-NEXT:   ('st_bind', 0x1)
 // CHECK-NEXT:   ('st_type', 0x00000001)
 // CHECK-NEXT:   ('st_other', 0x00000000)
 // CHECK-NEXT:   ('st_shndx', 0x00000000)
index 6ce269bec2eb02c570712fd924f749dfe4effbd0..6f971c55bf6cdc84b492142c17cc88aa0484c722 100644 (file)
@@ -6,5 +6,5 @@
 
 // CHECK: ('_symbols', [
 // CHECK:      (('st_name', 0x00000001) # '.Lfoo'
-// CHECK-NEXT:  ('st_bind', 0x00000001)
+// CHECK-NEXT:  ('st_bind', 0x1)
 // CHECK: (('sh_name', 0x0000001b) # '.strtab'
index 0e544fc24faa9a8dc063e797f1561ce8a7d8f4ce..cfd5a6329ae98ceedb5991f000bd7ad6fd2a08a6 100644 (file)
@@ -11,7 +11,7 @@ bar:
 
 //CHECK:        # Symbol 4
 //CHECK-NEXT:   (('st_name', 0x00000005) # 'bar'
-//CHECK-NEXT:    ('st_bind', 0x00000002)
+//CHECK-NEXT:    ('st_bind', 0x2)
 //CHECK-NEXT:    ('st_type', 0x00000000)
 //CHECK-NEXT:    ('st_other', 0x00000000)
 //CHECK-NEXT:    ('st_shndx', 0x00000001)
@@ -20,7 +20,7 @@ bar:
 //CHECK-NEXT:   ),
 //CHECK-NEXT:   # Symbol 5
 //CHECK:       (('st_name', 0x00000001) # 'foo'
-//CHECK-NEXT:   ('st_bind', 0x00000002)
+//CHECK-NEXT:   ('st_bind', 0x2)
 //CHECK-NEXT:   ('st_type', 0x00000000)
 //CHECK-NEXT:   ('st_other', 0x00000000)
 //CHECK-NEXT:   ('st_shndx', 0x00000000)
index 27ab65015eb59a7e9422531dadc6b1528cf8b831..2e500935b6dbe08ad562573e6f0acb2b1d5d9c2c 100644 (file)
@@ -5,4 +5,4 @@
 
 // CHECK:      # Symbol 5
 // CHECK-NEXT: (('st_name', 0x00000001) # 'foo'
-// CHECK-NEXT:  ('st_bind', 0x00000002)
+// CHECK-NEXT:  ('st_bind', 0x2)
index bed80d27b5e3db5a66c1df66e040ff92ab54d58a..49b97dc2bf4c502a51d0ddc4b47b1849c68f7213 100644 (file)
@@ -22,7 +22,7 @@
 
 // CHECK:      # Symbol 4
 // CHECK-NEXT: (('st_name', 0x00000009) # '_GLOBAL_OFFSET_TABLE_'
-// CHECK-NEXT:  ('st_bind', 0x00000001)
+// CHECK-NEXT:  ('st_bind', 0x1)
 // CHECK-NEXT:  ('st_type', 0x00000000)
 // CHECK-NEXT:  ('st_other', 0x00000000)
 // CHECK-NEXT:  ('st_shndx', 0x00000000)
@@ -31,7 +31,7 @@
 // CHECK-NEXT: ),
 // CHECK-NEXT: # Symbol 5
 // CHECK-NEXT: (('st_name', 0x00000001) # 'foo'
-// CHECK-NEXT:  ('st_bind', 0x00000002)
+// CHECK-NEXT:  ('st_bind', 0x2)
 // CHECK-NEXT:  ('st_type', 0x00000000)
 // CHECK-NEXT:  ('st_other', 0x00000000)
 // CHECK-NEXT:  ('st_shndx', 0x00000000)
@@ -40,7 +40,7 @@
 // CHECK-NEXT: ),
 // CHECK-NEXT: # Symbol 6
 // CHECK-NEXT: (('st_name', 0x00000005) # 'zed'
-// CHECK-NEXT:  ('st_bind', 0x00000001)
+// CHECK-NEXT:  ('st_bind', 0x1)
 // CHECK-NEXT:  ('st_type', 0x00000000)
 // CHECK-NEXT:  ('st_other', 0x00000000)
 // CHECK-NEXT:  ('st_shndx', 0x00000000)
index ac1a6c5f16852294fd15de20499114968d2a4f75..2325a9634dcc03eeb5f1e5b40ca57d8006779772 100644 (file)
@@ -71,7 +71,7 @@ bar15:
 
 // CHECK:       # Symbol 0
 // CHECK-NEXT:  (('st_name', 0x00000000) # ''
-// CHECK-NEXT:   ('st_bind', 0x00000000)
+// CHECK-NEXT:   ('st_bind', 0x0)
 // CHECK-NEXT:   ('st_type', 0x00000000)
 // CHECK-NEXT:   ('st_other', 0x00000000)
 // CHECK-NEXT:   ('st_shndx', 0x00000000)
@@ -80,7 +80,7 @@ bar15:
 // CHECK-NEXT:  ),
 // CHECK-NEXT:  # Symbol 1
 // CHECK-NEXT:  (('st_name', 0x00000015) # 'bar6'
-// CHECK-NEXT:   ('st_bind', 0x00000000)
+// CHECK-NEXT:   ('st_bind', 0x0)
 // CHECK-NEXT:   ('st_type', 0x00000000)
 // CHECK-NEXT:   ('st_other', 0x00000000)
 // CHECK-NEXT:   ('st_shndx', 0x00000001)
@@ -89,7 +89,7 @@ bar15:
 // CHECK-NEXT:  ),
 // CHECK-NEXT:  # Symbol 2
 // CHECK-NEXT:  (('st_name', 0x0000001a) # 'bar7'
-// CHECK-NEXT:   ('st_bind', 0x00000000)
+// CHECK-NEXT:   ('st_bind', 0x0)
 // CHECK-NEXT:   ('st_type', 0x00000000)
 // CHECK-NEXT:   ('st_other', 0x00000000)
 // CHECK-NEXT:   ('st_shndx', 0x00000001)
@@ -98,7 +98,7 @@ bar15:
 // CHECK-NEXT:  ),
 // CHECK-NEXT:  # Symbol 3
 // CHECK-NEXT:  (('st_name', 0x0000001f) # 'bar8'
-// CHECK-NEXT:   ('st_bind', 0x00000000)
+// CHECK-NEXT:   ('st_bind', 0x0)
 // CHECK-NEXT:   ('st_type', 0x00000000)
 // CHECK-NEXT:   ('st_other', 0x00000000)
 // CHECK-NEXT:   ('st_shndx', 0x00000001)
@@ -107,7 +107,7 @@ bar15:
 // CHECK-NEXT:  ),
 // CHECK-NEXT:  # Symbol 4
 // CHECK-NEXT:  (('st_name', 0x00000024) # 'bar9'
-// CHECK-NEXT:   ('st_bind', 0x00000000)
+// CHECK-NEXT:   ('st_bind', 0x0)
 // CHECK-NEXT:   ('st_type', 0x00000000)
 // CHECK-NEXT:   ('st_other', 0x00000000)
 // CHECK-NEXT:   ('st_shndx', 0x00000001)
@@ -116,7 +116,7 @@ bar15:
 // CHECK-NEXT:  ),
 // CHECK-NEXT:  # Symbol 5
 // CHECK-NEXT:  (('st_name', 0x00000000) # ''
-// CHECK-NEXT:   ('st_bind', 0x00000000)
+// CHECK-NEXT:   ('st_bind', 0x0)
 // CHECK-NEXT:   ('st_type', 0x00000003)
 // CHECK-NEXT:   ('st_other', 0x00000000)
 // CHECK-NEXT:   ('st_shndx', 0x00000001)
@@ -125,7 +125,7 @@ bar15:
 // CHECK-NEXT:  ),
 // CHECK-NEXT:  # Symbol 6
 // CHECK-NEXT:  (('st_name', 0x00000000) # ''
-// CHECK-NEXT:   ('st_bind', 0x00000000)
+// CHECK-NEXT:   ('st_bind', 0x0)
 // CHECK-NEXT:   ('st_type', 0x00000003)
 // CHECK-NEXT:   ('st_other', 0x00000000)
 // CHECK-NEXT:   ('st_shndx', 0x00000003)
@@ -134,7 +134,7 @@ bar15:
 // CHECK-NEXT:  ),
 // CHECK-NEXT:  # Symbol 7
 // CHECK-NEXT:  (('st_name', 0x00000000) # ''
-// CHECK-NEXT:   ('st_bind', 0x00000000)
+// CHECK-NEXT:   ('st_bind', 0x0)
 // CHECK-NEXT:   ('st_type', 0x00000003)
 // CHECK-NEXT:   ('st_other', 0x00000000)
 // CHECK-NEXT:   ('st_shndx', 0x00000004)
@@ -143,7 +143,7 @@ bar15:
 // CHECK-NEXT:  ),
 // CHECK-NEXT:  # Symbol 8
 // CHECK-NEXT:  (('st_name', 0x00000029) # 'bar10'
-// CHECK-NEXT:   ('st_bind', 0x00000001)
+// CHECK-NEXT:   ('st_bind', 0x1)
 // CHECK-NEXT:   ('st_type', 0x00000000)
 // CHECK-NEXT:   ('st_other', 0x00000000)
 // CHECK-NEXT:   ('st_shndx', 0x00000001)
@@ -152,7 +152,7 @@ bar15:
 // CHECK-NEXT:  ),
 // CHECK-NEXT:  # Symbol 9
 // CHECK-NEXT:  (('st_name', 0x0000002f) # 'bar11'
-// CHECK-NEXT:   ('st_bind', 0x00000001)
+// CHECK-NEXT:   ('st_bind', 0x1)
 // CHECK-NEXT:   ('st_type', 0x00000000)
 // CHECK-NEXT:   ('st_other', 0x00000000)
 // CHECK-NEXT:   ('st_shndx', 0x00000001)
@@ -161,7 +161,7 @@ bar15:
 // CHECK-NEXT:  ),
 // CHECK-NEXT:  # Symbol 10
 // CHECK-NEXT:  (('st_name', 0x00000035) # 'bar12'
-// CHECK-NEXT:   ('st_bind', 0x00000001)
+// CHECK-NEXT:   ('st_bind', 0x1)
 // CHECK-NEXT:   ('st_type', 0x00000000)
 // CHECK-NEXT:   ('st_other', 0x00000000)
 // CHECK-NEXT:   ('st_shndx', 0x00000001)
@@ -170,7 +170,7 @@ bar15:
 // CHECK-NEXT:  ),
 // CHECK-NEXT:  # Symbol 11
 // CHECK-NEXT:  (('st_name', 0x0000003b) # 'bar13'
-// CHECK-NEXT:   ('st_bind', 0x00000001)
+// CHECK-NEXT:   ('st_bind', 0x1)
 // CHECK-NEXT:   ('st_type', 0x00000000)
 // CHECK-NEXT:   ('st_other', 0x00000000)
 // CHECK-NEXT:   ('st_shndx', 0x00000001)
@@ -179,7 +179,7 @@ bar15:
 // CHECK-NEXT:  ),
 // CHECK-NEXT:  # Symbol 12
 // CHECK-NEXT:  (('st_name', 0x00000041) # 'bar14'
-// CHECK-NEXT:   ('st_bind', 0x00000001)
+// CHECK-NEXT:   ('st_bind', 0x1)
 // CHECK-NEXT:   ('st_type', 0x00000000)
 // CHECK-NEXT:   ('st_other', 0x00000000)
 // CHECK-NEXT:   ('st_shndx', 0x00000001)
@@ -188,7 +188,7 @@ bar15:
 // CHECK-NEXT:  ),
 // CHECK-NEXT:  # Symbol 13
 // CHECK-NEXT:  (('st_name', 0x00000047) # 'bar15'
-// CHECK-NEXT:   ('st_bind', 0x00000001)
+// CHECK-NEXT:   ('st_bind', 0x1)
 // CHECK-NEXT:   ('st_type', 0x00000000)
 // CHECK-NEXT:   ('st_other', 0x00000000)
 // CHECK-NEXT:   ('st_shndx', 0x00000001)
@@ -197,7 +197,7 @@ bar15:
 // CHECK-NEXT:  ),
 // CHECK-NEXT:  # Symbol 14
 // CHECK-NEXT:  (('st_name', 0x00000001) # 'bar2'
-// CHECK-NEXT:   ('st_bind', 0x00000001)
+// CHECK-NEXT:   ('st_bind', 0x1)
 // CHECK-NEXT:   ('st_type', 0x00000000)
 // CHECK-NEXT:   ('st_other', 0x00000000)
 // CHECK-NEXT:   ('st_shndx', 0x00000000)
@@ -206,7 +206,7 @@ bar15:
 // CHECK-NEXT:  ),
 // CHECK-NEXT:  # Symbol 15
 // CHECK-NEXT:  (('st_name', 0x00000006) # 'bar3'
-// CHECK-NEXT:   ('st_bind', 0x00000002)
+// CHECK-NEXT:   ('st_bind', 0x2)
 // CHECK-NEXT:   ('st_type', 0x00000000)
 // CHECK-NEXT:   ('st_other', 0x00000000)
 // CHECK-NEXT:   ('st_shndx', 0x00000000)
@@ -215,7 +215,7 @@ bar15:
 // CHECK-NEXT:  ),
 // CHECK-NEXT:  # Symbol 16
 // CHECK-NEXT:  (('st_name', 0x0000000b) # 'bar4'
-// CHECK-NEXT:   ('st_bind', 0x00000001)
+// CHECK-NEXT:   ('st_bind', 0x1)
 // CHECK-NEXT:   ('st_type', 0x00000000)
 // CHECK-NEXT:   ('st_other', 0x00000000)
 // CHECK-NEXT:   ('st_shndx', 0x00000000)
@@ -224,7 +224,7 @@ bar15:
 // CHECK-NEXT:  ),
 // CHECK-NEXT:  # Symbol 17
 // CHECK-NEXT:  (('st_name', 0x00000010) # 'bar5'
-// CHECK-NEXT:   ('st_bind', 0x00000001)
+// CHECK-NEXT:   ('st_bind', 0x1)
 // CHECK-NEXT:   ('st_type', 0x00000000)
 // CHECK-NEXT:   ('st_other', 0x00000000)
 // CHECK-NEXT:   ('st_shndx', 0x00000000)
index 33581f45bc5b200762dc2e724ab834d76bbf9001..a94079c5241b01a37efb63d91caa66e43109410e 100755 (executable)
@@ -104,8 +104,10 @@ def dumpSymtab(f, section, strtab):
             print "     ('st_value', %s)" % common_dump.HexDump(f.read32())
             print "     ('st_size', %s)" % common_dump.HexDump(f.read32())
         st_info = f.read8()
-        print "     ('st_bind', %s)" % common_dump.HexDump((st_info >> 4))
-        print "     ('st_type', %s)" % common_dump.HexDump((st_info & 0xf))
+        st_bind = (st_info >> 4, 4)
+        st_type = (st_info & 0xf, 4)
+        print "     ('st_bind', %s)" % common_dump.HexDump(st_bind[0], st_bind[1])
+        print "     ('st_type', %s)" % common_dump.HexDump(st_type[0], 32)
         print "     ('st_other', %s)" % common_dump.HexDump(f.read8())
         print "     ('st_shndx', %s)" % common_dump.HexDump(f.read16())
         if f.is64Bit: