import Unicorn2
This commit is contained in:
@@ -22,7 +22,6 @@
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "qemu-common.h"
|
||||
#include "qemu/osdep.h"
|
||||
|
||||
#ifdef CONFIG_GETAUXVAL
|
||||
@@ -76,7 +75,7 @@ static const ElfW_auxv_t *qemu_init_auxval(void)
|
||||
auxv = a = g_realloc(a, size);
|
||||
r = read(fd, (char *)a + ofs, ofs);
|
||||
} while (r == ofs);
|
||||
}
|
||||
}
|
||||
|
||||
close(fd);
|
||||
return a;
|
||||
@@ -99,16 +98,6 @@ unsigned long qemu_getauxval(unsigned long type)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#elif defined(__FreeBSD__)
|
||||
#include <sys/auxv.h>
|
||||
|
||||
unsigned long qemu_getauxval(unsigned long type)
|
||||
{
|
||||
unsigned long aux = 0;
|
||||
elf_aux_info(type, &aux, sizeof(aux));
|
||||
return aux;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
unsigned long qemu_getauxval(unsigned long type)
|
||||
|
||||
Reference in New Issue
Block a user