Esempio n. 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);
        }
Esempio n. 2
0
        private static unsafe Addr GetEntryPointFromElf(ElfSections elf)
        {
            var sym = elf.GetSymbol(DispatchMessageSymbol);

            if (sym == (ElfSymbol *)0)
            {
                return(Addr.Zero);
            }
            return(sym->Value);
        }
Esempio n. 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);
        }