ARM: Detect OABI binaries and complain that they're no-longer supported.
This commit is contained in:
parent
6c46313556
commit
0a18bc0d6c
3 changed files with 8 additions and 3 deletions
|
@ -107,7 +107,6 @@ ElfObject::tryFile(const string &fname, int fd, size_t len, uint8_t *data)
|
|||
{
|
||||
|
||||
case ELFOSABI_LINUX:
|
||||
case ELFOSABI_ARM:
|
||||
opSys = ObjectFile::Linux;
|
||||
break;
|
||||
case ELFOSABI_SOLARIS:
|
||||
|
@ -116,6 +115,9 @@ ElfObject::tryFile(const string &fname, int fd, size_t len, uint8_t *data)
|
|||
case ELFOSABI_TRU64:
|
||||
opSys = ObjectFile::Tru64;
|
||||
break;
|
||||
case ELFOSABI_ARM:
|
||||
opSys = ObjectFile::LinuxArmOABI;
|
||||
break;
|
||||
default:
|
||||
opSys = ObjectFile::UnknownOpSys;
|
||||
}
|
||||
|
|
|
@ -59,7 +59,8 @@ class ObjectFile
|
|||
UnknownOpSys,
|
||||
Tru64,
|
||||
Linux,
|
||||
Solaris
|
||||
Solaris,
|
||||
LinuxArmOABI
|
||||
};
|
||||
|
||||
protected:
|
||||
|
|
|
@ -748,7 +748,9 @@ LiveProcess::create(LiveProcessParams * params)
|
|||
case ObjectFile::Linux:
|
||||
process = new ArmLinuxProcess(params, objFile);
|
||||
break;
|
||||
|
||||
case ObjectFile::LinuxArmOABI:
|
||||
fatal("M5 does not support ARM OABI binaries. Please recompile with an"
|
||||
" EABI compiler.");
|
||||
default:
|
||||
fatal("Unknown/unsupported operating system.");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue