arm64-linux.shlib-init

modified:   p_lx_elf.cpp
	modified:   stub/src/arm64-linux.shlib-init.S

	modified:   stub/arm64-linux.shlib-init.h
	modified:   stub/tmp/arm64-linux.shlib-init.bin.dump
This commit is contained in:
John Reiser
2017-06-04 16:52:43 -07:00
parent d9e019bd87
commit 140a031515
4 changed files with 593 additions and 635 deletions
+2 -1
View File
@@ -2444,6 +2444,7 @@ PackLinuxElf64arm::canPack()
throwCantPack("first PT_LOAD.p_offset != 0; try '--force-execve'");
return false;
}
hatch_off = phdr->p_memsz;
break;
}
}
@@ -2571,7 +2572,7 @@ PackLinuxElf64arm::canPack()
if ( sh_addr==va_gash
|| (sh_addr==va_hash && 0==va_gash) ) {
shdr= &shdri[get_te32(&shdr->sh_link)]; // the associated SHT_SYMTAB
hatch_off = (char *)&ehdri.e_ident[11] - (char *)&ehdri;
//hatch_off = (char *)&ehdri.e_ident[11] - (char *)&ehdri;
break;
}
}