ld64: fix build with llvm19

remove unused and incomplete function
This commit is contained in:
Reno Dakota 2024-11-02 00:08:21 -07:00
parent 0efe75ec20
commit f91487fa13
No known key found for this signature in database
2 changed files with 15 additions and 0 deletions

View File

@ -128,6 +128,7 @@ stdenv.mkDerivation (finalAttrs: {
./0006-Add-libcd_is_blob_a_linker_signature-implementation.patch
# Add OpenSSL implementation of CoreCrypto digest functions. Avoids use of private and non-free APIs.
./0007-Add-OpenSSL-based-CoreCrypto-digest-functions.patch
./remove-unused-and-incomplete-blob-clone.diff
];
postPatch = ''

View File

@ -0,0 +1,14 @@
diff --git a/src/ld/code-sign-blobs/blob.h b/src/ld/code-sign-blobs/blob.h
index 19c63a9..1dfb380 100644
--- a/src/ld/code-sign-blobs/blob.h
+++ b/src/ld/code-sign-blobs/blob.h
@@ -180,9 +180,6 @@ public:
return NULL;
}
- BlobType *clone() const
- { assert(validateBlob()); return specific(this->BlobCore::clone()); }
-
static BlobType *readBlob(int fd)
{ return specific(BlobCore::readBlob(fd, _magic, sizeof(BlobType), 0), true); }