[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[RFC PATCH 03/23] ignore .TOC. symbol

From: Ram Pai
Subject: [RFC PATCH 03/23] ignore .TOC. symbol
Date: Wed, 26 Feb 2014 10:31:02 -0800

powerpc64 LE's linker knows how to handle the undefined
symbol .TOC. in grub modules. So just ignore that symbol during build.

Signed-off-by: Ram Pai <address@hidden>
 grub-core/ | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/grub-core/ b/grub-core/
index 2e8716b..cad5af3 100644
--- a/grub-core/
+++ b/grub-core/
@@ -34,4 +34,9 @@ else
 # Print all undefined symbols used by module
address@hidden@ -u @TARGET_NMFLAGS_MINUS_P@ -p $module | sed "address@hidden([^ 
]*\)address@hidden $modname address@hidden"
+if test x"@GRUB_TARGET_CPU@" = xpowerpc64le; then
+    #ignore the special .TOC. symbol on powerpc64le
+    @TARGET_NM@ -u @TARGET_NMFLAGS_MINUS_P@ -p $module | grep -w -v '.TOC.' 
+    @TARGET_NM@ -u @TARGET_NMFLAGS_MINUS_P@ -p $module
+fi  | sed "address@hidden([^ ]*\)address@hidden $modname address@hidden"

reply via email to

[Prev in Thread] Current Thread [Next in Thread]