address of labels in the symbol table

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

 



Hi, 

I'm using gcc 4.2.1 for the SPARC V8 architecture and I want to access the address of labels placed in the c code from the symbol table. 
This is working fine if I do not optimize (-O0) or optimize with -O1. 
But when optimizing with -O2 or -Os the unused labels (event though they are still listed in the symbol table) have a wrong address.
What is happening here ?

Thanks,
Andreas



[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