The following: #include <stdlib.h> void (*testme)(void *) = free;
int main() { return 0; } Fails with "assertion fail" when trying to link after compiling with -mabi=64. Works fine with o32 or n32. Same issue with taking address of malloc etc... Can take address of non-glibc functions just fine. I have not verified with later incarnations of binutils yet. -- Summary: fail to link if address of libc function taken in n64 Product: binutils Version: 2.13 Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassigned at sources dot redhat dot com ReportedBy: shay_gal-on at pmc-sierra dot com CC: bug-binutils at gnu dot org GCC build triplet: any GCC host triplet: any GCC target triplet: mips64-linux-gnu http://sources.redhat.com/bugzilla/show_bug.cgi?id=993 ------- 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