diff options
author | Jason W Kim <jason.w.kim.2009@gmail.com> | 2010-10-19 17:39:10 +0000 |
---|---|---|
committer | Jason W Kim <jason.w.kim.2009@gmail.com> | 2010-10-19 17:39:10 +0000 |
commit | e8b3711ae917468879564c1d7d5b4dc1ffeb78a4 (patch) | |
tree | f0344a3ae79bbba28c1b8d5c05bf937e0d4fb63e /llvm/test/MC/ELF/got.s | |
parent | 63a9e14164e5fd51d252b67fa0d0bb0243b84a32 (diff) | |
download | bcm5719-llvm-e8b3711ae917468879564c1d7d5b4dc1ffeb78a4.tar.gz bcm5719-llvm-e8b3711ae917468879564c1d7d5b4dc1ffeb78a4.zip |
Fixing r116753 r116756 r116777
The failures in r116753 r116756 were caused by a python issue -
Python likes to append 'L' suffix to stringified numbers if the number
is larger than a machine int. Unfortunately, this causes a divergence of
behavior between 32 and 64 bit python versions.
I re-crafted elf-dump/common_dump to take care of these issues by:
1. always printing 0x (makes for easy sed/regex)
2. always print fixed length (exactly 2 + numBits/4 digits long)
by mod ((2^numBits) - 1)
3. left-padded with '0'
There is a residual common routine that is also used by
macho-dump (dataToHex) , so I left the 'section_data' test values alone.
llvm-svn: 116823
Diffstat (limited to 'llvm/test/MC/ELF/got.s')
-rw-r--r-- | llvm/test/MC/ELF/got.s | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/test/MC/ELF/got.s b/llvm/test/MC/ELF/got.s index 866d25b8e05..798150e0f5f 100644 --- a/llvm/test/MC/ELF/got.s +++ b/llvm/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', 0x00000005) # '_GLOBAL_OFFSET_TABLE_' +// CHECK-NEXT: ('st_bind', 0x00000001) // CHECK: ('_relocations', [ -// CHECK-NEXT: # Relocation 0 +// CHECK-NEXT: # Relocation 0x00000000 // CHECK-NEXT: (('r_offset', // CHECK-NEXT: ('r_sym', -// CHECK-NEXT: ('r_type', 3) +// CHECK-NEXT: ('r_type', 0x00000003) // CHECK-NEXT: ('r_addend', // CHECK-NEXT: ), -// CHECK-NEXT: # Relocation 1 +// CHECK-NEXT: # Relocation 0x00000001 // CHECK-NEXT: (('r_offset', // CHECK-NEXT: ('r_sym', -// CHECK-NEXT: ('r_type', 9) +// CHECK-NEXT: ('r_type', 0x00000009) // CHECK-NEXT: ('r_addend', // CHECK-NEXT: ), // CHECK-NEXT: ]) |