diff options
author | Tony Battersby <tonyb@cybernetics.com> | 2021-07-27 09:36:53 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-08-12 06:26:15 +0100 |
commit | 488aa36a61ada3c63f308982ba37b040543abb39 (patch) | |
tree | efa104ae8357f3fe7c3adfed50d08823b0a14348 | |
parent | 36ed0c29cbc6e8c523c26819c11792f375d861a5 (diff) | |
download | poky-488aa36a61ada3c63f308982ba37b040543abb39.tar.gz |
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>
-rw-r--r-- | meta/conf/bitbake.conf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 1d5f5b7fcd..afb82eb370 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -597,7 +597,7 @@ TARGET_LINK_HASH_STYLE ?= "${@['-Wl,--hash-style=gnu',''][d.getVar('LINKER_HASH_ | |||
597 | ASNEEDED ?= "-Wl,--as-needed" | 597 | ASNEEDED ?= "-Wl,--as-needed" |
598 | 598 | ||
599 | export LDFLAGS = "${TARGET_LDFLAGS}" | 599 | export LDFLAGS = "${TARGET_LDFLAGS}" |
600 | TARGET_LDFLAGS = "-Wl,-O1 ${TARGET_LINK_HASH_STYLE} ${ASNEEDED}" | 600 | TARGET_LDFLAGS = "-Wl,-O1 ${TARGET_LINK_HASH_STYLE} ${ASNEEDED} ${DEBUG_PREFIX_MAP}" |
601 | # mips does not support GNU hash style therefore we override | 601 | # mips does not support GNU hash style therefore we override |
602 | LINKER_HASH_STYLE:mipsarch:libc-musl = "sysv" | 602 | LINKER_HASH_STYLE:mipsarch:libc-musl = "sysv" |
603 | 603 | ||