HomeFreeBSD

lib/csu: do not compile the body of handle_static_init() for PIC build at all

Description

lib/csu: do not compile the body of handle_static_init() for PIC build at all

The referenced symbols that provide init array boundaries are weak,
hidden, and undefined. The code that iterates over that arrays is not
used for the case when libc is compiled as dso.

This should fix linking with ld.bfd.

Sponsored by: The FreeBSD Foundation
MFC after: 3 weeks

Details

Provenance
kibAuthored on Mar 12 2023, 1:45 AM
Parents
rG94e3409e2d02: libc/csu: add powerpcspe
Branches
Unknown
Tags
Unknown