https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79774

            Bug ID: 79774
           Summary: gcc -fsanitize=address with error
           Product: gcc
           Version: 4.8.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zhoujun48 at huawei dot com
  Target Milestone: ---

Complie C++ code,GCC 4.8.4,CFLAGS= -lasan -fsanitize=address,but get this
error:
system/sepolicy/tools/fc_sort/fc_sort.c:49: error: undefined reference to
'__asan_report_load8'
system/sepolicy/tools/fc_sort/fc_sort.c:50: error: undefined reference to
'__asan_report_load8'
system/sepolicy/tools/fc_sort/fc_sort.c:51: error: undefined reference to
'__asan_report_load8'
system/sepolicy/tools/fc_sort/fc_sort.c:91: error: undefined reference to
'__asan_report_load1'

I have already used -lasan,
who can help me solve this problem
thank u

Reply via email to