コード例 #1
0
        unsafe static ElfHelper FromSectionName(string name)
        {
            var sec  = Main.GetSectionHeader(name);
            var addr = Main.GetSectionPhysAddr(sec);

            KernelMessage.WriteLine("Found embedded ELF at {0:X8}", addr);
            return(FromAddress(addr));
        }
コード例 #2
0
        public unsafe static void DumpElfInfo()
        {
            var secArray  = OriginalKernelElf.SectionHeaderArray;
            var secLength = OriginalKernelElf.SectionHeaderCount;

            KernelMessage.WriteLine("Found {0} Kernel Sections:", secLength);

            for (uint i = 0; i < secLength; i++)
            {
                var sec  = OriginalKernelElf.GetSectionHeader(i);
                var name = OriginalKernelElf.GeSectionName(sec);
                var sb   = new StringBuffer(name);
                KernelMessage.WriteLine(sb);
            }
        }