Skip to content
Commit 1c8efe84 authored by Florian Weimer's avatar Florian Weimer Committed by Aurelien Jarno
Browse files

powerpc: Fix incorrect cache line size load in memset (bug 26332)



__GLRO loaded the word after the requested variable on big-endian
PowerPC, where LOWORD is 4.  This can cause the memset implement
go wrong because the masking with the cache line size produces
wrong results, particularly if the loaded value happens to be 1.

The __GLRO macro is not used in any place where loading the lower
32-bit word of a 64-bit value is desired, so the +4 offset is always
wrong.

Fixes commit 18363b4f
("powerpc: Move cache line size to rtld_global_ro") and bug 26332.

Reviewed-by: default avatarCarlos O'Donell <carlos@redhat.com>

(cherry picked from commit 7650321c)
parent 7611339a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment