string-table

String table in ELF

杀马特。学长 韩版系。学妹 提交于 2020-01-01 02:40:08
问题 I get some symbol and I get the hexedit of an elf file. How can I know in which section this symbol appear? What is the different between strtab and shstrtab ? there is also an array of symbol strings? When I get index in the names table, is it index in strtab or shstrtab ? 回答1: For the first question, we would need the hexedit of the elf file to understand properly. For the second question - strtab stands for String Table shstrtab stands for Section Header String table. When we read ELF

Static string literal table?

坚强是说给别人听的谎言 提交于 2019-12-21 03:41:04
问题 What is the correct way in C++ to create a global & static table of strings? By "global", I mean: Useable from any file that includes the header. But not part of some run-time created singelton objcet. By "static", I mean: As little run time set up possable. Data in read only memory pages. Only 1 instance of data per app. By "string", I mean: Null terminated array of chars is fine. std::string would be nice, but I don't think it can be done in terms of the above. Correct? By "table", I mean:

Determine which STRINGTABLE is included in EXE

孤街浪徒 提交于 2019-12-11 07:35:19
问题 My Delphi application uses the Microsoft Resource Compiler (rc.exe) to compile a list of strings (text format in a .rc file) like this: Language LANG_KOREAN, SUBLANG_KOREAN STRINGTABLE BEGIN cszLanguageName "Korean" <etc> END into a .res file. All tables contains the same IDs (such as cszLanguageName ). I maintain two separate resource string files. One contains mostly European languages (English, Czech, etc) which I call "Standard.rc". The other is called "Alternate.rc" and contains all

printf() debugging library using string table “decoder ring”

两盒软妹~` 提交于 2019-12-09 16:26:23
问题 I'm writing to see if any of you have ever seen or heard of an implementation of the idea I'm about to describe. I'm interested in developing a printf-style debugging library for an embedded target. The target is extremely remote, and the comms bandwidth budget between me and the target is extremely tight, so I want to be able to get the debugging messages in a very efficient format. Quite often, debug statements look something like the following: myDebugLibraryPrintf("Inside loop, processing

VC++ 10 MFC: What is the correct way to do localization

巧了我就是萌 提交于 2019-12-03 12:55:45
问题 I am a .NET guy who is having to do some work on an MFC app. The app is a VS2008 MFC executable which I have converted to VS2010. The original developers did localisation by specifying the name of a .txt file with key value pairs in it on the applications command line. Installed shortcuts to the executable specify a different .txt file depending on which country the app is being installed in. This of course does not work if you just run the .exe directly. This seems like a weird way to do

Static string literal table?

风流意气都作罢 提交于 2019-12-03 12:00:19
What is the correct way in C++ to create a global & static table of strings? By "global", I mean: Useable from any file that includes the header. But not part of some run-time created singelton objcet. By "static", I mean: As little run time set up possable. Data in read only memory pages. Only 1 instance of data per app. By "string", I mean: Null terminated array of chars is fine. std::string would be nice, but I don't think it can be done in terms of the above. Correct? By "table", I mean: I mean an indexable array. So I guess not a table per-se. But I'm flexable on this point. Open to ideas

String table in ELF

蓝咒 提交于 2019-12-03 06:16:09
I get some symbol and I get the hexedit of an elf file. How can I know in which section this symbol appear? What is the different between strtab and shstrtab ? there is also an array of symbol strings? When I get index in the names table, is it index in strtab or shstrtab ? Samir Baid For the first question, we would need the hexedit of the elf file to understand properly. For the second question - strtab stands for String Table shstrtab stands for Section Header String table. When we read ELF header, we see that every ElfHeader structure contains a member called e_shstrndx. This is an index

Where do Java and .NET string literals reside?

◇◆丶佛笑我妖孽 提交于 2019-11-26 03:33:42
问题 A recent question about string literals in .NET caught my eye. I know that string literals are interned so that different strings with the same value refer to the same object. I also know that a string can be interned at runtime: string now = DateTime.Now.ToString().Intern(); Obviously a string that is interned at runtime resides on the heap but I had assumed that a literal is placed in the program\'s data segment (and said so in my answer to said question). However I don\'t remember seeing