* what is the difference between the two command?
@ 2013-01-19 16:17 horseriver
2013-01-20 5:59 ` Ian Lance Taylor
0 siblings, 1 reply; 2+ messages in thread
From: horseriver @ 2013-01-19 16:17 UTC (permalink / raw)
To: gcc-help
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
Thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: what is the difference between the two command?
2013-01-19 16:17 what is the difference between the two command? horseriver
@ 2013-01-20 5:59 ` Ian Lance Taylor
0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2013-01-20 5:59 UTC (permalink / raw)
To: horseriver; +Cc: gcc-help
On Fri, Jan 18, 2013 at 10:19 PM, horseriver <horserivers@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.
Ian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-01-20 5:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-19 16:17 what is the difference between the two command? horseriver
2013-01-20 5:59 ` Ian Lance Taylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).