Patrick Georgi has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/54062 )
Change subject: build system: Use more robust linker options ......................................................................
build system: Use more robust linker options
ld accepts a few of its options both as -single-dash and --double-dash options, but later versions (e.g. in binutils 2.36.1) seem to abandon that.
Besides that the single-dash variant is also more risky because misspellings are interpreted as multiple single-letter options: -nostdllib is accepted, while --nostdllib returns an error.
Change-Id: Icee24ba79df4df3b1a06af59f7ad268b01ba9e2f Signed-off-by: Patrick Georgi pgeorgi@google.com --- M Makefile.inc 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/62/54062/1
diff --git a/Makefile.inc b/Makefile.inc index ce70a30..71b52f9 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -489,7 +489,7 @@ # Disable style checks for now ADAFLAGS_common += -gnatyN
-LDFLAGS_common := --gc-sections -nostdlib -nostartfiles -static +LDFLAGS_common := --gc-sections --nostdlib --nostartfiles --static
# Workaround for RISC-V linker bug, merge back into above line when fixed. # https://sourceware.org/bugzilla/show_bug.cgi?id=27180