[profile] Delete zero-size dummy sections
authorFangrui Song <i@maskray.me>
Mon, 1 Mar 2021 05:07:30 +0000 (21:07 -0800)
committerFangrui Song <i@maskray.me>
Mon, 1 Mar 2021 05:07:30 +0000 (21:07 -0800)
commitdc93b1127c5e0621e672745d26bce5a11f68d943
tree0d47c51050863224bc981602c22f4503ef97385d
parent5419b671375c46299ff1da6c929859040e7beaf5
[profile] Delete zero-size dummy sections

They were added so that if no metadata section is present,
`__start_llvm_prf_*` references would not cause "undefined symbol"
errors.  By switching to undefined weak symbols in D96936, the dummy
sections are not needed.

This patch is also needed to work around
https://sourceware.org/bugzilla/show_bug.cgi?id=27490

Differential Revision: https://reviews.llvm.org/D97648
compiler-rt/lib/profile/InstrProfilingPlatformLinux.c