[ELF] - EhFrame.cpp: cover personality encoding handling code with the test cases.
authorGeorge Rimar <grimar@accesssoftek.com>
Fri, 29 Jun 2018 12:19:35 +0000 (12:19 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Fri, 29 Jun 2018 12:19:35 +0000 (12:19 +0000)
commit2f7e39c7d5d7c19ec9529f2a2e7992bcb432751a
tree102d7813ccaa7ab748d61356566a5d67259c7ee1
parent07b01ffff2b94f1dcafdc031f62bb21f7579e573
[ELF] - EhFrame.cpp: cover personality encoding handling code with the test cases.

CIEs augmentation string can have 'P' character,
what means the next byte is the personality encoding, a DW_EH_PE_xxx value.
This is followed by a pointer to the personality function.

We had the support of the different encodings earlier, but had no test cases.

This change adds coverage of DW_EH_PE_absptr/DW_EH_PE_signed/DW_EH_PE_udata2/DW_EH_PE_sdata2 and
DW_EH_PE_udata8/DW_EH_PE_sdata8 cases for place below:
https://github.com/llvm-mirror/lld/blob/master/ELF/EhFrame.cpp#L123

llvm-svn: 335969
lld/test/ELF/eh-frame-value-format1.s [new file with mode: 0644]
lld/test/ELF/eh-frame-value-format2.s [new file with mode: 0644]
lld/test/ELF/eh-frame-value-format3.s [new file with mode: 0644]
lld/test/ELF/eh-frame-value-format4.s [new file with mode: 0644]
lld/test/ELF/eh-frame-value-format5.s [new file with mode: 0644]
lld/test/ELF/eh-frame-value-format6.s [new file with mode: 0644]