split libelf.c and libmach.c
Merge pull request #1791 from WalterBright/scan

split libelf.c and libmach.c