Skip to content

Commit afc1516

Browse files
authored
Define EM_CURRENT on powerpc. (#151)
1 parent e6eaa0f commit afc1516

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/elf.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ pub const STV_DEFAULT: u8 = 0;
6868
pub const EM_CURRENT: u16 = 40; // EM_ARM
6969
#[cfg(target_arch = "x86")]
7070
pub const EM_CURRENT: u16 = 3; // EM_386
71+
#[cfg(target_arch = "powerpc")]
72+
pub const EM_CURRENT: u16 = 20; // EM_PPC
7173
#[cfg(target_arch = "powerpc64")]
7274
pub const EM_CURRENT: u16 = 21; // EM_PPC64
7375
#[cfg(target_arch = "s390x")]

0 commit comments

Comments
 (0)