Re: what is the difference between the two command?
On Sat, Jan 19, 2013 at 1:30 PM, horseriver horseriv...@gmail.com wrote: On Sat, Jan 19, 2013 at 09:47:53PM -0800, Ian Lance Taylor wrote: On Fri, Jan 18, 2013 at 10:19 PM, horseriver horseriv...@gmail.com wrote: hi: Here are two command for producting one .so file : 1. gcc -nostdlib -Wl,-T,vsyscall.lds vsyscall-int80.o -o vsyscall-int80.so 2. ld -T vsyscall.lds vsyscall-int80.o -o vsyscall-int80.so There is no substantive difference between these commands. There are various minor differences that probably don't matter. Use the -v option when invoking gcc to see precisely how it invokes the linker. In particular, invoking the linker via the gcc driver will cause some C++-specific operations to occur when needed, but since you aren't using C++ in this case they won't happen. Thanks! I have a weird problem here! When I type the 1 to make vsyscall-int80.so ,ld report error: Not enough room for program headers, try linking with -N But,When I type 2 to make vsyscall-int80.so,it works successfully. What is the reason? I don't know. Run the complete gcc command with the -v option and you will see precisely how it invokes the linker. Ian ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: How can patch a bug
esmaeil mirzaee esmaeil.deb...@gmail.com writes: I try to install gcc-3.4.6 I've search the Internet(Thank you google). I found it was a bug and a best man did a patch and now I want to run that patch to resolved the problem. Run the patch program. man patch Ian ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: How can patch a bug
esmaeil mirzaee esmaeil.deb...@gmail.com writes: I wanna run this patch http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19985 for resolve my problem. What patch I must to download. I need them for gcc-3.4.6 The patch for that problem was committed to the gcc 3.4 branch and is probably in gcc 3.4.6 already. See comment #14 in that PR. That comment includes links to the specific change made to fix the problem. Ian ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: How can install gcc-3.2.tar.bz
esmaeil mirzaee esmaeil.deb...@gmail.com writes: I wanna install gcc-3.2.tar.bz then I download from ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-3.2/ Could you help me. First link from an Internet search for .tar.bz: http://www.linuxforums.org/forum/newbie/20336-extract-tar-bz2-command.html Then follow the same instructions you are using for gcc 3.4. You will run into similar problems. Ian ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies