This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug 10908] New: Addresses of protected symbols don't work right on ia32
- From: gcc-bugzilla at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 May 2003 16:05:08 -0000
- Subject: [Bug 10908] New: Addresses of protected symbols don't work right on ia32
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10908
Summary: Addresses of protected symbols don't work right on ia32
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: major
Priority: P2
Component: c
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: hjl@lucon.org
CC: gcc-bugs@gcc.gnu.org
# make
gcc -O -DGCC_BUG -c main.c
gcc -O -DGCC_BUG -fPIC -c shared.c
gcc -shared -o libfoo.so shared.o
gcc -o foo main.o libfoo.so -Wl,-rpath,.
for f in foo; do echo "Running: $f"; ./$f; \
if [ $? != 0 ]; then echo Failed; fi; done
Running: foo
Data address: 0x8049924 != Data address from DSO: 0x400187e4
Function address: 0x80484c0 != Function address from DSO: 0x4001775f
Data: 100 != Data from DSO: 10
Failed
The data address will always differ on ia32. There is a proposal for
the ia32 psABI to address it. But without -DGCC_BUG,
Function address: 0x80484c0 != Function address from DSO: 0x4001775f
isn't there.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.