mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-05 09:14:03 +00:00
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
74b66ae149
commit
6eef858694
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=310124
@ -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…
Reference in New Issue
Block a user