Re: Turn on MKPIE for ppc?

Greg Troxel <[email protected]> Tue, 27 May 2025 16:37:23 -0400
Newsgroups gmane.os.netbsd.ports.powerpc
Message-ID <[email protected]>
Greg Troxel <[email protected]> writes:

> Martin Husemann <[email protected]> writes:
>
>>  wondered why we didn't have MKPIE=yes for powerpc architectures, so
>> I tested and
>>
>>  a) it works
>>  b) it causes a 15% - 20% increased size for binaries (not shared libs,
>>     of course)
>>
>> Do we want to enable it nevertheless?
>>
>> Unfortunately packed relative relocs are not implemented for ppc apparently
>> in the current binutils version we have.
>
> I no longer have any pc hardware, but I would guess if I did I'd say
> "no, I don't want that."

I should clarify.  I would think I'd say

  it's really great it works and that people can turn it on

  probably for my playing with my old hardware, I don't want it on at
  least right now


but maybe the total set size is not really bigger in any meaningful way,
there is no real reduction in execution speed, and it doesn't take much
more memory.