예제 #1
0
        private static unsafe Addr GetEntryPointFromElf(ElfSections elf, string symbolName)
        {
            var sym = elf.GetSymbol(symbolName);

            if (sym == (ElfSymbol *)0)
            {
                return(Addr.Zero);
            }
            return(sym->Value);
        }
예제 #2
0
파일: Service.cs 프로젝트: arakis/abanu
        private static unsafe Addr GetEntryPointFromElf(ElfSections elf)
        {
            var sym = elf.GetSymbol(DispatchMessageSymbol);

            if (sym == (ElfSymbol *)0)
            {
                return(Addr.Zero);
            }
            return(sym->Value);
        }
예제 #3
0
        private static unsafe Addr GetEntryPointFromElf(ElfSections elf)
        {
            var symName = "Abanu.Kernel.Program::Main()"; // TODO
            var sym     = elf.GetSymbol(symName);

            if (sym == (ElfSymbol *)0)
            {
                return(Addr.Zero);
            }
            return(sym->Value);
        }