mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 20:40:05 +00:00
elf: Fix dl-load.c
Rebasing broke commit 38a3836011
it was supposed to move code.
This commit is contained in:
parent
9ffa50b26b
commit
751acde7ec
@ -1262,21 +1262,6 @@ _dl_map_object_from_fd (const char *name, const char *origname, int fd,
|
||||
maplength, has_holes, loader);
|
||||
if (__glibc_unlikely (errstring != NULL))
|
||||
goto call_lose;
|
||||
|
||||
/* Process program headers again after load segments are mapped in
|
||||
case processing requires accessing those segments. Scan program
|
||||
headers backward so that PT_NOTE can be skipped if PT_GNU_PROPERTY
|
||||
exits. */
|
||||
for (ph = &phdr[l->l_phnum]; ph != phdr; --ph)
|
||||
switch (ph[-1].p_type)
|
||||
{
|
||||
case PT_NOTE:
|
||||
_dl_process_pt_note (l, &ph[-1]);
|
||||
break;
|
||||
case PT_GNU_PROPERTY:
|
||||
_dl_process_pt_gnu_property (l, &ph[-1]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (l->l_ld == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user