[fedora-arm] Broken sha512sum in coreutils

Andrew Haley aph at redhat.com
Fri Jan 7 18:52:31 UTC 2011


On 01/07/2011 06:45 PM, Gordan Bobic wrote:
> On 01/07/2011 05:25 PM, Andy Green wrote:
>> On 01/07/11 17:17, Somebody in the thread at some point said:
>>
>>>> No, it's not the same issue.
>>>>
>>>> On x86 as described on your link, it's just a performance penalty if
>>>> your members are not aligned. On ARM without fixup, you read actual
>>>> garbage as described on my article.
>>>
>>> Yup, I was more referring to the data not aligning when unioning
>>
>> That's nothing to do with this issue.
>>
>> With this issue, a correct structure in a typedef or a struct with
>> correct alignment padding turns to crap because the structure pointed to
>> is not on a u32 boundary for example.
>
> I see. But shouldn't the compiler be taking care of that? -malign?

The compiler will always take care of that, unless someone does
something really evil in either the code or the gcc options.

Andrew.


More information about the arm mailing list