[Skiboot] [PATCH 2/6] test kernels: link with -N

Stewart Smith stewart at linux.vnet.ibm.com
Thu Aug 24 17:39:44 AEST 2017


"Not enough room for program headers, try linking with -N"
Turns out the error message is helpful

Signed-off-by: Stewart Smith <stewart at linux.vnet.ibm.com>
---
 test/hello_world/Makefile.check  | 2 +-
 test/sreset_world/Makefile.check | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/hello_world/Makefile.check b/test/hello_world/Makefile.check
index 053533fd7482..10f48cc1db94 100644
--- a/test/hello_world/Makefile.check
+++ b/test/hello_world/Makefile.check
@@ -28,7 +28,7 @@ $(HELLO_WORLD_TEST:%=%-check-qemu): %-check-qemu: % skiboot.lid
 test/hello_world/hello_kernel/hello_kernel.o: test/hello_world/hello_kernel/hello_kernel.S test/hello_world/hello_kernel/hello_kernel.ld
 	$(call Q,CC, $(CC) -m64 -c -MMD -o $@ $< ,$@)
 
-hello_kernel_LDFLAGS=-m64 -Wl,--build-id=none -T test/hello_world/hello_kernel/hello_kernel.ld -ffreestanding -nostdlib -Ttext=0x0
+hello_kernel_LDFLAGS=-m64 -Wl,--build-id=none -T test/hello_world/hello_kernel/hello_kernel.ld -ffreestanding -nostdlib -Ttext=0x0 -N
 
 -include $(wildcard test/hello_world/hello_kernel/*.d)
 
diff --git a/test/sreset_world/Makefile.check b/test/sreset_world/Makefile.check
index 0bd76a734234..528acd60681b 100644
--- a/test/sreset_world/Makefile.check
+++ b/test/sreset_world/Makefile.check
@@ -24,7 +24,7 @@ $(SRESET_WORLD_TEST:%=%-check-p9-mambo): %-check-p9-mambo: % skiboot.lid
 test/sreset_world/sreset_kernel/sreset_kernel.o: test/sreset_world/sreset_kernel/sreset_kernel.S test/sreset_world/sreset_kernel/sreset_kernel.ld
 	$(call Q,CC, $(CC) -mbig-endian -m64 -c -MMD -o $@ $< ,$@)
 
-sreset_kernel_LDFLAGS=-m64 -Wl,--build-id=none -T test/sreset_world/sreset_kernel/sreset_kernel.ld -ffreestanding -nostdlib -Ttext=0x0 -mbig-endian
+sreset_kernel_LDFLAGS=-m64 -Wl,--build-id=none -T test/sreset_world/sreset_kernel/sreset_kernel.ld -ffreestanding -nostdlib -Ttext=0x0 -mbig-endian -N
 
 -include $(wildcard test/sreset_world/sreset_kernel/*.d)
 
-- 
2.13.5



More information about the Skiboot mailing list