This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/19520] protected function pointer doesn't work right
- From: "hjl at lucon dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Jan 2005 00:35:55 -0000
- Subject: [Bug target/19520] protected function pointer doesn't work right
- References: <20050119002432.19520.hjl@lucon.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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