https://sourceware.org/bugzilla/show_bug.cgi?id=23008

--- Comment #7 from Nick Clifton <nickc at redhat dot com> ---
Hi Dongliang,

> When I try to reproduce this problem with Address Sanitizer in GCC, there
> are some wired errors when I compiled binutils:

> /usr/bin/ld: ../bfd/.libs/libbfd.a(plugin.o): undefined reference to symbol
> 'dlsym@@GLIBC_2.2.5'

This is because the address sanitizer needs the "dl" library.  Change your
configure command line so that LDLFLAGS is defined as:

  LDFLAGS="-fsanitize=address -ldl"

That should fix the problem.

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to