This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: Approval: can I commit this please?


On Apr 21, 2003, Jakub Jelinek <jakub at redhat dot com> wrote:

> 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).

Maybe we should instead define both main and _main, and use $CC to do
the linking?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva at {redhat dot com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva at {lsd dot ic dot unicamp dot br, gnu.org}
Free Software Evangelist                Professional serial bug killer


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