[mips-gnu-discuss] Segmentation Fault after using mips-linux-gnu-gcc
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[mips-gnu-discuss] Segmentation Fault after using mips-linux-gnu-gcc



I have written the simple program test.c.(Attached with this mail)
I have compiled it on linux x86 machine using following command

mips-linux-gnu-gcc test.c -EB -o test

after transferring the binary "test" on mips machine, while executing I got
"segmentation fault".

I do have gcc installed on mips machine, so I tried compiling the same
test.c on it. It ran successfully.

I have attached the output of readelf for both the binaries. Can you help me
with this problem?

I have also noticed that size of binaries differs. I tried changing ABI
version with following command:

mips-linux-gnu-gcc test.c -EB -o test -fabi-version=0

But it is not changing in generated binary, it still shows ABI version as 1
ELF Header:
  Magic:   7f 45 4c 46 01 02 01 00 00 00 00 00 00 00 00 00 
  Class:                             ELF32
  Data:                              2's complement, big endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - System V
  ABI Version:                       0
  Type:                              EXEC (Executable file)
  Machine:                           MIPS R3000
  Version:                           0x1
  Entry point address:               0x4004c0
  Start of program headers:          52 (bytes into file)
  Start of section headers:          4640 (bytes into file)
  Flags:                             0x1007, noreorder, pic, cpic, o32, mips1
  Size of this header:               52 (bytes)
  Size of program headers:           32 (bytes)
  Number of program headers:         7
  Size of section headers:           40 (bytes)
  Number of section headers:         35
  Section header string table index: 32

Section Headers:
  [Nr] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
  [ 0]                   NULL            00000000 000000 000000 00      0   0  0
  [ 1] .interp           PROGBITS        00400114 000114 00000d 00   A  0   0  1
  [ 2] .note.ABI-tag     NOTE            00400124 000124 000020 00   A  0   0  4
  [ 3] .reginfo          MIPS_REGINFO    00400144 000144 000018 18   A  0   0  4
  [ 4] .dynamic          DYNAMIC         0040015c 00015c 0000f0 08   A  7   0  4
  [ 5] .hash             HASH            0040024c 00024c 000044 04   A  6   0  4
  [ 6] .dynsym           DYNSYM          00400290 000290 0000c0 10   A  7   1  4
  [ 7] .dynstr           STRTAB          00400350 000350 000094 00   A  0   0  1
  [ 8] .gnu.version      VERSYM          004003e4 0003e4 000018 02   A  6   0  2
  [ 9] .gnu.version_r    VERNEED         004003fc 0003fc 000020 00   A  7   1  4
  [10] .init             PROGBITS        0040041c 00041c 0000a4 00  AX  0   0  4
  [11] .text             PROGBITS        004004c0 0004c0 000330 00  AX  0   0 16
  [12] .MIPS.stubs       PROGBITS        004007f0 0007f0 000020 00  AX  0   0  4
  [13] .fini             PROGBITS        00400810 000810 000058 00  AX  0   0  4
  [14] .rodata           PROGBITS        00400870 000870 000010 00   A  0   0 16
  [15] .eh_frame         PROGBITS        00400880 000880 000004 00   A  0   0  4
  [16] .ctors            PROGBITS        00440884 000884 000008 00  WA  0   0  4
  [17] .dtors            PROGBITS        0044088c 00088c 000008 00  WA  0   0  4
  [18] .jcr              PROGBITS        00440894 000894 000004 00  WA  0   0  4
  [19] .data             PROGBITS        004408a0 0008a0 000030 00  WA  0   0 16
  [20] .rld_map          PROGBITS        004408d0 0008d0 000004 00  WA  0   0  4
  [21] .got              PROGBITS        004408e0 0008e0 000050 04 WAp  0   0 16
  [22] .bss              NOBITS          00440930 000930 000010 00  WA  0   0 16
  [23] .comment          PROGBITS        00000000 000930 000196 00      0   0  1
  [24] .debug_aranges    MIPS_DWARF      00000000 000ac8 000078 00      0   0  8
  [25] .debug_pubnames   MIPS_DWARF      00000000 000b40 000025 00      0   0  1
  [26] .debug_info       MIPS_DWARF      00000000 000b65 0001ee 00      0   0  1
  [27] .debug_abbrev     MIPS_DWARF      00000000 000d53 000076 00      0   0  1
  [28] .debug_line       MIPS_DWARF      00000000 000dc9 0001d7 00      0   0  1
  [29] .debug_str        MIPS_DWARF      00000000 000fa0 0000e0 01  MS  0   0  1
  [30] .mdebug.abi32     PROGBITS        000000e0 001080 000000 00      0   0  1
  [31] .pdr              PROGBITS        00000000 001080 000060 00      0   0  4
  [32] .shstrtab         STRTAB          00000000 0010e0 00013d 00      0   0  1
  [33] .symtab           SYMTAB          00000000 001798 000580 10     34  64  4
  [34] .strtab           STRTAB          00000000 001d18 000303 00      0   0  1
Key to Flags:
  W (write), A (alloc), X (execute), M (merge), S (strings)
  I (info), L (link order), G (group), x (unknown)
  O (extra OS processing required) o (OS specific), p (processor specific)

There are no section groups in this file.

Program Headers:
  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  PHDR           0x000034 0x00400034 0x00400034 0x000e0 0x000e0 R E 0x4
  INTERP         0x000114 0x00400114 0x00400114 0x0000d 0x0000d R   0x1
      [Requesting program interpreter: /lib/ld.so.1]
  REGINFO        0x000144 0x00400144 0x00400144 0x00018 0x00018 R   0x4
  LOAD           0x000000 0x00400000 0x00400000 0x00884 0x00884 R E 0x10000
  LOAD           0x000884 0x00440884 0x00440884 0x000ac 0x000bc RW  0x10000
  DYNAMIC        0x00015c 0x0040015c 0x0040015c 0x00288 0x00288 RWE 0x4
  NOTE           0x000124 0x00400124 0x00400124 0x00020 0x00020 R   0x4

 Section to Segment mapping:
  Segment Sections...
   00     
   01     .interp 
   02     .reginfo 
   03     .interp .note.ABI-tag .reginfo .dynamic .hash .dynsym .dynstr .gnu.version .gnu.version_r .init .text .MIPS.stubs .fini .rodata .eh_frame 
   04     .ctors .dtors .jcr .data .rld_map .got .bss 
   05     .dynamic .hash .dynsym .dynstr 
   06     .note.ABI-tag 

Dynamic section at offset 0x15c contains 25 entries:
  Tag        Type                         Name/Value
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
 0x0000000c (INIT)                       0x40041c
 0x0000000d (FINI)                       0x400810
 0x00000004 (HASH)                       0x40024c
 0x00000005 (STRTAB)                     0x400350
 0x00000006 (SYMTAB)                     0x400290
 0x0000000a (STRSZ)                      148 (bytes)
 0x0000000b (SYMENT)                     16 (bytes)
 0x70000016 (MIPS_RLD_MAP)               0x4408d0
 0x00000015 (DEBUG)                      0x0
 0x00000003 (PLTGOT)                     0x4408e0
 0x00000011 (REL)                        0x0
 0x00000012 (RELSZ)                      0 (bytes)
 0x00000013 (RELENT)                     8 (bytes)
 0x70000001 (MIPS_RLD_VERSION)           1
 0x70000005 (MIPS_FLAGS)                 NOTPOT
 0x70000006 (MIPS_BASE_ADDRESS)          0x400000
 0x7000000a (MIPS_LOCAL_GOTNO)           12
 0x70000011 (MIPS_SYMTABNO)              12
 0x70000012 (MIPS_UNREFEXTNO)            32
 0x70000013 (MIPS_GOTSYM)                0x4
 0x6ffffffe (VERNEED)                    0x4003fc
 0x6fffffff (VERNEEDNUM)                 1
 0x6ffffff0 (VERSYM)                     0x4003e4
 0x00000000 (NULL)                       0x0

There are no relocations in this file.

There are no unwind sections in this file.

Symbol table '.dynsym' contains 12 entries:
   Num:    Value  Size Type    Bind   Vis      Ndx Name
     0: 00000000     0 NOTYPE  LOCAL  DEFAULT  UND 
     1: 00000001     0 SECTION GLOBAL DEFAULT  ABS _DYNAMIC_LINKING
     2: 004408d0     0 OBJECT  GLOBAL DEFAULT   20 __RLD_MAP
     3: 00400870     4 OBJECT  GLOBAL DEFAULT   14 _IO_stdin_used
     4: 00000000     0 FUNC    WEAK   DEFAULT  UND __gmon_start__
     5: 00000000     0 NOTYPE  WEAK   DEFAULT  UND _Jv_RegisterClasses
     6: 00400810     0 FUNC    GLOBAL DEFAULT   13 _fini
     7: 004007f0   328 FUNC    GLOBAL DEFAULT  UND __libc_start_main@xxxxxxxxx (2)
     8: 00400630    48 FUNC    GLOBAL DEFAULT   11 main
     9: 004006e4   144 FUNC    GLOBAL DEFAULT   11 __libc_csu_init
    10: 0040041c     0 FUNC    GLOBAL DEFAULT   10 _init
    11: 00400660   132 FUNC    GLOBAL DEFAULT   11 __libc_csu_fini

Symbol table '.symtab' contains 88 entries:
   Num:    Value  Size Type    Bind   Vis      Ndx Name
     0: 00000000     0 NOTYPE  LOCAL  DEFAULT  UND 
     1: 00400114     0 SECTION LOCAL  DEFAULT    1 
     2: 00400124     0 SECTION LOCAL  DEFAULT    2 
     3: 00400144     0 SECTION LOCAL  DEFAULT    3 
     4: 0040015c     0 SECTION LOCAL  DEFAULT    4 
     5: 0040024c     0 SECTION LOCAL  DEFAULT    5 
     6: 00400290     0 SECTION LOCAL  DEFAULT    6 
     7: 00400350     0 SECTION LOCAL  DEFAULT    7 
     8: 004003e4     0 SECTION LOCAL  DEFAULT    8 
     9: 004003fc     0 SECTION LOCAL  DEFAULT    9 
    10: 0040041c     0 SECTION LOCAL  DEFAULT   10 
    11: 004004c0     0 SECTION LOCAL  DEFAULT   11 
    12: 004007f0     0 SECTION LOCAL  DEFAULT   12 
    13: 00400810     0 SECTION LOCAL  DEFAULT   13 
    14: 00400870     0 SECTION LOCAL  DEFAULT   14 
    15: 00400880     0 SECTION LOCAL  DEFAULT   15 
    16: 00440884     0 SECTION LOCAL  DEFAULT   16 
    17: 0044088c     0 SECTION LOCAL  DEFAULT   17 
    18: 00440894     0 SECTION LOCAL  DEFAULT   18 
    19: 004408a0     0 SECTION LOCAL  DEFAULT   19 
    20: 004408d0     0 SECTION LOCAL  DEFAULT   20 
    21: 004408e0     0 SECTION LOCAL  DEFAULT   21 
    22: 00440930     0 SECTION LOCAL  DEFAULT   22 
    23: 00000000     0 SECTION LOCAL  DEFAULT   23 
    24: 00000000     0 SECTION LOCAL  DEFAULT   24 
    25: 00000000     0 SECTION LOCAL  DEFAULT   25 
    26: 00000000     0 SECTION LOCAL  DEFAULT   26 
    27: 00000000     0 SECTION LOCAL  DEFAULT   27 
    28: 00000000     0 SECTION LOCAL  DEFAULT   28 
    29: 00000000     0 SECTION LOCAL  DEFAULT   29 
    30: 000000e0     0 SECTION LOCAL  DEFAULT   30 
    31: 00000000     0 SECTION LOCAL  DEFAULT   31 
    32: 00000000     0 SECTION LOCAL  DEFAULT   32 
    33: 00000000     0 SECTION LOCAL  DEFAULT   33 
    34: 00000000     0 SECTION LOCAL  DEFAULT   34 
    35: 00000000     0 FILE    LOCAL  DEFAULT  ABS abi-note.S
    36: 00000000     0 FILE    LOCAL  DEFAULT  ABS ../sysdeps/mips/elf/start
    37: 0040051c     0 NOTYPE  LOCAL  DEFAULT   11 hlt
    38: 00000000     0 FILE    LOCAL  DEFAULT  ABS init.c
    39: 00000000     0 FILE    LOCAL  DEFAULT  ABS initfini.c
    40: 00000000     0 FILE    LOCAL  DEFAULT  ABS /home/aurel32/tmp/glibc/g
    41: 00400530     0 FUNC    LOCAL  DEFAULT   11 call_gmon_start
    42: 00000000     0 FILE    LOCAL  DEFAULT  ABS crtstuff.c
    43: 00440884     0 OBJECT  LOCAL  DEFAULT   16 __CTOR_LIST__
    44: 0044088c     0 OBJECT  LOCAL  DEFAULT   17 __DTOR_LIST__
    45: 00440894     0 OBJECT  LOCAL  DEFAULT   18 __JCR_LIST__
    46: 00440930     1 OBJECT  LOCAL  DEFAULT   22 completed.5507
    47: 004408c0     0 OBJECT  LOCAL  DEFAULT   19 p.5505
    48: 00400560     0 FUNC    LOCAL  DEFAULT   11 __do_global_dtors_aux
    49: 004005f4     0 FUNC    LOCAL  DEFAULT   11 frame_dummy
    50: 00000000     0 FILE    LOCAL  DEFAULT  ABS crtstuff.c
    51: 00440888     0 OBJECT  LOCAL  DEFAULT   16 __CTOR_END__
    52: 00440890     0 OBJECT  LOCAL  DEFAULT   17 __DTOR_END__
    53: 00400880     0 OBJECT  LOCAL  DEFAULT   15 __FRAME_END__
    54: 00440894     0 OBJECT  LOCAL  DEFAULT   18 __JCR_END__
    55: 00400780     0 FUNC    LOCAL  DEFAULT   11 __do_global_ctors_aux
    56: 00000000     0 FILE    LOCAL  DEFAULT  ABS initfini.c
    57: 00000000     0 FILE    LOCAL  DEFAULT  ABS /home/aurel32/tmp/glibc/g
    58: 00000000     0 FILE    LOCAL  DEFAULT  ABS test.c
    59: 0040015c     0 OBJECT  LOCAL  HIDDEN    4 _DYNAMIC
    60: 00440884     0 NOTYPE  LOCAL  HIDDEN  ABS __fini_array_end
    61: 00440884     0 NOTYPE  LOCAL  HIDDEN  ABS __fini_array_start
    62: 00440884     0 NOTYPE  LOCAL  HIDDEN  ABS __init_array_end
    63: 00440884     0 NOTYPE  LOCAL  HIDDEN  ABS __init_array_start
    64: 004408a0     0 NOTYPE  GLOBAL DEFAULT   19 _fdata
    65: 00000000     0 OBJECT  GLOBAL DEFAULT  UND _gp_disp
    66: 00000001     0 SECTION GLOBAL DEFAULT  ABS _DYNAMIC_LINKING
    67: 004488d0     0 NOTYPE  GLOBAL DEFAULT  ABS _gp
    68: 004408b0     0 OBJECT  GLOBAL HIDDEN   19 __dso_handle
    69: 00400660   132 FUNC    GLOBAL DEFAULT   11 __libc_csu_fini
    70: 0040041c     0 FUNC    GLOBAL DEFAULT   10 _init
    71: 004004c0     0 FUNC    GLOBAL DEFAULT   11 __start
    72: 004004c0     0 NOTYPE  GLOBAL DEFAULT   11 _ftext
    73: 004408d0     0 OBJECT  GLOBAL DEFAULT   20 __RLD_MAP
    74: 004006e4   144 FUNC    GLOBAL DEFAULT   11 __libc_csu_init
    75: 00440930     0 NOTYPE  GLOBAL DEFAULT  ABS __bss_start
    76: 00400630    48 FUNC    GLOBAL DEFAULT   11 main
    77: 004007f0   328 FUNC    GLOBAL DEFAULT  UND __libc_start_main@@GLIBC_
    78: 004408a0     0 OBJECT  WEAK   DEFAULT   19 data_start
    79: 00400810     0 FUNC    GLOBAL DEFAULT   13 _fini
    80: 00440930     0 NOTYPE  GLOBAL DEFAULT  ABS _edata
    81: 004408e0     0 OBJECT  GLOBAL DEFAULT   21 _GLOBAL_OFFSET_TABLE_
    82: 00440940     0 NOTYPE  GLOBAL DEFAULT  ABS _end
    83: 00400870     4 OBJECT  GLOBAL DEFAULT   14 _IO_stdin_used
    84: 004408a0     0 OBJECT  GLOBAL DEFAULT   19 __data_start
    85: 00000000     0 NOTYPE  WEAK   DEFAULT  UND _Jv_RegisterClasses
    86: 00440930     0 NOTYPE  GLOBAL DEFAULT  ABS _fbss
    87: 00000000     0 FUNC    WEAK   DEFAULT  UND __gmon_start__

Histogram for bucket list length (total of 3 buckets):
 Length  Number     % of total  Coverage
      0  0          (  0.0%)
      1  0          (  0.0%)      0.0%
      2  1          ( 33.3%)     18.2%
      3  0          (  0.0%)     18.2%
      4  1          ( 33.3%)     54.5%
      5  1          ( 33.3%)    100.0%

Version symbols section '.gnu.version' contains 12 entries:
 Addr: 00000000004003e4  Offset: 0x0003e4  Link: 6 (.dynsym)
  000:   0 (*local*)       1 (*global*)      1 (*global*)      1 (*global*)   
  004:   0 (*local*)       0 (*local*)       1 (*global*)      2 (GLIBC_2.0)  
  008:   1 (*global*)      1 (*global*)      1 (*global*)      1 (*global*)   

Version needs section '.gnu.version_r' contains 1 entries:
 Addr: 0x00000000004003fc  Offset: 0x0003fc  Link to section: 7 (.dynstr)
  000000: Version: 1  File: libc.so.6  Cnt: 1
  0x0010:   Name: GLIBC_2.0  Flags: none  Version: 2

Notes at offset 0x00000124 with length 0x00000020:
  Owner		Data size	Description
  GNU		0x00000010	NT_VERSION (version)

Attachment: test.c
Description: Binary data

