bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/22318] New: ../bfd/.libs/libbfd.a(plugin.o): undefined referenc


From: hjl.tools at gmail dot com
Subject: [Bug gas/22318] New: ../bfd/.libs/libbfd.a(plugin.o): undefined reference to symbol 'dlsym@@GLIBC_2.16'
Date: Thu, 19 Oct 2017 00:12:52 +0000

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

            Bug ID: 22318
           Summary: ../bfd/.libs/libbfd.a(plugin.o): undefined reference
                    to symbol 'dlsym@@GLIBC_2.16'
           Product: binutils
           Version: 2.30 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---

When -fsanitize=address is used in CFLAGS to build binutils, I got

../bfd/.libs/libbfd.a(plugin.o): undefined reference to symbol
'dlsym@@GLIBC_2.16'

config/plugins.m4 has

 if test "$plugins" = "yes"; then
    AC_SEARCH_LIBS([dlopen], [dl])
  fi

plugins use dlsym, but libasan.so only intercepts dlopen, not dlsym:

address@hidden binutils-x32-text]$ nm -D /lib64/libasan.so.4| grep " dl"
0000000000038580 W dlclose
                 U dl_iterate_phdr
000000000004dc50 W dlopen
                 U dlsym
                 U dlvsym
address@hidden binutils-x32-text]$ 

Testing dlopen for libdl leads to false negative when -fsanitize=address
is used.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

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