[swift-dev] How to `import` Linux system header info (e.g. <elf.h>)?

Carl Brown carl.brown.swift at linuxswift.com
Mon Jun 19 15:12:16 CDT 2017


Hi,

	I'm working on trying to get swift-remote-mirror working in Linux (with the eventual goal of getting better diagnostics like a cycle detection tool on Linux).

	I'm currently trying to get a pointer to the ELF structure on Linux, and I can't figure out how to `import` it (e.g. what's the Linux equivalent of `import MachO`[1]). I'm guessing there should be some module that includes the elf header information (in Clang or LLVM if nowhere else), but I can't find it.

Anyone have a minute to point me in the right direction?

Thanks,

-Carl

[1] https://github.com/apple/swift/blob/cca3398543165257ab4ade34f24401e930daca5c/stdlib/private/SwiftReflectionTest/SwiftReflectionTest.swift#L21


More information about the swift-dev mailing list