[LLVMbugs] [Bug 23969] New: "mcount" is deprecated for arm backend

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jun 26 15:06:10 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=23969

            Bug ID: 23969
           Summary: "mcount" is deprecated for arm backend
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: shenhan at google.com
                CC: echristo at gmail.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Current ARM bpapi (Base Platform Application Binary Interface) no longer uses
"mcount" as function profiler name, instead it uses "__gnu_mcount_nc".

(Refer to trunk gcc - gcc/config/arm/bpapi.h ARM_FUNCTION_PROFILER.)

Also checking the system libc.so, __gnu_mcount_nc is properly defined.
Notwithstanding the fact that "_mcount" and "mcount" are defined in libc.so,
they are not the default-version symbol, to link against these symbols, a
version script file has to be provided to the linker, otherwise we get an
undefined symbol error.

May I suggest override this value in ARMTaretInfo as - 
 this->MCountName = "__gnu_mcount_nc";

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150626/2486516c/attachment.html>


More information about the llvm-bugs mailing list