<p></p>
<pre><code># this works:
$ READELF=/usr/x86_64-pc-linux-gnu/binutils-bin/2.35.2/readelf ./configure
#this fails:
$ READELF=/usr/x86_64-pc-linux-gnu/binutils-bin/2.36.1/readelf ./configure
...
checking for m32 personality compile support (using x86_64-pc-linux-gnu-gcc -I./bundled/linux/arch/x86/include/uapi -I./bundled/linux/include/uapi -m32)... yes
checking for m32 personality runtime support... yes
checking whether mpers.sh m32 -m32 works... mpers-m32/sample_struct.d2: index [ ] without special
no
checking whether to enable m32 personality support... no
configure: error: Cannot enable m32 personality support
</code></pre>
<p>Looking at the diff of <code>mpers-m32/sample_struct.d1</code> of lod and new readelf now provides a bit of extra info:</p>
<pre><code>$ head -n 20 mpers-m32/sample_struct.d1_2.35.2
Contents of the .debug_info section:
Compilation Unit @ offset 0x0:
Length: 0x39c (32-bit)
Version: 2
Abbrev Offset: 0x0
Pointer Size: 4
<0><b>: Abbrev Number: 1 (DW_TAG_compile_unit)
<c> DW_AT_producer : (indirect string, offset: 0x61): GNU C17 11.0.1 20210314 (experimental) -m32 -mtune=generic -march=x86-64 -gdwarf-2
<10> DW_AT_language : 12 (ANSI C99)
<11> DW_AT_name : (indirect string, offset: 0x174): mpers-m32/sample_struct.c
<15> DW_AT_comp_dir : (indirect string, offset: 0x3e): /home/slyfox/dev/git/strace
<19> DW_AT_stmt_list : 0x0
<1><1d>: Abbrev Number: 2 (DW_TAG_base_type)
<1e> DW_AT_byte_size : 1
<1f> DW_AT_encoding : 8 (unsigned char)
<20> DW_AT_name : (indirect string, offset: 0xb4): unsigned char
<1><24>: Abbrev Number: 2 (DW_TAG_base_type)
<25> DW_AT_byte_size : 2
<26> DW_AT_encoding : 7 (unsigned)
</code></pre>
<pre><code>$ head -n 20 mpers-m32/sample_struct.d1_2.36.1
Contents of the .debug_info section:
Compilation Unit @ offset 0x0:
Length: 0x39c (32-bit)
Version: 2
Abbrev Offset: 0x0
Pointer Size: 4
<0><b>: Abbrev Number: 1 (DW_TAG_compile_unit)
<c> DW_AT_producer : (strp) (offset: 0x61): GNU C17 11.0.1 20210314 (experimental) -m32 -mtune=generic -march=x86-64 -gdwarf-2
<10> DW_AT_language : (data1) 12 (ANSI C99)
<11> DW_AT_name : (strp) (offset: 0x174): mpers-m32/sample_struct.c
<15> DW_AT_comp_dir : (strp) (offset: 0x3e): /home/slyfox/dev/git/strace
<19> DW_AT_stmt_list : (data4) 0x0
<1><1d>: Abbrev Number: 2 (DW_TAG_base_type)
<1e> DW_AT_byte_size : (data1) 1
<1f> DW_AT_encoding : (data1) 8 (unsigned char)
<20> DW_AT_name : (strp) (offset: 0xb4): unsigned char
<1><24>: Abbrev Number: 2 (DW_TAG_base_type)
<25> DW_AT_byte_size : (data1) 2
<26> DW_AT_encoding : (data1) 7 (unsigned)
</code></pre>
<p>Note the extra <code>data1</code>, <code>strp</code>, <code>indirect string</code> annotations.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/strace/strace/issues/180">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AOVBTRYTLQAFF6PTEJHRSG3TGI2C5ANCNFSM42C5XIGQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AOVBTRZEQ2LUNI3TCRFLCE3TGI2C5A5CNFSM42C5XIG2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4MTBJLGQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/strace/strace/issues/180",
"url": "https://github.com/strace/strace/issues/180",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>