Missing alignment in SFrame spec
Florian Weimer
fweimer@redhat.com
Tue May 2 06:03:25 GMT 2023
* Indu Bhagat:
> On 4/28/23 01:08, Florian Weimer wrote:
>> The SFrame specification does not say anything explict about alignment.
>> It uses ATTRIBUTE_PACKED, which strongly suggests alignment 1, but
>> looking at the structures themselves, I think what you actually want is
>> 4-byte alignment.
>> Thanks,
>> Florian
>>
>
> Hi Florian,
>
> SFrame stack trace format is an unaligned on-disk format. IIUC, you
> suggest 4 byte alignment for all structs in SFrame format?
>
> Yes, current SFrame FDE and SFrame FRE are 1-byte aligned.
>
> I had reasoned about unaligned accesses previously when a bug showed up.
Well, GAS seems to generate 8-byte-aligned .sframe sections (at least in
the 2.40-7.fc39 Fedora package). So all this is a bit inconsistent.
Thanks,
Florian
More information about the Binutils
mailing list