From: Satya Subject: Re: mini-os linker error on i386 - resolved Date: Sun, 3 Jun 2007 13:52:27 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1190908633==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1190908633== Content-Type: multipart/alternative; boundary="----=_Part_26763_8470689.1180896747494" ------=_Part_26763_8470689.1180896747494 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline hello, I was able to resolve this issue by adding -fno-stack-protector option to DEF_CFLAGS in minios.mk line #7. thanks, satya. On 6/3/07, Satya wrote: > > hello, > I get this linker error while compiling mini-os on my system: > > ld -m elf_i386 -N -T arch/x86/minios-x86_32.lds mini-os.o -o mini-os > mini-os.o: In function `xenbus_printf': > (...)/xen-3.1.0-src /extras/mini-os/netfront.c:41: undefined reference to > `__stack_chk_fail' > mini-os.o: In function `init_netfront': > (...)/xen-3.1.0-src/extras/mini-os/netfront.c:363: undefined reference to > `__stack_chk_fail' > mini-os.o: In function `shutdown_netfront': > (...)/xen-3.1.0-src/extras/mini-os/netfront.c:386: undefined reference to > `__stack_chk_fail' > mini-os.o: In function `number': > (...)/xen-3.1.0-src/extras/mini-os/lib/printf.c:267: undefined reference > to `__stack_chk_fail' > mini-os.o: In function `errmsg': > (...)/xen-3.1.0-src/extras/mini-os/xenbus/xenbus.c:362: undefined > reference to `__stack_chk_fail' > mini-os.o:(...)/xen-3.1.0-src/extras/mini-os/xenbus/xenbus.c:512: more > undefined references to `__stack_chk_fail' follow > make: *** [mini-os] Error 1 > > > (I've replaced some path information with ellipses) > > some more info: > > $ gcc --version > gcc (GCC) 4.1.2 (Ubuntu 4.1.2-0ubuntu4) > Copyright (C) 2006 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE > > $ ld --version > GNU ld version 2.17.50 20070103 Ubuntu > Copyright 2005 Free Software Foundation, Inc. > This program is free software; you may redistribute it under the terms of > the GNU General Public License. This program has absolutely no warranty. > > $ uname -srmo > Linux 2.6.20-16-generic i686 GNU/Linux > > I'm looking into this, but if anyone knows what's going on, please reply. > Thanks! > > satya. > -- ...what's remarkable, is that atoms have assembled into entities which are somehow able to ponder their origins. -- http://cs.uic.edu/~spopuri ------=_Part_26763_8470689.1180896747494 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline hello, I was able to resolve this issue by adding -fno-stack-protector option to DEF_CFLAGS in minios.mk line #7.

thanks,
satya.

On 6/3/07, Satya <satyakiran@gmail.com> wrote:
hello,
I get this linker error while compiling mini-os on my system:

ld  -m elf_i386 -N -T arch/x86/minios-x86_32.lds mini-os.o  -o mini-os
mini-os.o: In function `xenbus_printf':
(...)/xen-3.1.0-src /extras/mini-os/netfront.c:41: undefined reference to `__stack_chk_fail'
mini-os.o: In function `init_netfront':
(...)/xen-3.1.0-src/extras/mini-os/netfront.c:363: undefined reference to `__stack_chk_fail'
mini-os.o: In function `shutdown_netfront':
(...)/xen-3.1.0-src/extras/mini-os/netfront.c:386: undefined reference to `__stack_chk_fail'
mini-os.o: In function `number':
(...)/xen-3.1.0-src/extras/mini-os/lib/printf.c:267: undefined reference to `__stack_chk_fail'
mini-os.o: In function `errmsg':
(...)/xen-3.1.0-src/extras/mini-os/xenbus/xenbus.c:362: undefined reference to `__stack_chk_fail'
mini-os.o:(...)/xen-3.1.0-src/extras/mini-os/xenbus/xenbus.c:512: more undefined references to `__stack_chk_fail' follow
make: *** [mini-os] Error 1


(I've replaced some path information with ellipses)

some more info:

$ gcc --version
gcc (GCC) 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE

$ ld --version
GNU ld version 2.17.50 20070103 Ubuntu
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.

$ uname -srmo
Linux 2.6.20-16-generic i686 GNU/Linux

I'm looking into this, but if anyone knows what's going on, please reply. Thanks!

satya.



--
...what's remarkable, is that atoms have assembled into entities which are somehow able to ponder their origins.
--
http://cs.uic.edu/~spopuri ------=_Part_26763_8470689.1180896747494-- --===============1190908633== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1190908633==--