[LLVMdev] Implementing the hotpatch attribute for X86

Charles Davis cdavis at mymail.mines.edu
Tue Oct 26 16:27:49 PDT 2010


On 10/26/10 5:24 PM, Michael Spencer wrote:
> The linker adds the padding. Also, the first instruction just has to
> be two bytes or longer. Not exactly two bytes.
How then does the linker know to add the padding? I assume there's a
PE-COFF attribute that will do that, but what about other file formats,
like ELF or Mach-O? Bear in mind that I'm doing this for the Wine
project, so I'm very concerned about those two formats.

Chip



More information about the llvm-dev mailing list