public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* alignment problems with gglobal variables ,GCC for arc
@ 2008-02-07 20:15 Mike Welsen
  0 siblings, 0 replies; only message in thread
From: Mike Welsen @ 2008-02-07 20:15 UTC (permalink / raw)
  To: GCC -Help




Hi,

I am trying to link with gcc for ARC.

I get linker error for every global variable that is not 32 bit long or 32 bit aligned.

The linker error is "Error: Overflow detected in relocation value; Relocation value should be between 255 and -256 whereas it 268"
(Absolutely meaningless)

Once I redefine globals to be 32 bit long everything links fine.

Has anyone come accross this problem ?
Is there any compiler/linker option to overcome the problem?

Thanks
Mike


_________________________________________________________________
Telly addicts unite!
http://www.searchgamesbox.com/tvtown.shtml

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

only message in thread, other threads:[~2008-02-07 20:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-07 20:15 alignment problems with gglobal variables ,GCC for arc Mike Welsen

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