linker parameters help

David Zhang davidzhl@hotmail.com
Thu Jun 13 22:02:00 GMT 2002


Hi All,
  Now I have to port gnu linker ld to replace old system linker,which was 
used in an embedded system. But unfortunately, I have no information about 
this old linker except one executable binary file.The only clue is their 
usage:

#bash:ld
Usage: ld [-a] [-d] [-dc] [-dp] [-e symbol] [-l lib] [-n]
       [-noinhibit-exec] [-nostdlib] [-o file] [-r] [-s] [-t]
       [-u symbol] [-x] [-y symbol] [-z] [-A file] [-Bstatic] [-D size]
       [-L libdir] [-M] [-N] [-S] [-T[{text,data}] addr] [-V prefix] [-X]
       [file...]

#bash:nld
Usage: nld [-a] [-e symbol] [-l lib] [-o file] [-s] [-x]
       [-L libdir] [-S] [-T[{text,data,offset}] addr] [-X]
       [-unref] [-pwunref]
       [-Main file] [-R] [-tseg val] [-dseg val]
       [file...]

   Could anyone give me some information about this?

   It seems that nld does some optimization comparing with ld and all of 
them are not GNU linker. What's difference between them?
   I can't get the exact meanings of the parameters,-Toffset and -a.The 
only way for me to get some piece of information of these two parameters is 
to compare the different binary results. Does there exist any parameters in 
the GNU linker ld,which can substitute such parameters,or any way to 
achieve the same function of them?

   Thanks for Any help

Best Regards
David.Z



_________________________________________________________________
ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: 
http://messenger.microsoft.com/cn



More information about the Binutils mailing list