<div dir="ltr">My bad. I intended this.<div><div><br></div><div>Undefined symbol error:</div></div><div><br></div><div><div><font face="monospace, monospace">bin/ld.lld: <font color="#ff0000">error</font>: undefined symbol: lld::elf::EhFrameSection<llvm::object::ELFType<(llvm::support::endianness)0, true></font></div><div><font face="monospace, monospace"><b>>>> Referenced by</b> Writer.cpp:207 (/ssd/llvm-project/lld/ELF/Writer.cpp:207)</font></div><div><font face="monospace, monospace"><b>>>></b> Writer.cpp.o in archive lib/liblldELF.a</font></div><div><font face="monospace, monospace"><br></font></div><div><br></div><div>Duplicate symbol error:</div><div><br></div><div><font face="monospace, monospace">bin/ld.lld: </font><span style="color:rgb(255,0,0);font-family:monospace,monospace">error</span><font face="monospace, monospace">: duplicate symbol: lld::elf::MipsGotSection::addEntry(lld::elf::SymbolBody&, long, lld::elf::RelExpr)</font></div><div><font face="monospace, monospace"><b>>>> defined at</b> Writer.cpp:38 (/home/buildslave/buildslave/clang-cmake-aarch64-39vma/llvm/tools/lld/ELF/Writer.cpp:38)</font></div><div><font face="monospace, monospace"><b>>>></b> Writer.cpp.o in archive lib/liblldELF.a</font></div><div><font face="monospace, monospace"><b>>>> defined at</b> SyntheticSections.cpp:673 (/home/buildslave/buildslave/clang-cmake-aarch64-39vma/llvm/tools/lld/ELF/SyntheticSections.cpp:673)</font></div><div><font face="monospace, monospace"><b>>>> </b> SyntheticSections.cpp.o in archive lib/liblldELF.a</font></div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 29, 2017 at 12:12 PM, Jonathan Roelofs <span dir="ltr"><<a href="mailto:jonathan@codesourcery.com" target="_blank">jonathan@codesourcery.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
On 3/29/17 12:53 PM, Rui Ueyama via llvm-dev wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Put it all together, the following error messages should work for<br>
everybody. I'll create a patch to make this change and send it for<br>
review. Thank you guys for the inputs!<br>
<br>
<br>
Undefined symbol error:<br>
<br>
bin/ld.lld: error: undefined symbol:<br>
lld::elf::EhFrameSection<llvm:<wbr>:object::ELFType<(llvm::suppor<wbr>t::endianness)0,<br>
true><br></span>
*>>> defined at* Writer.cpp:207 (/ssd/llvm-project/lld/ELF/Wri<wbr>ter.cpp:207)<br>
*>>>* Writer.cpp.o in archive lib/liblldELF.a<br>
</blockquote>
<br>
The wording of this one is mildly self contradictory. Undefined symbols aren't defined, they're... used? referenced?<br>
<br>
<br>
Jon<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
<br>
<br>
Duplicate symbol error:<br>
<br>
bin/ld.lld: error: duplicate symbol:<br>
lld::elf::MipsGotSection::addE<wbr>ntry(lld::elf::SymbolBody&, long,<br>
lld::elf::RelExpr)<br></span>
*>>> defined at* Writer.cpp:38<br>
(/home/buildslave/buildslave/c<wbr>lang-cmake-aarch64-39vma/llvm/<wbr>tools/lld/ELF/Writer.cpp:38)<br>
*>>>* Writer.cpp.o in archive lib/liblldELF.a<br>
*>>> defined at* SyntheticSections.cpp:673<br>
(/home/buildslave/buildslave/c<wbr>lang-cmake-aarch64-39vma/llvm/<wbr>tools/lld/ELF/SyntheticSection<wbr>s.cpp:673)<br>
*>>>* SyntheticSections.cpp.o in archive lib/liblldELF.a<br>
<br>
<br><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<br>
-- <br>
Jon Roelofs<br>
<a href="mailto:jonathan@codesourcery.com" target="_blank">jonathan@codesourcery.com</a><br>
CodeSourcery / Mentor Embedded<br>
</font></span></blockquote></div><br></div>