This is the mail archive of the
mailing list for the binutils project.
Re: what is the difference of -r and -share -s?
- From: Ian Lance Taylor <iant at google dot com>
- To: horseriver <horserivers at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: Tue, 5 Feb 2013 10:36:37 -0800
- Subject: Re: what is the difference of -r and -share -s?
- References: <20130205060048.GB2676@debian.localdomain>
On Mon, Feb 4, 2013 at 10:00 PM, horseriver <firstname.lastname@example.org> wrote:
> To make a DSO , I should use -r or -share -s?
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.