This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

linker parameters help


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]