aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/riscv/include/asm/elf.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-04-15 11:14:34 +0200
committerPalmer Dabbelt <palmer@sifive.com>2019-04-25 14:51:10 -0700
commite28dcc77e8e84c635675958e531a88d077266698 (patch)
treeeeab3bdccd62dec195f56f32e7187667ac7057c0 /arch/riscv/include/asm/elf.h
parentriscv: turn mm_segment_t into a struct (diff)
downloadwireguard-linux-e28dcc77e8e84c635675958e531a88d077266698.tar.xz
wireguard-linux-e28dcc77e8e84c635675958e531a88d077266698.zip
riscv: remove unreachable big endian code
RISC-V is always little endian. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'arch/riscv/include/asm/elf.h')
-rw-r--r--arch/riscv/include/asm/elf.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/riscv/include/asm/elf.h b/arch/riscv/include/asm/elf.h
index 697fc23b0d5a..ce0cd7d77eb0 100644
--- a/arch/riscv/include/asm/elf.h
+++ b/arch/riscv/include/asm/elf.h
@@ -27,13 +27,7 @@
#define ELF_CLASS ELFCLASS32
#endif
-#if defined(__LITTLE_ENDIAN)
#define ELF_DATA ELFDATA2LSB
-#elif defined(__BIG_ENDIAN)
-#define ELF_DATA ELFDATA2MSB
-#else
-#error "Unknown endianness"
-#endif
/*
* This is used to ensure we don't load something for the wrong architecture.