[AMDGPU] Don’t marke the .note section as ALLOC
authorSebastian Neubauer <sebastian.neubauer@amd.com>
Thu, 13 Feb 2020 08:43:08 +0000 (09:43 +0100)
committerSebastian Neubauer <sebastian.neubauer@amd.com>
Thu, 20 Feb 2020 14:14:48 +0000 (15:14 +0100)
commit977cd661cf019039dec7ffdd15bf0ac500828c87
tree1f09c3c28ae4260372ffefdbb41ea5a048bbc6aa
parentfa221fc6b8ac5ecd344daac634f0db8f22ebf435
[AMDGPU] Don’t marke the .note section as ALLOC

Marking a section as ALLOC tells the ELF loader to load the section into memory.
As we do not want to load the notes into VRAM, the flag should not be there.

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