https://llvm.org/bugs/show_bug.cgi?id=27248
Bug ID: 27248 Summary: [PATCH] Make mcount function names match gcc on arm and arm64 Linux Product: clang Version: 3.8 Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs Assignee: unassignedclangb...@nondot.org Reporter: b...@linaro.org CC: llvm-bugs@lists.llvm.org Classification: Unclassified Created attachment 16175 --> https://llvm.org/bugs/attachment.cgi?id=16175&action=edit Adjust mcount name to match gcc Currently, clang names the mcount function from -pg "_mcount" on PPC Linux and "mcount" on any other Linux. In gcc, this matches the behavior on PPC and x86 (both 32 and 64); but on aarch64 the function is called "_mcount" and on arm32 it's called "__gnu_mcount_nc". This mismatch in naming causes the Linux kernel to miscompile for arm (32 and 64) if CONFIG_FUNCTION_TRACER is enabled. The attached patch fixes this by matching the expected name of the mcount function. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs