kconfig: detect LD implementation
authorRoger Pau Monné <roger.pau@citrix.com>
Tue, 7 Jun 2022 12:05:06 +0000 (14:05 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 7 Jun 2022 12:05:06 +0000 (14:05 +0200)
commit3754bd128d1a6b3d5864d1a3ee5d27b67d35387a
tree2b34a1480b7ae5cf845523320fa02fb738175693
parent9ebe2ba83644ec6cd33a93c68dab5f551adcbea0
kconfig: detect LD implementation

Detect GNU and LLVM ld implementations. This is required for further
patches that will introduce diverging behaviour depending on the
linker implementation in use.

Note that LLVM ld returns "compatible with GNU linkers" as part of the
version string, so be on the safe side and use '^' to only match at
the start of the line in case LLVM ever decides to change the text to
use "compatible with GNU ld" instead.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Michal Orzel <michal.orzel@arm.com>
Acked-by: Julien Grall <jgrall@amazon.com>
master commit: c70c4b624f85f7d4e28c70a804a0a3f20d73092b
master date: 2022-05-02 08:50:39 +0200
xen/Kconfig