]> git.ipfire.org Git - thirdparty/gcc.git/commit
Darwin: Correct handling of weak crts.
authorIain Sandoe <iain@sandoe.co.uk>
Thu, 21 Mar 2024 14:34:44 +0000 (14:34 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Sun, 28 Apr 2024 14:39:00 +0000 (15:39 +0100)
commit61d0cd29f9f107bee1d193b75b87d0ebe0766ede
tree4bbd4d7a6e7880760ebd16b0c732b98a33270847
parent88d9c5bfb17ef5c5288eb58ddc64dee7d52ecdf4
Darwin: Correct handling of weak crts.

Backport part of 506e74f53a5 from trunk.

We need the weak crts to be considered ahead of GCC target libraries
(except libgcc_s) to avoid spurious dependencies on otherwise unused
libs.

gcc/ChangeLog:

* config/darwin.h (LINK_COMMAND_SPEC_A): Handle weak crts
before other objects. (REAL_LIBGCC_SPEC): Remove weak crts
from here.  (DARWIN_WEAK_CRTS): New.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/config/darwin.h