aboutsummaryrefslogtreecommitdiff
path: root/include/elf/common.h
diff options
context:
space:
mode:
authorcvs2svn <>2004-07-09 18:42:15 +0000
committercvs2svn <>2004-07-09 18:42:15 +0000
commitdc7425d645c73447937870b89138b40d2dfd2879 (patch)
tree53cd2ddf6fe790a55bf456828c09da3673bc19bb /include/elf/common.h
parentf3a88e3bd25802e6acc3fb5d716ad12b4e67f494 (diff)
downloadnewlib-gdb_6_2-branch.zip
newlib-gdb_6_2-branch.tar.gz
newlib-gdb_6_2-branch.tar.bz2
Sprout from ezannoni_pie-20040323-branch 2004-03-23 23:05:53 UTC cvs2svn 'This commit was manufactured by cvs2svn to create branch' Cherrypick from master 2004-07-09 18:42:14 UTC Andreas Schwab <schwab@linux-m68k.org> 'binutils/testsuite/:': ChangeLog MAINTAINERS Makefile.def Makefile.in Makefile.tpl config-ml.in config.sub config/ChangeLog config/acx.m4 configure configure.in include/ChangeLog include/bfdlink.h include/coff/ChangeLog include/coff/ecoff.h include/coff/internal.h include/coff/mips.h include/demangle.h include/dis-asm.h include/elf/ChangeLog include/elf/common.h include/elf/cr16c.h include/elf/crx.h include/elf/m32r.h include/elf/mips.h include/elf/sh.h include/gdb/ChangeLog include/gdb/callback.h include/hashtab.h include/opcode/ChangeLog include/opcode/crx.h include/opcode/i386.h include/opcode/m68k.h include/splay-tree.h src-release Delete: include/mpw/ChangeLog include/mpw/README include/mpw/dir.h include/mpw/dirent.h include/mpw/fcntl.h include/mpw/grp.h include/mpw/mpw.h include/mpw/pwd.h include/mpw/spin.h include/mpw/stat.h include/mpw/sys/file.h include/mpw/sys/param.h include/mpw/sys/resource.h include/mpw/sys/stat.h include/mpw/sys/time.h include/mpw/sys/types.h include/mpw/utime.h include/mpw/varargs.h mpw-README mpw-build.in mpw-config.in mpw-configure mpw-install
Diffstat (limited to 'include/elf/common.h')
-rw-r--r--include/elf/common.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/elf/common.h b/include/elf/common.h
index bf233f6..5573fca 100644
--- a/include/elf/common.h
+++ b/include/elf/common.h
@@ -1,6 +1,6 @@
/* ELF support for BFD.
Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
- 2001, 2002, 2003
+ 2001, 2002, 2003, 2004
Free Software Foundation, Inc.
Written by Fred Fish @ Cygnus Support, from information published
@@ -180,7 +180,9 @@
#define EM_ARC_A5 93 /* ARC Cores Tangent-A5 */
#define EM_XTENSA 94 /* Tensilica Xtensa Architecture */
#define EM_IP2K 101 /* Ubicom IP2022 micro controller */
+#define EM_CR 103 /* National Semiconductor CompactRISC */
#define EM_MSP430 105 /* TI msp430 micro controller */
+#define EM_CRX 114 /* National Semiconductor CRX */
/* If it is necessary to assign new unofficial EM_* values, please pick large
random numbers (0x8523, 0xa7f2, etc.) to minimize the chances of collision
@@ -287,8 +289,9 @@
#define PT_LOPROC 0x70000000 /* Processor-specific */
#define PT_HIPROC 0x7FFFFFFF /* Processor-specific */
-#define PT_GNU_EH_FRAME (PT_LOOS + 0x474e550)
-#define PT_GNU_STACK (PT_LOOS + 0x474e551)
+#define PT_GNU_EH_FRAME (PT_LOOS + 0x474e550) /* Frame unwind information */
+#define PT_GNU_STACK (PT_LOOS + 0x474e551) /* Stack flags */
+#define PT_GNU_RELRO (PT_LOOS + 0x474e552) /* Read-only after relocation */
/* Program segment permissions, in program header p_flags field. */
@@ -493,7 +496,7 @@
#define ELF64_R_SYM(i) ((i) >> 32)
#define ELF64_R_TYPE(i) ((i) & 0xffffffff)
-#define ELF64_R_INFO(s,t) (((bfd_vma) (s) << 32) + (bfd_vma) (t))
+#define ELF64_R_INFO(s,t) (((bfd_vma) (s) << 31 << 1) + (bfd_vma) (t))
/* Dynamic section tags. */