mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
d20cb8772f
Dynamic section holds a table, so the sh_entsize might be set. As the dynamic section entry size never changes, we can default it to the size of a dynamic entry. Differential Revision: https://reviews.llvm.org/D49619 llvm-svn: 337725
18 lines
429 B
YAML
18 lines
429 B
YAML
# Ensures that dynamic section has sh_entsize correctly set
|
|
# RUN: yaml2obj %s -o %t
|
|
# RUN: llvm-readobj -sections %t | FileCheck %s --check-prefix=SECTION
|
|
|
|
!ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_DYN
|
|
Machine: EM_X86_64
|
|
Sections:
|
|
- Name: .dynamic
|
|
Type: SHT_DYNAMIC
|
|
Flags: [ SHF_ALLOC, SHF_WRITE ]
|
|
|
|
# SECTION: Name: .dynamic
|
|
# SECTION: EntrySize: 16
|