Determine source language from a binary?

后端 未结 8 727
傲寒
傲寒 2020-12-05 20:26

I responded to another question about developing for the iPhone in non-Objective-C languages, and I made the assertion that using, say, C# to write for the iPhone would stri

8条回答
  •  孤街浪徒
    2020-12-05 20:41

    First, run what on some binaries and look at the output. CVS (and SVN) identifiers are scattered throughout the binary image. And most of those are from libraries.

    Also, there's often a "map" to the various library functions. That's a big hint, also.

    When the libraries are linked into the executable, there is often a map that's included in the binary file with names and offsets. It's part of creating "position independent code". You can't simply "hard-link" the various object files together. You need a map and you have to do some lookups when loading the binary into memory.

    Finally, the start-up module for C, C++ (and I imagine C#) is unique to that compiler's defaiult set of libraries.

提交回复
热议问题