mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 06:09:05 +00:00
R600: Use SHT_PROGBITS for the .AMDGPU.config section
The libelf implementation that is distributed here: http://www.mr511.de/software/english.html will not parse sections that are marked SHT_NULL. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180230 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8c31b29814
commit
87cba4a4c1
@ -59,7 +59,7 @@ bool AMDGPUAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
||||
|
||||
const MCSectionELF *ConfigSection = getObjFileLowering().getContext()
|
||||
.getELFSection(".AMDGPU.config",
|
||||
ELF::SHT_NULL, 0,
|
||||
ELF::SHT_PROGBITS, 0,
|
||||
SectionKind::getReadOnly());
|
||||
OutStreamer.SwitchSection(ConfigSection);
|
||||
if (STM.device()->getGeneration() > AMDGPUDeviceInfo::HD6XXX) {
|
||||
|
@ -3,6 +3,7 @@
|
||||
|
||||
; ELF-CHECK: Format: ELF32
|
||||
; ELF-CHECK: Name: .AMDGPU.config
|
||||
; ELF-CHECK: Type: SHT_PROGBITS
|
||||
|
||||
; CONFIG-CHECK: .section .AMDGPU.config
|
||||
; CONFIG-CHECK-NEXT: .long 45096
|
||||
|
Loading…
Reference in New Issue
Block a user