We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b59074 commit 9c3ece3Copy full SHA for 9c3ece3
lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp
@@ -382,7 +382,8 @@ class DataDirectoryChunk : public AtomChunk {
382
}
383
384
void setBaseRelocField(uint32_t addr, uint32_t size) {
385
- auto *atom = new (_alloc) coff::COFFDataDirectoryAtom(_file, 5);
+ auto *atom = new (_alloc) coff::COFFDataDirectoryAtom(
386
+ _file, llvm::COFF::DataDirectoryIndex::BASE_RELOCATION_TABLE);
387
uint64_t offset = atom->ordinal() * sizeof(llvm::object::data_directory);
388
_atomLayouts.push_back(new (_alloc) AtomLayout(atom, offset, offset));
389
0 commit comments