Hi Curt If you've been having these problems before but have been able to make them "go away" by shuffling code around then you have really just been hiding from the problem instead of fixing it. Yes, what you see is indeed a literal pool, but perhaps one that has not been fixed up properly by linking, or perhaps one that has been located badly. There are many things that contribute to getting things right including: * correct compilation * correct linking * correct location The actual code itself looks sound. You could also generate the assmebler to see if that looks sane too. You really need to check out a few other things to hunt this down. The best place to go look is the map file. Check what addresses the symbols got located at. If they agree with what you see in the code then it means your compiler etc is fine and your ldscript is broken. Personally, I always use my own hand crafted ld scripts and not the general purpose ones. ldscripting is pretty hairy-chested stuff though.
Message
Re: Possible gcc bug?
2004-03-07 by embeddedjanitor
Attachments
- No local attachments were found for this message.