From 672053357b3a7955fb09e039fc39af023d68d301 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 20 Sep 2015 18:52:15 -0700 Subject: Complete padding of final fat code directory blob. --- ldid.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ldid.cpp') diff --git a/ldid.cpp b/ldid.cpp index 874e7f5..caf6bc1 100644 --- a/ldid.cpp +++ b/ldid.cpp @@ -1119,10 +1119,11 @@ void resign(void *idata, size_t isize, std::streambuf &output, const Functor position) - pad(output, allocation.alloc_ - position); + size_t saved(save(output, allocation.limit_, overlap, top)); + if (allocation.alloc_ > saved) + pad(output, allocation.alloc_ - saved); + position += allocation.alloc_; } } -- cgit v1.2.3-56-ge451