Approval: can I commit this please?
Andreas Schwab
schwab@suse.de
Wed Apr 23 19:25:00 GMT 2003
Jakub Jelinek <jakub@redhat.com> writes:
|> On Mon, Apr 21, 2003 at 12:17:27PM -0700, Richard Henderson wrote:
|> > On Sat, Apr 19, 2003 at 03:52:50PM -0700, Kean Johnston wrote:
|> > > if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
|> > > && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
|> > > && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
|> > > - && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
|> > > + && $gcc_cv_ld $ldshared -o conftest1.so conftest1.o \
|> >
|> > Jakub, is there any particular reason why we needed -shared
|> > here at all?
|>
|> I don't see any but this one: if -shared is dropped, there needs to be
|> _start symbol defined or whatever the linker wants to use as entry point,
|> so we avoid linker warning (or whatever other linkers do in that case).
You could also specify the entry point explicitly (-e).
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
More information about the Gcc-patches
mailing list