Skip to content

Instantly share code, notes, and snippets.

@pizzamig
Created October 14, 2019 11:32
Show Gist options
  • Save pizzamig/1905b5248c502effcc0d77a8f4b83b8a to your computer and use it in GitHub Desktop.
Save pizzamig/1905b5248c502effcc0d77a8f4b83b8a to your computer and use it in GitHub Desktop.
CLANG 8.0 (ports) : readelf -wi test80 | rg -B 1 -A 6 Foo
<1><845>: Abbrev Number: 2 (DW_TAG_enumeration_type)
<846> DW_AT_name : (indirect string) Foo
<84a> DW_AT_byte_size : 1
<84b> DW_AT_decl_file : 1
<84c> DW_AT_decl_line : 3
CLANG 9.0: readelf -wi test90 | rg -B 1 -A 6 Foo
<1><845>: Abbrev Number: 2 (DW_TAG_enumeration_type)
<846> DW_AT_name : (indirect string) Foo
<84a> DW_AT_byte_size : 1
<84b> DW_AT_decl_file : 1
<84c> DW_AT_decl_line : 3
CLANG 8.0.1 (base): readelf -wi test | rg -B 1 -A 6 Foo
<842> DW_AT_type : <0xb86>
<846> DW_AT_name : (indirect string) Foo
<84a> DW_AT_byte_size : 1
<84b> DW_AT_decl_file : 3
<84c> DW_AT_decl_line : 3
gcc9 : readelf -wi testg9 | rg -B 1 -A 8 Foo
<1><b5d>: Abbrev Number: 10 (DW_TAG_enumeration_type)
<b5e> DW_AT_name : Foo
<b62> DW_AT_encoding : 7 (unsigned)
<b63> DW_AT_byte_size : 1
<b64> DW_AT_type : <0xa3d>
<b68> DW_AT_decl_file : 1
<b69> DW_AT_decl_line : 3
<b6a> DW_AT_decl_column : 6
<b6b> DW_AT_sibling : <0xea0>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment