34a35
> #include "base/loader/object_file.hh"
44a46,47
> namespace
> {
45a49,72
> class SparcSolarisObjectFileLoader : public ObjectFile::Loader
> {
> public:
> Process *
> load(ProcessParams *params, ObjectFile *obj_file) override
> {
> auto arch = obj_file->getArch();
> auto opsys = obj_file->getOpSys();
>
> if (arch != ObjectFile::SPARC64 && arch != ObjectFile::SPARC32)
> return nullptr;
>
> if (opsys != ObjectFile::Solaris)
> return nullptr;
>
> return new SparcSolarisProcess(params, obj_file);
> }
> };
>
> SparcSolarisObjectFileLoader loader;
>
> } // anonymous namespace
>
>