В Wed, 26 Feb 2014 10:31:02 -0800 Ram Pai <linux...@us.ibm.com> пишет:
> 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 <linux...@us.ibm.com> > --- > 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" _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel