- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Anyone ever seen this one?
`__static_initialization_and_destruction_0(int, int)': locale-inst.o(.text+0xa0): global pointer relative address out of range Adding an std::string causes this error, it doesn't occur in smaller projects.Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello morten_tor,
Yep, I tried this and got the exact same error (I don't normally use libstdc++ due to the amount of "baggage" it links in!). It looks like a problem in the libstdc++ port - I think something in locale-inst is trying to access its .text section using global pointer relative addressing; but as the linker scripts usually group all of the .text sections in low memory and all of the gp relative sections (sdata and sbss) higher up, the .text sections are too far away to be accessed by the (signed 16-bit) gp. Sounds like one for the Altera compiler people (I have an idea for a workaround, but it's ugly)... Steve.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I know that some of the Altera guys are monitoring this forum, so hopefully something will be done to fix this error. I guess there's a workaround where I juggle the segments myself, but I'd rather that they fixed the issue.
The coders in here that use uLinux - are they using the same compiler as we are? If they are, then they should have the same problem (I guess)- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is fixed in the Nios II 1.01 release. You can get it from you FAE (now), or through the web (soon). Sorry for the late reply.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What is FAE? (ohh... well... Field Application Engineer .. got it http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/wink.gif )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
how soon is soon?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hmmm ... this is a recurring theme ... on several threads. So, I'll
ask here too: does the -G0 compiler option resolve the problem? The option does indeed work as advertised (no small data) ... but I'm not currently using STL ... if it resolves your problem it would be a simple work around ... at least temporarily. Regards, --Scott- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yes -G0 does solve the problem, http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/laugh.gif
I did try combinations of command line options for linking. but never thought of declearing -G0 on compiler command line. Once again your advice works, you should be admin here. thanks for the advice.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page