From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24841 invoked by alias); 24 Aug 2007 16:17:24 -0000 Received: (qmail 23085 invoked by uid 48); 24 Aug 2007 16:16:48 -0000 Date: Fri, 24 Aug 2007 16:17:00 -0000 Message-ID: <20070824161648.23084.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/33169] Compiler generates two different relocs for the same symbol In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" 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: 2007-08/txt/msg01782.txt.bz2 ------- Comment #6 from pinskia at gcc dot gnu dot org 2007-08-24 16:16 ------- So one goes the GOT (the weakref) while the other does not (straight call). I am guess this is really a bug in binutils if a bug at all. Though two different relocs for the same symbol should be ok. >and thusly changes its object-modification behavior for *all* invocations of the function. This is a bug in the linker. You should report this to binutils (http://sourceware.org/bugzilla/ ). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33169