Use the size of the MACHINE_ARCH string instead of sizeof(uint32_t). It can
happen sizeof(MACHINE_ARCH) is more than 4 bytes, and bad things would happen. This should make the ctors being called again on armeb.
This commit is contained in:
parent
3acd1dbcd3
commit
122990a379
@ -123,7 +123,7 @@ static const struct {
|
||||
char desc[sizeof(MACHINE_ARCH)];
|
||||
} archtag __attribute__ ((section (NOTE_SECTION), aligned(4))) __used = {
|
||||
.namesz = sizeof(NOTE_FREEBSD_VENDOR),
|
||||
.descsz = sizeof(int32_t),
|
||||
.descsz = sizeof(MACHINE_ARCH),
|
||||
.type = ARCH_NOTETYPE,
|
||||
.name = NOTE_FREEBSD_VENDOR,
|
||||
.desc = MACHINE_ARCH
|
||||
|
Loading…
Reference in New Issue
Block a user