powerpc-eabism, strategy for finding crt0.o
Alexandre Oliva
aoliva@redhat.com
Thu Apr 12 00:36:00 GMT 2001
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
More information about the Newlib
mailing list