aboutsummaryrefslogtreecommitdiff
path: root/Makefile.main
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2019-04-14 22:50:41 +1000
committerStewart Smith <stewart@linux.ibm.com>2019-04-17 15:56:34 +1000
commit7f22e25c2b971d80d3d15f1377e3cfc3407ee013 (patch)
tree5715006c07feade23073e853aa74b99c18f1c8fa /Makefile.main
parent208ca81ffd47ab1d244a8e1a521cf7671415e90f (diff)
downloadskiboot-7f22e25c2b971d80d3d15f1377e3cfc3407ee013.zip
skiboot-7f22e25c2b971d80d3d15f1377e3cfc3407ee013.tar.gz
skiboot-7f22e25c2b971d80d3d15f1377e3cfc3407ee013.tar.bz2
build: link with --orphan-handling=warn
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@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'Makefile.main')
-rw-r--r--Makefile.main2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.main b/Makefile.main
index 68c744d..3d85dbe 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