[PATCH] D38238: [ELF] Add constant for querying the image base in linker scripts

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 27 21:23:39 PDT 2017


ruiu added a comment.

We could set . to a non-zero value only when -image-base is given, so I don't think we need to worry too much about changing the default behavior.

But I feel like I don't actually understand the problem you are working for. The -image-base option is a lld-specific option, so your program depends on lld. But you are worried that its linker script may not work with lld. That seems like a bit odd situation. Why can't you just update your linker script?


https://reviews.llvm.org/D38238





More information about the llvm-commits mailing list