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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to