bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/10508] gold doesn't complain about missing symbols in .so file


From: nicholas at mxc dot ca
Subject: [Bug gold/10508] gold doesn't complain about missing symbols in .so files
Date: 11 Aug 2009 04:48:02 -0000

------- Additional Comments From nicholas at mxc dot ca  2009-08-11 04:48 
-------
Created an attachment (id=4127)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4127&action=view)
libopagent.so.1.0.0

Hrm. I've tried the obvious things and can seem to make my own "libopagent.so"
minimal testcase.

$ cat opagenttest.c
char op_open_agent ();
int
main ()
{
return op_open_agent ();
  ;
  return 0;
}

With gold:
$ gcc opagenttest.c -lopagent -L/usr/lib/oprofile
$

With binutils:
$ gcc opagenttest.c -lopagent -L/usr/lib/oprofile
/usr/lib/oprofile/libopagent.so: undefined reference to `bfd_check_format'
/usr/lib/oprofile/libopagent.so: undefined reference to `bfd_init'
/usr/lib/oprofile/libopagent.so: undefined reference to `bfd_openr'
/usr/lib/oprofile/libopagent.so: undefined reference to `bfd_perror'
/usr/lib/oprofile/libopagent.so: undefined reference to `bfd_get_mach'
/usr/lib/oprofile/libopagent.so: undefined reference to `bfd_get_arch'
collect2: ld returned 1 exit status


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10508

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