[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/757] Linker fails to set correct alignment for common symbol
From: |
hjl at lucon dot org |
Subject: |
[Bug ld/757] Linker fails to set correct alignment for common symbol |
Date: |
22 Feb 2005 21:00:12 -0000 |
------- Additional Comments From hjl at lucon dot org 2005-02-22 21:00 -------
Created an attachment (id=419)
--> (http://sources.redhat.com/bugzilla/attachment.cgi?id=419&action=view)
A testcase
address@hidden common2]$ make LD=ld
gcc -O -g -c main.c
gcc -O -g -fPIC -c foo.c
ld -shared -o libfoo.so foo.o
gcc -o foo1 -B./ main.o libfoo.so -Wl,-rpath,.
gcc -o foo2 -B./ libfoo.so main.o -Wl,-rpath,.
for f in foo1 foo2; do echo "Running: $f"; ./$f; \
if [ $? != 0 ]; then echo Failed; fi; done
Running: foo1
0x8049664: 4
Failed
Running: foo2
0x8049664: 4
Failed
--
http://sources.redhat.com/bugzilla/show_bug.cgi?id=757
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.