[PATCH] D26161: '.' is not absolute
Rafael Ávila de Espíndola via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 31 13:21:52 PDT 2016
rafael created this revision.
rafael added reviewers: ruiu, evgeny777, phosek.
rafael added a subscriber: llvm-commits.
With this patch we keep track of the fact that . is a position in the file and therefore not absolute. This allow us to compute relative relocations that involve symbol that are defined in linker scripts with '.'.
This fixes https://llvm.org/bugs/show_bug.cgi?id=30406
There is still more work to track absoluteness over the various expressions, but this should unblock linking the EFI bootloader.
https://reviews.llvm.org/D26161
Files:
ELF/LinkerScript.cpp
ELF/LinkerScript.h
test/ELF/linkerscript/dot-is-not-abs.s
test/ELF/linkerscript/symbol-conflict.s
test/ELF/linkerscript/symbols.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26161.76461.patch
Type: text/x-patch
Size: 4547 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161031/2ccb2df4/attachment-0001.bin>
More information about the llvm-commits
mailing list