[Skiboot] [PATCH 4/4] build: link with --orphan-handling=warn
Nicholas Piggin
npiggin at gmail.com
Sun Apr 14 22:50:41 AEST 2019
The linker can warn when the linker script does not explicitly place
all sections. These orphan sections are placed according to
heuristics, which may not always be desirable. Enable this warning.
Signed-off-by: Nicholas Piggin <npiggin at gmail.com>
---
Makefile.main | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Makefile.main b/Makefile.main
index 68c744d07..3d85dbe73 100644
--- a/Makefile.main
+++ b/Makefile.main
@@ -136,6 +136,8 @@ LDFLAGS += -Wl,--no-multi-toc
LDFLAGS += -mcpu=power7 -mbig-endian -Wl,--oformat,elf64-powerpc
LDFLAGS_FINAL = -EB -m elf64ppc --no-multi-toc -N --build-id=none --whole-archive
LDFLAGS_FINAL += -static -nostdlib -pie -Ttext-segment=$(LD_TEXT) --oformat=elf64-powerpc
+LDFLAGS_FINAL += --orphan-handling=warn
+
LDRFLAGS=-melf64ppc
# Debug stuff
#LDFLAGS += -Wl,-v -Wl,-Map,foomap
--
2.20.1
More information about the Skiboot
mailing list