build system: use archives, not linker action to shorten command lines
Intermediate linking may distort linker behavior (in particular related to
weak symbols). The idea is that archives are closer to 'just a list of
object files', and ideally makes the linker more predictable.
Using --whole-archive, the linker doesn't optimize out object files just
because their symbols were already provided by weak versions. However it
shouldn't be used for libgcc, because that one has some unexpected side-effects.
Signed-off-by: Patrick Georgi <firstname.lastname@example.org>
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <email@example.com>
Tested-by: Raptor Engineering Automated Test Stand <firstname.lastname@example.org>
8 files changed