mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
9efb4e04c7
Rather than creating a separate ".rdata" section distinct from the customary ".rodata" in ELF, ".rdata" switches to the ".rodata" section. This patch relands r305949 and r305950 with the correct commit message and addresses nit raised during review. Patch By: John Baldwin! Differential Revision: https://reviews.llvm.org/D34452 llvm-svn: 305995
14 lines
334 B
ArmAsm
14 lines
334 B
ArmAsm
# Check that .rdata sections have proper name, flags, and section types.
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o - \
|
|
# RUN: | llvm-readobj -s | FileCheck %s
|
|
|
|
.rdata
|
|
.word 0
|
|
|
|
# CHECK: Name: .rodata
|
|
# CHECK-NEXT: Type: SHT_PROGBITS
|
|
# CHECK-NEXT: Flags [ (0x2)
|
|
# CHECK-NEXT: SHF_ALLOC
|
|
# CHECK-NEXT: ]
|