()
| 293 | return assembler |
| 294 | |
| 295 | def _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 | |
| 311 | def _execstack(linker): |
no test coverage detected