1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01: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.

llvm-svn: 180230
This commit is contained in:
Tom Stellard 2013-04-24 23:56:14 +00:00
parent 57cfdd1d3d
commit 48d161332e
2 changed files with 2 additions and 1 deletions

View File

@ -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) {

View File

@ -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