summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDmitry Moskalchuk <dm@crystax.net>2022-07-11 10:27:10 +0300
committerDmitry Moskalchuk <dm@crystax.net>2022-07-11 10:27:10 +0300
commit5cabf09f9e92170c3b543b1c00d7b2551099a046 (patch)
treee74df4013d352e8b8318d751e6370533703e5c2e /src
parent5a16d88631c70a97f8b94b861ff3a69614dad6b7 (diff)
downloadpatchelf-5cabf09f9e92170c3b543b1c00d7b2551099a046.tar.gz
Remove unnecessary check of ELF type before modifying OS ABI
Signed-off-by: Dmitry Moskalchuk <dm@crystax.net>
Diffstat (limited to 'src')
-rw-r--r--src/patchelf.cc5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/patchelf.cc b/src/patchelf.cc
index 7baf8ba..505c980 100644
--- a/src/patchelf.cc
+++ b/src/patchelf.cc
@@ -1121,11 +1121,6 @@ std::string ElfFile<ElfFileParamNames>::getInterpreter()
template<ElfFileParams>
void ElfFile<ElfFileParamNames>::modifyOsAbi(osAbiMode op, const std::string & newOsAbi)
{
- if (rdi(hdr()->e_type) != ET_EXEC && rdi(hdr()->e_type) != ET_DYN) {
- debug("this is not an executable and not a dynamic library\n");
- return;
- }
-
unsigned char abi = hdr()->e_ident[EI_OSABI];
if (op == printOsAbi) {