bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/857] Gas doesn't warn ".set x,y" when "y' is undefined


From: hjl at lucon dot org
Subject: [Bug gas/857] Gas doesn't warn ".set x,y" when "y' is undefined
Date: 19 Apr 2005 17:21:38 -0000

------- 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

address@hidden 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]