Add the necessary definitions for NDS32 ELF files, including relocs.
Also make necessary trivial change to ELFYaml, llvm-objdump, and llvm-readobj in order to work with NDS32 ELFs.
Details
- Reviewers
- None
Diff Detail
Event Timeline
Hi joerg,
Did you mean add the test case like test/MC/NDS32/elf-reloc.s in https://reviews.llvm.org/D28659 ?
If so, should I move the test case to this patch ?
I reference https://reviews.llvm.org/D23558 and it didn't add testcases when adding ELF defines.
Could you help me to point out the right test I should add ?
Thanks.
Please upload diffs with context git diff -U99999.
You need tests for each of the tools that dump: llvm-readobj/llvm-objdump (and yaml2elf/elf2yaml once/if yu add support for them). I'd suggest to add a line for each of the relocations that can be emitted (to have full coverage).
yaml2obj can be used for all the tests that need an object file. Just make sure the output is understood by binutils on the first round.
Fixup visitELF_NDS32_32 function.
Res should add Addend because we use RELA relocation.