|
From: | grischka |
Subject: | Re: [Tinycc-devel] NetBSD/aarch64 Unknown relocation type for got: 299 |
Date: | Thu, 07 Jan 2021 22:53:02 +0100 |
User-agent: | Thunderbird 2.0.0.23 (Windows/20090812) |
Herman ten Brugge wrote:
I just commited an update.
Thanks ;)
Also a bit more explanation would be nice. Does it introduce text relocations or does it try to avoid them? What is the benefit, under what scenario, and is it desirable always or should it maybe depend on a -fPIE switch or like that?As far as I know all targets generate -FPIC code by default. For bsd support I recently applied patches to use the GOT table correctly. Also netbsd requires that DT_TEXTREL is not set. So I applied patches for that also.
I just wondered whether it adds some overhead that for most cases is not really necessary when executables are loaded at fixed addresses without need for relocations to its own symbols at runtime really. Some systems may require position independent executables but even GCC I think needs a configure option to make them by default. Also there is still the ARM-PE target, aka wince. I don't know if it's still functional (or ever was) though. --- grischka
The only target that does now uses DT_TEXTREL is i386. But this requires a complete rewrite. Herman
[Prev in Thread] | Current Thread | [Next in Thread] |