peter.smith added a comment. That looks correct to me. In the test I think it would be useful to check the contents of the table llvm-objdump -s or llvm-readobj -u to check that the sentinel is written in the correct place. https://reviews.llvm.org/D41105