Skip to content

Commit

Permalink
Part pipeline: Set symbol type correctly in linker
Browse files Browse the repository at this point in the history
  • Loading branch information
trenouf authored and piotrAMD committed Feb 18, 2022
1 parent fc8aab6 commit 8fda43c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lgc/elfLinker/ElfLinker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ void OutputSection::addSymbol(const object::ELFSymbolRef &elfSymRef, unsigned in
ELF::Elf64_Sym newSym = {};
newSym.st_name = m_linker->getStringIndex(name);
newSym.setBinding(elfSymRef.getBinding());
newSym.setType(cantFail(elfSymRef.getType()));
newSym.setType(cantFail(elfSymRef.getELFType()));
newSym.st_shndx = getIndex();
newSym.st_value = cantFail(elfSymRef.getValue()) + inputSection.offset;
newSym.st_size = elfSymRef.getSize();
Expand Down

0 comments on commit 8fda43c

Please sign in to comment.