openwrt/toolchain
Felix Fietkau c1c1112006 toolchain/gcc: prevent the use of LDRD/STRD on ARMv5TE
These instructions are for 64-bit load/store. On ARMv5TE, the CPU
requires addresses to be aligned to 64-bit. When misaligned, behavior is
undefined (effectively either loads the same word twice on LDRD, or
corrupts surrounding memory on STRD).

On ARMv6 and newer, unaligned access is safe.

Removing these instructions for ARMv5TE is necessary, because GCC
ignores alignment information in pointers and does unsafe optimizations
that have shown up as bugs in various places.

This patch was originally added more than 11 years ago in commit b050f87d13,
but got lost 6 years ago, when gcc 9.1 was added in 88c07c6552.

This primarily affects the kirkwood and ixp4xx targets

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2025-07-22 12:03:05 +02:00
..
binutils toolchain: binutils: add support for 2.44 2025-06-08 19:29:37 +02:00
fortify-headers toolchain/fortify-headers: update download url 2024-09-14 13:55:15 +02:00
gcc toolchain/gcc: prevent the use of LDRD/STRD on ARMv5TE 2025-07-22 12:03:05 +02:00
gdb gdb: update to 16.2 2025-04-18 02:10:48 +02:00
glibc toolchain: glibc: Update glibc 2.41 to recent HEAD 2025-07-12 23:38:18 +02:00
kernel-headers toolchain: assign PKG_CPE_ID 2023-09-19 20:22:59 +02:00
mold toolchain: mold: add PKG_NAME to Makefile 2025-04-23 12:19:26 +02:00
musl toolchain/musl: fix build regression on x86_64 2025-05-06 14:29:09 +02:00
nasm toolchain/nasm: update to 2.16.03 2024-09-22 19:06:22 +02:00
wrapper toolchain/wrapper: add missing qstrip to info.mk export 2025-06-23 13:30:15 +02:00
Config.in build: conditionally build llvm bpf toolchain by default 2025-02-07 11:16:08 +01:00
Makefile toolchain: add mold as additional linker 2023-07-04 20:25:41 +02:00
build_version toolchain: add a version that can be bumped to force toolchain/target rebuild 2021-11-16 22:02:45 +01:00
info.mk uClibc cleanup: - use full version string (0.9.30.1), instead of base (0.9.30) + extra (.1) - remove support for 0.9.28 and snapshots (building from SVN to be added later) 2009-04-24 02:07:24 +00:00