This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [committed, PATCH] Always create dynsym section with dynamic sections


Here goes:
# mips-mti-linux-gnu-readelf -SWl gcsec-1.exe

There are 36 section headers, starting at offset 0x3f21a8:

Section Headers:
  [Nr] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
  [ 0]                   NULL            00000000 000000 000000 00      0   0  0
  [ 1] .note.ABI-tag     NOTE            004000d4 0000d4 000020 00   A  0   0  4
  [ 2] .MIPS.abiflags    MIPS_ABIFLAGS   004000f8 0000f8 000018 18   A  0   0  8
  [ 3] .init             PROGBITS        00400110 000110 000074 00  AX  0   0  4
  [ 4] .text             PROGBITS        00400190 000190 069090 00  AX  0   0 16
  [ 5] .fini             PROGBITS        00469220 069220 000044 00  AX  0   0  4
  [ 6] .rodata           PROGBITS        00469270 069270 0168b0 00   A  0   0 16
  [ 7] __libc_atexit     PROGBITS        0047fb20 07fb20 000004 00   A  0   0  4
  [ 8] .eh_frame         PROGBITS        0047fb24 07fb24 002fe8 00   A  0   0  4
  [ 9] .gcc_except_table PROGBITS        00482b0c 082b0c 0000af 00   A  0   0  1
  [10] .tdata            PROGBITS        00493000 083000 000010 00 WAT  0   0  4
  [11] .tbss             NOBITS          00493010 083010 000018 00 WAT  0   0  4
  [12] .fini_array       FINI_ARRAY      00493010 083010 000004 00  WA  0   0  4
  [13] .ctors            PROGBITS        00493014 083014 000008 00  WA  0   0  4
  [14] .dtors            PROGBITS        0049301c 08301c 000008 00  WA  0   0  4
  [15] .jcr              PROGBITS        00493024 083024 000004 00  WA  0   0  4
  [16] .data.rel.ro      PROGBITS        00493028 083028 000038 00  WA  0   0  4
  [17] .data             PROGBITS        00493060 083060 000ff0 00  WA  0   0 16
  [18] .got              PROGBITS        00494050 084050 0000e0 04 WAp  0   0 16
  [19] .sbss             NOBITS          00494130 084130 0000c8 00 WAp  0   0  8
  [20] .bss              NOBITS          00494200 084130 000cf0 00  WA  0   0 16
  [21] __libc_freeres_ptrs NOBITS          00494ef0 084130 000018 00  WA  0   0  4
  [22] .comment          PROGBITS        00000000 084130 000029 01  MS  0   0  1
  [23] .debug_aranges    MIPS_DWARF      00000000 084160 002820 00      0   0  8
  [24] .debug_info       MIPS_DWARF      00000000 086980 21fd8e 00      0   0  1
  [25] .debug_abbrev     MIPS_DWARF      00000000 2a670e 02efb0 00      0   0  1
  [26] .debug_line       MIPS_DWARF      00000000 2d56be 04bbae 00      0   0  1
  [27] .debug_frame      MIPS_DWARF      00000000 32126c 0069e0 00      0   0  4
  [28] .debug_str        MIPS_DWARF      00000000 327c4c 012835 01  MS  0   0  1
  [29] .debug_loc        MIPS_DWARF      00000000 33a481 093917 00      0   0  1
  [30] .debug_ranges     MIPS_DWARF      00000000 3cdd98 0166c0 00      0   0  8
  [31] .gnu.attributes   LOOS+0xffffff5  00000000 3e4458 000010 00      0   0  1
  [32] .mdebug.abi32     PROGBITS        00000000 3e4468 000000 00      0   0  1
  [33] .shstrtab         STRTAB          00000000 3f203c 00016c 00      0   0  1
  [34] .symtab           SYMTAB          00000000 3e4468 0075a0 10     35 886  4
  [35] .strtab           STRTAB          00000000 3eba08 006634 00      0   0  1
Key to Flags:
  W (write), A (alloc), X (execute), M (merge), S (strings), I (info),
  L (link order), O (extra OS processing required), G (group), T (TLS),
  C (compressed), x (unknown), o (OS specific), E (exclude),
  p (processor specific)

Elf file type is EXEC (Executable file)
Entry point 0x4003e0
There are 5 program headers, starting at offset 52

Program Headers:
  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  ABIFLAGS       0x0000f8 0x004000f8 0x004000f8 0x00018 0x00018 R   0x8
  LOAD           0x000000 0x00400000 0x00400000 0x82bbb 0x82bbb R E 0x10000
  LOAD           0x083000 0x00493000 0x00493000 0x01130 0x01f08 RW  0x10000
  NOTE           0x0000d4 0x004000d4 0x004000d4 0x00020 0x00020 R   0x4
  TLS            0x083000 0x00493000 0x00493000 0x00010 0x00028 R   0x4

 Section to Segment mapping:
  Segment Sections...
   00     .MIPS.abiflags 
   01     .note.ABI-tag .MIPS.abiflags .init .text .fini .rodata __libc_atexit .eh_frame .gcc_except_table 
   02     .tdata .fini_array .ctors .dtors .jcr .data.rel.ro .data .got .sbss .bss __libc_freeres_ptrs 
   03     .note.ABI-tag 
   04     .tdata .tbss 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]