Advertisement
Guest User

The first file is work, the second triggers an error.

a guest
Jul 7th, 2014
365
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 32.81 KB | None | 0 0
  1. $cat /tmp/OkayFile
  2. ELF Header:
  3.   Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
  4.   Class:                             ELF32
  5.   Data:                              2's complement, little endian
  6.  Version:                           1 (current)
  7.  OS/ABI:                            UNIX - System V
  8.  ABI Version:                       0
  9.  Type:                              EXEC (Executable file)
  10.  Machine:                           ARM
  11.  Version:                           0x1
  12.  Entry point address:               0x83ec
  13.  Start of program headers:          52 (bytes into file)
  14.  Start of section headers:          4544 (bytes into file)
  15.  Flags:                             0x5000202, has entry point, Version5 EABI, soft-float ABI
  16.  Size of this header:               52 (bytes)
  17.  Size of program headers:           32 (bytes)
  18.  Number of program headers:         9
  19.  Size of section headers:           40 (bytes)
  20.  Number of section headers:         31
  21.  Section header string table index: 28
  22.  
  23. Section Headers:
  24.  [Nr] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
  25.  [ 0]                   NULL            00000000 000000 000000 00      0   0  0
  26.  [ 1] .interp           PROGBITS        00008154 000154 000013 00   A  0   0  1
  27.  [ 2] .note.ABI-tag     NOTE            00008168 000168 000020 00   A  0   0  4
  28.  [ 3] .note.gnu.build-id NOTE            00008188 000188 000024 00   A  0   0  4
  29.  [ 4] .gnu.hash         GNU_HASH        000081ac 0001ac 00002c 04   A  5   0  4
  30.  [ 5] .dynsym           DYNSYM          000081d8 0001d8 000090 10   A  6   1  4
  31.  [ 6] .dynstr           STRTAB          00008268 000268 0000b8 00   A  0   0  1
  32.  [ 7] .gnu.version      VERSYM          00008320 000320 000012 02   A  5   0  2
  33.  [ 8] .gnu.version_r    VERNEED         00008334 000334 000040 00   A  6   2  4
  34.  [ 9] .rel.dyn          REL             00008374 000374 000008 08   A  5   0  4
  35.  [10] .rel.plt          REL             0000837c 00037c 000020 08   A  5  12  4
  36.  [11] .init             PROGBITS        0000839c 00039c 00000c 00  AX  0   0  4
  37.  [12] .plt              PROGBITS        000083a8 0003a8 000044 04  AX  0   0  4
  38.  [13] .text             PROGBITS        000083ec 0003ec 0001cc 00  AX  0   0  4
  39.  [14] .fini             PROGBITS        000085b8 0005b8 000008 00  AX  0   0  4
  40.  [15] .rodata           PROGBITS        000085c0 0005c0 000014 00   A  0   0  4
  41.  [16] .ARM.extab        PROGBITS        000085d4 0005d4 00000c 00   A  0   0  4
  42.  [17] .ARM.exidx        ARM_EXIDX       000085e0 0005e0 000018 00  AL 13   0  4
  43.  [18] .eh_frame         PROGBITS        000085f8 0005f8 000004 00   A  0   0  4
  44.  [19] .init_array       INIT_ARRAY      00010f04 000f04 000004 00  WA  0   0  4
  45.  [20] .fini_array       FINI_ARRAY      00010f08 000f08 000004 00  WA  0   0  4
  46.  [21] .jcr              PROGBITS        00010f0c 000f0c 000004 00  WA  0   0  4
  47.  [22] .dynamic          DYNAMIC         00010f10 000f10 0000f0 08  WA  6   0  4
  48.  [23] .got              PROGBITS        00011000 001000 000020 04  WA  0   0  4
  49.  [24] .data             PROGBITS        00011020 001020 000008 00  WA  0   0  4
  50.  [25] .bss              NOBITS          00011028 001028 000004 00  WA  0   0  1
  51.  [26] .comment          PROGBITS        00000000 001028 000054 01  MS  0   0  1
  52.  [27] .ARM.attributes   ARM_ATTRIBUTES  00000000 00107c 00002f 00      0   0  1
  53.  [28] .shstrtab         STRTAB          00000000 0010ab 000115 00      0   0  1
  54.  [29] .symtab           SYMTAB          00000000 001698 000710 10     30  87  4
  55.  [30] .strtab           STRTAB          00000000 001da8 0003bc 00      0   0  1
  56. Key to Flags:
  57.  W (write), A (alloc), X (execute), M (merge), S (strings)
  58.  I (info), L (link order), G (group), T (TLS), E (exclude), x (unknown)
  59.  O (extra OS processing required) o (OS specific), p (processor specific)
  60.  
  61. There are no section groups in this file.
  62.  
  63. Program Headers:
  64.  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  65.  EXIDX          0x0005e0 0x000085e0 0x000085e0 0x00018 0x00018 R   0x4
  66.  PHDR           0x000034 0x00008034 0x00008034 0x00120 0x00120 R E 0x4
  67.  INTERP         0x000154 0x00008154 0x00008154 0x00013 0x00013 R   0x1
  68.      [Requesting program interpreter: /lib/ld-linux.so.3]
  69.  LOAD           0x000000 0x00008000 0x00008000 0x005fc 0x005fc R E 0x8000
  70.  LOAD           0x000f04 0x00010f04 0x00010f04 0x00124 0x00128 RW  0x8000
  71.  DYNAMIC        0x000f10 0x00010f10 0x00010f10 0x000f0 0x000f0 RW  0x4
  72.  NOTE           0x000168 0x00008168 0x00008168 0x00044 0x00044 R   0x4
  73.  GNU_STACK      0x000000 0x00000000 0x00000000 0x00000 0x00000 RW  0x10
  74.  GNU_RELRO      0x000f04 0x00010f04 0x00010f04 0x000fc 0x000fc R   0x1
  75.  
  76. Section to Segment mapping:
  77.  Segment Sections...
  78.   00     .ARM.exidx
  79.   01    
  80.   02     .interp
  81.   03     .interp .note.ABI-tag .note.gnu.build-id .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rel.dyn .rel.plt .init .plt .text .fini .rodata .ARM.extab .ARM.exidx .eh_frame
  82.   04     .init_array .fini_array .jcr .dynamic .got .data .bss
  83.   05     .dynamic
  84.   06     .note.ABI-tag .note.gnu.build-id
  85.   07    
  86.   08     .init_array .fini_array .jcr .dynamic
  87.  
  88. Dynamic section at offset 0xf10 contains 25 entries:
  89.  Tag        Type                         Name/Value
  90. 0x00000001 (NEEDED)                     Shared library: [libgcc_s.so.1]
  91. 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
  92. 0x0000000c (INIT)                       0x839c
  93. 0x0000000d (FINI)                       0x85b8
  94. 0x00000019 (INIT_ARRAY)                 0x10f04
  95. 0x0000001b (INIT_ARRAYSZ)               4 (bytes)
  96. 0x0000001a (FINI_ARRAY)                 0x10f08
  97. 0x0000001c (FINI_ARRAYSZ)               4 (bytes)
  98. 0x6ffffef5 (GNU_HASH)                   0x81ac
  99. 0x00000005 (STRTAB)                     0x8268
  100. 0x00000006 (SYMTAB)                     0x81d8
  101. 0x0000000a (STRSZ)                      184 (bytes)
  102. 0x0000000b (SYMENT)                     16 (bytes)
  103. 0x00000015 (DEBUG)                      0x0
  104. 0x00000003 (PLTGOT)                     0x11000
  105. 0x00000002 (PLTRELSZ)                   32 (bytes)
  106. 0x00000014 (PLTREL)                     REL
  107. 0x00000017 (JMPREL)                     0x837c
  108. 0x00000011 (REL)                        0x8374
  109. 0x00000012 (RELSZ)                      8 (bytes)
  110. 0x00000013 (RELENT)                     8 (bytes)
  111. 0x6ffffffe (VERNEED)                    0x8334
  112. 0x6fffffff (VERNEEDNUM)                 2
  113. 0x6ffffff0 (VERSYM)                     0x8320
  114. 0x00000000 (NULL)                       0x0
  115.  
  116. Relocation section '.rel.dyn' at offset 0x374 contains 1 entries:
  117. Offset     Info    Type                Sym. Value  Symbol's Name
  118. 0001101c  00000215 R_ARM_GLOB_DAT         00000000   __gmon_start__
  119.  
  120. Relocation section '.rel.plt' at offset 0x37c contains 4 entries:
  121.  Offset     Info    Type                Sym. Value  Symbol's Name
  122. 0001100c  00000616 R_ARM_JUMP_SLOT        000083bc   puts
  123. 00011010  00000816 R_ARM_JUMP_SLOT        000083c8   __libc_start_main
  124. 00011014  00000216 R_ARM_JUMP_SLOT        00000000   __gmon_start__
  125. 00011018  00000716 R_ARM_JUMP_SLOT        000083e0   abort
  126.  
  127. Unwind table index '.ARM.exidx' at offset 0x5e0 contains 3 entries:
  128.  
  129. 0x83ec <_start>: 0x1 [cantunwind]
  130.  
  131. 0x8520 <main>: @0x85d4
  132.  Compact model index: 1
  133.  0x9b      vsp = r11
  134.  0x40      vsp = vsp - 4
  135.  0x84 0x80 pop {r11, r14}
  136.  0xb0      finish
  137.  0xb0      finish
  138.  
  139. 0x8550 <__libc_csu_init>: 0x1 [cantunwind]
  140.  
  141.  
  142. Symbol table '.dynsym' contains 9 entries:
  143.   Num:    Value  Size Type    Bind   Vis      Ndx Name
  144.     0: 00000000     0 NOTYPE  LOCAL  DEFAULT  UND
  145.     1: 00000000     0 NOTYPE  WEAK   DEFAULT  UND _ITM_deregisterTMCloneTable
  146.     2: 00000000     0 NOTYPE  WEAK   DEFAULT  UND __gmon_start__
  147.     3: 00000000     0 FUNC    GLOBAL DEFAULT  UND __aeabi_unwind_cpp_pr1@GCC_3.5 (3)
  148.     4: 00000000     0 NOTYPE  WEAK   DEFAULT  UND _Jv_RegisterClasses
  149.     5: 00000000     0 NOTYPE  WEAK   DEFAULT  UND _ITM_registerTMCloneTable
  150.     6: 000083bc     0 FUNC    GLOBAL DEFAULT  UND puts@GLIBC_2.4 (2)
  151.     7: 000083e0     0 FUNC    GLOBAL DEFAULT  UND abort@GLIBC_2.4 (2)
  152.     8: 000083c8     0 FUNC    GLOBAL DEFAULT  UND __libc_start_main@GLIBC_2.4 (2)
  153.  
  154. Symbol table '.symtab' contains 113 entries:
  155.   Num:    Value  Size Type    Bind   Vis      Ndx Name
  156.     0: 00000000     0 NOTYPE  LOCAL  DEFAULT  UND
  157.     1: 00008154     0 SECTION LOCAL  DEFAULT    1
  158.     2: 00008168     0 SECTION LOCAL  DEFAULT    2
  159.     3: 00008188     0 SECTION LOCAL  DEFAULT    3
  160.     4: 000081ac     0 SECTION LOCAL  DEFAULT    4
  161.     5: 000081d8     0 SECTION LOCAL  DEFAULT    5
  162.     6: 00008268     0 SECTION LOCAL  DEFAULT    6
  163.     7: 00008320     0 SECTION LOCAL  DEFAULT    7
  164.     8: 00008334     0 SECTION LOCAL  DEFAULT    8
  165.     9: 00008374     0 SECTION LOCAL  DEFAULT    9
  166.    10: 0000837c     0 SECTION LOCAL  DEFAULT   10
  167.    11: 0000839c     0 SECTION LOCAL  DEFAULT   11
  168.    12: 000083a8     0 SECTION LOCAL  DEFAULT   12
  169.    13: 000083ec     0 SECTION LOCAL  DEFAULT   13
  170.    14: 000085b8     0 SECTION LOCAL  DEFAULT   14
  171.    15: 000085c0     0 SECTION LOCAL  DEFAULT   15
  172.    16: 000085d4     0 SECTION LOCAL  DEFAULT   16
  173.    17: 000085e0     0 SECTION LOCAL  DEFAULT   17
  174.    18: 000085f8     0 SECTION LOCAL  DEFAULT   18
  175.    19: 00010f04     0 SECTION LOCAL  DEFAULT   19
  176.    20: 00010f08     0 SECTION LOCAL  DEFAULT   20
  177.    21: 00010f0c     0 SECTION LOCAL  DEFAULT   21
  178.    22: 00010f10     0 SECTION LOCAL  DEFAULT   22
  179.    23: 00011000     0 SECTION LOCAL  DEFAULT   23
  180.    24: 00011020     0 SECTION LOCAL  DEFAULT   24
  181.    25: 00011028     0 SECTION LOCAL  DEFAULT   25
  182.    26: 00000000     0 SECTION LOCAL  DEFAULT   26
  183.    27: 00000000     0 SECTION LOCAL  DEFAULT   27
  184.    28: 00000000     0 FILE    LOCAL  DEFAULT  ABS /usr/lib/gcc-cross/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/lib/../lib/crt1.o
  185.    29: 00008168     0 NOTYPE  LOCAL  DEFAULT    2 $d
  186.    30: 000083ec     0 NOTYPE  LOCAL  DEFAULT   13 $a
  187.    31: 000085e0     0 NOTYPE  LOCAL  DEFAULT   17 $d
  188.    32: 0000841c     0 NOTYPE  LOCAL  DEFAULT   13 $d
  189.    33: 000085c0     0 NOTYPE  LOCAL  DEFAULT   15 $d
  190.    34: 00011020     0 NOTYPE  LOCAL  DEFAULT   24 $d
  191.    35: 00000000     0 FILE    LOCAL  DEFAULT  ABS /usr/lib/gcc-cross/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/lib/../lib/crti.o
  192.    36: 00008428     0 NOTYPE  LOCAL  DEFAULT   13 $a
  193.    37: 00008428     0 FUNC    LOCAL  DEFAULT   13 call_weak_fn
  194.    38: 00008444     0 NOTYPE  LOCAL  DEFAULT   13 $d
  195.    39: 0000839c     0 NOTYPE  LOCAL  DEFAULT   11 $a
  196.    40: 000085b8     0 NOTYPE  LOCAL  DEFAULT   14 $a
  197.    41: 00000000     0 FILE    LOCAL  DEFAULT  ABS /usr/lib/gcc-cross/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/lib/../lib/crtn.o
  198.    42: 000083a4     0 NOTYPE  LOCAL  DEFAULT   11 $a
  199.    43: 000085bc     0 NOTYPE  LOCAL  DEFAULT   14 $a
  200.    44: 00000000     0 FILE    LOCAL  DEFAULT  ABS crtstuff.c
  201.    45: 00010f0c     0 OBJECT  LOCAL  DEFAULT   21 __JCR_LIST__
  202.    46: 0000844c     0 NOTYPE  LOCAL  DEFAULT   13 $a
  203.    47: 0000844c     0 FUNC    LOCAL  DEFAULT   13 deregister_tm_clones
  204.    48: 00008478     0 NOTYPE  LOCAL  DEFAULT   13 $d
  205.    49: 00008484     0 NOTYPE  LOCAL  DEFAULT   13 $a
  206.    50: 00008484     0 FUNC    LOCAL  DEFAULT   13 register_tm_clones
  207.    51: 000084b8     0 NOTYPE  LOCAL  DEFAULT   13 $d
  208.    52: 00011024     0 NOTYPE  LOCAL  DEFAULT   24 $d
  209.    53: 000084c4     0 NOTYPE  LOCAL  DEFAULT   13 $a
  210.    54: 000084c4     0 FUNC    LOCAL  DEFAULT   13 __do_global_dtors_aux
  211.    55: 000084e8     0 NOTYPE  LOCAL  DEFAULT   13 $d
  212.    56: 00011028     1 OBJECT  LOCAL  DEFAULT   25 completed.9223
  213.    57: 00010f08     0 NOTYPE  LOCAL  DEFAULT   20 $d
  214.    58: 00010f08     0 OBJECT  LOCAL  DEFAULT   20 __do_global_dtors_aux_fini_array_entry
  215.    59: 000084ec     0 NOTYPE  LOCAL  DEFAULT   13 $a
  216.    60: 000084ec     0 FUNC    LOCAL  DEFAULT   13 frame_dummy
  217.    61: 00008518     0 NOTYPE  LOCAL  DEFAULT   13 $d
  218.    62: 00010f04     0 NOTYPE  LOCAL  DEFAULT   19 $d
  219.    63: 00010f04     0 OBJECT  LOCAL  DEFAULT   19 __frame_dummy_init_array_entry
  220.    64: 00011028     0 NOTYPE  LOCAL  DEFAULT   25 $d
  221.    65: 00000000     0 FILE    LOCAL  DEFAULT  ABS test.cpp
  222.    66: 000085c4     0 NOTYPE  LOCAL  DEFAULT   15 $d
  223.    67: 00008520     0 NOTYPE  LOCAL  DEFAULT   13 $a
  224.    68: 000085d4     0 NOTYPE  LOCAL  DEFAULT   16 $d
  225.    69: 000085e8     0 NOTYPE  LOCAL  DEFAULT   17 $d
  226.    70: 00000000     0 FILE    LOCAL  DEFAULT  ABS elf-init.oS
  227.    71: 00008550     0 NOTYPE  LOCAL  DEFAULT   13 $a
  228.    72: 000085ac     0 NOTYPE  LOCAL  DEFAULT   13 $d
  229.    73: 000085b4     0 NOTYPE  LOCAL  DEFAULT   13 $a
  230.    74: 00000000     0 FILE    LOCAL  DEFAULT  ABS crtstuff.c
  231.    75: 000085f8     0 NOTYPE  LOCAL  DEFAULT   18 $d
  232.    76: 000085f8     0 OBJECT  LOCAL  DEFAULT   18 __FRAME_END__
  233.    77: 00010f0c     0 NOTYPE  LOCAL  DEFAULT   21 $d
  234.    78: 00010f0c     0 OBJECT  LOCAL  DEFAULT   21 __JCR_END__
  235.    79: 00000000     0 FILE    LOCAL  DEFAULT  ABS
  236.    80: 00010f08     0 NOTYPE  LOCAL  DEFAULT   19 __init_array_end
  237.    81: 00010f10     0 OBJECT  LOCAL  DEFAULT   22 _DYNAMIC
  238.    82: 00010f04     0 NOTYPE  LOCAL  DEFAULT   19 __init_array_start
  239.    83: 00011000     0 OBJECT  LOCAL  DEFAULT   23 _GLOBAL_OFFSET_TABLE_
  240.    84: 000083a8     0 NOTYPE  LOCAL  DEFAULT   12 $a
  241.    85: 000083b8     0 NOTYPE  LOCAL  DEFAULT   12 $d
  242.    86: 000083bc     0 NOTYPE  LOCAL  DEFAULT   12 $a
  243.    87: 000085b4     4 FUNC    GLOBAL DEFAULT   13 __libc_csu_fini
  244.    88: 00000000     0 NOTYPE  WEAK   DEFAULT  UND _ITM_deregisterTMCloneTable
  245.    89: 00011020     0 NOTYPE  WEAK   DEFAULT   24 data_start
  246.    90: 00011028     0 NOTYPE  GLOBAL DEFAULT   25 __bss_start__
  247.    91: 0001102c     0 NOTYPE  GLOBAL DEFAULT   25 _bss_end__
  248.    92: 00011028     0 NOTYPE  GLOBAL DEFAULT   24 _edata
  249.    93: 000085b8     0 FUNC    GLOBAL DEFAULT   14 _fini
  250.    94: 0001102c     0 NOTYPE  GLOBAL DEFAULT   25 __bss_end__
  251.    95: 00011020     0 NOTYPE  GLOBAL DEFAULT   24 __data_start
  252.    96: 000083bc     0 FUNC    GLOBAL DEFAULT  UND puts@@GLIBC_2.4
  253.    97: 000083c8     0 FUNC    GLOBAL DEFAULT  UND __libc_start_main@@GLIBC_2.4
  254.    98: 00000000     0 NOTYPE  WEAK   DEFAULT  UND __gmon_start__
  255.    99: 00011024     0 OBJECT  GLOBAL HIDDEN    24 __dso_handle
  256.   100: 000085c0     4 OBJECT  GLOBAL DEFAULT   15 _IO_stdin_used
  257.   101: 00008550   100 FUNC    GLOBAL DEFAULT   13 __libc_csu_init
  258.   102: 00000000     0 FUNC    GLOBAL DEFAULT  UND __aeabi_unwind_cpp_pr1@@GCC_3.5
  259.   103: 0001102c     0 NOTYPE  GLOBAL DEFAULT   25 _end
  260.   104: 000083ec     0 FUNC    GLOBAL DEFAULT   13 _start
  261.   105: 0001102c     0 NOTYPE  GLOBAL DEFAULT   25 __end__
  262.   106: 00011028     0 NOTYPE  GLOBAL DEFAULT   25 __bss_start
  263.   107: 00008520    48 FUNC    GLOBAL DEFAULT   13 main
  264.   108: 00000000     0 NOTYPE  WEAK   DEFAULT  UND _Jv_RegisterClasses
  265.   109: 00011028     0 OBJECT  GLOBAL HIDDEN    24 __TMC_END__
  266.   110: 00000000     0 NOTYPE  WEAK   DEFAULT  UND _ITM_registerTMCloneTable
  267.   111: 000083e0     0 FUNC    GLOBAL DEFAULT  UND abort@@GLIBC_2.4
  268.   112: 0000839c     0 FUNC    GLOBAL DEFAULT   11 _init
  269.  
  270. Histogram for `.gnu.hash' bucket list length (total of 3 buckets):
  271.  Length  Number     % of total  Coverage
  272.       0  0          (  0.0%)
  273.       1  3          (100.0%)    100.0%
  274.  
  275. Version symbols section '.gnu.version' contains 9 entries:
  276.  Addr: 0000000000008320  Offset: 0x000320  Link: 5 (.dynsym)
  277.   000:   0 (*local*)       0 (*local*)       0 (*local*)       3 (GCC_3.5)    
  278.   004:   0 (*local*)       0 (*local*)       2 (GLIBC_2.4)     2 (GLIBC_2.4)  
  279.   008:   2 (GLIBC_2.4)  
  280.  
  281. Version needs section '.gnu.version_r' contains 2 entries:
  282.  Addr: 0x0000000000008334  Offset: 0x000334  Link: 6 (.dynstr)
  283.   000000: Version: 1  File: libgcc_s.so.1  Cnt: 1
  284.   0x0010:   Name: GCC_3.5  Flags: none  Version: 3
  285.   0x0020: Version: 1  File: libc.so.6  Cnt: 1
  286.   0x0030:   Name: GLIBC_2.4  Flags: none  Version: 2
  287.  
  288. Displaying notes found at file offset 0x00000168 with length 0x00000020:
  289.   Owner                 Data size   Description
  290.   GNU                  0x00000010   NT_GNU_ABI_TAG (ABI version tag)
  291.     OS: Linux, ABI: 2.6.32
  292.  
  293. Displaying notes found at file offset 0x00000188 with length 0x00000024:
  294.   Owner                 Data size   Description
  295.   GNU                  0x00000014   NT_GNU_BUILD_ID (unique build ID bitstring)
  296.     Build ID: 0cea9254f063bc7bd21e10f31d04c1b66f9d782f
  297. Attribute Section: aeabi
  298. File Attributes
  299.   Tag_CPU_name: "7-A"
  300.   Tag_CPU_arch: v7
  301.   Tag_CPU_arch_profile: Application
  302.   Tag_ARM_ISA_use: Yes
  303.   Tag_THUMB_ISA_use: Thumb-2
  304.   Tag_ABI_PCS_wchar_t: 4
  305.   Tag_ABI_FP_rounding: Needed
  306.   Tag_ABI_FP_denormal: Needed
  307.   Tag_ABI_FP_exceptions: Needed
  308.   Tag_ABI_FP_number_model: IEEE 754
  309.   Tag_ABI_align_needed: 8-byte
  310.   Tag_ABI_align_preserved: 8-byte, except leaf SP
  311.   Tag_ABI_enum_size: int
  312.   Tag_CPU_unaligned_access: v6
  313. $cat /tmp/WeirdErrorFile
  314. ELF Header:
  315.   Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
  316.   Class:                             ELF32
  317.   Data:                              2's complement, little endian
  318.  Version:                           1 (current)
  319.  OS/ABI:                            UNIX - System V
  320.  ABI Version:                       0
  321.  Type:                              EXEC (Executable file)
  322.  Machine:                           ARM
  323.  Version:                           0x1
  324.  Entry point address:               0x84c4
  325.  Start of program headers:          52 (bytes into file)
  326.  Start of section headers:          2392 (bytes into file)
  327.  Flags:                             0x5000002, has entry point, Version5 EABI
  328.  Size of this header:               52 (bytes)
  329.  Size of program headers:           32 (bytes)
  330.  Number of program headers:         7
  331.  Size of section headers:           40 (bytes)
  332.  Number of section headers:         28
  333.  Section header string table index: 25
  334.  
  335. Section Headers:
  336.  [Nr] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
  337.  [ 0]                   NULL            00000000 000000 000000 00      0   0  0
  338.  [ 1] .interp           PROGBITS        00008114 000114 000014 00   A  0   0  1
  339.  [ 2] .hash             HASH            00008128 000128 000094 04   A  3   0  4
  340.  [ 3] .dynsym           DYNSYM          000081bc 0001bc 000120 10   A  4   1  4
  341.  [ 4] .dynstr           STRTAB          000082dc 0002dc 00011c 00   A  0   0  1
  342.  [ 5] .gnu.version      VERSYM          000083f8 0003f8 000024 02   A  3   0  2
  343.  [ 6] .gnu.version_r    VERNEED         0000841c 00041c 000020 00   A  4   1  4
  344.  [ 7] .rel.plt          REL             0000843c 00043c 000028 08   A  3   9  4
  345.  [ 8] .init             PROGBITS        00008464 000464 000010 00  AX  0   0  4
  346.  [ 9] .plt              PROGBITS        00008474 000474 000050 04  AX  0   0  4
  347.  [10] .text             PROGBITS        000084c4 0004c4 0001c0 00  AX  0   0  4
  348.  [11] .fini             PROGBITS        00008684 000684 000010 00  AX  0   0  4
  349.  [12] .rodata           PROGBITS        00008694 000694 000010 00   A  0   0  4
  350.  [13] .ARM.extab        PROGBITS        000086a4 0006a4 00000c 00   A  0   0  4
  351.  [14] .ARM.exidx        ARM_EXIDX       000086b0 0006b0 000010 00  AL 10   0  4
  352.  [15] .eh_frame         PROGBITS        000086c0 0006c0 000004 00   A  0   0  4
  353.  [16] .init_array       INIT_ARRAY      000106c4 0006c4 000004 00  WA  0   0  4
  354.  [17] .fini_array       FINI_ARRAY      000106c8 0006c8 000004 00  WA  0   0  4
  355.  [18] .jcr              PROGBITS        000106cc 0006cc 000004 00  WA  0   0  4
  356.  [19] .dynamic          DYNAMIC         000106d0 0006d0 0000e8 08  WA  4   0  4
  357.  [20] .got              PROGBITS        000107b8 0007b8 000020 04  WA  0   0  4
  358.  [21] .data             PROGBITS        000107d8 0007d8 000008 00  WA  0   0  4
  359.  [22] .bss              NOBITS          000107e0 0007e0 00001c 00  WA  0   0  4
  360.  [23] .comment          PROGBITS        00000000 0007e0 000060 01  MS  0   0  1
  361.  [24] .ARM.attributes   ARM_ATTRIBUTES  00000000 000840 000031 00      0   0  1
  362.  [25] .shstrtab         STRTAB          00000000 000871 0000e7 00      0   0  1
  363.  [26] .symtab           SYMTAB          00000000 000db8 0006f0 10     27  72  4
  364.  [27] .strtab           STRTAB          00000000 0014a8 00032f 00      0   0  1
  365. Key to Flags:
  366.  W (write), A (alloc), X (execute), M (merge), S (strings)
  367.  I (info), L (link order), G (group), T (TLS), E (exclude), x (unknown)
  368.  O (extra OS processing required) o (OS specific), p (processor specific)
  369.  
  370. There are no section groups in this file.
  371.  
  372. Program Headers:
  373.  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  374.  EXIDX          0x0006b0 0x000086b0 0x000086b0 0x00010 0x00010 R   0x4
  375.  PHDR           0x000034 0x00008034 0x00008034 0x000e0 0x000e0 R E 0x4
  376.  INTERP         0x000114 0x00008114 0x00008114 0x00014 0x00014 R   0x1
  377.      [Requesting program interpreter: /lib/ld-uClibc.so.0]
  378.  LOAD           0x000000 0x00008000 0x00008000 0x006c4 0x006c4 R E 0x8000
  379.  LOAD           0x0006c4 0x000106c4 0x000106c4 0x0011c 0x00138 RW  0x8000
  380.  DYNAMIC        0x0006d0 0x000106d0 0x000106d0 0x000e8 0x000e8 RW  0x4
  381.  GNU_STACK      0x000000 0x00000000 0x00000000 0x00000 0x00000 RW  0x4
  382.  
  383. Section to Segment mapping:
  384.  Segment Sections...
  385.   00     .ARM.exidx
  386.   01    
  387.   02     .interp
  388.   03     .interp .hash .dynsym .dynstr .gnu.version .gnu.version_r .rel.plt .init .plt .text .fini .rodata .ARM.extab .ARM.exidx .eh_frame
  389.   04     .init_array .fini_array .jcr .dynamic .got .data .bss
  390.   05     .dynamic
  391.   06    
  392.  
  393. Dynamic section at offset 0x6d0 contains 24 entries:
  394.  Tag        Type                         Name/Value
  395. 0x00000001 (NEEDED)                     Shared library: [libstdc++.so.6]
  396. 0x00000001 (NEEDED)                     Shared library: [libm.so.0]
  397. 0x00000001 (NEEDED)                     Shared library: [libgcc_s.so.1]
  398. 0x00000001 (NEEDED)                     Shared library: [libc.so.0]
  399. 0x0000000c (INIT)                       0x8464
  400. 0x0000000d (FINI)                       0x8684
  401. 0x00000019 (INIT_ARRAY)                 0x106c4
  402. 0x0000001b (INIT_ARRAYSZ)               4 (bytes)
  403. 0x0000001a (FINI_ARRAY)                 0x106c8
  404. 0x0000001c (FINI_ARRAYSZ)               4 (bytes)
  405. 0x00000004 (HASH)                       0x8128
  406. 0x00000005 (STRTAB)                     0x82dc
  407. 0x00000006 (SYMTAB)                     0x81bc
  408. 0x0000000a (STRSZ)                      284 (bytes)
  409. 0x0000000b (SYMENT)                     16 (bytes)
  410. 0x00000015 (DEBUG)                      0x0
  411. 0x00000003 (PLTGOT)                     0x107b8
  412. 0x00000002 (PLTRELSZ)                   40 (bytes)
  413. 0x00000014 (PLTREL)                     REL
  414. 0x00000017 (JMPREL)                     0x843c
  415. 0x6ffffffe (VERNEED)                    0x841c
  416. 0x6fffffff (VERNEEDNUM)                 1
  417. 0x6ffffff0 (VERSYM)                     0x83f8
  418. 0x00000000 (NULL)                       0x0
  419.  
  420. Relocation section '.rel.plt' at offset 0x43c contains 5 entries:
  421. Offset     Info    Type                Sym. Value  Symbol's Name
  422. 000107c4  00000516 R_ARM_JUMP_SLOT        00008488   abort
  423. 000107c8  00000a16 R_ARM_JUMP_SLOT        00008494   puts
  424. 000107cc  00000b16 R_ARM_JUMP_SLOT        00000000   __deregister_frame_info
  425. 000107d0  00000d16 R_ARM_JUMP_SLOT        00000000   __register_frame_info
  426. 000107d4  00001016 R_ARM_JUMP_SLOT        000084b8   __uClibc_main
  427.  
  428. Unwind table index '.ARM.exidx' at offset 0x6b0 contains 2 entries:
  429.  
  430. 0x8654 <main>: @0x86a4
  431.   Compact model index: 1
  432.   0x9b      vsp = r11
  433.   0x40      vsp = vsp - 4
  434.   0x84 0x80 pop {r11, r14}
  435.   0xb0      finish
  436.   0xb0      finish
  437.  
  438. 0x8684 <_fini>: 0x1 [cantunwind]
  439.  
  440.  
  441. Symbol table '.dynsym' contains 18 entries:
  442.    Num:    Value  Size Type    Bind   Vis      Ndx Name
  443.      0: 00000000     0 NOTYPE  LOCAL  DEFAULT  UND
  444.      1: 00000000     0 NOTYPE  WEAK   DEFAULT  UND _ITM_deregisterTMCloneTable
  445.      2: 000107e0     0 NOTYPE  GLOBAL DEFAULT  ABS __bss_start__
  446.      3: 000107fc     0 NOTYPE  GLOBAL DEFAULT  ABS _bss_end__
  447.      4: 000107e0     0 NOTYPE  GLOBAL DEFAULT  ABS _edata
  448.      5: 00008488     0 FUNC    GLOBAL DEFAULT  UND abort
  449.      6: 000107fc     0 NOTYPE  GLOBAL DEFAULT  ABS __bss_end__
  450.      7: 00000000     0 FUNC    GLOBAL DEFAULT  UND __aeabi_unwind_cpp_pr1@GCC_3.5 (2)
  451.      8: 000107fc     0 NOTYPE  GLOBAL DEFAULT  ABS _end
  452.      9: 000084c4    80 FUNC    GLOBAL DEFAULT   10 _start
  453.     10: 00008494     0 FUNC    GLOBAL DEFAULT  UND puts
  454.     11: 00000000     0 NOTYPE  WEAK   DEFAULT  UND __deregister_frame_info
  455.     12: 000107fc     0 NOTYPE  GLOBAL DEFAULT  ABS __end__
  456.     13: 00000000     0 NOTYPE  WEAK   DEFAULT  UND __register_frame_info
  457.     14: 000107e0     0 NOTYPE  GLOBAL DEFAULT  ABS __bss_start
  458.     15: 00000000     0 NOTYPE  WEAK   DEFAULT  UND _Jv_RegisterClasses
  459.     16: 000084b8     0 FUNC    GLOBAL DEFAULT  UND __uClibc_main
  460.     17: 00000000     0 NOTYPE  WEAK   DEFAULT  UND _ITM_registerTMCloneTable
  461.  
  462. Symbol table '.symtab' contains 111 entries:
  463.    Num:    Value  Size Type    Bind   Vis      Ndx Name
  464.      0: 00000000     0 NOTYPE  LOCAL  DEFAULT  UND
  465.      1: 00008114     0 SECTION LOCAL  DEFAULT    1
  466.      2: 00008128     0 SECTION LOCAL  DEFAULT    2
  467.      3: 000081bc     0 SECTION LOCAL  DEFAULT    3
  468.      4: 000082dc     0 SECTION LOCAL  DEFAULT    4
  469.      5: 000083f8     0 SECTION LOCAL  DEFAULT    5
  470.      6: 0000841c     0 SECTION LOCAL  DEFAULT    6
  471.      7: 0000843c     0 SECTION LOCAL  DEFAULT    7
  472.      8: 00008464     0 SECTION LOCAL  DEFAULT    8
  473.      9: 00008474     0 SECTION LOCAL  DEFAULT    9
  474.     10: 000084c4     0 SECTION LOCAL  DEFAULT   10
  475.     11: 00008684     0 SECTION LOCAL  DEFAULT   11
  476.     12: 00008694     0 SECTION LOCAL  DEFAULT   12
  477.     13: 000086a4     0 SECTION LOCAL  DEFAULT   13
  478.     14: 000086b0     0 SECTION LOCAL  DEFAULT   14
  479.     15: 000086c0     0 SECTION LOCAL  DEFAULT   15
  480.     16: 000106c4     0 SECTION LOCAL  DEFAULT   16
  481.     17: 000106c8     0 SECTION LOCAL  DEFAULT   17
  482.     18: 000106cc     0 SECTION LOCAL  DEFAULT   18
  483.     19: 000106d0     0 SECTION LOCAL  DEFAULT   19
  484.     20: 000107b8     0 SECTION LOCAL  DEFAULT   20
  485.     21: 000107d8     0 SECTION LOCAL  DEFAULT   21
  486.     22: 000107e0     0 SECTION LOCAL  DEFAULT   22
  487.     23: 00000000     0 SECTION LOCAL  DEFAULT   23
  488.     24: 00000000     0 SECTION LOCAL  DEFAULT   24
  489.     25: 00000000     0 FILE    LOCAL  DEFAULT  ABS initfini.c
  490.     26: 00008464     0 NOTYPE  LOCAL  DEFAULT    8 $a
  491.     27: 00008684     0 NOTYPE  LOCAL  DEFAULT   11 $a
  492.     28: 00008500     0 NOTYPE  LOCAL  DEFAULT   10 $t
  493.     29: 00000000     0 FILE    LOCAL  DEFAULT  ABS initfini.c
  494.     30: 00008470     0 NOTYPE  LOCAL  DEFAULT    8 $a
  495.     31: 00008690     0 NOTYPE  LOCAL  DEFAULT   11 $a
  496.     32: 00000000     0 FILE    LOCAL  DEFAULT  ABS crtstuff.c
  497.     33: 000086c0     0 OBJECT  LOCAL  DEFAULT   15 __EH_FRAME_BEGIN__
  498.     34: 000106cc     0 OBJECT  LOCAL  DEFAULT   18 __JCR_LIST__
  499.     35: 0000853c     0 NOTYPE  LOCAL  DEFAULT   10 $a
  500.     36: 0000853c     0 FUNC    LOCAL  DEFAULT   10 deregister_tm_clones
  501.     37: 00008568     0 NOTYPE  LOCAL  DEFAULT   10 $d
  502.     38: 00008574     0 NOTYPE  LOCAL  DEFAULT   10 $a
  503.     39: 00008574     0 FUNC    LOCAL  DEFAULT   10 register_tm_clones
  504.     40: 000085a8     0 NOTYPE  LOCAL  DEFAULT   10 $d
  505.     41: 000107dc     0 NOTYPE  LOCAL  DEFAULT   21 $d
  506.     42: 000085b4     0 NOTYPE  LOCAL  DEFAULT   10 $a
  507.     43: 000085b4     0 FUNC    LOCAL  DEFAULT   10 __do_global_dtors_aux
  508.     44: 000085f0     0 NOTYPE  LOCAL  DEFAULT   10 $d
  509.     45: 000107e0     1 OBJECT  LOCAL  DEFAULT   22 completed.8722
  510.     46: 000106c8     0 NOTYPE  LOCAL  DEFAULT   17 $d
  511.     47: 000106c8     0 OBJECT  LOCAL  DEFAULT   17 __do_global_dtors_aux_fini_array_entry
  512.     48: 000085fc     0 NOTYPE  LOCAL  DEFAULT   10 $a
  513.     49: 000085fc     0 FUNC    LOCAL  DEFAULT   10 frame_dummy
  514.     50: 00008640     0 NOTYPE  LOCAL  DEFAULT   10 $d
  515.     51: 000107e4    24 OBJECT  LOCAL  DEFAULT   22 object.8727
  516.     52: 000106c4     0 NOTYPE  LOCAL  DEFAULT   16 $d
  517.     53: 000106c4     0 OBJECT  LOCAL  DEFAULT   16 __frame_dummy_init_array_entry
  518.     54: 000107e1     0 NOTYPE  LOCAL  DEFAULT   22 $d
  519.     55: 00000000     0 FILE    LOCAL  DEFAULT  ABS test.cpp
  520.     56: 00008694     0 NOTYPE  LOCAL  DEFAULT   12 $d
  521.     57: 00008654     0 NOTYPE  LOCAL  DEFAULT   10 $a
  522.     58: 000086a4     0 NOTYPE  LOCAL  DEFAULT   13 $d
  523.     59: 000086b0     0 NOTYPE  LOCAL  DEFAULT   14 $d
  524.     60: 00000000     0 FILE    LOCAL  DEFAULT  ABS crtstuff.c
  525.     61: 000086c0     0 NOTYPE  LOCAL  DEFAULT   15 $d
  526.     62: 000086c0     0 OBJECT  LOCAL  DEFAULT   15 __FRAME_END__
  527.     63: 000106cc     0 NOTYPE  LOCAL  DEFAULT   18 $d
  528.     64: 000106cc     0 OBJECT  LOCAL  DEFAULT   18 __JCR_END__
  529.     65: 000106d0     0 OBJECT  LOCAL  DEFAULT   19 _DYNAMIC
  530.     66: 000107b8     0 OBJECT  LOCAL  DEFAULT   20 _GLOBAL_OFFSET_TABLE_
  531.     67: 000084c4     0 NOTYPE  LOCAL  DEFAULT   10 $d
  532.     68: 000107d8     0 NOTYPE  LOCAL  DEFAULT   21 $d
  533.     69: 00008474     0 NOTYPE  LOCAL  DEFAULT    9 $a
  534.     70: 00008484     0 NOTYPE  LOCAL  DEFAULT    9 $d
  535.     71: 00008488     0 NOTYPE  LOCAL  DEFAULT    9 $a
  536.     72: 0000852d     4 FUNC    WEAK   HIDDEN    10 _call_via_fp
  537.     73: 00000000     0 NOTYPE  WEAK   DEFAULT  UND _ITM_deregisterTMCloneTable
  538.     74: 000107d8     0 NOTYPE  WEAK   DEFAULT   21 data_start
  539.     75: 000107e0     0 NOTYPE  GLOBAL DEFAULT  ABS __bss_start__
  540.     76: 00008501     4 FUNC    WEAK   HIDDEN    10 _call_via_r0
  541.     77: 00008509     4 FUNC    WEAK   HIDDEN    10 _call_via_r2
  542.     78: 00008511     4 FUNC    WEAK   HIDDEN    10 _call_via_r4
  543.     79: 00008521     4 FUNC    WEAK   HIDDEN    10 _call_via_r8
  544.     80: 00008519     4 FUNC    WEAK   HIDDEN    10 _call_via_r6
  545.     81: 00008531     4 FUNC    WEAK   HIDDEN    10 _call_via_ip
  546.     82: 000107fc     0 NOTYPE  GLOBAL DEFAULT  ABS _bss_end__
  547.     83: 000107e0     0 NOTYPE  GLOBAL DEFAULT  ABS _edata
  548.     84: 00008488     0 FUNC    GLOBAL DEFAULT  UND abort
  549.     85: 00008684     0 FUNC    GLOBAL DEFAULT   11 _fini
  550.     86: 000107fc     0 NOTYPE  GLOBAL DEFAULT  ABS __bss_end__
  551.     87: 00008539     4 FUNC    WEAK   HIDDEN    10 _call_via_lr
  552.     88: 000107d8     0 NOTYPE  GLOBAL DEFAULT   21 __data_start
  553.     89: 000107dc     0 OBJECT  GLOBAL HIDDEN    21 __dso_handle
  554.     90: 00000000     0 FUNC    GLOBAL DEFAULT  UND __aeabi_unwind_cpp_pr1@@GCC_3.5
  555.     91: 000107fc     0 NOTYPE  GLOBAL DEFAULT  ABS _end
  556.     92: 00008505     4 FUNC    WEAK   HIDDEN    10 _call_via_r1
  557.     93: 000084c4    80 FUNC    GLOBAL DEFAULT   10 _start
  558.     94: 00008494     0 FUNC    GLOBAL DEFAULT  UND puts
  559.     95: 0000850d     4 FUNC    WEAK   HIDDEN    10 _call_via_r3
  560.     96: 00008515     4 FUNC    WEAK   HIDDEN    10 _call_via_r5
  561.     97: 00008525     4 FUNC    WEAK   HIDDEN    10 _call_via_r9
  562.     98: 0000851d     4 FUNC    WEAK   HIDDEN    10 _call_via_r7
  563.     99: 00000000     0 NOTYPE  WEAK   DEFAULT  UND __deregister_frame_info
  564.    100: 000107fc     0 NOTYPE  GLOBAL DEFAULT  ABS __end__
  565.    101: 00000000     0 NOTYPE  WEAK   DEFAULT  UND __register_frame_info
  566.    102: 000107e0     0 NOTYPE  GLOBAL DEFAULT  ABS __bss_start
  567.    103: 00008654    48 FUNC    GLOBAL DEFAULT   10 main
  568.    104: 00000000     0 NOTYPE  WEAK   DEFAULT  UND _Jv_RegisterClasses
  569.    105: 000084b8     0 FUNC    GLOBAL DEFAULT  UND __uClibc_main
  570.    106: 00008535     4 FUNC    WEAK   HIDDEN    10 _call_via_sp
  571.    107: 000107e0     0 OBJECT  GLOBAL HIDDEN    21 __TMC_END__
  572.    108: 00008529     4 FUNC    WEAK   HIDDEN    10 _call_via_sl
  573.    109: 00000000     0 NOTYPE  WEAK   DEFAULT  UND _ITM_registerTMCloneTable
  574.    110: 00008464     0 FUNC    GLOBAL DEFAULT    8 _init
  575.  
  576. Histogram for bucket list length (total of 17 buckets):
  577.  Length  Number     % of total  Coverage
  578.       0  5          ( 29.4%)
  579.       1  9          ( 52.9%)     52.9%
  580.       2  1          (  5.9%)     64.7%
  581.       3  2          ( 11.8%)    100.0%
  582.  
  583. Version symbols section '.gnu.version' contains 18 entries:
  584.  Addr: 00000000000083f8  Offset: 0x0003f8  Link: 3 (.dynsym)
  585.   000:   0 (*local*)       0 (*local*)       1 (*global*)      1 (*global*)  
  586.   004:   1 (*global*)      0 (*local*)       1 (*global*)      2 (GCC_3.5)    
  587.   008:   1 (*global*)      1 (*global*)      0 (*local*)       0 (*local*)    
  588.   00c:   1 (*global*)      0 (*local*)       1 (*global*)      0 (*local*)    
  589.   010:   0 (*local*)       0 (*local*)    
  590.  
  591. Version needs section '.gnu.version_r' contains 1 entries:
  592.  Addr: 0x000000000000841c  Offset: 0x00041c  Link: 4 (.dynstr)
  593.   000000: Version: 1  File: libgcc_s.so.1  Cnt: 1
  594.   0x0010:   Name: GCC_3.5  Flags: none  Version: 2
  595. Attribute Section: aeabi
  596. File Attributes
  597.   Tag_CPU_name: "7-A"
  598.   Tag_CPU_arch: v7
  599.   Tag_CPU_arch_profile: Application
  600.   Tag_ARM_ISA_use: Yes
  601.   Tag_THUMB_ISA_use: Thumb-2
  602.   Tag_FP_arch: VFPv2
  603.   Tag_ABI_PCS_wchar_t: 4
  604.   Tag_ABI_FP_denormal: Needed
  605.   Tag_ABI_FP_exceptions: Needed
  606.   Tag_ABI_FP_number_model: IEEE 754
  607.   Tag_ABI_align_needed: 8-byte
  608.   Tag_ABI_enum_size: int
  609.   Tag_ABI_HardFP_use: SP and DP
  610.   Tag_CPU_unaligned_access: v6
  611.   Tag_DIV_use: Not allowed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement