* crt0 location
@ 2011-08-24 14:05 Paulo J. Matos
2011-08-24 14:30 ` Ian Lance Taylor
0 siblings, 1 reply; 3+ messages in thread
From: Paulo J. Matos @ 2011-08-24 14:05 UTC (permalink / raw)
To: gcc-help
Hi all,
Mostly in my work I have several versions of cross gcc for our own port
compiled in a directory. When I test the compilers I need to provide a
libc (usually uclibc) and a crt0. Previously the crt0 was being copied
to the compiler directory for it to be found however we have made those
directories read-only. How can I tell GCC during runtime where the
crt0.o is?
I have found out that -Bdir-to-crt0/ works. I am wondering if this is
the right option to use or there's a better way?
Cheers,
--
PMatos
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: crt0 location
2011-08-24 14:05 crt0 location Paulo J. Matos
@ 2011-08-24 14:30 ` Ian Lance Taylor
2011-08-24 14:45 ` Paulo J. Matos
0 siblings, 1 reply; 3+ messages in thread
From: Ian Lance Taylor @ 2011-08-24 14:30 UTC (permalink / raw)
To: Paulo J. Matos; +Cc: gcc-help
"Paulo J. Matos" <paulo@matos-sorge.com> writes:
> Mostly in my work I have several versions of cross gcc for our own
> port compiled in a directory. When I test the compilers I need to
> provide a libc (usually uclibc) and a crt0. Previously the crt0 was
> being copied to the compiler directory for it to be found however we
> have made those directories read-only. How can I tell GCC during
> runtime where the crt0.o is?
>
> I have found out that -Bdir-to-crt0/ works. I am wondering if this is
> the right option to use or there's a better way?
The -B option works.
It should also work to configure gcc with --sysroot and put the crt0.o
file in SYSROOT/lib or SYSROOT/usr/lib.
Ian
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: crt0 location
2011-08-24 14:30 ` Ian Lance Taylor
@ 2011-08-24 14:45 ` Paulo J. Matos
0 siblings, 0 replies; 3+ messages in thread
From: Paulo J. Matos @ 2011-08-24 14:45 UTC (permalink / raw)
To: gcc-help
On 24/08/11 15:29, Ian Lance Taylor wrote:
>
> The -B option works.
>
> It should also work to configure gcc with --sysroot and put the crt0.o
> file in SYSROOT/lib or SYSROOT/usr/lib.
>
Guess i will stick to -B for now since I don't know the location of crt0
at compile time. Specifying it at compile time gives me a lot more
flexibility.
Thanks,
--
PMatos
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-08-24 14:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-24 14:05 crt0 location Paulo J. Matos
2011-08-24 14:30 ` Ian Lance Taylor
2011-08-24 14:45 ` Paulo J. Matos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).