MCPcopy
hub / github.com/Gallopsled/pwntools / _linker

Function _linker

pwnlib/asm.py:295–308  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

293 return assembler
294
295def _linker():
296 ld, _ = which_binutils('ld', check_version=True)
297 bfd = ['--oformat=' + _bfdname()]
298
299 E = {
300 'big': '-EB',
301 'little': '-EL'
302 }[context.endianness]
303
304 arguments = {
305 'i386': ['-m', 'elf_i386'],
306 }.get(context.arch, [])
307
308 return [ld] + bfd + [E] + arguments
309
310
311def _execstack(linker):

Callers 2

make_elfFunction · 0.85
asmFunction · 0.85

Calls 3

which_binutilsFunction · 0.85
_bfdnameFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected