Hi, all,

Could someone point me out how to resolve the following problem? Thanks,

Elaine

-------- Original Message --------
Subject:        relocation errors using SS11 to build debug version
Date:   Thu, 28 Aug 2008 14:22:24 +0800
From:   Elaine Xiong <elaine.xi...@sun.com>
To:     CC-interest <CC-interest at Sun.COM>



Hi, experts,

I met strange relocation errors only when I use SS11 to build a .c file 
into debug version. This problem doesn't exist using SS12 whatever debug 
or release. Likewise this problem is gone when using the same compiler 
to build release version.

The compiler is,

bash-3.2$ /ws/onnv-tools-prc/SUNWspro/SS11/bin/cc -V
cc: Sun C 5.8 Patch 121016-05 2007/01/10

The build cmds are,
/ws/onnv-tools-prc/SUNWspro/SS11/bin/cc -DHAVE_CONFIG_H -I. -I..    -I.. 
-I../compat -i -g -xstrconst -xpentium -mr -xregs=no%frameptr  -mt 
-D__inline=inline -c event-test.c
/ws/onnv-tools-prc/SUNWspro/SS11/bin/cc -I.. -I../compat -i -g 
-xstrconst -xpentium -mr -xregs=no%frameptr -mt -D__inline=inline -o 
event-test event-test.o  ../.libs/libevent.a -lnsl -lrt -lresolv -lsocket

The relocation errors occurred during the second cmd. The symbol and 
relocation detail information for both cmds are enclosed into this mail FYI.

LD_DEBUG=-Dsymbols,reloc,detail /ws/onnv-tools-prc/SUNWspro/SS11/bin/cc 
-DHAVE_CONFIG_H -I. -I..    -I.. -I../compat -i -g -xstrconst -xpentium 
-mr -xregs=no%frameptr  -mt -D__inline=inline -c event-test.c
LD_DEBUG=-Dsymbols,reloc,detail /ws/onnv-tools-prc/SUNWspro/SS11/bin/cc 
-I.. -I../compat -i -g -xstrconst -xpentium -mr -xregs=no%frameptr -mt 
-D__inline=inline -o event-test event-test.o  ../.libs/libevent.a -lnsl 
-lrt -lresolv -lsocket


BR,
Elaine

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.opensolaris.org/pipermail/tools-linking/attachments/20080901/76aeff61/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: compile-output
URL: 
<http://mail.opensolaris.org/pipermail/tools-linking/attachments/20080901/76aeff61/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: relocation-error
URL: 
<http://mail.opensolaris.org/pipermail/tools-linking/attachments/20080901/76aeff61/attachment-0001.ksh>

Reply via email to