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 Turner 2016-12-15 17:36:54 +00:00
parent 74b66ae149
commit 6eef858694

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=