protected BaseLinker() { Sections = new LinkerSection[4]; //LinkRequests = new List<LinkRequest>(); Endianness = Common.Endianness.Little; MachineID = 0; BaseAddress = 0x00400000; // Use the Win32 default for now SectionAlignment = 0x1000; // default 1K BaseFileOffset = 0; }
protected BaseLinker() { Sections = new LinkerSection[4]; LinkRequests = new List <LinkRequest>(); Endianness = Common.Endianness.Little; MachineID = 0; BaseAddress = 0x00400000; // Use the Win32 default for now SectionAlignment = 0x1000; // default 1K BaseFileOffset = 0; }
public BaseLinker(ulong baseAddress, Endianness endianness, MachineType machineType, bool emitSymbols, LinkerFormatType linkerFormatType) { LinkerSections = new LinkerSection[4]; BaseAddress = baseAddress; Endianness = endianness; MachineType = machineType; EmitSymbols = emitSymbols; elfLinker = new ElfLinker(this, LinkerFormatType); BaseFileOffset = elfLinker.BaseFileOffset; SectionAlignment = elfLinker.SectionAlignment; AddSection(new LinkerSection(SectionKind.Text, SectionAlignment)); AddSection(new LinkerSection(SectionKind.Data, SectionAlignment)); AddSection(new LinkerSection(SectionKind.ROData, SectionAlignment)); AddSection(new LinkerSection(SectionKind.BSS, SectionAlignment)); }
public BaseLinker(ulong baseAddress, Endianness endianness, MachineType machineType, bool emitSymbols, LinkerFormatType linkerFormatType) { LinkerSections = new LinkerSection[4]; BaseAddress = baseAddress; Endianness = endianness; MachineType = machineType; EmitSymbols = emitSymbols; elfLinker = new ElfLinker(this, LinkerFormatType); BaseFileOffset = elfLinker.BaseFileOffset; SectionAlignment = elfLinker.SectionAlignment; AddSection(new LinkerSection(SectionKind.Text, SectionAlignment)); AddSection(new LinkerSection(SectionKind.Data, SectionAlignment)); AddSection(new LinkerSection(SectionKind.ROData, SectionAlignment)); AddSection(new LinkerSection(SectionKind.BSS, SectionAlignment)); }
protected void AddSection(LinkerSection section) { Sections[(int)section.SectionKind] = section; }
protected void AddSection(LinkerSection section) { Sections[(int)section.SectionKind] = section; }
private void AddSection(LinkerSection section) { LinkerSections[(int)section.SectionKind] = section; }
private void AddSection(LinkerSection section) { LinkerSections[(int)section.SectionKind] = section; }