You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
487 B
22 lines
487 B
7 months ago
|
# REQUIRES: x86
|
||
|
|
||
|
## PT_GNU_RELRO includes TLS sections.
|
||
|
|
||
|
# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
|
||
|
# RUN: ld.lld %t.o -o %t
|
||
|
# RUN: llvm-readobj -l %t | FileCheck %s
|
||
|
|
||
|
## Currently p_memsz of PT_GNU_RELRO is rounded up to protect the last page.
|
||
|
|
||
|
# CHECK: Type: PT_GNU_RELRO
|
||
|
# CHECK: VirtualAddress: 0x2021C8
|
||
|
# CHECK: FileSize: 4
|
||
|
# CHECK-NEXT: MemSize: 3640
|
||
|
# CHECK: Alignment: 1
|
||
|
|
||
|
.section .foo,"awT",@progbits
|
||
|
.long 1
|
||
|
|
||
|
.section .bar,"awT",@nobits
|
||
|
.space 2
|