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

Ian Lance Taylor iant@google.com
Tue Feb 5 18:36:00 GMT 2013


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



More information about the Binutils mailing list