mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04: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
1 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue