summaryrefslogtreecommitdiff
path: root/nuttx/include/elf.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-10-25 22:10:56 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-10-25 22:10:56 +0000
commitd6b30f6e49779b31617fad8e8daa06470145f909 (patch)
tree7123939c22af75fef3c7ace3aaa486afdaf4b6d7 /nuttx/include/elf.h
parent5ae419f6845ff28bcbdb339cdfb66f6b2e46f9ab (diff)
downloadpx4-nuttx-d6b30f6e49779b31617fad8e8daa06470145f909.tar.gz
px4-nuttx-d6b30f6e49779b31617fad8e8daa06470145f909.tar.bz2
px4-nuttx-d6b30f6e49779b31617fad8e8daa06470145f909.zip
More ELF loader changes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5261 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/elf.h')
-rw-r--r--nuttx/include/elf.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/nuttx/include/elf.h b/nuttx/include/elf.h
index 1b36701fd..c3fb2732d 100644
--- a/nuttx/include/elf.h
+++ b/nuttx/include/elf.h
@@ -166,9 +166,9 @@
/* Definitions for Elf32_Sym::st_info */
-#define ELF32_ST_BIND(i) ((i)>>4)
-#define ELF32_ST_TYPE(i) ((i)&0xf)
-#define ELF32_ST_INFO(b,t) (((b)<<4)+((t)&0xf))
+#define ELF32_ST_BIND(i) ((i) >> 4)
+#define ELF32_ST_TYPE(i) ((i) & 0xf)
+#define ELF32_ST_INFO(b,t) (((b) << 4) | ((t) & 0xf))
/* Figure 4-16: Symbol Binding, ELF32_ST_BIND */
@@ -190,9 +190,9 @@
/* Definitions for Elf32_Rel*::r_info */
-#define ELF32_R_SYM(i) ((i)>>8)
-#define ELF32_R_TYPE(i) ((unsigned char)(i))
-#define ELF32_R_INFO(s,t) (((s)<<8)+(unsigned char)(t))
+#define ELF32_R_SYM(i) ((i) >> 8)
+#define ELF32_R_TYPE(i) ((i) & 0xff)
+#define ELF32_R_INFO(s,t) (((s)<< 8) | ((t) & 0xff))
/* Figure 5-2: Segment Types, p_type */