科技行者

行者学院 转型私董会 科技行者专题报道 网红大战科技行者

知识库

知识库 安全导航

至顶网网络频道UNIX系统 目标文件初探

UNIX系统 目标文件初探

  • 扫一扫
    分享文章到微信

  • 扫一扫
    关注官方公众号
    至顶头条

UNIX(R) 系统中运行的程序遵守一种称为目标文件格式的精心设计。了解更多关于目标文件格式的内容,以及可以用来研究系统中目标文件的工具。

来源:chinaitlab 2007年12月27日

关键字: unix 系统安全

  • 评论
  • 分享微博
  • 分享邮件

在本页阅读全文(共8页)

Contents of the .debug_abbrev section:

  Number TAG
   1      DW_TAG_compile_unit    [no children]
    DW_AT_stmt_list    DW_FORM_data4
    DW_AT_low_pc       DW_FORM_addr
    DW_AT_high_pc      DW_FORM_addr
    DW_AT_name         DW_FORM_string
    DW_AT_comp_dir     DW_FORM_string
    DW_AT_producer     DW_FORM_string
    DW_AT_language     DW_FORM_data2

  Number TAG

   1      DW_TAG_compile_unit    [has children]

    DW_AT_stmt_list    DW_FORM_data4
    DW_AT_high_pc      DW_FORM_addr
    DW_AT_low_pc       DW_FORM_addr
    DW_AT_producer     DW_FORM_strp
    DW_AT_language     DW_FORM_data1
    DW_AT_name         DW_FORM_strp
    DW_AT_comp_dir     DW_FORM_strp

   2      DW_TAG_base_type    [no children]

    DW_AT_name         DW_FORM_strp
    DW_AT_byte_size    DW_FORM_data1
    DW_AT_encoding     DW_FORM_data1

   3      DW_TAG_base_type    [no children]

    DW_AT_name         DW_FORM_string
    DW_AT_byte_size    DW_FORM_data1
    DW_AT_encoding     DW_FORM_data1

   4      DW_TAG_variable    [no children]

    DW_AT_name         DW_FORM_strp
    DW_AT_decl_file    DW_FORM_data1
    DW_AT_decl_line    DW_FORM_data1
    DW_AT_type         DW_FORM_ref4
    DW_AT_external     DW_FORM_flag
    DW_AT_location     DW_FORM_block1

   5      DW_TAG_const_type    [no children]

    DW_AT_type         DW_FORM_ref4
    Number TAG

   1      DW_TAG_compile_unit    [no children]

    DW_AT_stmt_list    DW_FORM_data4
    DW_AT_name         DW_FORM_string
    DW_AT_comp_dir     DW_FORM_string
    DW_AT_producer     DW_FORM_string
    DW_AT_language     DW_FORM_data2
    Number TAG

   1      DW_TAG_compile_unit    [no children]

    DW_AT_stmt_list    DW_FORM_data4
    DW_AT_name         DW_FORM_string
    DW_AT_comp_dir     DW_FORM_string
    DW_AT_producer     DW_FORM_string
    DW_AT_language     DW_FORM_data2


Dump of debug contents of section .debug_line:

  Length:                      87
  DWARF Version:               2
  Prologue Length:             50
  Minimum Instruction Length:  1
  Initial value of 'is_stmt':  1
  Line Base:                   -5
  Line Range:                  14
  Opcode Base:                 13
  (Pointer size:               4)

Opcodes:
  Opcode 1 has 0 args
  Opcode 2 has 1 args
  Opcode 3 has 1 args
  Opcode 4 has 1 args
  Opcode 5 has 1 args
  Opcode 6 has 0 args
  Opcode 7 has 0 args
  Opcode 8 has 0 args
  Opcode 9 has 1 args
  Opcode 10 has 0 args
  Opcode 11 has 0 args
  Opcode 12 has 1 args

The Directory Table:
  ../sysdeps/i386/elf

The File Name Table:
  Entry Dir     Time    Size    Name
  1     1       0       0       start.S

Line Number Statements:
  Extended opcode 2: set Address to 0x80482c0
  Advance Line by 64 to 65
  Copy
  Special opcode 38: advance Address by 2 to 0x80482c2 and Line by 5 to 70
  Special opcode 20: advance Address by 1 to 0x80482c3 and Line by 1 to 71
  Special opcode 39: advance Address by 2 to 0x80482c5 and Line by 6 to 77
  Special opcode 48: advance Address by 3 to 0x80482c8 and Line by 1 to 78
  Special opcode 24: advance Address by 1 to 0x80482c9 and Line by 5 to 83
  Special opcode 21: advance Address by 1 to 0x80482ca and Line by 2 to 85
  Advance Line by 24 to 109
  Special opcode 19: advance Address by 1 to 0x80482cb and Line by 0 to 109
  Special opcode 76: advance Address by 5 to 0x80482d0 and Line by 1 to 110
  Special opcode 77: advance Address by 5 to 0x80482d5 and Line by 2 to 112
  Special opcode 20: advance Address by 1 to 0x80482d6 and Line by 1 to 113
  Special opcode 21: advance Address by 1 to 0x80482d7 and Line by 2 to 115
  Special opcode 79: advance Address by 5 to 0x80482dc and Line by 4 to 119
  Special opcode 78: advance Address by 5 to 0x80482e1 and Line by 3 to 122
  Advance PC by 1 to 0x80482e2
  Extended opcode 1: End of Sequence


  Length:                      35
  DWARF Version:               2
  Prologue Length:             29
  Minimum Instruction Length:  1
  Initial value of 'is_stmt':  1
  Line Base:                   -5
  Line Range:                  14
  Opcode Base:                 13
  (Pointer size:               4)

Opcodes:
  Opcode 1 has 0 args
  Opcode 2 has 1 args
  Opcode 3 has 1 args
  Opcode 4 has 1 args
  Opcode 5 has 1 args
  Opcode 6 has 0 args
  Opcode 7 has 0 args
  Opcode 8 has 0 args
  Opcode 9 has 1 args
  Opcode 10 has 0 args
  Opcode 11 has 0 args
  Opcode 12 has 1 args

The Directory Table is empty.

The File Name Table:
  Entry Dir     Time    Size    Name
  1     0       0       0       init.c

Line Number Statements:

  Length:                      169
  DWARF Version:               2
  Prologue Length:             80
  Minimum Instruction Length:  1
  Initial value of 'is_stmt':  1
  Line Base:                   -5
  Line Range:                  14
  Opcode Base:                 13
  (Pointer size:               4)
    • 评论
    • 分享微博
    • 分享邮件
    邮件订阅

    如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。

    重磅专题
    往期文章
    最新文章