ELF Header:
  Magic:   7f 45 4c 46 01 02 01 00 01 00 00 00 00 00 00 00 
  Class:                             ELF32
  Data:                              2's complement, big endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - System V
  ABI Version:                       1
  Type:                              EXEC (Executable file)
  Machine:                           MIPS R3000
  Version:                           0x1
  Entry point address:               0x400460
  Start of program headers:          52 (bytes into file)
  Start of section headers:          2376 (bytes into file)
  Flags:                             0x70001005, noreorder, cpic, o32, mips32r2
  Size of this header:               52 (bytes)
  Size of program headers:           32 (bytes)
  Number of program headers:         8
  Size of section headers:           40 (bytes)
  Number of section headers:         34
  Section header string table index: 31

Section Headers:
  [Nr] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
  [ 0]                   NULL            00000000 000000 000000 00      0   0  0
  [ 1] .interp           PROGBITS        00400134 000134 00000d 00   A  0   0  1
  [ 2] .note.ABI-tag     NOTE            00400144 000144 000020 00   A  0   0  4
  [ 3] .reginfo          MIPS_REGINFO    00400164 000164 000018 18   A  0   0  4
  [ 4] .dynamic          DYNAMIC         0040017c 00017c 0000f8 08   A  7   0  4
  [ 5] .hash             HASH            00400274 000274 000030 04   A  6   0  4
  [ 6] .dynsym           DYNSYM          004002a4 0002a4 000070 10   A  7   1  4
  [ 7] .dynstr           STRTAB          00400314 000314 000066 00   A  0   0  1
  [ 8] .gnu.version      VERSYM          0040037a 00037a 00000e 02   A  6   0  2
  [ 9] .gnu.version_r    VERNEED         00400388 000388 000020 00   A  7   1  4
  [10] .rel.plt          REL             004003a8 0003a8 000008 08   A  6  12  4
  [11] .init             PROGBITS        004003b0 0003b0 000058 00  AX  0   0  4
  [12] .plt              PROGBITS        00400420 000420 000034 00  AX  0   0 32
  [13] .text             PROGBITS        00400460 000460 000260 00  AX  0   0 16
  [14] .fini             PROGBITS        004006c0 0006c0 000034 00  AX  0   0  4
  [15] .rodata           PROGBITS        004006f4 0006f4 000004 04  AM  0   0  4
  [16] .eh_frame         PROGBITS        004006f8 0006f8 000004 00   A  0   0  4
  [17] .ctors            PROGBITS        004106fc 0006fc 000008 00  WA  0   0  4
  [18] .dtors            PROGBITS        00410704 000704 000008 00  WA  0   0  4
  [19] .jcr              PROGBITS        0041070c 00070c 000004 00  WA  0   0  4
  [20] .data             PROGBITS        00410710 000710 000010 00  WA  0   0 16
  [21] .rld_map          PROGBITS        00410720 000720 000004 00  WA  0   0  4
  [22] .got.plt          PROGBITS        00410724 000724 00000c 00  WA  0   0  4
  [23] .got              PROGBITS        00410730 000730 000018 04 WAp  0   0 16
  [24] .sdata            PROGBITS        00410748 000748 000004 00 WAp  0   0  4
  [25] .bss              NOBITS          00410750 00074c 000010 00  WA  0   0 16
  [26] .pdr              PROGBITS        00000000 00074c 000060 00      0   0  4
  [27] .comment          PROGBITS        00000000 0007ac 000028 00      0   0  1
  [28] .debug_frame      MIPS_DWARF      00000000 0007d4 00004c 00      0   0  4
  [29] .gnu.attributes   LOOS+ffffff5    00000000 000820 000010 00      0   0  1
  [30] .mdebug.abi32     PROGBITS        00000070 000830 000000 00      0   0  1
  [31] .shstrtab         STRTAB          00000000 000830 000117 00      0   0  1
  [32] .symtab           SYMTAB          00000000 000e98 0004d0 10     33  52  4
  [33] .strtab           STRTAB          00000000 001368 000239 00      0   0  1
Key to Flags:
  W (write), A (alloc), X (execute), M (merge), S (strings)
  I (info), L (link order), G (group), x (unknown)
  O (extra OS processing required) o (OS specific), p (processor specific)

There are no section groups in this file.

Program Headers:
  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  PHDR           0x000034 0x00400034 0x00400034 0x00100 0x00100 R E 0x4
  INTERP         0x000134 0x00400134 0x00400134 0x0000d 0x0000d R   0x1
      [Requesting program interpreter: /lib/ld.so.1]
  REGINFO        0x000164 0x00400164 0x00400164 0x00018 0x00018 R   0x4
  LOAD           0x000000 0x00400000 0x00400000 0x006fc 0x006fc R E 0x10000
  LOAD           0x0006fc 0x004106fc 0x004106fc 0x00050 0x00064 RW  0x10000
  DYNAMIC        0x00017c 0x0040017c 0x0040017c 0x000f8 0x000f8 RWE 0x4
  NOTE           0x000144 0x00400144 0x00400144 0x00020 0x00020 R   0x4
  NULL           0x000000 0x00000000 0x00000000 0x00000 0x00000     0x4

 Section to Segment mapping:
  Segment Sections...
   00     
   01     .interp 
   02     .reginfo 
   03     .interp .note.ABI-tag .reginfo .dynamic .hash .dynsym .dynstr .gnu.version .gnu.version_r .rel.plt .init .plt .text .fini .rodata .eh_frame 
   04     .ctors .dtors .jcr .data .rld_map .got.plt .got .sdata .bss 
   05     .dynamic 
   06     .note.ABI-tag 
   07     

Dynamic section at offset 0x17c contains 26 entries:
  Tag        Type                         Name/Value
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
 0x0000000c (INIT)                       0x4003b0
 0x0000000d (FINI)                       0x4006c0
 0x00000004 (HASH)                       0x400274
 0x00000005 (STRTAB)                     0x400314
 0x00000006 (SYMTAB)                     0x4002a4
 0x0000000a (STRSZ)                      102 (bytes)
 0x0000000b (SYMENT)                     16 (bytes)
 0x70000016 (MIPS_RLD_MAP)               0x410720
 0x00000015 (DEBUG)                      0x0
 0x00000003 (PLTGOT)                     0x410730
 0x70000001 (MIPS_RLD_VERSION)           1
 0x70000005 (MIPS_FLAGS)                 NOTPOT
 0x70000006 (MIPS_BASE_ADDRESS)          0x400000
 0x7000000a (MIPS_LOCAL_GOTNO)           4
 0x70000011 (MIPS_SYMTABNO)              7
 0x70000012 (MIPS_UNREFEXTNO)            31
 0x70000013 (MIPS_GOTSYM)                0x5
 0x00000014 (PLTREL)                     REL
 0x00000017 (JMPREL)                     0x4003a8
 0x00000002 (PLTRELSZ)                   8 (bytes)
 0x70000032 (Processor Specific: 70000032) 0x410724
 0x6ffffffe (VERNEED)                    0x400388
 0x6fffffff (VERNEEDNUM)                 1
 0x6ffffff0 (VERSYM)                     0x40037a
 0x00000000 (NULL)                       0x0

Relocation section '.rel.plt' at offset 0x3a8 contains 1 entries:
 Offset     Info    Type            Sym.Value  Sym. Name
0041072c  0000027f R_MIPS_JUMP_SLOT  00000000   __libc_start_main

There are no unwind sections in this file.

