Revert "[AMDGPU] Don’t marke the .note section as ALLOC"
authorMark Searles <mark.searles@amd.com>
Fri, 21 Feb 2020 23:26:51 +0000 (15:26 -0800)
committerMark Searles <mark.searles@amd.com>
Sat, 22 Feb 2020 00:08:30 +0000 (16:08 -0800)
commitd3e170c4388693b6628fa91cbf78506a5fb45439
tree463aef5ef05c8ce36f8e7e8f287d11156abd6ccd
parent8a0f0e2656abf76b771037c6543caf9a31744120
Revert "[AMDGPU] Don’t marke the .note section as ALLOC"

This reverts commit 977cd661cf019039dec7ffdd15bf0ac500828c87.

It breaks OpenCL testing. OpenCL Runtime is using PT_LOAD information
to calculate memory for global variables. This commit should be relanded once
the OpenCL runtime stops relying on PT_LOAD information for calculating global
variable memory size.

Differential Revision: https://reviews.llvm.org/D74995
llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp
llvm/test/CodeGen/AMDGPU/hsa.ll