[BACK]Return to dlfcn_elf.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / dlfcn

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libc/dlfcn/dlfcn_elf.c between version 1.15 and 1.15.2.1

version 1.15, 2018/01/05 19:29:44 version 1.15.2.1, 2018/07/28 04:37:22
Line 176  dl_iterate_phdr_setup(void)
Line 176  dl_iterate_phdr_setup(void)
                         break;                          break;
                 }                  }
         }          }
   
           if (!dlpi_phdr)
                   return;
   
           const Elf_Phdr *phdr = (const Elf_Phdr *)dlpi_phdr;
           const Elf_Phdr *phlimit = phdr + dlpi_phnum;
   
           for (; phdr < phlimit; ++phdr) {
                   if (phdr->p_type == PT_PHDR)
                           dlpi_addr = (uintptr_t)phdr - phdr->p_vaddr;
           }
 }  }
   
 /*ARGSUSED*/  /*ARGSUSED*/

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.15.2.1

CVSweb <webmaster@jp.NetBSD.org>