Symbol table '.dynsym' contains 7 entries:
   Num:    Value  Size Type    Bind   Vis      Ndx Name
     0: 00000000     0 NOTYPE  LOCAL  DEFAULT  UND 
     1: 00000001     0 SECTION GLOBAL DEFAULT  ABS _DYNAMIC_LINKING
     2: 00000000     0 FUNC    GLOBAL DEFAULT  UND __libc_start_main@xxxxxxxxx (2)
     3: 004006f4     4 OBJECT  GLOBAL DEFAULT   15 _IO_stdin_used
     4: 00410720     0 OBJECT  GLOBAL DEFAULT   21 __RLD_MAP
     5: 004003b0     0 FUNC    GLOBAL DEFAULT   11 _init
     6: 00000000     0 FUNC    WEAK   DEFAULT  UND __gmon_start__

Symbol table '.symtab' contains 77 entries:
   Num:    Value  Size Type    Bind   Vis      Ndx Name
     0: 00000000     0 NOTYPE  LOCAL  DEFAULT  UND 
     1: 00400134     0 SECTION LOCAL  DEFAULT    1 
     2: 00400144     0 SECTION LOCAL  DEFAULT    2 
     3: 00400164     0 SECTION LOCAL  DEFAULT    3 
     4: 0040017c     0 SECTION LOCAL  DEFAULT    4 
     5: 00400274     0 SECTION LOCAL  DEFAULT    5 
     6: 004002a4     0 SECTION LOCAL  DEFAULT    6 
     7: 00400314     0 SECTION LOCAL  DEFAULT    7 
     8: 0040037a     0 SECTION LOCAL  DEFAULT    8 
     9: 00400388     0 SECTION LOCAL  DEFAULT    9 
    10: 004003a8     0 SECTION LOCAL  DEFAULT   10 
    11: 004003b0     0 SECTION LOCAL  DEFAULT   11 
    12: 00400420     0 SECTION LOCAL  DEFAULT   12 
    13: 00400460     0 SECTION LOCAL  DEFAULT   13 
    14: 004006c0     0 SECTION LOCAL  DEFAULT   14 
    15: 004006f4     0 SECTION LOCAL  DEFAULT   15 
    16: 004006f8     0 SECTION LOCAL  DEFAULT   16 
    17: 004106fc     0 SECTION LOCAL  DEFAULT   17 
    18: 00410704     0 SECTION LOCAL  DEFAULT   18 
    19: 0041070c     0 SECTION LOCAL  DEFAULT   19 
    20: 00410710     0 SECTION LOCAL  DEFAULT   20 
    21: 00410720     0 SECTION LOCAL  DEFAULT   21 
    22: 00410724     0 SECTION LOCAL  DEFAULT   22 
    23: 00410730     0 SECTION LOCAL  DEFAULT   23 
    24: 00410748     0 SECTION LOCAL  DEFAULT   24 
    25: 00410750     0 SECTION LOCAL  DEFAULT   25 
    26: 00000000     0 SECTION LOCAL  DEFAULT   26 
    27: 00000000     0 SECTION LOCAL  DEFAULT   27 
    28: 00000000     0 SECTION LOCAL  DEFAULT   28 
    29: 00000000     0 SECTION LOCAL  DEFAULT   29 
    30: 00000070     0 SECTION LOCAL  DEFAULT   30 
    31: 004004a8     0 NOTYPE  LOCAL  DEFAULT   13 hlt
    32: 00000000     0 FILE    LOCAL  DEFAULT  ABS init.c
    33: 00000000     0 FILE    LOCAL  DEFAULT  ABS crtstuff.c
    34: 004106fc     0 OBJECT  LOCAL  DEFAULT   17 __CTOR_LIST__
    35: 00410704     0 OBJECT  LOCAL  DEFAULT   18 __DTOR_LIST__
    36: 0041070c     0 OBJECT  LOCAL  DEFAULT   19 __JCR_LIST__
    37: 004004b0     0 FUNC    LOCAL  DEFAULT   13 __do_global_dtors_aux
    38: 00410750     1 OBJECT  LOCAL  DEFAULT   25 completed.5776
    39: 00410754     4 OBJECT  LOCAL  DEFAULT   25 dtor_idx.5778
    40: 0040054c     0 FUNC    LOCAL  DEFAULT   13 frame_dummy
    41: 00000000     0 FILE    LOCAL  DEFAULT  ABS crtstuff.c
    42: 00410700     0 OBJECT  LOCAL  DEFAULT   17 __CTOR_END__
    43: 004006f8     0 OBJECT  LOCAL  DEFAULT   16 __FRAME_END__
    44: 0041070c     0 OBJECT  LOCAL  DEFAULT   19 __JCR_END__
    45: 00400660     0 FUNC    LOCAL  DEFAULT   13 __do_global_ctors_aux
    46: 00000000     0 FILE    LOCAL  DEFAULT  ABS test.c
    47: 00000000     0 FILE    LOCAL  DEFAULT  ABS elf-init.c
    48: 004106fc     0 NOTYPE  LOCAL  HIDDEN   17 __init_array_end
    49: 004106fc     0 NOTYPE  LOCAL  HIDDEN   17 __init_array_start
    50: 00400420     0 FUNC    LOCAL  HIDDEN   12 _PROCEDURE_LINKAGE_TABLE_
    51: 0040017c     0 OBJECT  LOCAL  HIDDEN    4 _DYNAMIC
    52: 00410710     0 OBJECT  WEAK   DEFAULT   20 data_start
    53: 0041074c     0 NOTYPE  GLOBAL DEFAULT  ABS _fbss
    54: 004005b0     8 FUNC    GLOBAL DEFAULT   13 __libc_csu_fini
    55: 00000000     0 OBJECT  GLOBAL DEFAULT  UND _gp_disp
    56: 00000001     0 SECTION GLOBAL DEFAULT  ABS _DYNAMIC_LINKING
    57: 00000000     0 FUNC    WEAK   DEFAULT  UND __gmon_start__
    58: 00000000     0 NOTYPE  WEAK   DEFAULT  UND _Jv_RegisterClasses
    59: 004006c0     0 FUNC    GLOBAL DEFAULT   14 _fini
    60: 00410730     0 OBJECT  GLOBAL DEFAULT   23 _GLOBAL_OFFSET_TABLE_
    61: 00000000     0 FUNC    GLOBAL DEFAULT  UND __libc_start_main@@GLIBC_
    62: 004006f4     4 OBJECT  GLOBAL DEFAULT   15 _IO_stdin_used
    63: 00410710     0 OBJECT  GLOBAL DEFAULT   20 __data_start
    64: 00418720     0 NOTYPE  GLOBAL DEFAULT  ABS _gp
    65: 00400460     0 FUNC    GLOBAL DEFAULT   13 __start
    66: 00410748     0 OBJECT  GLOBAL HIDDEN   24 __dso_handle
    67: 00410708     0 OBJECT  GLOBAL HIDDEN   18 __DTOR_END__
    68: 004005b8   168 FUNC    GLOBAL DEFAULT   13 __libc_csu_init
    69: 00410710     0 NOTYPE  GLOBAL DEFAULT   20 _fdata
    70: 0041074c     0 NOTYPE  GLOBAL DEFAULT  ABS __bss_start
    71: 00400460     0 NOTYPE  GLOBAL DEFAULT   13 _ftext
    72: 00410760     0 NOTYPE  GLOBAL DEFAULT  ABS _end
    73: 00410720     0 OBJECT  GLOBAL DEFAULT   21 __RLD_MAP
    74: 0041074c     0 NOTYPE  GLOBAL DEFAULT  ABS _edata
    75: 00400580    48 FUNC    GLOBAL DEFAULT   13 main
    76: 004003b0     0 FUNC    GLOBAL DEFAULT   11 _init

Histogram for bucket list length (total of 3 buckets):
 Length  Number     % of total  Coverage
      0  0          (  0.0%)
      1  0          (  0.0%)      0.0%
      2  3          (100.0%)    100.0%

Version symbols section '.gnu.version' contains 7 entries:
 Addr: 000000000040037a  Offset: 0x00037a  Link: 6 (.dynsym)
  000:   0 (*local*)       1 (*global*)      2 (GLIBC_2.0)     1 (*global*)   
  004:   1 (*global*)      1 (*global*)      0 (*local*)    

Version needs section '.gnu.version_r' contains 1 entries:
 Addr: 0x0000000000400388  Offset: 0x000388  Link to section: 7 (.dynstr)
  000000: Version: 1  File: libc.so.6  Cnt: 1
  0x0010:   Name: GLIBC_2.0  Flags: none  Version: 2

Notes at offset 0x00000144 with length 0x00000020:
  Owner		Data size	Description
  GNU		0x00000010	NT_VERSION (version)