Advertisement
dhruvag2000

dwarf5

Apr 1st, 2022
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 18.98 KB | None | 0 0
  1. --> sudo docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp gcc:11.2 gcc -o myapp main.c -gdwarf-5
  2.  
  3. └─❯ file myapp
  4. myapp: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, with debug_info, not stripped
  5.  
  6.  
  7. └─❯ objdump -W myapp
  8.  
  9. myapp:     file format elf64-x86-64
  10.  
  11. Contents of the .eh_frame section:
  12.  
  13.  
  14. 00000000 0000000000000014 00000000 CIE
  15.   Version:               1
  16.   Augmentation:          "zR"
  17.   Code alignment factor: 1
  18.   Data alignment factor: -8
  19.   Return address column: 16
  20.   Augmentation data:     1b
  21.   DW_CFA_def_cfa: r7 (rsp) ofs 8
  22.   DW_CFA_offset: r16 (rip) at cfa-8
  23.   DW_CFA_undefined: r16 (rip)
  24.  
  25. 00000018 0000000000000010 0000001c FDE cie=00000000 pc=0000000000401040..000000000040106b
  26.   DW_CFA_nop
  27.   DW_CFA_nop
  28.   DW_CFA_nop
  29.  
  30. 0000002c 0000000000000014 00000000 CIE
  31.   Version:               1
  32.   Augmentation:          "zR"
  33.   Code alignment factor: 1
  34.   Data alignment factor: -8
  35.   Return address column: 16
  36.   Augmentation data:     1b
  37.   DW_CFA_def_cfa: r7 (rsp) ofs 8
  38.   DW_CFA_offset: r16 (rip) at cfa-8
  39.   DW_CFA_nop
  40.   DW_CFA_nop
  41.  
  42. 00000044 0000000000000010 0000001c FDE cie=0000002c pc=0000000000401070..0000000000401071
  43.   DW_CFA_nop
  44.   DW_CFA_nop
  45.   DW_CFA_nop
  46.  
  47. 00000058 0000000000000024 00000030 FDE cie=0000002c pc=0000000000401020..0000000000401040
  48.   DW_CFA_def_cfa_offset: 16
  49.   DW_CFA_advance_loc: 6 to 0000000000401026
  50.   DW_CFA_def_cfa_offset: 24
  51.   DW_CFA_advance_loc: 10 to 0000000000401030
  52.   DW_CFA_def_cfa_expression (DW_OP_breg7 (rsp): 8; DW_OP_breg16 (rip): 0; DW_OP_lit15; DW_OP_and; DW_OP_lit11; DW_OP_ge; DW_OP_lit3; DW_OP_shl; DW_OP_plus)
  53.   DW_CFA_nop
  54.   DW_CFA_nop
  55.   DW_CFA_nop
  56.   DW_CFA_nop
  57.  
  58. 00000080 000000000000001c 00000058 FDE cie=0000002c pc=0000000000401126..00000000004011d7
  59.   DW_CFA_advance_loc: 1 to 0000000000401127
  60.   DW_CFA_def_cfa_offset: 16
  61.   DW_CFA_offset: r6 (rbp) at cfa-16
  62.   DW_CFA_advance_loc: 3 to 000000000040112a
  63.   DW_CFA_def_cfa_register: r6 (rbp)
  64.   DW_CFA_advance_loc1: 172 to 00000000004011d6
  65.   DW_CFA_def_cfa: r7 (rsp) ofs 8
  66.   DW_CFA_nop
  67.   DW_CFA_nop
  68.  
  69. 000000a0 0000000000000044 00000078 FDE cie=0000002c pc=00000000004011e0..000000000040123d
  70.   DW_CFA_advance_loc: 2 to 00000000004011e2
  71.   DW_CFA_def_cfa_offset: 16
  72.   DW_CFA_offset: r15 (r15) at cfa-16
  73.   DW_CFA_advance_loc: 9 to 00000000004011eb
  74.   DW_CFA_def_cfa_offset: 24
  75.   DW_CFA_offset: r14 (r14) at cfa-24
  76.   DW_CFA_advance_loc: 5 to 00000000004011f0
  77.   DW_CFA_def_cfa_offset: 32
  78.   DW_CFA_offset: r13 (r13) at cfa-32
  79.   DW_CFA_advance_loc: 5 to 00000000004011f5
  80.   DW_CFA_def_cfa_offset: 40
  81.   DW_CFA_offset: r12 (r12) at cfa-40
  82.   DW_CFA_advance_loc: 4 to 00000000004011f9
  83.   DW_CFA_def_cfa_offset: 48
  84.   DW_CFA_offset: r6 (rbp) at cfa-48
  85.   DW_CFA_advance_loc: 8 to 0000000000401201
  86.   DW_CFA_def_cfa_offset: 56
  87.   DW_CFA_offset: r3 (rbx) at cfa-56
  88.   DW_CFA_advance_loc: 7 to 0000000000401208
  89.   DW_CFA_def_cfa_offset: 64
  90.   DW_CFA_advance_loc: 42 to 0000000000401232
  91.   DW_CFA_def_cfa_offset: 56
  92.   DW_CFA_advance_loc: 1 to 0000000000401233
  93.   DW_CFA_def_cfa_offset: 48
  94.   DW_CFA_advance_loc: 1 to 0000000000401234
  95.   DW_CFA_def_cfa_offset: 40
  96.   DW_CFA_advance_loc: 2 to 0000000000401236
  97.   DW_CFA_def_cfa_offset: 32
  98.   DW_CFA_advance_loc: 2 to 0000000000401238
  99.   DW_CFA_def_cfa_offset: 24
  100.   DW_CFA_advance_loc: 2 to 000000000040123a
  101.   DW_CFA_def_cfa_offset: 16
  102.   DW_CFA_advance_loc: 2 to 000000000040123c
  103.   DW_CFA_def_cfa_offset: 8
  104.   DW_CFA_nop
  105.  
  106. 000000e8 0000000000000010 000000c0 FDE cie=0000002c pc=0000000000401240..0000000000401241
  107.   DW_CFA_nop
  108.   DW_CFA_nop
  109.   DW_CFA_nop
  110.  
  111. 000000fc ZERO terminator
  112.  
  113.  
  114. Contents of the .debug_aranges section:
  115.  
  116.   Length:                   44
  117.   Version:                  2
  118.   Offset into .debug_info:  0x0
  119.   Pointer Size:             8
  120.   Segment Size:             0
  121.  
  122.     Address            Length
  123.     0000000000401126 00000000000000b1
  124.     0000000000000000 0000000000000000
  125.  
  126. Contents of the .debug_info section:
  127.  
  128.   Compilation Unit @ offset 0x0:
  129.    Length:        0x13b (32-bit)
  130.    Version:       5
  131.    Unit Type:     DW_UT_compile (1)
  132.    Abbrev Offset: 0x0
  133.    Pointer Size:  8
  134.  <0><c>: Abbrev Number: 6 (DW_TAG_compile_unit)
  135.     <d>   DW_AT_producer    : (indirect string, offset: 0x38): GNU C17 11.2.0 -mtune=generic -march=x86-64 -gdwarf-5
  136.     <11>   DW_AT_language    : 29   (C11)
  137.     <12>   DW_AT_name        : (indirect line string, offset: 0xf): main.c
  138.     <16>   DW_AT_comp_dir    : (indirect line string, offset: 0x0): /usr/src/myapp
  139.     <1a>   DW_AT_low_pc      : 0x401126
  140.     <22>   DW_AT_high_pc     : 0xb1
  141.     <2a>   DW_AT_stmt_list   : 0x0
  142.  <1><2e>: Abbrev Number: 1 (DW_TAG_base_type)
  143.     <2f>   DW_AT_byte_size   : 8
  144.     <30>   DW_AT_encoding    : 7    (unsigned)
  145.     <31>   DW_AT_name        : (indirect string, offset: 0x18): long unsigned int
  146.  <1><35>: Abbrev Number: 1 (DW_TAG_base_type)
  147.     <36>   DW_AT_byte_size   : 4
  148.     <37>   DW_AT_encoding    : 7    (unsigned)
  149.     <38>   DW_AT_name        : (indirect string, offset: 0x1d): unsigned int
  150.  <1><3c>: Abbrev Number: 1 (DW_TAG_base_type)
  151.     <3d>   DW_AT_byte_size   : 1
  152.     <3e>   DW_AT_encoding    : 8    (unsigned char)
  153.     <3f>   DW_AT_name        : (indirect string, offset: 0x2a): unsigned char
  154.  <1><43>: Abbrev Number: 1 (DW_TAG_base_type)
  155.     <44>   DW_AT_byte_size   : 2
  156.     <45>   DW_AT_encoding    : 7    (unsigned)
  157.     <46>   DW_AT_name        : (indirect string, offset: 0x73): short unsigned int
  158.  <1><4a>: Abbrev Number: 1 (DW_TAG_base_type)
  159.     <4b>   DW_AT_byte_size   : 1
  160.     <4c>   DW_AT_encoding    : 6    (signed char)
  161.     <4d>   DW_AT_name        : (indirect string, offset: 0x2c): signed char
  162.  <1><51>: Abbrev Number: 1 (DW_TAG_base_type)
  163.     <52>   DW_AT_byte_size   : 2
  164.     <53>   DW_AT_encoding    : 5    (signed)
  165.     <54>   DW_AT_name        : (indirect string, offset: 0x9e): short int
  166.  <1><58>: Abbrev Number: 7 (DW_TAG_base_type)
  167.     <59>   DW_AT_byte_size   : 4
  168.     <5a>   DW_AT_encoding    : 5    (signed)
  169.     <5b>   DW_AT_name        : int
  170.  <1><5f>: Abbrev Number: 1 (DW_TAG_base_type)
  171.     <60>   DW_AT_byte_size   : 8
  172.     <61>   DW_AT_encoding    : 5    (signed)
  173.     <62>   DW_AT_name        : (indirect string, offset: 0x5): long int
  174.  <1><66>: Abbrev Number: 2 (DW_TAG_pointer_type)
  175.     <67>   DW_AT_byte_size   : 8
  176.     <67>   DW_AT_type        : <0x6b>
  177.  <1><6b>: Abbrev Number: 1 (DW_TAG_base_type)
  178.     <6c>   DW_AT_byte_size   : 1
  179.     <6d>   DW_AT_encoding    : 6    (signed char)
  180.     <6e>   DW_AT_name        : (indirect string, offset: 0x33): char
  181.  <1><72>: Abbrev Number: 8 (DW_TAG_const_type)
  182.     <73>   DW_AT_type        : <0x6b>
  183.  <1><77>: Abbrev Number: 2 (DW_TAG_pointer_type)
  184.     <78>   DW_AT_byte_size   : 8
  185.     <78>   DW_AT_type        : <0x72>
  186.  <1><7c>: Abbrev Number: 1 (DW_TAG_base_type)
  187.     <7d>   DW_AT_byte_size   : 8
  188.     <7e>   DW_AT_encoding    : 5    (signed)
  189.     <7f>   DW_AT_name        : (indirect string, offset: 0x0): long long int
  190.  <1><83>: Abbrev Number: 1 (DW_TAG_base_type)
  191.     <84>   DW_AT_byte_size   : 8
  192.     <85>   DW_AT_encoding    : 7    (unsigned)
  193.     <86>   DW_AT_name        : (indirect string, offset: 0x13): long long unsigned int
  194.  <1><8a>: Abbrev Number: 9 (DW_TAG_subprogram)
  195.     <8b>   DW_AT_external    : 1
  196.     <8b>   DW_AT_name        : (indirect string, offset: 0x86): printf
  197.     <8f>   DW_AT_decl_file   : 2
  198.     <90>   DW_AT_decl_line   : 332
  199.     <92>   DW_AT_decl_column : 12
  200.     <93>   DW_AT_prototyped  : 1
  201.     <93>   DW_AT_type        : <0x58>
  202.     <97>   DW_AT_declaration : 1
  203.     <97>   DW_AT_sibling     : <0xa2>
  204.  <2><9b>: Abbrev Number: 10 (DW_TAG_formal_parameter)
  205.     <9c>   DW_AT_type        : <0x77>
  206.  <2><a0>: Abbrev Number: 11 (DW_TAG_unspecified_parameters)
  207.  <2><a1>: Abbrev Number: 0
  208.  <1><a2>: Abbrev Number: 12 (DW_TAG_subprogram)
  209.     <a3>   DW_AT_external    : 1
  210.     <a3>   DW_AT_name        : (indirect string, offset: 0xe): main
  211.     <a7>   DW_AT_decl_file   : 1
  212.     <a8>   DW_AT_decl_line   : 30
  213.     <a9>   DW_AT_decl_column : 1
  214.     <aa>   DW_AT_prototyped  : 1
  215.     <aa>   DW_AT_type        : <0x58>
  216.     <ae>   DW_AT_low_pc      : 0x401126
  217.     <b6>   DW_AT_high_pc     : 0xb1
  218.     <be>   DW_AT_frame_base  : 1 byte block: 9c     (DW_OP_call_frame_cfa)
  219.     <c0>   DW_AT_call_all_tail_calls: 1
  220.     <c0>   DW_AT_sibling     : <0x12f>
  221.  <2><c4>: Abbrev Number: 4 (DW_TAG_formal_parameter)
  222.     <c5>   DW_AT_name        : (indirect string, offset: 0x6e): argc
  223.     <c9>   DW_AT_decl_file   : 1
  224.     <c9>   DW_AT_decl_line   : 30
  225.     <c9>   DW_AT_decl_column : 12
  226.     <ca>   DW_AT_type        : <0x58>
  227.     <ce>   DW_AT_location    : 3 byte block: 91 bc 7f   (DW_OP_fbreg: -68)
  228.  <2><d2>: Abbrev Number: 4 (DW_TAG_formal_parameter)
  229.     <d3>   DW_AT_name        : (indirect string, offset: 0x99): argv
  230.     <d7>   DW_AT_decl_file   : 1
  231.     <d7>   DW_AT_decl_line   : 30
  232.     <d7>   DW_AT_decl_column : 24
  233.     <d8>   DW_AT_type        : <0x12f>
  234.     <dc>   DW_AT_location    : 3 byte block: 91 b0 7f   (DW_OP_fbreg: -80)
  235.  <2><e0>: Abbrev Number: 5 (DW_TAG_variable)
  236.     <e1>   DW_AT_name        : a
  237.     <e3>   DW_AT_decl_file   : 1
  238.     <e3>   DW_AT_decl_line   : 32
  239.     <e3>   DW_AT_decl_column : 6
  240.     <e4>   DW_AT_type        : <0x58>
  241.     <e8>   DW_AT_location    : 2 byte block: 91 5c  (DW_OP_fbreg: -36)
  242.  <2><eb>: Abbrev Number: 5 (DW_TAG_variable)
  243.     <ec>   DW_AT_name        : b
  244.     <ee>   DW_AT_decl_file   : 1
  245.     <ee>   DW_AT_decl_line   : 32
  246.     <ee>   DW_AT_decl_column : 14
  247.     <ef>   DW_AT_type        : <0x58>
  248.     <f3>   DW_AT_location    : 2 byte block: 91 58  (DW_OP_fbreg: -40)
  249.  <2><f6>: Abbrev Number: 3 (DW_TAG_variable)
  250.     <f7>   DW_AT_name        : (indirect string, offset: 0x8e): ptra
  251.     <fb>   DW_AT_decl_file   : 1
  252.     <fb>   DW_AT_decl_line   : 33
  253.     <fc>   DW_AT_decl_column : 7
  254.     <fd>   DW_AT_type        : <0x134>
  255.     <101>   DW_AT_location    : 2 byte block: 91 50     (DW_OP_fbreg: -48)
  256.  <2><104>: Abbrev Number: 3 (DW_TAG_variable)
  257.     <105>   DW_AT_name        : (indirect string, offset: 0x94): ptrb
  258.     <109>   DW_AT_decl_file   : 1
  259.     <109>   DW_AT_decl_line   : 33
  260.     <10a>   DW_AT_decl_column : 19
  261.     <10b>   DW_AT_type        : <0x134>
  262.     <10f>   DW_AT_location    : 2 byte block: 91 48     (DW_OP_fbreg: -56)
  263.  <2><112>: Abbrev Number: 3 (DW_TAG_variable)
  264.     <113>   DW_AT_name        : (indirect string, offset: 0x8d): pptra
  265.     <117>   DW_AT_decl_file   : 1
  266.     <117>   DW_AT_decl_line   : 38
  267.     <118>   DW_AT_decl_column : 9
  268.     <119>   DW_AT_type        : <0x139>
  269.     <11d>   DW_AT_location    : 2 byte block: 91 68     (DW_OP_fbreg: -24)
  270.  <2><120>: Abbrev Number: 3 (DW_TAG_variable)
  271.     <121>   DW_AT_name        : (indirect string, offset: 0x93): pptrb
  272.     <125>   DW_AT_decl_file   : 1
  273.     <125>   DW_AT_decl_line   : 38
  274.     <126>   DW_AT_decl_column : 26
  275.     <127>   DW_AT_type        : <0x139>
  276.     <12b>   DW_AT_location    : 2 byte block: 91 60     (DW_OP_fbreg: -32)
  277.  <2><12e>: Abbrev Number: 0
  278.  <1><12f>: Abbrev Number: 2 (DW_TAG_pointer_type)
  279.     <130>   DW_AT_byte_size   : 8
  280.     <130>   DW_AT_type        : <0x66>
  281.  <1><134>: Abbrev Number: 2 (DW_TAG_pointer_type)
  282.     <135>   DW_AT_byte_size   : 8
  283.     <135>   DW_AT_type        : <0x58>
  284.  <1><139>: Abbrev Number: 2 (DW_TAG_pointer_type)
  285.     <13a>   DW_AT_byte_size   : 8
  286.     <13a>   DW_AT_type        : <0x134>
  287.  <1><13e>: Abbrev Number: 0
  288.  
  289. Contents of the .debug_abbrev section:
  290.  
  291.   Number TAG (0x0)
  292.    1      DW_TAG_base_type    [no children]
  293.     DW_AT_byte_size    DW_FORM_data1
  294.     DW_AT_encoding     DW_FORM_data1
  295.     DW_AT_name         DW_FORM_strp
  296.     DW_AT value: 0     DW_FORM value: 0
  297.    2      DW_TAG_pointer_type    [no children]
  298.     DW_AT_byte_size    DW_FORM_implicit_const: 8
  299.     DW_AT_type         DW_FORM_ref4
  300.     DW_AT value: 0     DW_FORM value: 0
  301.    3      DW_TAG_variable    [no children]
  302.     DW_AT_name         DW_FORM_strp
  303.     DW_AT_decl_file    DW_FORM_implicit_const: 1
  304.     DW_AT_decl_line    DW_FORM_data1
  305.     DW_AT_decl_column  DW_FORM_data1
  306.     DW_AT_type         DW_FORM_ref4
  307.     DW_AT_location     DW_FORM_exprloc
  308.     DW_AT value: 0     DW_FORM value: 0
  309.    4      DW_TAG_formal_parameter    [no children]
  310.     DW_AT_name         DW_FORM_strp
  311.     DW_AT_decl_file    DW_FORM_implicit_const: 1
  312.     DW_AT_decl_line    DW_FORM_implicit_const: 30
  313.     DW_AT_decl_column  DW_FORM_data1
  314.     DW_AT_type         DW_FORM_ref4
  315.     DW_AT_location     DW_FORM_exprloc
  316.     DW_AT value: 0     DW_FORM value: 0
  317.    5      DW_TAG_variable    [no children]
  318.     DW_AT_name         DW_FORM_string
  319.     DW_AT_decl_file    DW_FORM_implicit_const: 1
  320.     DW_AT_decl_line    DW_FORM_implicit_const: 32
  321.     DW_AT_decl_column  DW_FORM_data1
  322.     DW_AT_type         DW_FORM_ref4
  323.     DW_AT_location     DW_FORM_exprloc
  324.     DW_AT value: 0     DW_FORM value: 0
  325.    6      DW_TAG_compile_unit    [has children]
  326.     DW_AT_producer     DW_FORM_strp
  327.     DW_AT_language     DW_FORM_data1
  328.     DW_AT_name         DW_FORM_line_strp
  329.     DW_AT_comp_dir     DW_FORM_line_strp
  330.     DW_AT_low_pc       DW_FORM_addr
  331.     DW_AT_high_pc      DW_FORM_data8
  332.     DW_AT_stmt_list    DW_FORM_sec_offset
  333.     DW_AT value: 0     DW_FORM value: 0
  334.    7      DW_TAG_base_type    [no children]
  335.     DW_AT_byte_size    DW_FORM_data1
  336.     DW_AT_encoding     DW_FORM_data1
  337.     DW_AT_name         DW_FORM_string
  338.     DW_AT value: 0     DW_FORM value: 0
  339.    8      DW_TAG_const_type    [no children]
  340.     DW_AT_type         DW_FORM_ref4
  341.     DW_AT value: 0     DW_FORM value: 0
  342.    9      DW_TAG_subprogram    [has children]
  343.     DW_AT_external     DW_FORM_flag_present
  344.     DW_AT_name         DW_FORM_strp
  345.     DW_AT_decl_file    DW_FORM_data1
  346.     DW_AT_decl_line    DW_FORM_data2
  347.     DW_AT_decl_column  DW_FORM_data1
  348.     DW_AT_prototyped   DW_FORM_flag_present
  349.     DW_AT_type         DW_FORM_ref4
  350.     DW_AT_declaration  DW_FORM_flag_present
  351.     DW_AT_sibling      DW_FORM_ref4
  352.     DW_AT value: 0     DW_FORM value: 0
  353.    10      DW_TAG_formal_parameter    [no children]
  354.     DW_AT_type         DW_FORM_ref4
  355.     DW_AT value: 0     DW_FORM value: 0
  356.    11      DW_TAG_unspecified_parameters    [no children]
  357.     DW_AT value: 0     DW_FORM value: 0
  358.    12      DW_TAG_subprogram    [has children]
  359.     DW_AT_external     DW_FORM_flag_present
  360.     DW_AT_name         DW_FORM_strp
  361.     DW_AT_decl_file    DW_FORM_data1
  362.     DW_AT_decl_line    DW_FORM_data1
  363.     DW_AT_decl_column  DW_FORM_data1
  364.     DW_AT_prototyped   DW_FORM_flag_present
  365.     DW_AT_type         DW_FORM_ref4
  366.     DW_AT_low_pc       DW_FORM_addr
  367.     DW_AT_high_pc      DW_FORM_data8
  368.     DW_AT_frame_base   DW_FORM_exprloc
  369.     DW_AT_call_all_tail_calls DW_FORM_flag_present
  370.     DW_AT_sibling      DW_FORM_ref4
  371.     DW_AT value: 0     DW_FORM value: 0
  372.  
  373. Raw dump of debug contents of section .debug_line:
  374.  
  375.   Offset:                      0x0
  376.   Length:                      129
  377.   DWARF Version:               5
  378.   Address size (bytes):        8
  379.   Segment selector (bytes):    0
  380.   Prologue Length:             51
  381.   Minimum Instruction Length:  1
  382.   Maximum Ops per Instruction: 1
  383.   Initial value of 'is_stmt':  1
  384.   Line Base:                   -5
  385.   Line Range:                  14
  386.   Opcode Base:                 13
  387.  
  388.  Opcodes:
  389.   Opcode 1 has 0 args
  390.   Opcode 2 has 1 arg
  391.   Opcode 3 has 1 arg
  392.   Opcode 4 has 1 arg
  393.   Opcode 5 has 1 arg
  394.   Opcode 6 has 0 args
  395.   Opcode 7 has 0 args
  396.   Opcode 8 has 0 args
  397.   Opcode 9 has 1 arg
  398.   Opcode 10 has 0 args
  399.   Opcode 11 has 0 args
  400.   Opcode 12 has 1 arg
  401.  
  402.  The Directory Table (offset 0x22, lines 2, columns 1):
  403.   Entry Name
  404.   0 (indirect line string, offset: 0x0): /usr/src/myapp
  405.   1 (indirect line string, offset: 0x16): /usr/include
  406.  
  407.  The File Name Table (offset 0x30, lines 3, columns 2):
  408.   Entry Dir Name
  409.   0 0   (indirect line string, offset: 0xf): main.c
  410.   1 0   (indirect line string, offset: 0xf): main.c
  411.   2 1   (indirect line string, offset: 0x23): stdio.h
  412.  
  413.  Line Number Statements:
  414.   [0x0000003f]  Set column to 1
  415.   [0x00000041]  Extended opcode 2: set Address to 0x401126
  416.   [0x0000004c]  Advance Line by 30 to 31
  417.   [0x0000004e]  Copy
  418.   [0x0000004f]  Set column to 6
  419.   [0x00000051]  Special opcode 216: advance Address by 15 to 0x401135 and Line by 1 to 32
  420.   [0x00000052]  Set column to 14
  421.   [0x00000054]  Special opcode 103: advance Address by 7 to 0x40113c and Line by 0 to 32
  422.   [0x00000055]  Set column to 7
  423.   [0x00000057]  Special opcode 104: advance Address by 7 to 0x401143 and Line by 1 to 33
  424.   [0x00000058]  Set column to 19
  425.   [0x0000005a]  Special opcode 117: advance Address by 8 to 0x40114b and Line by 0 to 33
  426.   [0x0000005b]  Set column to 2
  427.   [0x0000005d]  Special opcode 118: advance Address by 8 to 0x401153 and Line by 1 to 34
  428.   [0x0000005e]  Set column to 7
  429.   [0x00000060]  Advance PC by constant 17 to 0x401164
  430.   [0x00000061]  Special opcode 174: advance Address by 12 to 0x401170 and Line by 1 to 35
  431.   [0x00000062]  Special opcode 118: advance Address by 8 to 0x401178 and Line by 1 to 36
  432.   [0x00000063]  Set column to 2
  433.   [0x00000065]  Special opcode 118: advance Address by 8 to 0x401180 and Line by 1 to 37
  434.   [0x00000066]  Set column to 9
  435.   [0x00000068]  Advance PC by constant 17 to 0x401191
  436.   [0x00000069]  Special opcode 174: advance Address by 12 to 0x40119d and Line by 1 to 38
  437.   [0x0000006a]  Set column to 26
  438.   [0x0000006c]  Special opcode 117: advance Address by 8 to 0x4011a5 and Line by 0 to 38
  439.   [0x0000006d]  Set column to 43
  440.   [0x0000006f]  Special opcode 118: advance Address by 8 to 0x4011ad and Line by 1 to 39
  441.   [0x00000070]  Set column to 2
  442.   [0x00000072]  Special opcode 103: advance Address by 7 to 0x4011b4 and Line by 0 to 39
  443.   [0x00000073]  Set column to 34
  444.   [0x00000075]  Special opcode 33: advance Address by 2 to 0x4011b6 and Line by 0 to 39
  445.   [0x00000076]  Set column to 2
  446.   [0x00000078]  Special opcode 103: advance Address by 7 to 0x4011bd and Line by 0 to 39
  447.   [0x00000079]  Set column to 9
  448.   [0x0000007b]  Advance PC by constant 17 to 0x4011ce
  449.   [0x0000007c]  Special opcode 34: advance Address by 2 to 0x4011d0 and Line by 1 to 40
  450.   [0x0000007d]  Set column to 1
  451.   [0x0000007f]  Special opcode 76: advance Address by 5 to 0x4011d5 and Line by 1 to 41
  452.   [0x00000080]  Advance PC by 2 to 0x4011d7
  453.   [0x00000082]  Extended opcode 1: End of Sequence
  454.  
  455.  
  456. Contents of the .debug_str section:
  457.  
  458.   0x00000000 6c6f6e67 206c6f6e 6720696e 74006d61 long long int.ma
  459.   0x00000010 696e006c 6f6e6720 6c6f6e67 20756e73 in.long long uns
  460.   0x00000020 69676e65 6420696e 7400756e 7369676e igned int.unsign
  461.   0x00000030 65642063 68617200 474e5520 43313720 ed char.GNU C17
  462.   0x00000040 31312e32 2e30202d 6d74756e 653d6765 11.2.0 -mtune=ge
  463.   0x00000050 6e657269 63202d6d 61726368 3d783836 neric -march=x86
  464.   0x00000060 2d363420 2d676477 6172662d 35006172 -64 -gdwarf-5.ar
  465.   0x00000070 67630073 686f7274 20756e73 69676e65 gc.short unsigne
  466.   0x00000080 6420696e 74007072 696e7466 00707074 d int.printf.ppt
  467.   0x00000090 72610070 70747262 00617267 76007368 ra.pptrb.argv.sh
  468.   0x000000a0 6f727420 696e7400                   ort int.
  469.  
  470. Contents of the .debug_line_str section:
  471.  
  472.   0x00000000 2f757372 2f737263 2f6d7961 7070006d /usr/src/myapp.m
  473.   0x00000010 61696e2e 63002f75 73722f69 6e636c75 ain.c./usr/inclu
  474.   0x00000020 64650073 7464696f 2e6800            de.stdio.h.
  475.  
  476.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement