How to `import` Linux system header info (e.g. <elf.h>)?

(Carl Brown) #1


  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?