[PATCH] D22116: [ELF] Support for setting the base address
Rafael Espíndola via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 8 11:00:23 PDT 2016
On 8 July 2016 at 13:46, Rui Ueyama via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
> ruiu added a comment.
> I think doing it is valid only for ld.gold because the linker layouts a executable segment at beginning of a file image. Our segment layout is not the same as GNU gold -- we actually layout a read-only data segment at beginning of a file. So I think just setting the base pointer is not enough for us to handle -Ttext-segment.
Correct. I am pretty sure gold would do the right thing if you pass
--rosegment. lld just always use --rosegment.
More information about the llvm-commits