mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-18 05:28:36 -07:00
linux-user: ARM-FDPIC: Identify ARM FDPIC binaries
Define an ARM-specific version of elf_is_fdpic: FDPIC ELF objects are identified with e_ident[EI_OSABI] == ELFOSABI_ARM_FDPIC. Co-Authored-By: Mickaël Guêné <mickael.guene@st.com> Signed-off-by: Christophe Lyon <christophe.lyon@st.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-Id: <20180430080404.7323-3-christophe.lyon@st.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
a99856cd7f
commit
cf58affecc
2 changed files with 8 additions and 0 deletions
|
|
@ -1681,11 +1681,18 @@ static void zero_bss(abi_ulong elf_bss, abi_ulong last_bss, int prot)
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef TARGET_ARM
|
||||
static int elf_is_fdpic(struct elfhdr *exec)
|
||||
{
|
||||
return exec->e_ident[EI_OSABI] == ELFOSABI_ARM_FDPIC;
|
||||
}
|
||||
#else
|
||||
/* Default implementation, always false. */
|
||||
static int elf_is_fdpic(struct elfhdr *exec)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
static abi_ulong loader_build_fdpic_loadmap(struct image_info *info, abi_ulong sp)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue