This is the mail archive of the 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]

[Bug c++/24649] Hello world c++ prog core dumps when configured with /usr/ccs/bin/as

------- Comment #7 from steve at telxio dot com  2005-11-03 23:05 -------
If I install gcc-3.4.4 --without-gnu-as and using the Solaris tools directly I
assemble and link the code, the resultant executable fails.

If I install gcc-3.4.4 --with-gnu-as and again using the solaris tools directly
and the same assembler, the resultant executable works.

Only the gcc installation is changed. The assembler file and the Solaris tools
and the way the tools are invoked remain constant.

The following two commands were used to invoke the assembler and linker
respectively both times:
/usr/ccs/bin/as -V -Qy -s -xarch=v8plusa -o tt.o tt.s.sol-as
/usr/ccs/bin/ld -V -Y P,/usr/ccs/lib:/usr/lib -Qy \
/opt/utsi/test/R500/opt/utsi/lib/gcc/sparc-sun-solaris2.10/3.4.4/crt1.o \
/opt/utsi/test/R500/opt/utsi/lib/gcc/sparc-sun-solaris2.10/3.4.4/crti.o \
/usr/ccs/lib/values-Xa.o \
/opt/utsi/test/R500/opt/utsi/lib/gcc/sparc-sun-solaris2.10/3.4.4/crtbegin.o \
-L/opt/utsi/test/R500/opt/utsi/lib/gcc/sparc-sun-solaris2.10/3.4.4 \
-L/usr/ccs/bin -L/usr/ccs/lib \
-L/opt/utsi/test/R500/opt/utsi/lib/gcc/sparc-sun-solaris2.10/3.4.4/../../..  \
tt.o \
-lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc -lc \
/opt/utsi/test/R500/opt/utsi/lib/gcc/sparc-sun-solaris2.10/3.4.4/crtend.o \


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