This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] fix profiling with GNU LINUX on Aarch64
AbandonedPublic

Authored by brzycki on Jun 30 2016, 2:03 PM.

Details

Summary

The GNU profiling support indicates that the interface is _mcount rather than mcount on GLIBC Linux for AArch64.

Diff Detail

Event Timeline

brzycki updated this revision to Diff 62411.Jun 30 2016, 2:03 PM
brzycki retitled this revision from to [AArch64] fix profiling with GNU LINUX on Aarch64.
brzycki updated this object.
brzycki added reviewers: abdulras, rengolin, jmolloy.
brzycki added subscribers: cfe-commits, sebpop, evandro.

I realized after posting this I made a mistake in compilation and test. Because of this clang wasn't properly tested. This patch actually causes "ninja check-all" to fail for non-GNU AArch64 Linux targets.

I am able to link with clang using -pg -meabi gnu src.c

I'd like to withdraw this patch from revew.

brzycki abandoned this revision.Jun 30 2016, 3:30 PM