diff options
| author | Georgii Rymar <grimar@accesssoftek.com> | 2019-10-28 13:47:44 +0300 |
|---|---|---|
| committer | Georgii Rymar <grimar@accesssoftek.com> | 2019-10-29 11:43:12 +0300 |
| commit | 3fe7f1dcf44ced0648fd0aef2b33056bbee37881 (patch) | |
| tree | 47b820fef886813a9e006d985ff0edd6f54deb6c /llvm/test/Object | |
| parent | 5b118a0471435751f39eeb92d56ecc3956053304 (diff) | |
| download | bcm5719-llvm-3fe7f1dcf44ced0648fd0aef2b33056bbee37881.tar.gz bcm5719-llvm-3fe7f1dcf44ced0648fd0aef2b33056bbee37881.zip | |
[yaml2obj] - Make .symtab to be not mandatory section for SHT_REL[A] section.
Before this change .symtab section was required for SHT_REL[A] section
declarations. yaml2obj automatically defined it in case when YAML document
did not have it.
With this change it is now possible to produce an object that
has a relocation section, but has no symbol table.
It simplifies the code and also it is inline with how we handle Link fields
for another special sections.
Differential revision: https://reviews.llvm.org/D69260
Diffstat (limited to 'llvm/test/Object')
| -rw-r--r-- | llvm/test/Object/invalid.test | 1 | ||||
| -rw-r--r-- | llvm/test/Object/objdump-sectionheaders.test | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/llvm/test/Object/invalid.test b/llvm/test/Object/invalid.test index 396776c5f91..2c95eea74f2 100644 --- a/llvm/test/Object/invalid.test +++ b/llvm/test/Object/invalid.test @@ -333,6 +333,7 @@ Sections: - Offset: 0x0 Type: R_X86_64_64 Symbol: 0xFFFFFF +Symbols: [] ## Check llvm-readobj does not crash on a truncated ELF. diff --git a/llvm/test/Object/objdump-sectionheaders.test b/llvm/test/Object/objdump-sectionheaders.test index fba4fa79980..aab3f54d7db 100644 --- a/llvm/test/Object/objdump-sectionheaders.test +++ b/llvm/test/Object/objdump-sectionheaders.test @@ -39,3 +39,4 @@ Sections: Address: 0x0000000000000038 Info: .text Relocations: +Symbols: [] |

