This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/43129] Simplify global variable's address loading with option -fpic
- From: "carrot at google dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Mar 2010 08:01:18 -0000
- Subject: [Bug target/43129] Simplify global variable's address loading with option -fpic
- References: <bug-43129-17659@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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