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 Feb 6 2018, 5:01 PM
Parents
rG0d02f6c20156: Simplify synchronization read error handling.
Branches
Unknown
Tags
Unknown

Event Timeline