[llvm-dev] ELF string table access in backend

Dmitri Botcharnikov via llvm-dev llvm-dev at lists.llvm.org
Tue Nov 26 06:17:21 PST 2019


While developing a backend for the custom target I need to create a custom
ELF section and put there some mapping of other ELF sections to strings.

For this I have two questions:

- How can I get a section index in the section table from within target ELF
streamer? Is it possible? 

- How can I get access to the string table section, put some string and get
back its offset in string table?

If it is not possible maybe there is a way to somehow post-process ELF for
this before actually writing to file?


Best regards,

Dmitri Botcharnikov



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20191126/bb1a4dd8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 13168 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20191126/bb1a4dd8/attachment.gif>

More information about the llvm-dev mailing list