Skip to content

Commit 5cabf09

Browse files
committed
Remove unnecessary check of ELF type before modifying OS ABI
Signed-off-by: Dmitry Moskalchuk <[email protected]>
1 parent 5a16d88 commit 5cabf09

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/patchelf.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,11 +1121,6 @@ std::string ElfFile<ElfFileParamNames>::getInterpreter()
11211121
template<ElfFileParams>
11221122
void ElfFile<ElfFileParamNames>::modifyOsAbi(osAbiMode op, const std::string & newOsAbi)
11231123
{
1124-
if (rdi(hdr()->e_type) != ET_EXEC && rdi(hdr()->e_type) != ET_DYN) {
1125-
debug("this is not an executable and not a dynamic library\n");
1126-
return;
1127-
}
1128-
11291124
unsigned char abi = hdr()->e_ident[EI_OSABI];
11301125

11311126
if (op == printOsAbi) {

0 commit comments

Comments
 (0)