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


_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to