return fd().fileSize();
}
+//
+// No executable segment in non-machO files.
+//
+size_t SingleDiskRep::execSegLimit(const Architecture *)
+{
+ return 0;
+}
+
//
// A lazily opened read-only file descriptor for the path.
//
mFd.close();
}
+//Check the magic darwinup xattr
+bool SingleDiskRep::appleInternalForcePlatform() const
+{
+ return mFd.hasExtendedAttribute("com.apple.root.installed");
+}
+
//
// The recommended identifier of a SingleDiskRep is, absent any better clue,
// the basename of its path.