File tree Expand file tree Collapse file tree
shellblocks/compiler_archs Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ from shellblocks .compiler_archs .x86_64 import CompilerArchX86_64
2+
3+
4+ class CompilerArchX86 (CompilerArchX86_64 ):
5+ def __init__ (self ):
6+ super ().__init__ ()
7+
8+ def get_gcc_flags (self ):
9+ return super ().get_gcc_flags () + [
10+ "-m32" ,
11+ ]
Original file line number Diff line number Diff line change 1+ from typing import List
2+
3+ from shellblocks .compiler_archs .gcc import CompilerArchGCC
4+ from shellblocks .utils import sources_location
5+
6+
7+ class CompilerArchX86_64 (CompilerArchGCC ):
8+ def __init__ (self ):
9+ super ().__init__ ()
10+
11+ def get_headers (self ) -> List [str ]:
12+ return ["arch/x86/utils.h" ]
13+
14+ def get_ldscript_path (self ):
15+ return (sources_location / "shellcode_ldscript.ld" ).as_posix ()
16+
17+ def get_compiler_path (self ):
18+ return "x86_64-linux-gnu-gcc-8"
You can’t perform that action at this time.
0 commit comments