[PATCH 4/4] libctf: get the offsets of fields of unnamed structs/unions right

Nick Alcock nick.alcock@oracle.com
Sat Apr 8 15:50:11 GMT 2023


On 6 Apr 2023, Nick Alcock via Binutils spake thusly:

> On 27 Mar 2023, Alan Modra stated:
>> On Mon, Mar 27, 2023 at 11:27:40AM +0100, Nick Alcock wrote:
>>> Are they all 32-bit platforms? It looks like it.
>>
>> Yes, and built on x86_64-linux.  Which is why things go wrong.
>> "lookup" is compiled and running on x86_64, thus compiled in offsets
>> are for the 64-bit host.  The test objects are compiled by the
>> relevant target compiler, in this case all 32-bit.  Things would break
>> with a 32-bit host and 64-bit targets too of course.
>
> I have a fix under test that just turns this test off when
> cross-compiling.

Now pushed as commit 30a794e9f1db2de9099ed4c494d917d4e86de0fd.

-- 
NULL && (void)


More information about the Binutils mailing list