diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-10-25 22:10:56 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-10-25 22:10:56 +0000 |
commit | a6e577e3c4cab1f1636aaee7abcde4dbab8338f5 (patch) | |
tree | 7123939c22af75fef3c7ace3aaa486afdaf4b6d7 /nuttx/arch/x86 | |
parent | 92bbd36612825d29dcba9bab40657f197c4ff7b4 (diff) | |
download | px4-firmware-a6e577e3c4cab1f1636aaee7abcde4dbab8338f5.tar.gz px4-firmware-a6e577e3c4cab1f1636aaee7abcde4dbab8338f5.tar.bz2 px4-firmware-a6e577e3c4cab1f1636aaee7abcde4dbab8338f5.zip |
More ELF loader changes
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5261 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/x86')
-rw-r--r-- | nuttx/arch/x86/src/common/up_elf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nuttx/arch/x86/src/common/up_elf.c b/nuttx/arch/x86/src/common/up_elf.c index f159c8e51..be166b480 100644 --- a/nuttx/arch/x86/src/common/up_elf.c +++ b/nuttx/arch/x86/src/common/up_elf.c @@ -40,7 +40,9 @@ #include <nuttx/config.h> #include <stdlib.h> +#include <elf.h> #include <errno.h> +#include <debug.h> #include <nuttx/arch.h> #include <nuttx/binfmt/elf.h> @@ -113,7 +115,7 @@ int arch_relocate(FAR const Elf32_Rel *rel, FAR const Elf32_Sym *sym, { FAR uint32_t *ptr = (FAR uint32_t *)addr; - switch (ELF_REL_TYPE(rel->r_info)) + switch (ELF32_R_TYPE(rel->r_info)) { case R_386_32: *ptr += sym->st_value; |