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:
parent
f9fd9bcdd2
commit
125298ef29
@ -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=
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user