This is the mail archive of the binutils@sourceware.org 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]

Re: what is the difference of -r and -share -s?


On Mon, Feb 4, 2013 at 10:00 PM, horseriver <horserivers@gmail.com> wrote:
>
>   To make a DSO , I should use -r or -share -s?

Neither.

Assuming you are talking about the linker, you use -shared.

But you should normally create a DSO by running GCC, not the linker.
The GCC option is also -shared.

Ian


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