Liste des Groupes | Revenir à cl c |
bart <bc@freeuk.com> writes:I'm pretty sure that just 4 years ago, I was able to generate non-PIC object files that could be linked with gcc-ld on Windows.On 27/06/2024 21:23, Tim Rentsch wrote:gcc has supported generating position independent code for atAfter taking care of all that the build did manage to produce an>
executable, which appears to have run successfully.
>
After doing a trial run with the produced executable, I looked at
the tcc man page. As best I can tell, tcc simply silently
ignores the -fPIC option.
I think that it tries to be a drop-in replacement for gcc, so supports
some of its options, even if they don't do anything. Like -O3.
>
Position-independent code seems to be a recent thing with gcc tools. My
tools didn't support it either, until a year ago when I found out about
ASLR.
over a quarter of a century.
The fact that it hasn't been needed, or been the default, for decades suggests that it isn't a necessity.>That's your opinion. I don't think it matches reality.
For most, PIC isn't a necessity.
For most applications it doesn't matter and PIC codeHang on, isn't that what /I/ said, which you just disagreed with?
works just as well as PDC.
Les messages affichés proviennent d'usenet.