commit | 62b35c8c36ea85f990912f60daf2278499f05fd3 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Mon Jan 09 00:14:02 2023 -0500 |
committer | Sasha Levin <sashal@kernel.org> | Sun Feb 26 16:57:25 2023 -0500 |
tree | 74e447bfa434c86d2b9186ead9a45a9b5d9e9e38 | |
parent | 7ba62ab2029c7cf15fd63f31671e34504bc80622 [diff] |
alpha/boot/tools/objstrip: fix the check for ELF header [ Upstream commit 1878787797cbb019eeefe6f905514dcd557302b6 ] Just memcmp() with ELFMAG - that's the normal way to do it in userland code, which that thing is. Besides, that has the benefit of actually building - str_has_prefix() is *NOT* present in <string.h>. Fixes: 5f14596e55de "alpha: Replace strncmp with str_has_prefix" Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Sasha Levin <sashal@kernel.org>