Add -fPIC to the ubldr build. Without this the self relocation code will

try to use an absolute address in a switch statement, jumping to an invalid
memory location.

Sponsored by:	ABT Systems Ltd
This commit is contained in:
andrew 2016-12-15 17:36:54 +00:00
parent f9fd9bcdd2
commit 125298ef29

View File

@ -109,6 +109,8 @@ CFLAGS+= -I${.OBJDIR}/../../uboot/lib
# where to get libstand from
CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/
CFLAGS+= -fPIC
# clang doesn't understand %D as a specifier to printf
NO_WERROR.clang=