break;
case R_ARM_ABS32:
{
- struct unaligned
- {
- Elf32_Addr x;
- } __attribute__ ((packed, may_alias));
+ ElfW(Addr) tmp;
# ifndef RTLD_BOOTSTRAP
/* This is defined in rtld.c, but nowhere in the static
libc.a; make the reference weak so static programs can
value -= SYMBOL_ADDRESS (map, refsym, true);
# endif
/* Support relocations on mis-aligned offsets. */
- ((struct unaligned *) reloc_addr)->x += value;
+ memcpy (&tmp, reloc_addr, sizeof tmp);
+ tmp += value;
+ memcpy (reloc_addr, &tmp, sizeof tmp);
break;
}
case R_ARM_TLS_DESC: