Beispiel #1
0
        /// <summary>
        /// Gets the linker factory.
        /// </summary>
        /// <param name="linkerType">Type of the linker.</param>
        /// <returns></returns>
        private static Func <BaseLinker> GetLinkerFactory(LinkerFormat linkerType)
        {
            switch (linkerType)
            {
            case LinkerFormat.PE32: return(delegate { return new PELinker(); });

            case LinkerFormat.Elf32: return(delegate { return new Elf32(); });

            //case LinkerType.Elf64: return delegate { return new Elf64(); };
            default: return(null);
            }
        }
Beispiel #2
0
 /// <summary>
 /// Gets the linker factory.
 /// </summary>
 /// <param name="linkerType">Type of the linker.</param>
 /// <returns></returns>
 private static Func<BaseLinker> GetLinkerFactory(LinkerFormat linkerType)
 {
     switch (linkerType)
     {
         case LinkerFormat.PE32: return delegate { return new PELinker(); };
         case LinkerFormat.Elf32: return delegate { return new Elf32(); };
         //case LinkerType.Elf64: return delegate { return new Elf64(); };
         default: return null;
     }
 }