Undefined symbol .LC531 during linker check gcc 3.4.5-p5 - c++ file compilation/linking

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux