aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-04-24 15:08:16 +0000
committerNick Clifton <nickc@redhat.com>2001-04-24 15:08:16 +0000
commitb3baf5d0a8293b5f823c0d7848494507edb373fb (patch)
treea943d01ff94c368a3b62a8af9056968dd505a72c /bfd/elf.c
parentdb144853009a9877505330514aec4e26fc591d1d (diff)
downloadgdb-b3baf5d0a8293b5f823c0d7848494507edb373fb.zip
gdb-b3baf5d0a8293b5f823c0d7848494507edb373fb.tar.gz
gdb-b3baf5d0a8293b5f823c0d7848494507edb373fb.tar.bz2
Add OpenRISC support
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index 92a546d..26ce9d3 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -3413,7 +3413,10 @@ prep_headers (abfd)
case bfd_arch_cris:
i_ehdrp->e_machine = EM_CRIS;
break;
- /* also note that EM_M32, AT&T WE32100 is unknown to bfd */
+ case bfd_arch_openrisc:
+ i_ehdrp->e_machine = EM_OPENRISC;
+ break;
+ /* Also note that EM_M32, AT&T WE32100 is unknown to bfd. */
default:
i_ehdrp->e_machine = EM_NONE;
}