use architecture specific Elf header
This commit is contained in:
1 parent
0c31b9db84
commit
92a65c506a
1 file changed
+1
-1
@@ -110,7 +110,7 @@ static int callback(struct dl_phdr_info *dlpi, size_t size, Dl_info *dli)
|
|||||||
|
|
||||||
for (i = 0; i < dlpi->dlpi_phnum; i++)
|
for (i = 0; i < dlpi->dlpi_phnum; i++)
|
||||||
{
|
{
|
||||||
const Elf32_Phdr *sgmt = &dlpi->dlpi_phdr[i];
|
const ElfW(Phdr) *sgmt = &dlpi->dlpi_phdr[i];
|
||||||
|
|
||||||
/* we are interested in the executable LOAD segment */
|
/* we are interested in the executable LOAD segment */
|
||||||
if (sgmt->p_type == PT_LOAD &&
|
if (sgmt->p_type == PT_LOAD &&
|
||||||
|
|||||||
Reference in new issue
Block a user