/// <summary> /// Initializes a new instance of the <see cref="Elf32Linker"/> class. /// </summary> public Elf32Linker() { // Create the default section set AddSection(new CodeSection(BaseAddress + SectionAlignment)); // HACK to make FarJump work AddSection(new DataSection()); AddSection(new RoDataSection()); AddSection(new BssSection()); LoadSectionAlignment = FILE_SECTION_ALIGNMENT; SectionAlignment = SECTION_ALIGNMENT; nullSection = new NullSection(); stringTableSection = new StringTableSection(); }
/// <summary> /// Initializes a new instance of the <see cref="Linker"/> class. /// </summary> public Linker() { // Create the default section set sections = new List<LinkerSection>() { new CodeSection(), new DataSection(), new RoDataSection(), new BssSection() }; fileAlignment = FileSectionAlignment; sectionAlignment = SectionAlignment; nullSection = new NullSection(); stringTableSection = new StringTableSection(); }