public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Undefined symbol .LC531 during linker check gcc 3.4.5-p5 - c++ file compilation/linking
@ 2014-09-16  5:28 Sairam Rangaswamy -X (sairanga - ARICENT TECHNOLOGIES MAURIITIUS LIMITED at Cisco)
  0 siblings, 0 replies; only message in thread
From: Sairam Rangaswamy -X (sairanga - ARICENT TECHNOLOGIES MAURIITIUS LIMITED at Cisco) @ 2014-09-16  5:28 UTC (permalink / raw)
  To: gcc-help

Hi,

We are using gcc 3.4.5-p5 compiler for cross compiling. The host is linux machine. The target is MPC8568 or MPC860 based
Powerpc architecture platforms. Target OS is Vxworks.

If I enable the optimization flag, -Os (optimize for space), I get some linker errors during final linker check for
All the binary images generated. The linker check script checks for any unresolved symbols. The error is because
Some symbols are used in the object but not defined and available in any of the binaries. These are
Internal local label related symbols? This is a c++ source file.

objdump -t Alarm.obj | grep .LC
00000000         *UND*  00000000 .LC1531
00000000         *UND*  00000000 .LC1533
00000000         *UND*  00000000 .LC1536
00000000         *UND*  00000000 .LC1535
00000000         *UND*  00000000 .LC1534
00000000         *UND*  00000000 .LC1532

If I don't use the optimization flag, or use -O1 or -O3, there are no errors. 
How do I avoid these extra symbols being generated? What are these symbols.
Unfortunately I am not able to get a reduced file that results in these errors, and
I cannot share the source file as it is proprietary. 


Thanks,
R. Sairam

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-09-16  5:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-16  5:28 Undefined symbol .LC531 during linker check gcc 3.4.5-p5 - c++ file compilation/linking Sairam Rangaswamy -X (sairanga - ARICENT TECHNOLOGIES MAURIITIUS LIMITED at Cisco)

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).