Skip to content

Instantly share code, notes, and snippets.

View defer's full-sized avatar

Diogo Ferreira defer

View GitHub Profile
@defer
defer / qemu-darwin-compile-fix.diff
Created May 24, 2011 20:56
android_external_qemu fix for darwin/xcode4
From bb433896d71f8104e2c2563e92c47ba221e3081b Mon Sep 17 00:00:00 2001
From: Diogo Ferreira <deovferreira@gmail.com>
Date: Tue, 24 May 2011 21:15:01 +0100
Subject: [PATCH] qemu: Enable text rellocs in darwin.
This fixes the compilation in darwin using Xcode 4.
I believe that after this CM can be compiled without edits.
Change-Id: Ided54dc7d5c1572609fc031388297a6a4e0d4749
---
diff --git a/elfcopy.c b/elfcopy.c
index ed1e6ce..7d308e6 100644
--- a/elfcopy.c
+++ b/elfcopy.c
@@ -929,7 +929,7 @@ void adjust_elf(Elf *elf, const char *elf_name,
int i;
for (i = 0; i < num_ranges; i++) {
shdr_info_t *curr = (shdr_info_t *)ranges[i].user;
- ASSERT(ranges[i].start >= last_end);
+ //ASSERT(ranges[i].start >= last_end);