HomeFreeBSD

Use a workaround to compile the crt init functions correctly with clang.

Description

Use a workaround to compile the crt init functions correctly with clang.

The MIPS assembly parser treats forward-declared local symbols as global
symbols. This results in CALL16 relocations being used against local
(private) symbols which then fail to resolve when linking binaries.
Add .local to force the init and fini functions to be treated as local as
a workaround.

Submitted by: sbruno
Sponsored by: DARPA / AFRL

Details

Provenance
jhbAuthored on
Parents
rS328938: Simplify synchronization read error handling.
Branches
Unknown
Tags
Unknown