mirror of
https://git.yoctoproject.org/poky
synced 2026-04-22 15:32:14 +02:00
bitbake.conf: add DEBUG_PREFIX_MAP to TARGET_LDFLAGS
-f*-prefix-map flags are required when linking with LTO enabled to make the output binary reproducible. See discussion here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101473 [YOCTO #14481] (From OE-Core rev: fddaecc88979967d0e00e2fafdbaaabec030da9f) Signed-off-by: Tony Battersby <tonyb@cybernetics.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
36ed0c29cb
commit
488aa36a61
@@ -597,7 +597,7 @@ TARGET_LINK_HASH_STYLE ?= "${@['-Wl,--hash-style=gnu',''][d.getVar('LINKER_HASH_
|
||||
ASNEEDED ?= "-Wl,--as-needed"
|
||||
|
||||
export LDFLAGS = "${TARGET_LDFLAGS}"
|
||||
TARGET_LDFLAGS = "-Wl,-O1 ${TARGET_LINK_HASH_STYLE} ${ASNEEDED}"
|
||||
TARGET_LDFLAGS = "-Wl,-O1 ${TARGET_LINK_HASH_STYLE} ${ASNEEDED} ${DEBUG_PREFIX_MAP}"
|
||||
# mips does not support GNU hash style therefore we override
|
||||
LINKER_HASH_STYLE:mipsarch:libc-musl = "sysv"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user