[PATCH v2] s390: Do not use canonical PLT if pointer equality is not needed

Jens Remus jremus@linux.ibm.com
Wed Mar 18 16:33:57 GMT 2026


On 3/17/2026 5:28 PM, Jens Remus wrote:
> On 3/17/2026 12:22 PM, Alan Modra wrote:
>> On Mon, Mar 16, 2026 at 06:07:47PM +0100, Jens Remus wrote:

>> A test that needs to be run is inferior to a test that compiles and
>> examines an object, because the former only works natively.  I think
>> you can likely turn this into a run_cc_link_tests that checks the
>> executable with readelf --dyn-sym looking for a zero value undefined
>> fun_public.
>> eg. this (s390x)
>>      6: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND fun_public
> 
> Great suggestion!  I'll send a v3.
> 
> I'll see whether I can use Fangrui Song's cross-build/test script [1]
> as base to run some tests for other targets myself.
> 
> [1]: https://inbox.sourceware.org/binutils/CAN30aBFaYE4CLUcxGk61Qc4+2K7yDPEDyhbKb7QBEJ-T4ENrxg@mail.gmail.com/

I did not think this through.  run_cc_link_tests obviously requires a
cross C compiler, which I would have to build as well for every target.
Then ld-elf/shared.exp tests for the availability of a C++ compiler
right in the middle and otherwise stops further testing, which silently
skips all following tests (whether or not they actually require C++).

So my own testing is still very limited.

Regards,
Jens
-- 
Jens Remus
Linux on Z Development (D3303)
jremus@de.ibm.com / jremus@linux.ibm.com

IBM Deutschland Research & Development GmbH; Vorsitzender des Aufsichtsrats: Wolfgang Wendt; Geschäftsführung: David Faller; Sitz der Gesellschaft: Ehningen; Registergericht: Amtsgericht Stuttgart, HRB 243294
IBM Data Privacy Statement: https://www.ibm.com/privacy/



More information about the Binutils mailing list