aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2017-08-24 14:34:19 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-08-24 14:34:22 +1000
commit904eb96136ce898867cf8a78b58c0e9db8c39be6 (patch)
treecb09f93fa077018d75b2af4ba4baa4a9e6e53505 /test
parente825fe46efee5c4bc11f3e08c24794f3ddec032b (diff)
downloadskiboot-904eb96136ce898867cf8a78b58c0e9db8c39be6.zip
skiboot-904eb96136ce898867cf8a78b58c0e9db8c39be6.tar.gz
skiboot-904eb96136ce898867cf8a78b58c0e9db8c39be6.tar.bz2
test kernels: link with -N
"Not enough room for program headers, try linking with -N" Turns out the error message is helpful Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'test')
-rw-r--r--test/hello_world/Makefile.check2
-rw-r--r--test/sreset_world/Makefile.check2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/hello_world/Makefile.check b/test/hello_world/Makefile.check
index 053533f..10f48cc 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 0bd76a7..528acd6 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)