linux/debian/patches/bugfix/all/revert-default-exported-asm...

29 lines
1.0 KiB
Diff

From: Ben Hutchings <ben@decadent.org.uk>
Date: Mon, 5 Dec 2016 01:03:15 +0000
Subject: Revert "default exported asm symbols to zero"
This reverts commit 8ab2ae655bfe384335c5b6b0d6041e0ddce26b00, which
broke asm symbol versioning when I tried it:
> I tried this along with Adam's patch on x86_64, with Debian's binutils
> 2.27.51.20161127. The result was that the kernel's __kcrctab held 0
> for several symbols, even though there was type information in asm-
> prototypes.h and Module.symvers and the modules had a non-zero CRC for
> those symbols. With just Adam's patch, the kernel and modules agreed.
---
include/asm-generic/export.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/include/asm-generic/export.h b/include/asm-generic/export.h
index 59a3b2f58c22..63554e9f6e0c 100644
--- a/include/asm-generic/export.h
+++ b/include/asm-generic/export.h
@@ -54,7 +54,6 @@ KSYM(__kstrtab_\name):
KSYM(__kcrctab_\name):
__put KSYM(__crc_\name)
.weak KSYM(__crc_\name)
- .set KSYM(__crc_\name), 0
.previous
#endif
#endif