[PATCH] D17857: [ELF] - DT_TEXTREL/DF_TEXTREL flags implemented.

Joerg Sonnenberger via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 3 16:24:41 PST 2016


On Thu, Mar 03, 2016 at 01:49:27PM -0800, Rui Ueyama wrote:
> But I still want to defer that until someone comes up with a program that
> they want to link with lld and say that they need this. As Davide pointed
> out, I'm also not entirely sure if this is the right approach, and if we do
> not have to discuss design right now, I want to do this later.

I think we should at least detect it and bail out. I'm not that attached
to text relocations otherwise, but silently creating bad binaries when
we can reasonable easily detect seems bad. Consider the problems with
MIPS EH frame layout, which is normally only visible due to the
resulting text relocation warnings/errors.

Joerg


More information about the llvm-commits mailing list