From: Richard Henderson Date: Sat, 24 Mar 2012 17:47:37 +0000 (-0700) Subject: tcg: Allow ELF_HOST_FLAGS and ELF_OSABI overrides in gdb-jit. X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~4335 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=abbb3eae1033a5ba6058457336cce9370146d425;p=sdk%2Femulator%2Fqemu.git tcg: Allow ELF_HOST_FLAGS and ELF_OSABI overrides in gdb-jit. Signed-off-by: Richard Henderson Signed-off-by: Blue Swirl --- diff --git a/tcg/tcg.c b/tcg/tcg.c index df4edc0..ab589c7 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -2360,6 +2360,12 @@ static void tcg_register_jit_int(void *buf_ptr, size_t buf_size, .e_shentsize = sizeof(ElfW(Shdr)), .e_shnum = ARRAY_SIZE(img->shdr), .e_shstrndx = ARRAY_SIZE(img->shdr) - 1, +#ifdef ELF_HOST_FLAGS + .e_flags = ELF_HOST_FLAGS, +#endif +#ifdef ELF_OSABI + .e_ident[EI_OSABI] = ELF_OSABI, +#endif }, .phdr = { .p_type = PT_LOAD,