diff options
author | Simon Atanasyan <simon@atanasyan.com> | 2016-01-20 19:15:18 +0000 |
---|---|---|
committer | Simon Atanasyan <simon@atanasyan.com> | 2016-01-20 19:15:18 +0000 |
commit | 2d0d8530e38e9865db50525f02108b72ec365589 (patch) | |
tree | 69045d858fe083f6f27b897ffe91113a00042335 /llvm/test/Object | |
parent | 2d7fa7065f0d07d4c376d4228f2097e686a9c143 (diff) | |
download | bcm5719-llvm-2d0d8530e38e9865db50525f02108b72ec365589.tar.gz bcm5719-llvm-2d0d8530e38e9865db50525f02108b72ec365589.zip |
[llvm-readobj][ELF] Teach llvm-readobj to show arch specific ELF section's flags
Some architecture specific ELF section flags might have the same value
(for example SHF_X86_64_LARGE and SHF_HEX_GPREL) and we have to check
machine architectures to select an appropriate set of possible flags.
The patch selects architecture specific flags into separate arrays
`ElfxxxSectionFlags` and combines `ElfSectionFlags` and `ElfxxxSectionFlags`
before pass to the `StreamWriter::printFlags()` method.
Differential Revision: http://reviews.llvm.org/D16269
llvm-svn: 258334
Diffstat (limited to 'llvm/test/Object')
-rw-r--r-- | llvm/test/Object/obj2yaml.test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Object/obj2yaml.test b/llvm/test/Object/obj2yaml.test index 60d46a83a52..171488da78f 100644 --- a/llvm/test/Object/obj2yaml.test +++ b/llvm/test/Object/obj2yaml.test @@ -327,7 +327,7 @@ ELF-MIPS64EL-NEXT: Flags: [ SHF_WRITE, SHF_ALLOC ] ELF-MIPS64EL-NEXT: AddressAlign: 0x0000000000000010 ELF-MIPS64EL-NEXT: - Name: .MIPS.options ELF-MIPS64EL-NEXT: Type: SHT_MIPS_OPTIONS -ELF-MIPS64EL-NEXT: Flags: [ SHF_ALLOC ] +ELF-MIPS64EL-NEXT: Flags: [ SHF_ALLOC, SHF_MIPS_NOSTRIP ] ELF-MIPS64EL-NEXT: AddressAlign: 0x0000000000000008 ELF-MIPS64EL-NEXT: Content: '01280000000000000000000000000000000000000000000000000000000000000000000000000000' ELF-MIPS64EL-NEXT: - Name: .pdr |