This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/43129] Simplify global variable's address loading with option -fpic



------- Comment #3 from carrot at google dot com  2010-03-31 08:01 -------
(In reply to comment #2)
> Doesn't this belong in the linker as a relaxation?  This would solve the reloc
> problem in the process.
> 

Gnu linker has already support R_ARM_GOT_PREL. And the new relocation
(GOT_PREL) has been added to trunk gas. So the offset can be represented as

      i(GOT_PREL)+(.-(.LPIC1+4))

Now my question is where is the best place to insert this enhancement?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43129


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]