Blame SOURCES/0276-module-verifier-allow-limited-range-relocations-on-s.patch
|
|
4fe85b |
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
4fe85b |
From: Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
4fe85b |
Date: Thu, 31 Dec 2015 18:30:39 +0100
|
|
|
4fe85b |
Subject: [PATCH] module-verifier: allow limited-range relocations on sparc64.
|
|
|
4fe85b |
|
|
|
4fe85b |
clang as incomplete mcmodel=large support. As we don't currently need full
|
|
|
4fe85b |
mcmodel=large support for sparc64, relax those checks.
|
|
|
4fe85b |
---
|
|
|
4fe85b |
util/grub-module-verifier.c | 7 ++++++-
|
|
|
4fe85b |
1 file changed, 6 insertions(+), 1 deletion(-)
|
|
|
4fe85b |
|
|
|
4fe85b |
diff --git a/util/grub-module-verifier.c b/util/grub-module-verifier.c
|
|
|
4fe85b |
index c027f0a0fb1..e217dcddc07 100644
|
|
|
4fe85b |
--- a/util/grub-module-verifier.c
|
|
|
4fe85b |
+++ b/util/grub-module-verifier.c
|
|
|
4fe85b |
@@ -38,7 +38,12 @@ struct grub_module_verifier_arch archs[] = {
|
|
|
4fe85b |
R_SPARC_LO10,
|
|
|
4fe85b |
R_SPARC_64,
|
|
|
4fe85b |
R_SPARC_OLO10,
|
|
|
4fe85b |
- /* R_SPARC_32, R_SPARC_HI22 are supported but shouldn't be used because of their limited range. */
|
|
|
4fe85b |
+ /* Following 2 relocations have limited range but unfortunately
|
|
|
4fe85b |
+ clang generates them, as it doesn't implement mcmodel=large properly.
|
|
|
4fe85b |
+ At least our heap and core are under 4G, so it's not a problem
|
|
|
4fe85b |
+ usually. */
|
|
|
4fe85b |
+ R_SPARC_HI22,
|
|
|
4fe85b |
+ R_SPARC_32,
|
|
|
4fe85b |
-1
|
|
|
4fe85b |
} },
|
|
|
4fe85b |
{ "ia64", 8, 0, EM_IA_64, GRUB_MODULE_VERIFY_SUPPORTS_RELA, (int[]){
|