------- Additional Comments From hjl at lucon dot org  2005-04-19 17:21 -------
Created an attachment (id=460)
 --> (http://sources.redhat.com/bugzilla/attachment.cgi?id=460&action=view)
A testcase

[EMAIL PROTECTED] set-3]$ make
cc -DGOOD -shared -fPIC -o libx.so s1.c s2.c
cc -o x m.c libx.so -Wl,-rpath,.
cc -shared -fPIC -o liby.so s1.c s2.c
cc -o y m.c liby.so -Wl,-rpath,.
./x
OK: xxx calls local foo: 200
./y
BAD: xxx didn't call local foo: 0

You may have to use gcc 3.4 to compile it. The problem is

int foo ();
static int bar () __attribute__ ((alias ("foo")));

doesn't do what you want when foo is undefined.

-- 


http://sources.redhat.com/bugzilla/show_bug.cgi?id=857

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to