[gnu-sol-discuss] x86 sol10 11/06 SUNWgcc missing files?
Bart Smaalders
bart.smaalders at Sun.COM
Mon Mar 19 13:04:56 PDT 2007
Steven Xie wrote:
> Hi Bart,
> SUNWarc does solve the linking issue. with
> 1 f none usr/lib/crt1.o 0644 root bin 1632 14303 1106347992
> 1 f none usr/lib/crti.o 0644 root bin 760 17405 1106347992
> 1 f none usr/lib/crtn.o 0644 root bin 528 10389 1106347992
>
>
> However these files are still missing under
> /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/
> Which exsits under sparc.
>
> 1 f none usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/crt1.o 0555 root
> bin 1428 57403 1106443070
> 1 f none usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/crtbegin.o 0555
> root bin 2824 48389 1106443070
> 1 f none usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/crtend.o 0555 root
> bin 1768 3586 1106443070
> 1 f none usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/crtfastmath.o 0555
> root bin 2492 21691 1106443070
> 1 f none usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/crti.o 0555 root
> bin 1144 49481 1106443070
> 1 f none usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/crtn.o 0555 root
> bin 1108 49997 1106443070
> 1 f none usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/gcrt1.o 0555 root
> bin 1488 60156 1106443070
> 1 f none usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/gmon.o 0555 root
> bin 6984 45233 1106443070
>
> Does that mean We should never link against
> /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/ for x86
> And for sparc We have this option?
> Thanks,
>
Your example was gcc file.c, which generated link errors
due to missing crt1.o files.
Sparc and x86 apparently ship their crt1.o files in different
locations; I'm looking into why this is the case. I'm guessing
this is due to the fact that in Solaris 10 Sun shipped the amd64
bits compiled w/ gcc.
- Bart
--
Bart Smaalders Solaris Kernel Performance
barts at cyber.eng.sun.com http://blogs.sun.com/barts
More information about the gnu-sol-discuss
mailing list