[llvm-bugs] [Bug 27248] New: [PATCH] Make mcount function names match gcc on arm and arm64 Linux
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Apr 6 12:19:49 PDT 2016
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: unassignedclangbugs at nondot.org
Reporter: bero at linaro.org
CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160406/6fa7b4d8/attachment.html>
More information about the llvm-bugs
mailing list