From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26818 invoked by alias); 19 Jan 2005 00:36:08 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 26038 invoked by uid 48); 19 Jan 2005 00:35:55 -0000 Date: Wed, 19 Jan 2005 00:36:00 -0000 Message-ID: <20050119003555.26036.qmail@sourceware.org> From: "hjl at lucon dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050119002432.19520.hjl@lucon.org> References: <20050119002432.19520.hjl@lucon.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug target/19520] protected function pointer doesn't work right X-Bugzilla-Reason: CC X-SW-Source: 2005-01/txt/msg02546.txt.bz2 List-Id: ------- Additional Comments From hjl at lucon dot org 2005-01-19 00:35 ------- The same bug also happen on i686-pc-linux-gnu: gcc -fPIC -c -o x.o x.c gcc -shared -o libx.so x.o gcc -o foo m.c libx.so -Wl,-rpath,. ./foo called from main foo_p: 0x80483e4 called from shared foo: 0x111524 shared foo: 0x111524 shared foo: 0x111524 called from shared foo_p: 0x80483e4 shared foo: 0x111524 shared foo: 0x111524 called from main foo: 0x80483e4 got from main foo: 0x111524 Function pointer `foo' are't the same in DSO and main -- What |Removed |Added ---------------------------------------------------------------------------- GCC target triplet|x86_64-unknown-linux-gnu | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19520