mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Merged in ccondurache/nuttx/fix_elf_arm_checkarch (pull request #422)
Fix ELF loader up_checkarch on ARM arch Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
@@ -110,7 +110,7 @@ int elf_verifyheader(FAR const Elf32_Ehdr *ehdr)
|
||||
|
||||
/* Verify that this file works with the currently configured architecture */
|
||||
|
||||
if (up_checkarch(ehdr))
|
||||
if (!up_checkarch(ehdr))
|
||||
{
|
||||
berr("Not a supported architecture\n");
|
||||
return -ENOEXEC;
|
||||
|
||||
Reference in New Issue
Block a user