最終更新:2019-10-06 (日) 13:15:26 (67d)  

ELF/セクションヘッダテーブル はてなブックマークを見る
Top / ELF / セクションヘッダテーブル

表示

種類

  • ValueNameMeaning
    0x0SHT_NULL?Section header table entry unused
    0x1SHT_PROGBITSProgram specific (private) data
    0x2SHT_SYMTABSymbol table
    0x3SHT_STRTABString table
    0x4SHT_RELA?Relocation entries with addends
    0x5SHT_HASH?Symbol hash table
    0x6SHT_DYNAMIC?Dynamic linking information
    0x7SHT_NOTENotes
    0x8SHT_NOBITSProgram space with no data (bss)
    0x9SHT_REL?Relocation entries, no addends
    0x0ASHT_SHLIB?Reserved
    0x0BSHT_DYNSYMDynamic linker symbol table
    0x0ESHT_INIT_ARRAY?Array of constructors
    0x0FSHT_FINI_ARRAY?Array of destructors
    0x10SHT_PREINIT_ARRAY?Array of pre-constructors
    0x11SHT_GROUP?Section group
    0x12SHT_SYMTAB_SHNDX?Extended section indices
    0x13SHT_NUM?Number of defined types.
    0x60000000SHT_LOOS?Start OS-specific.

構造体

  • readelf -S
    NoNameTypeAddressOffsetSizeEntSize?FlagsLinkInfoAlign
    0SHT_NULL?00000000000000000000000000000000000000000000000000000000000
    1.interpSHT_PROGBITS000000000040023800000238000000000000001c0000000000000000A001動的リンクを実際に処理するインタプリタ
    2.note.ABI-tag?SHT_NOTE00000000004002540000025400000000000000200000000000000000A004
    3.note.gnu.build-i?SHT_NOTE00000000004002740000027400000000000000240000000000000000A004
    4.gnu.hash?SHT_GNU_HASH?000000000040029800000298000000000000001c0000000000000000A508
    5.dynsymSHT_DYNSYM00000000004002b8000002b800000000000000600000000000000018A618動的シンボルテーブル
    6.dynstrSHT_STRTAB000000000040031800000318000000000000003d0000000000000000A001動的シンボル?の文字列テーブル
    7.gnu.version?SHT_VERSYM?00000000004003560000035600000000000000080000000000000002A502
    8.gnu.version_r?SHT_VERNEED?00000000004003600000036000000000000000200000000000000000A618
    9.rela.dyn?SHT_RELA?00000000004003800000038000000000000000180000000000000018A508
    10.rela.pltSHT_RELA?00000000004003980000039800000000000000300000000000000018AI5248
    11.init?SHT_PROGBITS00000000004003c8000003c8000000000000001a0000000000000000AX004
    12.plt?SHT_PROGBITS00000000004003f0000003f000000000000000300000000000000010AX0016
    13.plt.got?SHT_PROGBITS00000000004004200000042000000000000000080000000000000000AX008
    14.textSHT_PROGBITS00000000004004300000043000000000000001920000000000000000AX0016C言語などで書いたプログラムをコンパイルしたコード
    15.fini?SHT_PROGBITS00000000004005c4000005c400000000000000090000000000000000AX004
    16.rodataSHT_PROGBITS00000000004005d0000005d000000000000000120000000000000000A004
    17.eh_frame_hdr?SHT_PROGBITS00000000004005e4000005e400000000000000340000000000000000A004
    18.eh_frame?SHT_PROGBITS00000000004006180000061800000000000000f40000000000000000A008
    19.init_array?SHT_INIT_ARRAY?0000000000600e1000000e1000000000000000080000000000000000WA008
    20.fini_array?SHT_FINI_ARRAY?0000000000600e1800000e1800000000000000080000000000000000WA008
    21.jcr?SHT_PROGBITS0000000000600e2000000e2000000000000000080000000000000000WA008
    22.dynamicSHT_DYNAMIC?0000000000600e2800000e2800000000000001d00000000000000010WA608動的リンクに必要な情報を集めたテーブル
    23.got?SHT_PROGBITS0000000000600ff800000ff800000000000000080000000000000008WA008
    24.got.plt?SHT_PROGBITS00000000006010000000100000000000000000280000000000000008WA008
    25.dataSHT_PROGBITS00000000006010280000102800000000000000100000000000000000WA008
    26.bssSHT_NOBITS00000000006010380000103800000000000000080000000000000000WA001
    27.comment?SHT_PROGBITS00000000000000000000103800000000000000350000000000000001MS001
    28.shstrtabSHT_STRTAB0000000000000000000018cc000000000000010c0000000000000000001セクション名の文字列テーブル
    29.symtabSHT_SYMTAB0000000000000000000010700000000000000648000000000000001830478シンボルテーブル
    30.strtabSHT_STRTAB0000000000000000000016b800000000000002140000000000000000001シンボル名の文字列テーブル

デバッグビルド時

  • NoNameTypeAddressOffsetSizeEntSize?FlagsLinkInfoAlign
    28.debug_aranges?SHT_PROGBITS00000000000000000000106d00000000000000300000000000000000001
    29.debug_info?SHT_PROGBITS00000000000000000000109d00000000000000be0000000000000000001
    30.debug_abbrev?SHT_PROGBITS00000000000000000000115b000000000000005e0000000000000000001
    31.debug_line?SHT_PROGBITS0000000000000000000011b9000000000000003c0000000000000000001
    32.debug_str?SHT_PROGBITS0000000000000000000011f500000000000000c60000000000000001MS001
    33.shstrtabSHT_STRTAB000000000000000000001b94000000000000014c0000000000000000001
    34.symtabSHT_SYMTAB0000000000000000000012c000000000000006c0000000000000001835528
    35.strtabSHT_STRTAB00000000000000000000198000000000000002140000000000000000001

関連

参考