Is there a standard encoding for REQUIRED ELF entries?

I'm trying to make some of my codes more friendly to non-pure-ascii systems and wondered if there was any particular character encoding used for the REQUIRED entries in ELF binaries, or is it rather non-standard and based on the creation of a system file system ( or even directly bytes that were transferred regardless of what created the binary) (if so, is there a place in the binary that indicates the encoding?) Suppose that the current system encoding will not work very well for oego use I think), the names of non-ascii largely banned or something else?

+3
source share
2 answers

The ELF format indicates NEEDED fields as a "terminating null string" and no longer speaks of encoding, which pretty much implies an 8-bit ASCII string.

I personally see no reason to complicate the specification of the executable file format, which does not provide any additional value for the final product or development process: the user will not see the library names, so they would not want to localize it. You can try using UTF-8, but the actual encoding of the file system is not guaranteed by UTF-8. To make sure you need to know how your target linker handles these lines.

+3
source

As far as I know, the standard Unix way to work with non-ASCII characters is to encode them as UTF-8.

+1
source

Source: https://habr.com/ru/post/1697760/


All Articles