summaryrefslogtreecommitdiffstats
path: root/makefile-after_link.patch
diff options
context:
space:
mode:
authorKyle McMartin <kyle@fedoraproject.org>2013-10-21 16:39:21 -0400
committerKyle McMartin <kyle@fedoraproject.org>2013-10-21 16:39:21 -0400
commit3b5c960f8b9d074f2f1f2a3b6defe6af0a85b258 (patch)
tree79e15d379ea8090007966575447af130a3f89b6c /makefile-after_link.patch
parent1113a8cf60a232e9f4ea37b09a6b741e8866131b (diff)
downloadkernel-3b5c960f8b9d074f2f1f2a3b6defe6af0a85b258.tar.gz
kernel-3b5c960f8b9d074f2f1f2a3b6defe6af0a85b258.tar.xz
kernel-3b5c960f8b9d074f2f1f2a3b6defe6af0a85b258.zip
aarch64: add AFTER_LINK to $vdsold for debuginfo generation of the vdso.
Diffstat (limited to 'makefile-after_link.patch')
-rw-r--r--makefile-after_link.patch25
1 files changed, 18 insertions, 7 deletions
diff --git a/makefile-after_link.patch b/makefile-after_link.patch
index b520b1942..8332afb79 100644
--- a/makefile-after_link.patch
+++ b/makefile-after_link.patch
@@ -8,11 +8,25 @@ after each final link. This includes vmlinux itself and vDSO images.
Signed-off-by: Roland McGrath <roland@redhat.com>
+diff --git a/arch/arm64/kernel/vdso/Makefile b/arch/arm64/kernel/vdso/Makefile
+index d8064af..04dcfe1 100644
+--- a/arch/arm64/kernel/vdso/Makefile
++++ b/arch/arm64/kernel/vdso/Makefile
+@@ -48,7 +48,8 @@ $(obj-vdso): %.o: %.S
+
+ # Actual build commands
+ quiet_cmd_vdsold = VDSOL $@
+- cmd_vdsold = $(CC) $(c_flags) -Wl,-T $^ -o $@
++ cmd_vdsold = $(CC) $(c_flags) -Wl,-T $^ -o $@ \
++ $(if $(AFTER_LINK),; $(AFTER_LINK))
+ quiet_cmd_vdsoas = VDSOA $@
+ cmd_vdsoas = $(CC) $(a_flags) -c -o $@ $<
+
diff --git a/arch/powerpc/kernel/vdso32/Makefile b/arch/powerpc/kernel/vdso32/Makefile
-index 9a7946c..28d6765 100644
+index 53e6c9b..e427844 100644
--- a/arch/powerpc/kernel/vdso32/Makefile
+++ b/arch/powerpc/kernel/vdso32/Makefile
-@@ -41,7 +41,8 @@ $(obj-vdso32): %.o: %.S
+@@ -43,7 +43,8 @@ $(obj-vdso32): %.o: %.S
# actual build commands
quiet_cmd_vdso32ld = VDSO32L $@
@@ -23,7 +37,7 @@ index 9a7946c..28d6765 100644
cmd_vdso32as = $(CROSS32CC) $(a_flags) -c -o $@ $<
diff --git a/arch/powerpc/kernel/vdso64/Makefile b/arch/powerpc/kernel/vdso64/Makefile
-index 8c500d8..d27737b 100644
+index effca94..713891a 100644
--- a/arch/powerpc/kernel/vdso64/Makefile
+++ b/arch/powerpc/kernel/vdso64/Makefile
@@ -36,7 +36,8 @@ $(obj-vdso64): %.o: %.S
@@ -81,7 +95,7 @@ index fd14be1..1f3eb19 100644
VDSO_LDFLAGS = -fPIC -shared $(call cc-ldoption, -Wl$(comma)--hash-style=sysv)
GCOV_PROFILE := n
diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh
-index cd9c6c6..3edf048 100644
+index 0149949..e307cda 100644
--- a/scripts/link-vmlinux.sh
+++ b/scripts/link-vmlinux.sh
@@ -65,6 +65,10 @@ vmlinux_link()
@@ -95,6 +109,3 @@ index cd9c6c6..3edf048 100644
}
---
-1.7.7.6
-