Skip to content

Commit

Permalink
Add (untested) x86 support to ElfObjectWriter
Browse files Browse the repository at this point in the history
  • Loading branch information
filipnavara committed Dec 7, 2023
1 parent bb58ef3 commit 10a8f75
Show file tree
Hide file tree
Showing 2 changed files with 390 additions and 280 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,48 @@ public static class ElfNative
public const byte STB_GLOBAL = 1;
public const byte STB_WEAK = 2;

public const uint R_386_NONE = 0;
public const uint R_386_32 = 1;
public const uint R_386_PC32 = 2;
public const uint R_386_GOT32 = 3;
public const uint R_386_PLT32 = 4;
public const uint R_386_COPY = 5;
public const uint R_386_GLOB_DAT = 6;
public const uint R_386_JMP_SLOT = 7;
public const uint R_386_RELATIVE = 8;
public const uint R_386_GOTOFF = 9;
public const uint R_386_GOTPC = 10;
public const uint R_386_32PLT = 11;
public const uint R_386_TLS_TPOFF = 14;
public const uint R_386_TLS_IE = 15;
public const uint R_386_TLS_GOTIE = 16;
public const uint R_386_TLS_LE = 17;
public const uint R_386_TLS_GD = 18;
public const uint R_386_TLS_LDM = 19;
public const uint R_386_16 = 20;
public const uint R_386_PC16 = 21;
public const uint R_386_8 = 22;
public const uint R_386_PC8 = 23;
public const uint R_386_TLS_GD_32 = 24;
public const uint R_386_TLS_GD_PUSH = 25;
public const uint R_386_TLS_GD_CALL = 26;
public const uint R_386_TLS_GD_POP = 27;
public const uint R_386_TLS_LDM_32 = 28;
public const uint R_386_TLS_LDM_PUSH = 29;
public const uint R_386_TLS_LDM_CALL = 30;
public const uint R_386_TLS_LDM_POP = 31;
public const uint R_386_TLS_LDO_32 = 32;
public const uint R_386_TLS_IE_32 = 33;
public const uint R_386_TLS_LE_32 = 34;
public const uint R_386_TLS_DTPMOD32 = 35;
public const uint R_386_TLS_DTPOFF32 = 36;
public const uint R_386_TLS_TPOFF32 = 37;
public const uint R_386_SIZE32 = 38;
public const uint R_386_TLS_GOTDESC = 39;
public const uint R_386_TLS_DESC_CALL = 40;
public const uint R_386_TLS_DESC = 41;
public const uint R_386_IRELATIVE = 42;

public const uint R_X86_64_NONE = 0;
public const uint R_X86_64_64 = 1;
public const uint R_X86_64_PC32 = 2;
Expand Down
Loading

0 comments on commit 10a8f75

Please sign in to comment.