On Tue, Feb 16, 2016 at 10:59 PM, Krzysztof Parzyszek via llvm-dev < llvm-dev at lists.llvm.org> wrote:> On 2/16/2016 7:04 AM, Jun Koi via llvm-dev wrote: > >> >> I am trying to undertand which code in LLVM patches the fixups generated >> by assembler. >> >> > What do you mean exactly? The actual machine code is generated by > MCCodeEmitter, for example > lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp > > The relocations from the object files are applied by the linker, not LLVM. >Do you mean the LLVM linker will do the relocation? Do you have any hints on where to look at linker source of LLVM to see how this is done? Thanks.> > -Krzysztof > > > -- > Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted > by The Linux Foundation > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160216/a40df26c/attachment.html>
On 2/16/2016 9:07 AM, Jun Koi wrote:> > Do you mean the LLVM linker will do the relocation? > > Do you have any hints on where to look at linker source of LLVM to see > how this is done?The lld's git repo is at http://llvm.org/git/lld.git You can also view the code through the web interface, e.g. http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/X86_64/ I don't know the linker sources, so I can't really help with how it works. -Krzysztof -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
On Tue, Feb 16, 2016 at 11:13 PM, Krzysztof Parzyszek < kparzysz at codeaurora.org> wrote:> On 2/16/2016 9:07 AM, Jun Koi wrote: > >> >> Do you mean the LLVM linker will do the relocation? >> >> Do you have any hints on where to look at linker source of LLVM to see >> how this is done? >> > > The lld's git repo is at http://llvm.org/git/lld.git > > You can also view the code through the web interface, e.g. > http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/X86_64/Oh, according to http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/, LLD only support very few architectures: ARM, ARM64, X86, Mips & Hexagon. Meanwhile, LLVM has assemblers for many other architectures: SystemZ, XCore, PPC, Sparc, etc Does this mean LLD is very much behind LLVM in development? Thanks.> > > I don't know the linker sources, so I can't really help with how it works. > > > -Krzysztof > > > -- > Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted > by The Linux Foundation >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160216/9dff244a/attachment-0001.html>