[PATCH 13/15] scripts: link-barebox: close thin archives --whole-archives option

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Based on linux v4.13 patch : 1328a1ae0e9048ff4b7f6b60c497db7a2799e1b1

    kbuild: thin archives final link close --whole-archives option

    Close the --whole-archives option with --no-whole-archive. Some
    architectures end up including additional .o and files multiple
    times after this, and they get duplicate symbols when they are
    brought under the --whole-archives option.

    This matches more closely with the incremental final link.

    Signed-off-by: Nicholas Piggin <npiggin@xxxxxxxxx>
    Signed-off-by: Masahiro Yamada <yamada.masahiro@xxxxxxxxxxxxx>

Signed-off-by: Steffen Trumtrar <s.trumtrar@xxxxxxxxxxxxxx>
---
 scripts/link-barebox.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/link-barebox.sh b/scripts/link-barebox.sh
index 6a134d2dd198..9e2bc2afd04b 100755
--- a/scripts/link-barebox.sh
+++ b/scripts/link-barebox.sh
@@ -80,7 +80,7 @@ barebox_link()
 	local objects
 
 	if [ -n "${CONFIG_THIN_ARCHIVES}" ]; then
-		objects="--whole-archive built-in.o ${1}"
+		objects="--whole-archive built-in.o --no-whole-archive ${1}"
 	else
 		objects="--start-group ${BAREBOX_COMMON} --end-group ${1}"
 	fi
-- 
2.19.2


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux