From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26422 invoked by alias); 31 Mar 2010 08:01:32 -0000 Received: (qmail 22412 invoked by uid 48); 31 Mar 2010 08:01:18 -0000 Date: Wed, 31 Mar 2010 08:01:00 -0000 Message-ID: <20100331080118.22406.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/43129] Simplify global variable's address loading with option -fpic In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "carrot at google dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-03/txt/msg03109.txt.bz2 ------- 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