From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1WV1vH-0004Fv-To for mharc-grub-devel@gnu.org; Tue, 01 Apr 2014 12:52:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34925) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WV1v9-0004Ez-8B for grub-devel@gnu.org; Tue, 01 Apr 2014 12:52:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WV1v1-0000iq-Vy for grub-devel@gnu.org; Tue, 01 Apr 2014 12:52:19 -0400 Received: from mail-lb0-x233.google.com ([2a00:1450:4010:c04::233]:44263) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WV1v1-0000iW-O9 for grub-devel@gnu.org; Tue, 01 Apr 2014 12:52:11 -0400 Received: by mail-lb0-f179.google.com with SMTP id p9so7307973lbv.10 for ; Tue, 01 Apr 2014 09:52:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=2QVnUuVrztJl9OQP9QZfjDy14wlQoi9G1ReJ/4LoNl4=; b=nrpkt41DebNbCuD0Hzks6FXtdqjuGxR2W9n04R2PDnk9JUtkECz44OLSEi+pEwmuPk R+acXEKCRUCfFj7/9SuRbF+LQUt7wUN0rGpRwhrdTS8TUCs5rhsw0k2SrLv8nWawBX+r n8vq5QW8n9+yDeB0vI5fu8cG7AeYBVo90RQ4WyQmAV9Hqj+mFVO3JkESMjDwRgfhMwmE EantLOiIg6zVi2zCqfqQljSjIVhF9W1UwVNGlhbp4jxDk0Lc8vYalf3eaPGxxTFLR857 +yNFKyAFxmAmHcliovf3egMeYC7rUEeRq3eSnMYD1WVx5u9oSwpWCclmveXOwZW9tz3c 2Fhg== X-Received: by 10.152.5.202 with SMTP id u10mr1685933lau.42.1396371130551; Tue, 01 Apr 2014 09:52:10 -0700 (PDT) Received: from opensuse.site (ppp37-190-15-130.pppoe.spdop.ru. [37.190.15.130]) by mx.google.com with ESMTPSA id g8sm17586688laf.0.2014.04.01.09.52.09 for (version=SSLv3 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 01 Apr 2014 09:52:09 -0700 (PDT) Date: Tue, 1 Apr 2014 20:52:08 +0400 From: Andrey Borzenkov To: The development of GNU GRUB Subject: Re: [RFC PATCH 03/23] ignore .TOC. symbol Message-ID: <20140401205208.4f763214@opensuse.site> In-Reply-To: <1393439482-20341-4-git-send-email-linuxram@us.ibm.com> References: <1393439482-20341-1-git-send-email-linuxram@us.ibm.com> <1393439482-20341-4-git-send-email-linuxram@us.ibm.com> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.22; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::233 Cc: tonyb@au1.ibm.com, anton@au1.ibm.com, linuxram@us.ibm.com, tlfalcon@linux.vnet.ibm.com, tbberry@us.ibm.com X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2014 16:52:26 -0000 В Wed, 26 Feb 2014 10:31:02 -0800 Ram Pai пишет: > 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 > --- > grub-core/gensyminfo.sh.in | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/grub-core/gensyminfo.sh.in b/grub-core/gensyminfo.sh.in > index 2e8716b..cad5af3 100644 > --- a/grub-core/gensyminfo.sh.in > +++ b/grub-core/gensyminfo.sh.in > @@ -34,4 +34,9 @@ else > fi > > # Print all undefined symbols used by module > -@TARGET_NM@ -u @TARGET_NMFLAGS_MINUS_P@ -p $module | sed "s@^\([^ ]*\).*@undefined $modname \1@g" > +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.' If I understand it correctly, it should rather be grep -F -w; just in case someone adds something like RTOCN? > +else > + @TARGET_NM@ -u @TARGET_NMFLAGS_MINUS_P@ -p $module > +fi | sed "s@^\([^ ]*\).*@undefined $modname \1@g"