forked from OSchip/llvm-project
parent
40849419e2
commit
29c1afb880
|
@ -464,7 +464,7 @@ void LinkerScript<ELFT>::switchTo(OutputSectionBase *Sec) {
|
|||
// section is the same as the preceding output section in the same region
|
||||
// https://sourceware.org/binutils/docs-2.20/ld/Output-Section-LMA.html
|
||||
if (LMAOffset)
|
||||
CurOutSec->setLMAOffset(LMAOffset());
|
||||
CurOutSec->LMAOffset = LMAOffset();
|
||||
}
|
||||
|
||||
template <class ELFT> void LinkerScript<ELFT>::process(BaseCommand &Base) {
|
||||
|
|
|
@ -46,7 +46,6 @@ public:
|
|||
};
|
||||
|
||||
OutputSectionBase(StringRef Name, uint32_t Type, uint64_t Flags);
|
||||
void setLMAOffset(uint64_t LMAOff) { LMAOffset = LMAOff; }
|
||||
uint64_t getLMA() const { return Addr + LMAOffset; }
|
||||
template <typename ELFT> void writeHeaderTo(typename ELFT::Shdr *SHdr);
|
||||
|
||||
|
|
Loading…
Reference in New Issue