aboutsummaryrefslogtreecommitdiff
path: root/test/MC/ELF
diff options
context:
space:
mode:
authorJason W Kim <jason.w.kim.2009@gmail.com>2010-10-18 21:32:41 +0000
committerJason W Kim <jason.w.kim.2009@gmail.com>2010-10-18 21:32:41 +0000
commite7d4a4c6c882907da11adcaaacf1a2f464214e87 (patch)
treef4cc2111bcca297abe43da22b89bb0c1f2597a22 /test/MC/ELF
parentfb8096dee5df60f156e770b9f96f8417e9dbd4c9 (diff)
Changed elf-dump to output hex format by default.
Also updated tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116753 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ELF')
-rw-r--r--test/MC/ELF/alias.s124
-rw-r--r--test/MC/ELF/align-bss.s20
-rw-r--r--test/MC/ELF/align-nops.s32
-rw-r--r--test/MC/ELF/align-size.s12
-rw-r--r--test/MC/ELF/align-text.s20
-rw-r--r--test/MC/ELF/align.s44
-rw-r--r--test/MC/ELF/basic-elf.ll112
-rw-r--r--test/MC/ELF/common.s52
-rw-r--r--test/MC/ELF/common2.s4
-rw-r--r--test/MC/ELF/diff.s10
-rw-r--r--test/MC/ELF/empty.s116
-rw-r--r--test/MC/ELF/entsize.ll24
-rw-r--r--test/MC/ELF/entsize.s42
-rw-r--r--test/MC/ELF/file.s32
-rw-r--r--test/MC/ELF/got.s12
-rw-r--r--test/MC/ELF/local-reloc.s24
-rw-r--r--test/MC/ELF/merge.s66
-rw-r--r--test/MC/ELF/norelocation.s20
-rw-r--r--test/MC/ELF/pic-diff.s26
-rw-r--r--test/MC/ELF/plt.s4
-rw-r--r--test/MC/ELF/relax.s34
-rw-r--r--test/MC/ELF/relocation-386.s48
-rw-r--r--test/MC/ELF/relocation.s68
-rw-r--r--test/MC/ELF/section.s6
-rw-r--r--test/MC/ELF/size.s6
-rw-r--r--test/MC/ELF/sleb.s4
-rw-r--r--test/MC/ELF/uleb.s4
-rw-r--r--test/MC/ELF/undef.s44
-rw-r--r--test/MC/ELF/undef2.s6
-rw-r--r--test/MC/ELF/weak.s32
-rw-r--r--test/MC/ELF/zero.s20
31 files changed, 534 insertions, 534 deletions
diff --git a/test/MC/ELF/alias.s b/test/MC/ELF/alias.s
index 4842d2746a..fa2d732b68 100644
--- a/test/MC/ELF/alias.s
+++ b/test/MC/ELF/alias.s
@@ -15,70 +15,70 @@ bar3 = foo3
foo4:
bar4 = foo4
-// CHECK: # Symbol 1
-// CHECK-NEXT: (('st_name', 5) # 'bar'
-// CHECK-NEXT: ('st_bind', 0)
-// CHECK-NEXT: ('st_type', 0)
-// CHECK-NEXT: ('st_other', 0)
-// CHECK-NEXT: ('st_shndx', 1)
-// CHECK-NEXT: ('st_value', 0)
-// CHECK-NEXT: ('st_size', 0)
+// CHECK: # Symbol 0x1
+// CHECK-NEXT: (('st_name', 0x5) # 'bar'
+// CHECK-NEXT: ('st_bind', 0x0)
+// CHECK-NEXT: ('st_type', 0x0)
+// CHECK-NEXT: ('st_other', 0x0)
+// CHECK-NEXT: ('st_shndx', 0x1)
+// CHECK-NEXT: ('st_value', 0x0)
+// CHECK-NEXT: ('st_size', 0x0)
// CHECK-NEXT: ),
-// CHECK-NEXT: # Symbol 2
-// CHECK-NEXT: (('st_name', 29) # 'bar4'
-// CHECK-NEXT: ('st_bind', 0)
-// CHECK-NEXT: ('st_type', 2)
-// CHECK-NEXT: ('st_other', 0)
-// CHECK-NEXT: ('st_shndx', 1)
-// CHECK-NEXT: ('st_value', 0)
-// CHECK-NEXT: ('st_size', 0)
+// CHECK-NEXT: # Symbol 0x2
+// CHECK-NEXT: (('st_name', 0x1d) # 'bar4'
+// CHECK-NEXT: ('st_bind', 0x0)
+// CHECK-NEXT: ('st_type', 0x2)
+// CHECK-NEXT: ('st_other', 0x0)
+// CHECK-NEXT: ('st_shndx', 0x1)
+// CHECK-NEXT: ('st_value', 0x0)
+// CHECK-NEXT: ('st_size', 0x0)
// CHECK-NEXT: ),
-// CHECK-NEXT: # Symbol 3
-// CHECK-NEXT: (('st_name', 1) # 'foo'
-// CHECK-NEXT: ('st_bind', 0)
-// CHECK-NEXT: ('st_type', 0)
-// CHECK-NEXT: ('st_other', 0)
-// CHECK-NEXT: ('st_shndx', 1)
-// CHECK-NEXT: ('st_value', 0)
-// CHECK-NEXT: ('st_size', 0)
+// CHECK-NEXT: # Symbol 0x3
+// CHECK-NEXT: (('st_name', 0x1) # 'foo'
+// CHECK-NEXT: ('st_bind', 0x0)
+// CHECK-NEXT: ('st_type', 0x0)
+// CHECK-NEXT: ('st_other', 0x0)
+// CHECK-NEXT: ('st_shndx', 0x1)
+// CHECK-NEXT: ('st_value', 0x0)
+// CHECK-NEXT: ('st_size', 0x0)
// CHECK-NEXT: ),
-// CHECK-NEXT: # Symbol 4
-// CHECK-NEXT: (('st_name', 14) # 'foo3'
-// CHECK-NEXT: ('st_bind', 0)
-// CHECK-NEXT: ('st_type', 0)
-// CHECK-NEXT: ('st_other', 0)
-// CHECK-NEXT: ('st_shndx', 1)
-// CHECK-NEXT: ('st_value', 0)
-// CHECK-NEXT: ('st_size', 0)
+// CHECK-NEXT: # Symbol 0x4
+// CHECK-NEXT: (('st_name', 0xe) # 'foo3'
+// CHECK-NEXT: ('st_bind', 0x0)
+// CHECK-NEXT: ('st_type', 0x0)
+// CHECK-NEXT: ('st_other', 0x0)
+// CHECK-NEXT: ('st_shndx', 0x1)
+// CHECK-NEXT: ('st_value', 0x0)
+// CHECK-NEXT: ('st_size', 0x0)
// CHECK-NEXT: ),
-// CHECK-NEXT: # Symbol 5
-// CHECK-NEXT: (('st_name', 24) # 'foo4'
-// CHECK-NEXT: ('st_bind', 0)
-// CHECK-NEXT: ('st_type', 2)
-// CHECK-NEXT: ('st_other', 0)
-// CHECK-NEXT: ('st_shndx', 1)
-// CHECK-NEXT: ('st_value', 0)
-// CHECK-NEXT: ('st_size', 0)
+// CHECK-NEXT: # Symbol 0x5
+// CHECK-NEXT: (('st_name', 0x18) # 'foo4'
+// CHECK-NEXT: ('st_bind', 0x0)
+// CHECK-NEXT: ('st_type', 0x2)
+// CHECK-NEXT: ('st_other', 0x0)
+// CHECK-NEXT: ('st_shndx', 0x1)
+// CHECK-NEXT: ('st_value', 0x0)
+// CHECK-NEXT: ('st_size', 0x0)
// CHECK-NEXT: ),
-// CHECK-NEXT: # Symbol 6
-// CHECK-NEXT: (('st_name', 0) # ''
-// CHECK: # Symbol 7
-// CHECK-NEXT: (('st_name', 0) # ''
-// CHECK: # Symbol 8
-// CHECK-NEXT: (('st_name', 0) # ''
-// CHECK: # Symbol 9
-// CHECK-NEXT: (('st_name', 19) # 'bar3'
-// CHECK-NEXT: ('st_bind', 1)
-// CHECK-NEXT: ('st_type', 0)
-// CHECK-NEXT: ('st_other', 0)
-// CHECK-NEXT: ('st_shndx', 1)
-// CHECK-NEXT: ('st_value', 0)
-// CHECK-NEXT: ('st_size', 0)
-// CHECK: # Symbol 10
-// CHECK-NEXT: (('st_name', 9) # 'bar2'
-// CHECK-NEXT: ('st_bind', 1)
-// CHECK-NEXT: ('st_type', 0)
-// CHECK-NEXT: ('st_other', 0)
-// CHECK-NEXT: ('st_shndx', 0)
-// CHECK-NEXT: ('st_value', 0)
-// CHECK-NEXT: ('st_size', 0)
+// CHECK-NEXT: # Symbol 0x6
+// CHECK-NEXT: (('st_name', 0x0) # ''
+// CHECK: # Symbol 0x7
+// CHECK-NEXT: (('st_name', 0x0) # ''
+// CHECK: # Symbol 0x8
+// CHECK-NEXT: (('st_name', 0x0) # ''
+// CHECK: # Symbol 0x9
+// CHECK-NEXT: (('st_name', 0x13) # 'bar3'
+// CHECK-NEXT: ('st_bind', 0x1)
+// CHECK-NEXT: ('st_type', 0x0)
+// CHECK-NEXT: ('st_other', 0x0)
+// CHECK-NEXT: ('st_shndx', 0x1)
+// CHECK-NEXT: ('st_value', 0x0)
+// CHECK-NEXT: ('st_size', 0x0)
+// CHECK: # Symbol 0xa
+// CHECK-NEXT: (('st_name', 0x9) # 'bar2'
+// CHECK-NEXT: ('st_bind', 0x1)
+// CHECK-NEXT: ('st_type', 0x0)
+// CHECK-NEXT: ('st_other', 0x0)
+// CHECK-NEXT: ('st_shndx', 0x0)
+// CHECK-NEXT: ('st_value', 0x0)
+// CHECK-NEXT: ('st_size', 0x0)
diff --git a/test/MC/ELF/align-bss.s b/test/MC/ELF/align-bss.s
index b6a3ba8cc4..893ef806ee 100644
--- a/test/MC/ELF/align-bss.s
+++ b/test/MC/ELF/align-bss.s
@@ -5,13 +5,13 @@
.local foo
.comm foo,2048,16
-// CHECK: ('sh_name', 13) # '.bss'
-// CHECK-NEXT: ('sh_type', 8)
-// CHECK-NEXT: ('sh_flags', 3)
-// CHECK-NEXT: ('sh_addr', 0)
-// CHECK-NEXT: ('sh_offset', 64)
-// CHECK-NEXT: ('sh_size', 2048)
-// CHECK-NEXT: ('sh_link', 0)
-// CHECK-NEXT: ('sh_info', 0)
-// CHECK-NEXT: ('sh_addralign', 16)
-// CHECK-NEXT: ('sh_entsize', 0)
+// CHECK: ('sh_name', 0xd) # '.bss'
+// CHECK-NEXT: ('sh_type', 0x8)
+// CHECK-NEXT: ('sh_flags', 0x3)
+// CHECK-NEXT: ('sh_addr', 0x0)
+// CHECK-NEXT: ('sh_offset', 0x40)
+// CHECK-NEXT: ('sh_size', 0x800)
+// CHECK-NEXT: ('sh_link', 0x0)
+// CHECK-NEXT: ('sh_info', 0x0)
+// CHECK-NEXT: ('sh_addralign', 0x10)
+// CHECK-NEXT: ('sh_entsize', 0x0)
diff --git a/test/MC/ELF/align-nops.s b/test/MC/ELF/align-nops.s
index b6793ecb67..bf65fa485a 100644
--- a/test/MC/ELF/align-nops.s
+++ b/test/MC/ELF/align-nops.s
@@ -15,26 +15,26 @@ f0:
.long 0
.align 8
-// CHECK: (('sh_name', 1) # '.text'
-// CHECK-NEXT: ('sh_type', 1)
-// CHECK-NEXT: ('sh_flags', 6)
+// CHECK: (('sh_name', 0x1) # '.text'
+// CHECK-NEXT: ('sh_type', 0x1)
+// CHECK-NEXT: ('sh_flags', 0x6)
// CHECK-NEXT: ('sh_addr',
// CHECK-NEXT: ('sh_offset',
-// CHECK-NEXT: ('sh_size', 16)
-// CHECK-NEXT: ('sh_link', 0)
-// CHECK-NEXT: ('sh_info', 0)
-// CHECK-NEXT: ('sh_addralign', 8)
-// CHECK-NEXT: ('sh_entsize', 0)
+// CHECK-NEXT: ('sh_size', 0x10)
+// CHECK-NEXT: ('sh_link', 0x0)
+// CHECK-NEXT: ('sh_info', 0x0)
+// CHECK-NEXT: ('sh_addralign', 0x8)
+// CHECK-NEXT: ('sh_entsize', 0x0)
// CHECK-NEXT: ('_section_data', '00000000 0f1f4000 00000000 0f1f4000')
-// CHECK: (('sh_name', 7) # '.data'
-// CHECK-NEXT: ('sh_type', 1)
-// CHECK-NEXT: ('sh_flags', 3)
+// CHECK: (('sh_name', 0x7) # '.data'
+// CHECK-NEXT: ('sh_type', 0x1)
+// CHECK-NEXT: ('sh_flags', 0x3)
// CHECK-NEXT: ('sh_addr',
// CHECK-NEXT: ('sh_offset',
-// CHECK-NEXT: ('sh_size', 16)
-// CHECK-NEXT: ('sh_link', 0)
-// CHECK-NEXT: ('sh_info', 0)
-// CHECK-NEXT: ('sh_addralign', 8)
-// CHECK-NEXT: ('sh_entsize', 0)
+// CHECK-NEXT: ('sh_size', 0x10)
+// CHECK-NEXT: ('sh_link', 0x0)
+// CHECK-NEXT: ('sh_info', 0x0)
+// CHECK-NEXT: ('sh_addralign', 0x8)
+// CHECK-NEXT: ('sh_entsize', 0x0)
// CHECK-NEXT: ('_section_data', '00000000 90909090 00000000 00000000')
diff --git a/test/MC/ELF/align-size.s b/test/MC/ELF/align-size.s
index 4d705cf77b..3616d3b372 100644
--- a/test/MC/ELF/align-size.s
+++ b/test/MC/ELF/align-size.s
@@ -5,9 +5,9 @@
.zero 4
.align 8
-// CHECK: (('sh_name', 1) # '.text'
-// CHECK-NEXT: ('sh_type', 1)
-// CHECK-NEXT: ('sh_flags', 6)
-// CHECK-NEXT: ('sh_addr', 0)
-// CHECK-NEXT: ('sh_offset', 64)
-// CHECK-NEXT: ('sh_size', 8)
+// CHECK: (('sh_name', 0x1) # '.text'
+// CHECK-NEXT: ('sh_type', 0x1)
+// CHECK-NEXT: ('sh_flags', 0x6)
+// CHECK-NEXT: ('sh_addr', 0x0)
+// CHECK-NEXT: ('sh_offset', 0x40)
+// CHECK-NEXT: ('sh_size', 0x8)
diff --git a/test/MC/ELF/align-text.s b/test/MC/ELF/align-text.s
index 4f4497c82b..1f2c9f9ef8 100644
--- a/test/MC/ELF/align-text.s
+++ b/test/MC/ELF/align-text.s
@@ -6,14 +6,14 @@
.text
.zero 1
-// CHECK: (('sh_name', 1) # '.text'
-// CHECK-NEXT: ('sh_type', 1)
-// CHECK-NEXT: ('sh_flags', 6)
-// CHECK-NEXT: ('sh_addr', 0)
-// CHECK-NEXT: ('sh_offset', 64)
-// CHECK-NEXT: ('sh_size', 2)
-// CHECK-NEXT: ('sh_link', 0)
-// CHECK-NEXT: ('sh_info', 0)
-// CHECK-NEXT: ('sh_addralign', 4)
-// CHECK-NEXT: ('sh_entsize', 0)
+// CHECK: (('sh_name', 0x1) # '.text'
+// CHECK-NEXT: ('sh_type', 0x1)
+// CHECK-NEXT: ('sh_flags', 0x6)
+// CHECK-NEXT: ('sh_addr', 0x0)
+// CHECK-NEXT: ('sh_offset', 0x40)
+// CHECK-NEXT: ('sh_size', 0x2)
+// CHECK-NEXT: ('sh_link', 0x0)
+// CHECK-NEXT: ('sh_info', 0x0)
+// CHECK-NEXT: ('sh_addralign', 0x4)
+// CHECK-NEXT: ('sh_entsize', 0x0)
// CHECK-NEXT: ),
diff --git a/test/MC/ELF/align.s b/test/MC/ELF/align.s
index d375c4aa4f..e1cd3400cb 100644
--- a/test/MC/ELF/align.s
+++ b/test/MC/ELF/align.s
@@ -7,26 +7,26 @@
.section .rodata,"a",@progbits
.align 8
-// CHECK: # Section 3
-// CHECK-NEXT: (('sh_name', 13) # '.bss'
-// CHECK-NEXT: ('sh_type', 8)
-// CHECK-NEXT: ('sh_flags', 3)
-// CHECK-NEXT: ('sh_addr', 0)
-// CHECK-NEXT: ('sh_offset', 68)
-// CHECK-NEXT: ('sh_size', 0)
-// CHECK-NEXT: ('sh_link', 0)
-// CHECK-NEXT: ('sh_info', 0)
-// CHECK-NEXT: ('sh_addralign', 4)
-// CHECK-NEXT: ('sh_entsize', 0)
+// CHECK: # Section 0x3
+// CHECK-NEXT: (('sh_name', 0xd) # '.bss'
+// CHECK-NEXT: ('sh_type', 0x8)
+// CHECK-NEXT: ('sh_flags', 0x3)
+// CHECK-NEXT: ('sh_addr', 0x0)
+// CHECK-NEXT: ('sh_offset', 0x44)
+// CHECK-NEXT: ('sh_size', 0x0)
+// CHECK-NEXT: ('sh_link', 0x0)
+// CHECK-NEXT: ('sh_info', 0x0)
+// CHECK-NEXT: ('sh_addralign', 0x4)
+// CHECK-NEXT: ('sh_entsize', 0x0)
// CHECK-NEXT: ),
-// CHECK-NEXT: # Section 4
-// CHECK-NEXT: (('sh_name', 18) # '.rodata'
-// CHECK-NEXT: ('sh_type', 1)
-// CHECK-NEXT: ('sh_flags', 2)
-// CHECK-NEXT: ('sh_addr', 0)
-// CHECK-NEXT: ('sh_offset', 72)
-// CHECK-NEXT: ('sh_size', 0)
-// CHECK-NEXT: ('sh_link', 0)
-// CHECK-NEXT: ('sh_info', 0)
-// CHECK-NEXT: ('sh_addralign', 8)
-// CHECK-NEXT: ('sh_entsize', 0)
+// CHECK-NEXT: # Section 0x4
+// CHECK-NEXT: (('sh_name', 0x12) # '.rodata'
+// CHECK-NEXT: ('sh_type', 0x1)
+// CHECK-NEXT: ('sh_flags', 0x2)
+// CHECK-NEXT: ('sh_addr', 0x0)
+// CHECK-NEXT: ('sh_offset', 0x48)
+// CHECK-NEXT: ('sh_size', 0x0)
+// CHECK-NEXT: ('sh_link', 0x0)
+// CHECK-NEXT: ('sh_info', 0x0)
+// CHECK-NEXT: ('sh_addralign', 0x8)
+// CHECK-NEXT: ('sh_entsize', 0x0)
diff --git a/test/MC/ELF/basic-elf.ll b/test/MC/ELF/basic-elf.ll
index f130ced7bb..187a1f671a 100644
--- a/test/MC/ELF/basic-elf.ll
+++ b/test/MC/ELF/basic-elf.ll
@@ -12,100 +12,100 @@ define i32 @main() nounwind {
declare i32 @puts(i8* nocapture) nounwind
-; 32: ('e_indent[EI_CLASS]', 1)
-; 32: ('e_indent[EI_DATA]', 1)
-; 32: ('e_indent[EI_VERSION]', 1)
+; 32: ('e_indent[EI_CLASS]', 0x1)
+; 32: ('e_indent[EI_DATA]', 0x1)
+; 32: ('e_indent[EI_VERSION]', 0x1)
; 32: ('_sections', [
; 32: # Section 0
-; 32: (('sh_name', 0) # ''
+; 32: (('sh_name', 0x0) # ''
; 32: # '.text'
-; 32: ('st_bind', 0)
-; 32: ('st_type', 3)
+; 32: ('st_bind', 0x0)
+; 32: ('st_type', 0x3)
-; 32: ('st_bind', 0)
-; 32: ('st_type', 3)
+; 32: ('st_bind', 0x0)
+; 32: ('st_type', 0x3)
-; 32: ('st_bind', 0)
-; 32: ('st_type', 3)
+; 32: ('st_bind', 0x0)
+; 32: ('st_type', 0x3)
; 32: # 'main'
-; 32: ('st_bind', 1)
-; 32-NEXT: ('st_type', 2)
+; 32: ('st_bind', 0x1)
+; 32-NEXT: ('st_type', 0x2)
; 32: # 'puts'
-; 32: ('st_bind', 1)
-; 32-NEXT: ('st_type', 0)
+; 32: ('st_bind', 0x1)
+; 32-NEXT: ('st_type', 0x0)
; 32: # '.rel.text'
; 32: ('_relocations', [
-; 32: # Relocation 0
-; 32: (('r_offset', 6)
-; 32: ('r_type', 1)
+; 32: # Relocation 0x0
+; 32: (('r_offset', 0x6)
+; 32: ('r_type', 0x1)
; 32: ),
-; 32: # Relocation 1
-; 32: (('r_offset', 11)
-; 32: ('r_type', 2)
+; 32: # Relocation 0x1
+; 32: (('r_offset', 0xb)
+; 32: ('r_type', 0x2)
; 32: ),
-; 32: # Relocation 2
-; 32: (('r_offset', 18)
-; 32: ('r_type', 1)
+; 32: # Relocation 0x2
+; 32: (('r_offset', 0x12)
+; 32: ('r_type', 0x1)
; 32: ),
-; 32: # Relocation 3
-; 32: (('r_offset', 23)
-; 32: ('r_type', 2)
+; 32: # Relocation 0x3
+; 32: (('r_offset', 0x17)
+; 32: ('r_type', 0x2)
; 32: ),
; 32: ])
-; 64: ('e_indent[EI_CLASS]', 2)
-; 64: ('e_indent[EI_DATA]', 1)
-; 64: ('e_indent[EI_VERSION]', 1)
+; 64: ('e_indent[EI_CLASS]', 0x2)
+; 64: ('e_indent[EI_DATA]', 0x1)
+; 64: ('e_indent[EI_VERSION]', 0x1)
; 64: ('_sections', [
; 64: # Section 0
-; 64: (('sh_name', 0) # ''
+; 64: (('sh_name', 0x0) # ''
; 64: # '.text'
-; 64: ('st_bind', 0)
-; 64: ('st_type', 3)
+; 64: ('st_bind', 0x0)
+; 64: ('st_type', 0x3)
-; 64: ('st_bind', 0)
-; 64: ('st_type', 3)
+; 64: ('st_bind', 0x0)
+; 64: ('st_type', 0x3)
-; 64: ('st_bind', 0)
-; 64: ('st_type', 3)
+; 64: ('st_bind', 0x0)
+; 64: ('st_type', 0x3)
; 64: # 'main'
-; 64-NEXT: ('st_bind', 1)
-; 64-NEXT: ('st_type', 2)
+; 64-NEXT: ('st_bind', 0x1)
+; 64-NEXT: ('st_type', 0x2)
; 64: # 'puts'
-; 64-NEXT: ('st_bind', 1)
-; 64-NEXT: ('st_type', 0)
+; 64-NEXT: ('st_bind', 0x1)
+; 64-NEXT: ('st_type', 0x0)
; 64: # '.rela.text'
; 64: ('_relocations', [
-; 64: # Relocation 0
-; 64: (('r_offset', 5)
-; 64: ('r_type', 10)
-; 64: ('r_addend', 0)
+; 64: # Relocation 0x0
+; 64: (('r_offset', 0x5)
+; 64: ('r_type', 0xa)
+; 64: ('r_addend', 0x0)
; 64: ),
-; 64: # Relocation 1
-; 64: (('r_offset', 10)
-; 64: ('r_type', 2)
-; 64: ('r_addend', -4)
+; 64: # Relocation 0x1
+; 64: (('r_offset', 0xa)
+; 64: ('r_type', 0x2)
+; 64: ('r_addend', -0x4)
; 64: ),
-; 64: # Relocation 2
-; 64: (('r_offset', 15)
-; 64: ('r_type', 10)
-; 64: ('r_addend', 6)
+; 64: # Relocation 0x2
+; 64: (('r_offset', 0xf)
+; 64: ('r_type', 0xa)
+; 64: ('r_addend', 0x6)
; 64: ),
-; 64: # Relocation 3
-; 64: (('r_offset', 20)
-; 64: ('r_type', 2)
-; 64: ('r_addend', -4)
+; 64: # Relocation 0x3
+; 64: (('r_offset', 0x14)
+; 64: ('r_type', 0x2)
+; 64: ('r_addend', -0x4)
; 64: ),
; 64: ])
diff --git a/test/MC/ELF/common.s b/test/MC/ELF/common.s
index 18b3af5afa..8d92d982bf 100644
--- a/test/MC/ELF/common.s
+++ b/test/MC/ELF/common.s
@@ -8,13 +8,13 @@
.local common1
.comm common1,1,1
-// CHECK: ('st_name', 1) # 'common1'
-// CHECK-NEXT: ('st_bind', 0)
-// CHECK-NEXT: ('st_type', 1)
-// CHECK-NEXT: ('st_other', 0)
+// CHECK: ('st_name', 0x1) # 'common1'
+// CHECK-NEXT: ('st_bind', 0x0)
+// CHECK-NEXT: ('st_type', 0x1)
+// CHECK-NEXT: ('st_other', 0x0)
// CHECK-NEXT: ('st_shndx',
-// CHECK-NEXT: ('st_value', 0)
-// CHECK-NEXT: ('st_size', 1)
+// CHECK-NEXT: ('st_value', 0x0)
+// CHECK-NEXT: ('st_size', 0x1)
// Same as common1, but with directives in a different order.
@@ -22,25 +22,25 @@
.type common2,@object
.comm common2,1,1
-// CHECK: ('st_name', 9) # 'common2'
-// CHECK-NEXT: ('st_bind', 0)
-// CHECK-NEXT: ('st_type', 1)
-// CHECK-NEXT: ('st_other', 0)
+// CHECK: ('st_name', 0x9) # 'common2'
+// CHECK-NEXT: ('st_bind', 0x0)
+// CHECK-NEXT: ('st_type', 0x1)
+// CHECK-NEXT: ('st_other', 0x0)
// CHECK-NEXT: ('st_shndx',
-// CHECK-NEXT: ('st_value', 1)
-// CHECK-NEXT: ('st_size', 1)
+// CHECK-NEXT: ('st_value', 0x1)
+// CHECK-NEXT: ('st_size', 0x1)
// Test that without an explicit .local we produce a global.
.type common3,@object
.comm common3,4,4
-// CHECK: ('st_name', 17) # 'common3'
-// CHECK-NEXT: ('st_bind', 1)
-// CHECK-NEXT: ('st_type', 1)
-// CHECK-NEXT: ('st_other', 0)
-// CHECK-NEXT: ('st_shndx', 65522)
-// CHECK-NEXT: ('st_value', 4)
-// CHECK-NEXT: ('st_size', 4)
+// CHECK: ('st_name', 0x11) # 'common3'
+// CHECK-NEXT: ('st_bind', 0x1)
+// CHECK-NEXT: ('st_type', 0x1)
+// CHECK-NEXT: ('st_other', 0x0)
+// CHECK-NEXT: ('st_shndx', 0xfff2)
+// CHECK-NEXT: ('st_value', 0x4)
+// CHECK-NEXT: ('st_size', 0x4)
// Test that without an explicit .local we produce a global, even if the first
@@ -54,10 +54,10 @@ foo:
.type common4,@object
.comm common4,40,16
-// CHECK: ('st_name', 29) # 'common4'
-// CHECK-NEXT: ('st_bind', 1)
-// CHECK-NEXT: ('st_type', 1)
-// CHECK-NEXT: ('st_other', 0)
-// CHECK-NEXT: ('st_shndx', 65522)
-// CHECK-NEXT: ('st_value', 16)
-// CHECK-NEXT: ('st_size', 40)
+// CHECK: ('st_name', 0x1d) # 'common4'
+// CHECK-NEXT: ('st_bind', 0x1)
+// CHECK-NEXT: ('st_type', 0x1)
+// CHECK-NEXT: ('st_other', 0x0)
+// CHECK-NEXT: ('st_shndx', 0xfff2)
+// CHECK-NEXT: ('st_value', 0x10)
+// CHECK-NEXT: ('st_size', 0x28)
diff --git a/test/MC/ELF/common2.s b/test/MC/ELF/common2.s
index a95daa518f..70f51d8991 100644
--- a/test/MC/ELF/common2.s
+++ b/test/MC/ELF/common2.s
@@ -9,12 +9,12 @@
.zero 1
.align 8
-// CHECK: (('sh_name', 13) # '.bss'
+// CHECK: (('sh_name', 0xd) # '.bss'
// CHECK-NEXT: ('sh_type',
// CHECK-NEXT: ('sh_flags'
// CHECK-NEXT: ('sh_addr',
// CHECK-NEXT: ('sh_offset',
-// CHECK-NEXT: ('sh_size', 9)
+// CHECK-NEXT: ('sh_size', 0x9)
// CHECK-NEXT: ('sh_link',
// CHECK-NEXT: ('sh_info',
// CHECK-NEXT: ('sh_addralign',
diff --git a/test/MC/ELF/diff.s b/test/MC/ELF/diff.s
index 671652cf4a..9b662ecd17 100644
--- a/test/MC/ELF/diff.s
+++ b/test/MC/ELF/diff.s
@@ -8,8 +8,8 @@ bar:
zed:
mov zed+(bar-foo), %eax
-// CHECK: # Relocation 0
-// CHECK-NEXT: (('r_offset', 5)
-// CHECK-NEXT: ('r_sym', 6)
-// CHECK-NEXT: ('r_type', 11)
-// CHECK-NEXT: ('r_addend', 1)
+// CHECK: # Relocation 0x0
+// CHECK-NEXT: (('r_offset', 0x5)
+// CHECK-NEXT: ('r_sym', 0x6)
+// CHECK-NEXT: ('r_type', 0xb)
+// CHECK-NEXT: ('r_addend', 0x1)
diff --git a/test/MC/ELF/empty.s b/test/MC/ELF/empty.s
index 62cbb275e0..bfc7d3b7b2 100644
--- a/test/MC/ELF/empty.s
+++ b/test/MC/ELF/empty.s
@@ -3,68 +3,68 @@
// Test that like gnu as we create text, data and bss by default. Also test
// that shstrtab, symtab and strtab are listed in that order.
-// CHECK: ('sh_name', 1) # '.text'
-// CHECK-NEXT: ('sh_type', 1)
-// CHECK-NEXT: ('sh_flags', 6)
-// CHECK-NEXT: ('sh_addr', 0)
-// CHECK-NEXT: ('sh_offset', 64)
-// CHECK-NEXT: ('sh_size', 0)
-// CHECK-NEXT: ('sh_link', 0)
-// CHECK-NEXT: ('sh_info', 0)
-// CHECK-NEXT: ('sh_addralign', 4)
-// CHECK-NEXT: ('sh_entsize', 0)
+// CHECK: ('sh_name', 0x1) # '.text'
+// CHECK-NEXT: ('sh_type', 0x1)
+// CHECK-NEXT: ('sh_flags', 0x6)
+// CHECK-NEXT: ('sh_addr', 0x0)
+// CHECK-NEXT: ('sh_offset', 0x40)
+// CHECK-NEXT: ('sh_size', 0x0)
+// CHECK-NEXT: ('sh_link', 0x0)
+// CHECK-NEXT: ('sh_info', 0x0)
+// CHECK-NEXT: ('sh_addralign', 0x4)
+// CHECK-NEXT: ('sh_entsize', 0x0)
-// CHECK: ('sh_name', 7) # '.data'
-// CHECK-NEXT: ('sh_type', 1)
-// CHECK-NEXT: ('sh_flags', 3)
-// CHECK-NEXT: ('sh_addr', 0)
-// CHECK-NEXT: ('sh_offset', 64)
-// CHECK-NEXT: ('sh_size', 0)
-// CHECK-NEXT: ('sh_link', 0)
-// CHECK-NEXT: ('sh_info', 0)
-// CHECK-NEXT: ('sh_addralign', 4)
-// CHECK-NEXT: ('sh_entsize', 0)
+// CHECK: ('sh_name', 0x7) # '.data'
+// CHECK-NEXT: ('sh_type', 0x1)
+// CHECK-NEXT: ('sh_flags', 0x3)
+// CHECK-NEXT: ('sh_addr', 0x0)
+// CHECK-NEXT: ('sh_offset', 0x40)
+// CHECK-NEXT: ('sh_size', 0x0)
+// CHECK-NEXT: ('sh_link', 0x0)
+// CHECK-NEXT: ('sh_info', 0x0)
+// CHECK-NEXT: ('sh_addralign', 0x4)
+// CHECK-NEXT: ('sh_entsize', 0x0)
-// CHECK: ('sh_name', 13) # '.bss'
-// CHECK-NEXT: ('sh_type', 8)
-// CHECK-NEXT: ('sh_flags', 3)
-// CHECK-NEXT: ('sh_addr', 0)
-// CHECK-NEXT: ('sh_offset', 64)
-// CHECK-NEXT: ('sh_size', 0)
-// CHECK-NEXT: ('sh_link', 0)
-// CHECK-NEXT: ('sh_info', 0)
-// CHECK-NEXT: ('sh_addralign', 4)
-// CHECK-NEXT: ('sh_entsize', 0)
+// CHECK: ('sh_name', 0xd) # '.bss'
+// CHECK-NEXT: ('sh_type', 0x8)
+// CHECK-NEXT: ('sh_flags', 0x3)
+// CHECK-NEXT: ('sh_addr', 0x0)
+// CHECK-NEXT: ('sh_offset', 0x40)
+// CHECK-NEXT: ('sh_size', 0x0)
+// CHECK-NEXT: ('sh_link', 0x0)
+// CHECK-NEXT: ('sh_info', 0x0)
+// CHECK-NEXT: ('sh_addralign', 0x4)
+// CHECK-NEXT: ('sh_entsize', 0x0)
-// CHECK: ('sh_name', 18) # '.shstrtab'
-// CHECK-NEXT: ('sh_type', 3)
-// CHECK-NEXT: ('sh_flags', 0)
-// CHECK-NEXT: ('sh_addr', 0)
-// CHECK-NEXT: ('sh_offset', 64)
-// CHECK-NEXT: ('sh_size', 44)
-// CHECK-NEXT: ('sh_link', 0)
-// CHECK-NEXT: ('sh_info', 0)
-// CHECK-NEXT: ('sh_addralign', 1)
-// CHECK-NEXT: ('sh_entsize', 0)
+// CHECK: ('sh_name', 0x12) # '.shstrtab'
+// CHECK-NEXT: ('sh_type', 0x3)
+// CHECK-NEXT: ('sh_flags', 0x0)
+// CHECK-NEXT: ('sh_addr', 0x0)
+// CHECK-NEXT: ('sh_offset', 0x40)
+// CHECK-NEXT: ('sh_size', 0x2c)
+// CHECK-NEXT: ('sh_link', 0x0)
+// CHECK-NEXT: ('sh_info', 0x0)
+// CHECK-NEXT: ('sh_addralign', 0x1)
+// CHECK-NEXT: ('sh_entsize', 0x0)
-// CHECK: ('sh_name', 28) # '.symtab'
-// CHECK-NEXT: ('sh_type', 2)
-// CHECK-NEXT: ('sh_flags', 0)
-// CHECK-NEXT: ('sh_addr', 0)
+// CHECK: ('sh_name', 0x1c) # '.symtab'
+// CHECK-NEXT: ('sh_type', 0x2)
+// CHECK-NEXT: ('sh_flags', 0x0)
+// CHECK-NEXT: ('sh_addr', 0x0)
// CHECK-NEXT: ('sh_offset',
-// CHECK-NEXT: ('sh_size', 96)
-// CHECK-NEXT: ('sh_link', 6)
-// CHECK-NEXT: ('sh_info', 4)
-// CHECK-NEXT: ('sh_addralign', 8)
-// CHECK-NEXT: ('sh_entsize', 24)
+// CHECK-NEXT: ('sh_size', 0x60)
+// CHECK-NEXT: ('sh_link', 0x6)
+// CHECK-NEXT: ('sh_info', 0x4)
+// CHECK-NEXT: ('sh_addralign', 0x8)
+// CHECK-NEXT: ('sh_entsize', 0x18)
-// CHECK: ('sh_name', 36) # '.strtab'
-// CHECK-NEXT: ('sh_type', 3)
-// CHECK-NEXT: ('sh_flags', 0)
-// CHECK-NEXT: ('sh_addr', 0)
+// CHECK: ('sh_name', 0x24) # '.strtab'
+// CHECK-NEXT: ('sh_type', 0x3)
+// CHECK-NEXT: ('sh_flags', 0x0)
+// CHECK-NEXT: ('sh_addr', 0x0)
// CHECK-NEXT: ('sh_offset',
-// CHECK-NEXT: ('sh_size', 1)
-// CHECK-NEXT: ('sh_link', 0)
-// CHECK-NEXT: ('sh_info', 0)
-// CHECK-NEXT: ('sh_addralign', 1)
-// CHECK-NEXT: ('sh_entsize', 0)
+// CHECK-NEXT: ('sh_size', 0x1)
+// CHECK-NEXT: ('sh_link', 0x0)
+// CHECK-NEXT: ('sh_info', 0x0)
+// CHECK-NEXT: ('sh_addralign', 0x1)
+// CHECK-NEXT: ('sh_entsize', 0x0)
diff --git a/test/MC/ELF/entsize.ll b/test/MC/ELF/entsize.ll
index bb289d359d..c53fcce27b 100644
--- a/test/MC/ELF/entsize.ll
+++ b/test/MC/ELF/entsize.ll
@@ -20,25 +20,25 @@ declare void @foo(i64* nocapture) nounwind
;;;;;
-; 64: (('sh_name', 18) # '.rodata.str1.1'
-; 64-NEXT: ('sh_type', 1)
-; 64-NEXT: ('sh_flags', 50)
+; 64: (('sh_name', 0x12) # '.rodata.str1.1'
+; 64-NEXT: ('sh_type', 0x1)
+; 64-NEXT: ('sh_flags', 0x32)
; 64-NEXT: ('sh_addr',
; 64-NEXT: ('sh_offset',
-; 64-NEXT: ('sh_size', 13)
+; 64-NEXT: ('sh_size', 0xd)
; 64-NEXT: ('sh_link',
; 64-NEXT: ('sh_info',
-; 64-NEXT: ('sh_addralign', 1)
-; 64-NEXT: ('sh_entsize', 1)
+; 64-NEXT: ('sh_addralign', 0x1)
+; 64-NEXT: ('sh_entsize', 0x1)
-; 64: (('sh_name', 33) # '.rodata.cst8'
-; 64-NEXT: ('sh_type', 1)
-; 64-NEXT: ('sh_flags', 18)
+; 64: (('sh_name', 0x21) # '.rodata.cst8'
+; 64-NEXT: ('sh_type', 0x1)
+; 64-NEXT: ('sh_flags', 0x12)
; 64-NEXT: ('sh_addr',
; 64-NEXT: ('sh_offset',
-; 64-NEXT: ('sh_size', 16)
+; 64-NEXT: ('sh_size', 0x10)
; 64-NEXT: ('sh_link',
; 64-NEXT: ('sh_info',
-; 64-NEXT: ('sh_addralign', 8)
-; 64-NEXT: ('sh_entsize', 8)
+; 64-NEXT: ('sh_addralign', 0x8)
+; 64-NEXT: ('sh_entsize', 0x8)
diff --git a/test/MC/ELF/entsize.s b/test/MC/ELF/entsize.s
index 0a30fde6a8..896082d6b1 100644
--- a/test/MC/ELF/entsize.s
+++ b/test/MC/ELF/entsize.s
@@ -32,38 +32,38 @@
.quad 42
.quad 42
-// CHECK: # Section 4
-// CHECK-NEXT: ('sh_name', 18) # '.rodata.str1.1'
-// CHECK-NEXT: ('sh_type', 1)
-// CHECK-NEXT: ('sh_flags', 50)
+// CHECK: # Section 0x4
+// CHECK-NEXT: ('sh_name', 0x12) # '.rodata.str1.1'
+// CHECK-NEXT: ('sh_type', 0x1)
+// CHECK-NEXT: ('sh_flags', 0x32)
// CHECK-NEXT: ('sh_addr',
// CHECK-NEXT: ('sh_offset',
-// CHECK-NEXT: ('sh_size', 13)
+// CHECK-NEXT: ('sh_size', 0xd)
// CHECK-NEXT: ('sh_link',
// CHECK-NEXT: ('sh_info',
-// CHECK-NEXT: ('sh_addralign', 1)
-// CHECK-NEXT: ('sh_entsize', 1)
+// CHECK-NEXT: ('sh_addralign', 0x1)
+// CHECK-NEXT: ('sh_entsize', 0x1)
-// CHECK: # Section 5
-// CHECK-NEXT: ('sh_name', 33) # '.rodata.str2.1'
-// CHECK-NEXT: ('sh_type', 1)
-// CHECK-NEXT: ('sh_flags', 50)
+// CHECK: # Section 0x5
+// CHECK-NEXT: ('sh_name', 0x21) # '.rodata.str2.1'
+// CHECK-NEXT: ('sh_type', 0x1)
+// CHECK-NEXT: ('sh_flags', 0x32)
// CHECK-NEXT: ('sh_addr',
// CHECK-NEXT: ('sh_offset',
-// CHECK-NEXT: ('sh_size', 16)
+// CHECK-NEXT: ('sh_size', 0x10)
// CHECK-NEXT: ('sh_link',
// CHECK-NEXT: ('sh_info',
-// CHECK-NEXT: ('sh_addralign', 1)
-// CHECK-NEXT: ('sh_entsize', 2)
+// CHECK-NEXT: ('sh_addralign', 0x1)
+// CHECK-NEXT: ('sh_entsize', 0x2)
-// CHECK: # Section 6
-// CHECK-NEXT: ('sh_name', 48) # '.rodata.cst8
-// CHECK-NEXT: ('sh_type', 1)
-// CHECK-NEXT: ('sh_flags', 18)
+// CHECK: # Section 0x6
+// CHECK-NEXT: ('sh_name', 0x30) # '.rodata.cst8
+// CHECK-NEXT: ('sh_type', 0x1)
+// CHECK-NEXT: ('sh_flags', 0x12)
// CHECK-NEXT: ('sh_addr',
// CHECK-NEXT: ('sh_offset',
-// CHECK-NEXT: ('sh_size', 16)
+// CHECK-NEXT: ('sh_size', 0x10)
// CHECK-NEXT: ('sh_link',
// CHECK-NEXT: ('sh_info',
-// CHECK-NEXT: ('sh_addralign', 1)
-// CHECK-NEXT: ('sh_entsize', 8)
+// CHECK-NEXT: ('sh_addralign', 0x1)
+// CHECK-NEXT: ('sh_entsize', 0x8)
diff --git a/test/MC/ELF/file.s b/test/MC/ELF/file.s
index 1e10531c20..26b9974eff 100644
--- a/test/MC/ELF/file.s
+++ b/test/MC/ELF/file.s
@@ -4,20 +4,20 @@
.file "foo"
foa:
-// CHECK: # Symbol 1
-// CHECK-NEXT: (('st_name', 1) # 'foo'
-// CHECK-NEXT: ('st_bind', 0)
-// CHECK-NEXT: ('st_type', 4)
-// CHECK-NEXT: ('st_other', 0)
-// CHECK-NEXT: ('st_shndx', 65521)
-// CHECK-NEXT: ('st_value', 0)
-// CHECK-NEXT: ('st_size', 0)
+// CHECK: # Symbol 0x1
+// CHECK-NEXT: (('st_name', 0x1) # 'foo'
+// CHECK-NEXT: ('st_bind', 0x0)
+// CHECK-NEXT: ('st_type', 0x4)
+// CHECK-NEXT: ('st_other', 0x0)
+// CHECK-NEXT: ('st_shndx', 0xfff1)
+// CHECK-NEXT: ('st_value', 0x0)
+// CHECK-NEXT: ('st_size', 0x0)
// CHECK-NEXT: ),
-// CHECK-NEXT: # Symbol 2
-// CHECK-NEXT: (('st_name', 5) # 'foa'
-// CHECK-NEXT: ('st_bind', 0)
-// CHECK-NEXT: ('st_type', 0)
-// CHECK-NEXT: ('st_other', 0)
-// CHECK-NEXT: ('st_shndx', 1)
-// CHECK-NEXT: ('st_value', 0)
-// CHECK-NEXT: ('st_size', 0)
+// CHECK-NEXT: # Symbol 0x2
+// CHECK-NEXT: (('st_name', 0x5) # 'foa'
+// CHECK-NEXT: ('st_bind', 0x0)
+// CHECK-NEXT: ('st_type', 0x0)
+// CHECK-NEXT: ('st_other', 0x0)
+// CHECK-NEXT: ('st_shndx', 0x1)
+// CHECK-NEXT: ('st_value', 0x0)
+// CHECK-NEXT: ('st_size', 0x0)
diff --git a/test/MC/ELF/got.s b/test/MC/ELF/got.s
index 866d25b8e0..e807ab10e2 100644
--- a/test/MC/ELF/got.s
+++ b/test/MC/ELF/got.s
@@ -6,20 +6,20 @@
movl foo@GOT, %eax
movl foo@GOTPCREL(%rip), %eax
-// CHECK: (('st_name', 5) # '_GLOBAL_OFFSET_TABLE_'
-// CHECK-NEXT: ('st_bind', 1)
+// CHECK: (('st_name', 0x5) # '_GLOBAL_OFFSET_TABLE_'
+// CHECK-NEXT: ('st_bind', 0x1)
// CHECK: ('_relocations', [
-// CHECK-NEXT: # Relocation 0
+// CHECK-NEXT: # Relocation 0x0
// CHECK-NEXT: (('r_offset',
// CHECK-NEXT: ('r_sym',
-// CHECK-NEXT: ('r_type', 3)
+// CHECK-NEXT: ('r_type', 0x3)
// CHECK-NEXT: ('r_addend',
// CHECK-NEXT: ),
-// CHECK-NEXT: # Relocation 1
+// CHECK-NEXT: # Relocation 0x1
// CHECK-NEXT: (('r_offset',
// CHECK-NEXT: ('r_sym',
-// CHECK-NEXT: ('r_type', 9)
+// CHECK-NEXT: ('r_type', 0x9)
// CHECK-NEXT: ('r_addend',
// CHECK-NEXT: ),
// CHECK-NEXT: ])
diff --git a/test/MC/ELF/local-reloc.s b/test/MC/ELF/local-reloc.s
index 30c0f68455..5d4cc25af8 100644
--- a/test/MC/ELF/local-reloc.s
+++ b/test/MC/ELF/local-reloc.s
@@ -7,24 +7,24 @@
foo:
// Section number 1 is .text
-// CHECK: # Section 1
-// CHECK-next: (('sh_name', 1) # '.text'
+// CHECK: # Section 0x1
+// CHECK-next: (('sh_name', 0x1) # '.text'
// Symbol number 2 is section number 1
-// CHECK: # Symbol 2
-// CHECK-NEXT: (('st_name', 0) # ''
-// CHECK-NEXT: ('st_bind', 0)
-// CHECK-NEXT: ('st_type', 3)
-// CHECK-NEXT: ('st_other', 0)
-// CHECK-NEXT: ('st_shndx', 1)
-// CHECK-NEXT: ('st_value', 0)
-// CHECK-NEXT: ('st_size', 0)
+// CHECK: # Symbol 0x2
+// CHECK-NEXT: (('st_name', 0x0) # ''
+// CHECK-NEXT: ('st_bind', 0x0)
+// CHECK-NEXT: ('st_type', 0x3)
+// CHECK-NEXT: ('st_other', 0x0)
+// CHECK-NEXT: ('st_shndx', 0x1)
+// CHECK-NEXT: ('st_value', 0x0)
+// CHECK-NEXT: ('st_size', 0x0)
// Relocation refers to symbol number 2
// CHECK: ('_relocations', [
-// CHECK-NEXT: # Relocation 0
+// CHECK-NEXT: # Relocation 0x0
// CHECK-NEXT: (('r_offset',
-// CHECK-NEXT: ('r_sym', 2)
+// CHECK-NEXT: ('r_sym', 0x2)
// CHECK-NEXT: ('r_type',
// CHECK-NEXT: ('r_addend',
// CHECK-NEXT: ),
diff --git a/test/MC/ELF/merge.s b/test/MC/ELF/merge.s
index f9cbc1eb79..12a9438dd7 100644
--- a/test/MC/ELF/merge.s
+++ b/test/MC/ELF/merge.s
@@ -23,75 +23,75 @@ zed:
foo:
// Section 4 is "sec1"
-// CHECK: # Section 4
-// CHECK-NEXT: (('sh_name', 18) # '.sec1'
+// CHECK: # Section 0x4
+// CHECK-NEXT: (('sh_name', 0x12) # '.sec1'
// Symbol number 1 is .Lfoo
-// CHECK: # Symbol 1
-// CHECK-NEXT: (('st_name', 1) # '.Lfoo'
+// CHECK: # Symbol 0x1
+// CHECK-NEXT: (('st_name', 0x1) # '.Lfoo'
// Symbol number 2 is foo
-// CHECK: # Symbol 2
-// CHECK-NEXT: (('st_name', 7) # 'foo'
+// CHECK: # Symbol 0x2
+// CHECK-NEXT: (('st_name', 0x7) # 'foo'
// Symbol number 6 is section 4
-// CHECK: # Symbol 6
-// CHECK-NEXT: (('st_name', 0) # ''
-// CHECK-NEXT: ('st_bind', 0)
-// CHECK-NEXT: ('st_type', 3)
-// CHECK-NEXT: ('st_other', 0)
-// CHECK-NEXT: ('st_shndx', 4)
+// CHECK: # Symbol 0x6
+// CHECK-NEXT: (('st_name', 0x0) # ''
+// CHECK-NEXT: ('st_bind', 0x0)
+// CHECK-NEXT: ('st_type', 0x3)
+// CHECK-NEXT: ('st_other', 0x0)
+// CHECK-NEXT: ('st_shndx', 0x4)
// Symbol number 8 is zed
-// CHECK: # Symbol 8
-// CHECK-NEXT: (('st_name', 11) # 'zed'
+// CHECK: # Symbol 0x8
+// CHECK-NEXT: (('st_name', 0xb) # 'zed'
// Relocation 0 refers to symbol 1
// CHECK: ('_relocations', [
// CHECK-NEXT: # Relocation 0
// CHECK-NEXT: (('r_offset',
-// CHECK-NEXT: ('r_sym', 1)
-// CHECK-NEXT: ('r_type', 2
+// CHECK-NEXT: ('r_sym', 0x1)
+// CHECK-NEXT: ('r_type', 0x2
// CHECK-NEXT: ('r_addend',
// CHECK-NEXT: ),
// Relocation 1 refers to symbol 6
-// CHECK-NEXT: # Relocation 1
+// CHECK-NEXT: # Relocation 0x1
// CHECK-NEXT: (('r_offset',
-// CHECK-NEXT: ('r_sym', 6)
-// CHECK-NEXT: ('r_type', 10)
+// CHECK-NEXT: ('r_sym', 0x6)
+// CHECK-NEXT: ('r_type', 0xa)
// CHECK-NEXT: ('r_addend',
// CHECK-NEXT: ),
// Relocation 2 refers to symbol 1
-// CHECK-NEXT: # Relocation 2
+// CHECK-NEXT: # Relocation 0x2
// CHECK-NEXT: (('r_offset',
-// CHECK-NEXT: ('r_sym', 1)
-// CHECK-NEXT: ('r_type', 10
+// CHECK-NEXT: ('r_sym', 0x1)
+// CHECK-NEXT: ('r_type', 0xa
// CHECK-NEXT: ('r_addend',
// CHECK-NEXT: ),
// Relocation 3 refers to symbol 2
-// CHECK-NEXT: # Relocation 3
+// CHECK-NEXT: # Relocation 0x3
// CHECK-NEXT: (('r_offset',
-// CHECK-NEXT: ('r_sym', 2)
-// CHECK-NEXT: ('r_type', 4
+// CHECK-NEXT: ('r_sym', 0x2)
+// CHECK-NEXT: ('r_type', 0x4
// CHECK-NEXT: ('r_addend',
// CHECK-NEXT: ),
// Relocation 4 refers to symbol 2
-// CHECK-NEXT: # Relocation 4
+// CHECK-NEXT: # Relocation 0x4
// CHECK-NEXT: (('r_offset',
-// CHECK-NEXT: ('r_sym', 2)
-// CHECK-NEXT: ('r_type', 9
+// CHECK-NEXT: ('r_sym', 0x2)
+// CHECK-NEXT: ('r_type', 0x9
// CHECK-NEXT: ('r_addend',
// CHECK-NEXT: ),
// Relocation 5 refers to symbol 8
-// CHECK-NEXT: # Relocation 5
-// CHECK-NEXT: (('r_offset', 35)
-// CHECK-NEXT: ('r_sym', 8)
-// CHECK-NEXT: ('r_type', 11)
-// CHECK-NEXT: ('r_addend', 0)
+// CHECK-NEXT: # Relocation 0x5
+// CHECK-NEXT: (('r_offset', 0x23)
+// CHECK-NEXT: ('r_sym', 0x8)
+// CHECK-NEXT: ('r_type', 0xb)
+// CHECK-NEXT: ('r_addend', 0x0)
// CHECK-NEXT: ),
// CHECK-NEXT: ])
diff --git a/test/MC/ELF/norelocation.s b/test/MC/ELF/norelocation.s
index 3e9f6e0944..6d6a9a174d 100644
--- a/test/MC/ELF/norelocation.s
+++ b/test/MC/ELF/norelocation.s
@@ -3,16 +3,16 @@
call bar
bar:
-// CHECK: ('sh_name', 1) # '.text'
-// CHECK-NEXT: ('sh_type', 1)
-// CHECK-NEXT: ('sh_flags', 6)
-// CHECK-NEXT: ('sh_addr', 0)
-// CHECK-NEXT: ('sh_offset', 64)
-// CHECK-NEXT: ('sh_size', 5)
-// CHECK-NEXT: ('sh_link', 0)
-// CHECK-NEXT: ('sh_info', 0)
-// CHECK-NEXT: ('sh_addralign', 4)
-// CHECK-NEXT: ('sh_entsize', 0)
+// CHECK: ('sh_name', 0x1) # '.text'
+// CHECK-NEXT: ('sh_type', 0x1)
+// CHECK-NEXT: ('sh_flags', 0x6)
+// CHECK-NEXT: ('sh_addr', 0x0)
+// CHECK-NEXT: ('sh_offset', 0x40)
+// CHECK-NEXT: ('sh_size', 0x5)
+// CHECK-NEXT: ('sh_link', 0x0)
+// CHECK-NEXT: ('sh_info', 0x0)
+// CHECK-NEXT: ('sh_addralign', 0x4)
+// CHECK-NEXT: ('sh_entsize', 0x0)
// CHECK-NEXT: ('_section_data', 'e8000000 00')
// CHECK-NOT: .rela.text
// CHECK: shstrtab
diff --git a/test/MC/ELF/pic-diff.s b/test/MC/ELF/pic-diff.s
index 50117d420b..176948ca7a 100644
--- a/test/MC/ELF/pic-diff.s
+++ b/test/MC/ELF/pic-diff.s
@@ -1,21 +1,21 @@
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s
-// CHECK: # Symbol 5
-// CHECK-NEXT: (('st_name', 5) # 'baz'
-// CHECK-NEXT: ('st_bind', 1)
-// CHECK-NEXT: ('st_type', 0)
-// CHECK-NEXT: ('st_other', 0)
-// CHECK-NEXT: ('st_shndx', 0)
-// CHECK-NEXT: ('st_value', 0)
-// CHECK-NEXT: ('st_size', 0)
+// CHECK: # Symbol 0x5
+// CHECK-NEXT: (('st_name', 0x5) # 'baz'
+// CHECK-NEXT: ('st_bind', 0x1)
+// CHECK-NEXT: ('st_type', 0x0)
+// CHECK-NEXT: ('st_other', 0x0)
+// CHECK-NEXT: ('st_shndx', 0x0)
+// CHECK-NEXT: ('st_value', 0x0)
+// CHECK-NEXT: ('st_size', 0x0)
// CHECK-NEXT: ),
// CHECK: ('_relocations', [
-// CHECK-NEXT: # Relocation 0
-// CHECK-NEXT: (('r_offset', 12)
-// CHECK-NEXT: ('r_sym', 5)
-// CHECK-NEXT: ('r_type', 2)
-// CHECK-NEXT: ('r_addend', 8)
+// CHECK-NEXT: # Relocation 0x0
+// CHECK-NEXT: (('r_offset', 0xc)
+// CHECK-NEXT: ('r_sym', 0x5)
+// CHECK-NEXT: ('r_type', 0x2)
+// CHECK-NEXT: ('r_addend', 0x8)
// CHECK-NEXT: ),
// CHECK-NEXT: ])
diff --git a/test/MC/ELF/plt.s b/test/MC/ELF/plt.s
index 2cbcf5a816..92d03b1d17 100644
--- a/test/MC/ELF/plt.s
+++ b/test/MC/ELF/plt.s
@@ -5,10 +5,10 @@
jmp foo@PLT
// CHECK: ('_relocations', [
-// CHECK-NEXT: # Relocation 0
+// CHECK-NEXT: # Relocation 0x0
// CHECK-NEXT: (('r_offset',
// CHECK-NEXT: ('r_sym',
-// CHECK-NEXT: ('r_type', 4)
+// CHECK-NEXT: ('r_type', 0x4)
// CHECK-NEXT: ('r_addend',
// CHECK-NEXT: ),
// CHECK-NEXT: ])
diff --git a/test/MC/ELF/relax.s b/test/MC/ELF/relax.s
index 5c5e7e30da..ed9b7dcaff 100644
--- a/test/MC/ELF/relax.s
+++ b/test/MC/ELF/relax.s
@@ -12,27 +12,27 @@ foo:
jmp bar
jmp foo
-// CHECK: ('sh_name', 1) # '.text'
-// CHECK-NEXT: ('sh_type', 1)
-// CHECK-NEXT: ('sh_flags', 6)
-// CHECK-NEXT: ('sh_addr', 0)
-// CHECK-NEXT: ('sh_offset', 64)
-// CHECK-NEXT: ('sh_size', 7)
-// CHECK-NEXT: ('sh_link', 0)
-// CHECK-NEXT: ('sh_info', 0)
-// CHECK-NEXT: ('sh_addralign', 4)
-// CHECK-NEXT: ('sh_entsize', 0)
+// CHECK: ('sh_name', 0x1) # '.text'
+// CHECK-NEXT: ('sh_type', 0x1)
+// CHECK-NEXT: ('sh_flags', 0x6)
+// CHECK-NEXT: ('sh_addr', 0x0)
+// CHECK-NEXT: ('sh_offset', 0x40)
+// CHECK-NEXT: ('sh_size', 0x7)
+// CHECK-NEXT: ('sh_link', 0x0)
+// CHECK-NEXT: ('sh_info', 0x0)
+// CHECK-NEXT: ('sh_addralign', 0x4)
+// CHECK-NEXT: ('sh_entsize', 0x0)
// CHECK-NEXT: ('_section_data', 'ebfee900 000000')
-// CHECK: # Symbol 5
-// CHECK-NEXT: (('st_name', 5) # 'foo'
+// CHECK: # Symbol 0x5
+// CHECK-NEXT: (('st_name', 0x5) # 'foo'
// CHECK: .rela.text
// CHECK: ('_relocations', [
-// CHECK-NEXT: Relocation 0
-// CHECK-NEXT: (('r_offset', 3)
-// CHECK-NEXT: ('r_sym', 5)
-// CHECK-NEXT: ('r_type', 2)
-// CHECK-NEXT: ('r_addend', -4)
+// CHECK-NEXT: Relocation 0x0
+// CHECK-NEXT: (('r_offset', 0x3)
+// CHECK-NEXT: ('r_sym', 0x5)
+// CHECK-NEXT: ('r_type', 0x2)
+// CHECK-NEXT: ('r_addend', -0x4)
// CHECK-NEXT: ),
// CHECK-NEXT: ])
diff --git a/test/MC/ELF/relocation-386.s b/test/MC/ELF/relocation-386.s
index 43a9befcec..e87c25a773 100644
--- a/test/MC/ELF/relocation-386.s
+++ b/test/MC/ELF/relocation-386.s
@@ -4,50 +4,50 @@
// to .Lfoo uses the symbol and not the section.
// Section 3 is bss
-// CHECK: # Section 3
-// CHECK-NEXT: (('sh_name', 13) # '.bss'
+// CHECK: # Section 0x3
+// CHECK-NEXT: (('sh_name', 0xd) # '.bss'
-// CHECK: # Symbol 1
-// CHECK-NEXT: (('st_name', 5) # '.Lfoo'
+// CHECK: # Symbol 0x1
+// CHECK-NEXT: (('st_name', 0x5) # '.Lfoo'
// Symbol 6 is section 3
-// CHECK: # Symbol 6
-// CHECK-NEXT: (('st_name', 0) # ''
-// CHECK-NEXT: ('st_value', 0)
-// CHECK-NEXT: ('st_size', 0)
-// CHECK-NEXT: ('st_bind', 0)
-// CHECK-NEXT: ('st_type', 3)
-// CHECK-NEXT: ('st_other', 0)
-// CHECK-NEXT: ('st_shndx', 3)
+// CHECK: # Symbol 0x6
+// CHECK-NEXT: (('st_name', 0x0) # ''
+// CHECK-NEXT: ('st_value', 0x0)
+// CHECK-NEXT: ('st_size', 0x0)
+// CHECK-NEXT: ('st_bind', 0x0)
+// CHECK-NEXT: ('st_type', 0x3)
+// CHECK-NEXT: ('st_other', 0x0)
+// CHECK-NEXT: ('st_shndx', 0x3)
-// CHECK: # Relocation 0
-// CHECK-NEXT: (('r_offset', 2)
-// CHECK-NEXT: ('r_sym', 1)
-// CHECK-NEXT: ('r_type', 9)
+// CHECK: # Relocation 0x0
+// CHECK-NEXT: (('r_offset', 0x2)
+// CHECK-NEXT: ('r_sym', 0x1)
+// CHECK-NEXT: ('r_type', 0x9)
// CHECK-NEXT: ),
-// CHECK-NEXT: # Relocation 1
+// CHECK-NEXT: # Relocation 0x1
// CHECK-NEXT: (('r_offset',
// CHECK-NEXT: ('r_sym',
-// CHECK-NEXT: ('r_type', 4)
+// CHECK-NEXT: ('r_type', 0x4)
// CHECK-NEXT: ),
-// CHECK-NEXT: # Relocation 2
+// CHECK-NEXT: # Relocation 0x2
// CHECK-NEXT: (('r_offset',
// CHECK-NEXT: ('r_sym',
-// CHECK-NEXT: ('r_type', 10)
+// CHECK-NEXT: ('r_type', 0xa)
// CHECK-NEXT: ),
// Relocation 3 (bar3@GOTOFF) is done with symbol 6 (bss)
-// CHECK-NEXT: # Relocation 3
+// CHECK-NEXT: # Relocation 0x3
// CHECK-NEXT: (('r_offset',
-// CHECK-NEXT: ('r_sym', 6
+// CHECK-NEXT: ('r_sym', 0x6
// CHECK-NEXT: ('r_type',
// CHECK-NEXT: ),
// Relocation 4 (bar2@GOT) is of type R_386_GOT32
-// CHECK-NEXT: # Relocation 4
+// CHECK-NEXT: # Relocation 0x4
// CHECK-NEXT: (('r_offset',
// CHECK-NEXT: ('r_sym',
-// CHECK-NEXT: ('r_type', 3
+// CHECK-NEXT: ('r_type', 0x3
// CHECK-NEXT: ),
.text
diff --git a/test/MC/ELF/relocation.s b/test/MC/ELF/relocation.s
index 45c863e6de..265c7f72ae 100644
--- a/test/MC/ELF/relocation.s
+++ b/test/MC/ELF/relocation.s
@@ -10,48 +10,48 @@ bar:
movq bar, %rdx // R_X86_64_32S
.long bar // R_X86_64_32
-// CHECK: # Section 1
-// CHECK: (('sh_name', 1) # '.text'
-
-// CHECK: # Symbol 2
-// CHECK: (('st_name', 0) # ''
-// CHECK: ('st_bind', 0)
-// CHECK ('st_type', 3)
-// CHECK: ('st_other', 0)
-// CHECK: ('st_shndx', 1)
-
-// CHECK: # Relocation 0
-// CHECK-NEXT: (('r_offset', 1)
-// CHECK-NEXT: ('r_sym', 2)
-// CHECK-NEXT: ('r_type', 10)
+// CHECK: # Section 0x1
+// CHECK: (('sh_name', 0x1) # '.text'
+
+// CHECK: # Symbol 0x2
+// CHECK: (('st_name', 0x0) # ''
+// CHECK: ('st_bind', 0x0)
+// CHECK ('st_type', 0x3)
+// CHECK: ('st_other', 0x0)
+// CHECK: ('st_shndx', 0x1)
+
+// CHECK: # Relocation 0x0
+// CHECK-NEXT: (('r_offset', 0x1)
+// CHECK-NEXT: ('r_sym', 0x2)
+// CHECK-NEXT: ('r_type', 0xa)
// CHECK-NEXT: ('r_addend',
-// CHECK: # Relocation 1
-// CHECK-NEXT: (('r_offset', 8)
-// CHECK-NEXT: ('r_sym', 2)
-// CHECK-NEXT: ('r_type', 11)
+// CHECK: # Relocation 0x1
+// CHECK-NEXT: (('r_offset', 0x8)
+// CHECK-NEXT: ('r_sym', 0x2)
+// CHECK-NEXT: ('r_type', 0xb)
// CHECK-NEXT: ('r_addend',
-// CHECK: # Relocation 2
-// CHECK-NEXT: (('r_offset', 19)
-// CHECK-NEXT: ('r_sym', 2)
-// CHECK-NEXT: ('r_type', 11)
+// CHECK: # Relocation 0x2
+// CHECK-NEXT: (('r_offset', 0x13)
+// CHECK-NEXT: ('r_sym', 0x2)
+// CHECK-NEXT: ('r_type', 0xb)
// CHECK-NEXT: ('r_addend',
-// CHECK: # Relocation 3
-// CHECK-NEXT: (('r_offset', 26)
-// CHECK-NEXT: ('r_sym', 2)
-// CHECK-NEXT: ('r_type', 11)
+// CHECK: # Relocation 0x3
+// CHECK-NEXT: (('r_offset', 0x1a)
+// CHECK-NEXT: ('r_sym', 0x2)
+// CHECK-NEXT: ('r_type', 0xb)
// CHECK-NEXT: ('r_addend',
-// CHECK: # Relocation 4
-// CHECK-NEXT: (('r_offset', 34)
-// CHECK-NEXT: ('r_sym', 2)
-// CHECK-NEXT: ('r_type', 11)
+// CHECK: # Relocation 0x4
+// CHECK-NEXT: (('r_offset', 0x22)
+// CHECK-NEXT: ('r_sym', 0x2)
+// CHECK-NEXT: ('r_type', 0xb)
// CHECK-NEXT: ('r_addend',
-// CHECK: # Relocation 5
-// CHECK-NEXT: (('r_offset', 38)
-// CHECK-NEXT: ('r_sym', 2)
-// CHECK-NEXT: ('r_type', 10)
+// CHECK: # Relocation 0x5
+// CHECK-NEXT: (('r_offset', 0x26)
+// CHECK-NEXT: ('r_sym', 0x2)
+// CHECK-NEXT: ('r_type', 0xa)
// CHECK-NEXT: ('r_addend',
diff --git a/test/MC/ELF/section.s b/test/MC/ELF/section.s
index 4622cb4159..e5a8e279d9 100644
--- a/test/MC/ELF/section.s
+++ b/test/MC/ELF/section.s
@@ -6,6 +6,6 @@
.section .note.GNU-,"",@progbits
.section -.note.GNU,"",@progbits
-// CHECK: ('sh_name', 18) # '.note.GNU-stack'
-// CHECK: ('sh_name', 34) # '.note.GNU-'
-// CHECK: ('sh_name', 45) # '-.note.GNU'
+// CHECK: ('sh_name', 0x12) # '.note.GNU-stack'
+// CHECK: ('sh_name', 0x22) # '.note.GNU-'
+// CHECK: ('sh_name', 0x2d) # '-.note.GNU'
diff --git a/test/MC/ELF/size.s b/test/MC/ELF/size.s
index a19bce08f1..c5f5222e26 100644
--- a/test/MC/ELF/size.s
+++ b/test/MC/ELF/size.s
@@ -2,8 +2,8 @@
// Mostly a test that this doesn't crash anymore.
-// CHECK: # Symbol 4
-// CHECK-NEXT: (('st_name', 1) # 'foo'
-// CHECK-NEXT: ('st_bind', 1)
+// CHECK: # Symbol 0x4
+// CHECK-NEXT: (('st_name', 0x1) # 'foo'
+// CHECK-NEXT: ('st_bind', 0x1)
.size foo, .Lbar-foo
diff --git a/test/MC/ELF/sleb.s b/test/MC/ELF/sleb.s
index c3e471f625..99631bfb4f 100644
--- a/test/MC/ELF/sleb.s
+++ b/test/MC/ELF/sleb.s
@@ -19,9 +19,9 @@ foo:
.sleb128 8193
-// ELF_32: ('sh_name', 1) # '.text'
+// ELF_32: ('sh_name', 0x1) # '.text'
// ELF_32: ('_section_data', '00017f3f 40c000bf 7fff3f80 4081c000')
-// ELF_64: ('sh_name', 1) # '.text'
+// ELF_64: ('sh_name', 0x1) # '.text'
// ELF_64: ('_section_data', '00017f3f 40c000bf 7fff3f80 4081c000')
// MACHO_32: ('section_name', '__text\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
// MACHO_32: ('_section_data', '00017f3f 40c000bf 7fff3f80 4081c000')
diff --git a/test/MC/ELF/uleb.s b/test/MC/ELF/uleb.s
index d8d1727af7..80e48b36db 100644
--- a/test/MC/ELF/uleb.s
+++ b/test/MC/ELF/uleb.s
@@ -12,9 +12,9 @@ foo:
.uleb128 16383
.uleb128 16384
-// ELF_32: ('sh_name', 1) # '.text'
+// ELF_32: ('sh_name', 0x1) # '.text'
// ELF_32: ('_section_data', '00017f80 01ff7f80 8001')
-// ELF_64: ('sh_name', 1) # '.text'
+// ELF_64: ('sh_name', 0x1) # '.text'
// ELF_64: ('_section_data', '00017f80 01ff7f80 8001')
// MACHO_32: ('section_name', '__text\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
// MACHO_32: ('_section_data', '00017f80 01ff7f80 8001')
diff --git a/test/MC/ELF/undef.s b/test/MC/ELF/undef.s
index 1f6a52bffe..9c2564f865 100644
--- a/test/MC/ELF/undef.s
+++ b/test/MC/ELF/undef.s
@@ -19,27 +19,27 @@
movsd .Lsym8(%rip), %xmm1
// CHECK: ('_symbols', [
-// CHECK-NEXT: # Symbol 0
-// CHECK-NEXT: (('st_name', 0) # ''
-// CHECK: # Symbol 1
-// CHECK-NEXT: (('st_name', 13) # '.Lsym8'
-// CHECK: # Symbol 2
-// CHECK-NEXT: (('st_name', 0) # ''
-// CHECK: # Symbol 3
-// CHECK-NEXT: (('st_name', 0) # ''
-// CHECK: # Symbol 4
-// CHECK-NEXT: (('st_name', 0) # ''
-// CHECK: # Symbol 5
-// CHECK-NEXT: (('st_name', 0) # ''
-// CHECK: # Symbol 6
-// CHECK-NEXT: (('st_name', 1) # '.Lsym1'
-// CHECK: # Symbol 7
-// CHECK-NEXT: (('st_name', 8) # 'sym6'
-// CHECK-NEXT: ('st_bind', 1)
-// CHECK-NEXT: ('st_type', 1)
-// CHECK-NEXT: ('st_other', 0)
-// CHECK-NEXT: ('st_shndx', 0)
-// CHECK-NEXT: ('st_value', 0)
-// CHECK-NEXT: ('st_size', 0)
+// CHECK-NEXT: # Symbol 0x0
+// CHECK-NEXT: (('st_name', 0x0) # ''
+// CHECK: # Symbol 0x1
+// CHECK-NEXT: (('st_name', 0xd) # '.Lsym8'
+// CHECK: # Symbol 0x2
+// CHECK-NEXT: (('st_name', 0x0) # ''
+// CHECK: # Symbol 0x3
+// CHECK-NEXT: (('st_name', 0x0) # ''
+// CHECK: # Symbol 0x4
+// CHECK-NEXT: (('st_name', 0x0) # ''
+// CHECK: # Symbol 0x5
+// CHECK-NEXT: (('st_name', 0x0) # ''
+// CHECK: # Symbol 0x6
+// CHECK-NEXT: (('st_name', 0x1) # '.Lsym1'
+// CHECK: # Symbol 0x7
+// CHECK-NEXT: (('st_name', 0x8) # 'sym6'
+// CHECK-NEXT: ('st_bind', 0x1)
+// CHECK-NEXT: ('st_type', 0x1)
+// CHECK-NEXT: ('st_other', 0x0)
+// CHECK-NEXT: ('st_shndx', 0x0)
+// CHECK-NEXT: ('st_value', 0x0)
+// CHECK-NEXT: ('st_size', 0x0)
// CHECK-NEXT: ),
// CHECK-NEXT: ])
diff --git a/test/MC/ELF/undef2.s b/test/MC/ELF/undef2.s
index 764f1d7bd3..a02b8b19eb 100644
--- a/test/MC/ELF/undef2.s
+++ b/test/MC/ELF/undef2.s
@@ -5,6 +5,6 @@
je .Lfoo
// CHECK: ('_symbols', [
-// CHECK: (('st_name', 1) # '.Lfoo'
-// CHECK-NEXT: ('st_bind', 1)
-// CHECK: (('sh_name', 36) # '.strtab'
+// CHECK: (('st_name', 0x1) # '.Lfoo'
+// CHECK-NEXT: ('st_bind', 0x1)
+// CHECK: (('sh_name', 0x24) # '.strtab'
diff --git a/test/MC/ELF/weak.s b/test/MC/ELF/weak.s
index 0b93a87118..7f1abd9c51 100644
--- a/test/MC/ELF/weak.s
+++ b/test/MC/ELF/weak.s
@@ -9,22 +9,22 @@
.weak bar
bar:
-//CHECK: # Symbol 4
-//CHECK-NEXT: (('st_name', 5) # 'bar'
-//CHECK-NEXT: ('st_bind', 2)
-//CHECK-NEXT: ('st_type', 0)
-//CHECK-NEXT: ('st_other', 0)
-//CHECK-NEXT: ('st_shndx', 1)
-//CHECK-NEXT: ('st_value', 0)
-//CHECK-NEXT: ('st_size', 0)
+//CHECK: # Symbol 0x4
+//CHECK-NEXT: (('st_name', 0x5) # 'bar'
+//CHECK-NEXT: ('st_bind', 0x2)
+//CHECK-NEXT: ('st_type', 0x0)
+//CHECK-NEXT: ('st_other', 0x0)
+//CHECK-NEXT: ('st_shndx', 0x1)
+//CHECK-NEXT: ('st_value', 0x0)
+//CHECK-NEXT: ('st_size', 0x0)
//CHECK-NEXT: ),
-//CHECK-NEXT: # Symbol 5
-//CHECK: (('st_name', 1) # 'foo'
-//CHECK-NEXT: ('st_bind', 2)
-//CHECK-NEXT: ('st_type', 0)
-//CHECK-NEXT: ('st_other', 0)
-//CHECK-NEXT: ('st_shndx', 0)
-//CHECK-NEXT: ('st_value', 0)
-//CHECK-NEXT: ('st_size', 0)
+//CHECK-NEXT: # Symbol 0x5
+//CHECK: (('st_name', 0x1) # 'foo'
+//CHECK-NEXT: ('st_bind', 0x2)
+//CHECK-NEXT: ('st_type', 0x0)
+//CHECK-NEXT: ('st_other', 0x0)
+//CHECK-NEXT: ('st_shndx', 0x0)
+//CHECK-NEXT: ('st_value', 0x0)
+//CHECK-NEXT: ('st_size', 0x0)
//CHECK-NEXT: ),
//CHECK-NEXT: ])
diff --git a/test/MC/ELF/zero.s b/test/MC/ELF/zero.s
index a7518e1e4f..77223c3ca8 100644
--- a/test/MC/ELF/zero.s
+++ b/test/MC/ELF/zero.s
@@ -3,14 +3,14 @@
.zero 4
.zero 1,42
-// CHECK: ('sh_name', 1) # '.text'
-// CHECK: ('sh_type', 1)
-// CHECK: ('sh_flags', 6)
-// CHECK: ('sh_addr', 0)
-// CHECK: ('sh_offset', 64)
-// CHECK: ('sh_size', 5)
-// CHECK: ('sh_link', 0)
-// CHECK: ('sh_info', 0)
-// CHECK: ('sh_addralign', 4)
-// CHECK: ('sh_entsize', 0)
+// CHECK: ('sh_name', 0x1) # '.text'
+// CHECK: ('sh_type', 0x1)
+// CHECK: ('sh_flags', 0x6)
+// CHECK: ('sh_addr', 0x0)
+// CHECK: ('sh_offset', 0x40)
+// CHECK: ('sh_size', 0x5)
+// CHECK: ('sh_link', 0x0)
+// CHECK: ('sh_info', 0x0)
+// CHECK: ('sh_addralign', 0x4)
+// CHECK: ('sh_entsize', 0x0)
// CHECK: ('_section_data', '00000000 2a')