aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/s390/dl-machine.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/s390/dl-machine.h')
-rw-r--r--sysdeps/s390/dl-machine.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/sysdeps/s390/dl-machine.h b/sysdeps/s390/dl-machine.h
index 3cab824ce2..3432426127 100644
--- a/sysdeps/s390/dl-machine.h
+++ b/sysdeps/s390/dl-machine.h
@@ -29,17 +29,11 @@
#include <link.h>
-/* Return nonzero iff E_MACHINE is compatible with the running host. */
+/* Return nonzero iff ELF header is compatible with the running host. */
static inline int
-elf_machine_matches_host (Elf32_Half e_machine)
+elf_machine_matches_host (const Elf32_Ehdr *ehdr)
{
- switch (e_machine)
- {
- case EM_S390:
- return 1;
- default:
- return 0;
- }
+ return ehdr->e_machine == EM_S390;
}