HomeFreeBSD

Avoid adding duplicates to SRCS/OBJS/SOBJS/POBJS

Description

Avoid adding duplicates to SRCS/OBJS/SOBJS/POBJS

This is a change in preparation for stopping to use lorder.sh (D26044) and
instead assume that we have a linker newer than ~1990. Without lorder.sh
duplicates end up being passed to the linker when building .so files and this
can result in duplicate symbol definition errors.

There is one minor change: libcompiler_rt.a will no longer provide
gcc_personality_v0 and instead we now only have it in libgcc_eh.a/libgcc_s.so.
This matches GCC's behaviour.

Reviewed By: emaste, cem
Differential Revision: https://reviews.freebsd.org/D26042

(cherry picked from commit 0b862b03998a292a18bcc7f9ac5b05c0303c5de3)

Details

Provenance
arichardsonAuthored on Aug 24 2020, 9:20 AM
dimCommitted on Dec 22 2021, 9:58 AM
Reviewer
emaste
Differential Revision
D26042: Avoid adding duplicates to SRCS/OBJS/SOBJS/POBJS
Parents
rG096b1a8099db: Add a missed source file for LLVM's BPF target. This target is not
Branches
Unknown
Tags
Unknown