[llvm] r175592 - [llvm-readobj] Add ELF .dynamic table dumping.
Dmitri Gribenko
gribozavr at gmail.com
Thu Feb 21 06:32:44 PST 2013
On Wed, Feb 20, 2013 at 4:37 AM, Michael J. Spencer
<bigcheesegs at gmail.com> wrote:
> Modified: llvm/trunk/test/Object/readobj-shared-object.test
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Object/readobj-shared-object.test?rev=175592&r1=175591&r2=175592&view=diff
> ==============================================================================
> --- llvm/trunk/test/Object/readobj-shared-object.test (original)
> +++ llvm/trunk/test/Object/readobj-shared-object.test Tue Feb 19 20:37:12 2013
This test started to fail for me on ARM. The failing RUN line is:
./Release+Asserts/bin/llvm-readobj
/home/grib/clang/llvm/test/Object/Inputs/shared-object-test.elf-x86-64
| /home/grib/clang/llvm-build-armhf/Release+Asserts/bin/FileCheck
/home/grib/clang/llvm/test/Object/readobj-shared-object.test
-check-prefix ELF
Attached is the output I get (it is truncated, there are ~8000 more
lines with garbage in the first column).
Dmitri
--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
-------------- next part --------------
File Format : ELF64-x86-64
Arch : x86_64
Address Size: 64 bits
Load Name : libfoo.so
Symbols:
Name Type Address Size FileOffset Flags
.hash DBG 158 0 158 formatspecific
.dynsym DBG 198 0 198 formatspecific
.dynstr DBG 288 0 288 formatspecific
.text DBG 2f0 0 2f0 formatspecific
.eh_frame DBG 308 0 308 formatspecific
.tdata DBG 200350 0 350 formatspecific
.dynamic DBG 200358 0 358 formatspecific
.got.plt DBG 200438 0 438 formatspecific
.data DBG 200450 0 450 formatspecific
.bss DBG 200454 0 454 formatspecific
shared.ll FILE 0 0 0 absolute,formatspecific
local_func FUNC 300 3 5f0
_GLOBAL_OFFSET_TABLE_ DATA 200438 0 200438 absolute
_DYNAMIC DATA 200358 0 200358 absolute
common_sym DATA 200454 4 2008a8 global
tls_sym DATA ffffffffffffffff 4 ffffffffffffffff global,threadlocal
defined_sym DATA 200450 4 2008a0 global
__bss_start ? 200454 0 200454 global,absolute
_end ? 200458 0 200458 global,absolute
global_func FUNC 2f0 3 5e0 global
_edata ? 200454 0 200454 global,absolute
Total: 21
Dynamic Symbols:
Name Type Address Size FileOffset Flags
.text DBG 2f0 0 2f0 formatspecific
.tdata DBG 200350 0 350 formatspecific
common_sym DATA 200454 4 2008a8 global
tls_sym DATA ffffffffffffffff 4 ffffffffffffffff global,threadlocal
defined_sym DATA 200450 4 2008a0 global
__bss_start ? 200454 0 200454 global,absolute
_end ? 200458 0 200458 global,absolute
global_func FUNC 2f0 3 5e0 global
_edata ? 200454 0 200454 global,absolute
Total: 9
Sections:
Name Address Size Align Flags
0 0 0 rodata
.hash 158 3c 8 required,rodata
.dynsym 198 f0 8 required,rodata
.dynstr 288 62 1 required,rodata
.text 2f0 13 10 text,data,required
.eh_frame 308 48 8 data,required,rodata
.tdata 200350 4 4 data,required
.dynamic 200358 e0 8 required
.got.plt 200438 18 8 data,required
.data 200450 4 4 data,required
.bss 200454 4 4 bss,required,virtual,zeroinit
.shstrtab 0 65 1 rodata
.symtab 0 210 8 rodata
.strtab 0 78 1 rodata
Total: 14
Tag Type Name/Value
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
0x0000000000000001 (NEEDED) Shared library: [libm.so.6]
0x000000000000000e (SONAME) Library soname: [libfoo.so]
0x0000000000000004 (HASH) 0x158
0x0000000000000005 (STRTAB) 0x288
0x0000000000000006 (SYMTAB) 0x198
0x000000000000000a (STRSZ) 98 (bytes)
0x000000000000000b (SYMENT) 24 (bytes)
0x0000000000000000 (NULL) 0x0
0x0000000000000000 (NULL) 0x0
0x0000000000000000 (NULL) 0x0
0x0000000000000000 (NULL) 0x0
0x0000000000000000 (NULL) 0x0
0x0000000000000000 (NULL) 0x0
0x0000000000200358 unknown
0x0000000000000000 (NULL) 0x79732e0000000001
0x74732e006261746d unknown
0x2e00626174727473 unknown
0x79642e006d79736e unknown
0x665f68652e007478 unknown
0x6e79642e00617461 unknown
0x642e00746c702e74 unknown
0x0000000000000000 (NULL) 0x0
0x0000000000000000 (NULL) 0x0
0x0000000000000000 (NULL) 0x0
0x0000000000000000 (NULL) 0x0
0x0000000000000000 (NULL) 0x50000001b
0x0000000000000002 (PLTRELSZ) 344 (bytes)
0x0000000000000158 unknown
0x0000000000000002 (PLTRELSZ) 8 (bytes)
0x0000000000000004 (HASH) 0xb00000021
0x0000000000000002 (PLTRELSZ) 408 (bytes)
0x0000000000000198 unknown
0x0000000300000003 unknown
0x0000000000000018 (BIND_NOW)
0x0000000000000002 (PLTRELSZ) 648 (bytes)
0x0000000000000288 unknown
0x0000000000000000 (NULL) 0x1
0x0000000000000000 (NULL) 0x100000031
0x0000000000000006 (SYMTAB) 0x2f0
0x00000000000002f0 unknown
0x0000000000000000 (NULL) 0x10
0x0000000000000000 (NULL) 0x100000037
0x0000000000000002 (PLTRELSZ) 776 (bytes)
0x0000000000000308 unknown
0x0000000000000000 (NULL) 0x8
0x0000000000000000 (NULL) 0x100000041
0x0000000000000403 unknown
0x0000000000000350 unknown
0x0000000000000000 (NULL) 0x4
0x0000000000000000 (NULL) 0x600000048
0x0000000000000003 (PLTGOT) 0x200358
0x0000000000000358 unknown
0x0000000000000003 (PLTGOT) 0x8
0x0000000000000010 (SYMBOLIC)
0x0000000000000003 (PLTGOT) 0x200438
0x0000000000000438 unknown
0x0000000000000000 (NULL) 0x8
0x0000000000000008 (RELASZ) 4294967386 (bytes)
0x0000000000000003 (PLTGOT) 0x200450
0x0000000000000450 unknown
0x0000000000000000 (NULL) 0x4
0x0000000000000000 (NULL) 0x800000060
0x0000000000000003 (PLTGOT) 0x200454
0x0000000000000454 unknown
0x0000000000000000 (NULL) 0x4
0x0000000000000000 (NULL) 0x300000011
0x0000000000000000 (NULL) 0x0
0x0000000000000454 unknown
0x0000000000000000 (NULL) 0x1
0x0000000000000000 (NULL) 0x200000001
0x0000000000000000 (NULL) 0x0
0x0000000000000840 unknown
0x0000000f0000000d unknown
0x0000000000000018 (BIND_NOW)
0x0000000000000000 (NULL) 0x0
0x0000000000000a50 unknown
0x0000000000000000 (NULL) 0x1
0x0000000000000000 (NULL) 0x0
0x0000000000000000 (NULL) 0x0
0x0001000300000000 unknown
0x0000000000000000 (NULL) 0x2000300000000
0x0000000000000198 unknown
0x0003000300000000 unknown
0x0000000000000000 (NULL) 0x4000300000000
0x00000000000002f0 unknown
0x0005000300000000 unknown
0x0000000000000000 (NULL) 0x6000300000000
0x0000000000200350 unknown
0x0007000300000000 unknown
0x0000000000000000 (NULL) 0x8000300000000
0x0000000000200438 unknown
0x0009000300000000 unknown
0x0000000000000000 (NULL) 0xa000300000000
0x0000000000200454 unknown
0xfff1000400000001 unknown
0x0000000000000000 (NULL) 0x400020000000b
0x0000000000000300 unknown
0xfff1020100000016 unknown
0x0000000000000000 (NULL) 0xfff102010000002c
0x0000000000200358 unknown
0x000a001100000035 unknown
0x0000000000000004 (HASH) 0x6001600000040
0x0000000000000000 (NULL) 0x4
0x0009001100000048 unknown
0x0000000000000004 (HASH) 0xfff1001000000054
0x0000000000200454 unknown
0xfff1001000000060 unknown
0x0000000000000000 (NULL) 0x4001200000065
0x00000000000002f0 unknown
0xfff1001000000071 unknown
0x0000000000000000 (NULL) 0x2e64657261687300
0x6c61636f6c006c6c unknown
0x464f5f4c41424f4c unknown
0x4e59445f005f454c unknown
0x006d79735f6e6f6d unknown
0x5f64656e69666564 unknown
0x0074726174735f73 unknown
0x636e75665f6c6162 unknown
0x0000000000000000 (NULL) 0xffffffff00000209
0xffffffff00000000 unknown
0xffffffff00000000 unknown
0xffffffff00000000 unknown
0xffffffff00000000 unknown
0xffffffff00000000 unknown
0xffffffff00000000 unknown
0xffffffff00000000 unknown
0xffffffff00000000 unknown
0xffffffff00000000 unknown
0xffffffff00000000 unknown
0xffffffff00000000 unknown
0xffffffff00000000 unknown
0xffffffff00000000 unknown
0xffffffff00000000 unknown
0xffffffff00000000 unknown
0xffffffff00000000 unknown
0xffffffff00000000 unknown
0xffffffff00000000 unknown
0xffffffff00000000 unknown
0xffffffff00000000 unknown
0xffffffff00000000 unknown
0xffffffff00000000 unknown
0xffffffff00000000 unknown
0xffffffff00000000 unknown
0xffffffff00000000 unknown
0xffffffff00000000 unknown
0xffffffff00000000 unknown
0xffffffff00000000 unknown
0xffffffff00000000 unknown
0xffffffff00000000 unknown
0xffffffff00000001 unknown
0xffffffff00000000 unknown
0x3030303000001009 unknown
0x20202020294c4c55 unknown
0x200a347830202020 unknown
0x3030303030303030 unknown
0x2020202020202029 unknown
0x3030303030337830 unknown
0x3030303030303030 unknown
0x2020294c4c554e28 unknown
More information about the llvm-commits
mailing list