Skip to content
Snippets Groups Projects
Commit 96afb90f authored by Jonas Gorski's avatar Jonas Gorski
Browse files

generic: fix relocate build with binutils 2.25.1


The new .abiflags section was kept, pushing the appended arguments to
the wrong offset and causing it to read the section instead, making
it fail on boot.

Fix this by dropping this section as well as the other sections.

Closes #21679.

Signed-off-by: default avatarJonas Gorski <jogo@openwrt.org>

SVN-Revision: 48474
parent 065a2403
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,8 @@ LD := $(CROSS_COMPILE)ld
OBJCOPY := $(CROSS_COMPILE)objcopy
OBJDUMP := $(CROSS_COMPILE)objdump
BIN_FLAGS := -O binary -R .reginfo -R .note -R .comment -R .mdebug -S
BIN_FLAGS := -O binary -R .reginfo -R .note -R .comment -R .mdebug \
-R .MIPS.abiflags -S
CFLAGS = -D__KERNEL__ -Wall -Wstrict-prototypes -Wno-trigraphs -Os \
-fno-strict-aliasing -fno-common -fomit-frame-pointer -G 0 \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment