This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


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

Re: powerpc-eabism, strategy for finding crt0.o


On Apr 11, 2001, Benjamin Kosnik <bkoz@redhat.com> wrote:

> Geoff, powerpc-eabism targets use libgloss to deal with crt0.o. If I'm
> going to get libstdc++-v3's testsuite working correctly with the
> target, I'm going to have to find crt0.o so that it can be linked in
> to resolve things like _start, and __eabi. I don't see an existent way
> to do this, please correct me if I'm wrong.

I'm afraid you're right.  This had never been a problem because we had
never needed link tests before.

dejagnu/lib/libgloss.exp has a hard-coded mapping from target triplets
to libgloss subdirectory.  Ugh!

I suggest the following:

Move the case ${target} from libgloss/configure.in into a separate
shell-script fragment, that sets some variable to the (list of)
directories in which GCC should search for crt files and libraries.

Then, get the top-level configure.in to source this shell-script
fragment and add -B$$r/$(TARGET_SUBDIR)/libgloss/$libglosssubdir(s)/
to FLAGS_FOR_TARGET.

I could take care of this, if the maintainers of libgloss don't oppose
to this change.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


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