summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKushal Pal <kushpal@qti.qualcomm.com>2025-05-23 10:18:15 +0530
committerEli Schwartz <eschwartz93@gmail.com>2025-06-05 02:23:55 -0400
commitc93f615c9e5a9d9c62d8d0c65602be28840fc67b (patch)
tree2c67302c9aaf08d5651e3a081f6a687d7991e8e2
parent4779abbf3eaf41c2893ef74c4d79f5e894af64d7 (diff)
downloadmeson-c93f615c9e5a9d9c62d8d0c65602be28840fc67b.tar.gz
Add ELD linker
ELD is Qualcomm's open-source embedded linker. https://github.com/qualcomm/eld Signed-off-by: Kushal Pal <kushpal@qti.qualcomm.com>
-rw-r--r--mesonbuild/linkers/linkers.py6
-rw-r--r--unittests/allplatformstests.py2
2 files changed, 7 insertions, 1 deletions
diff --git a/mesonbuild/linkers/linkers.py b/mesonbuild/linkers/linkers.py
index 59f60e03a..d81892b7a 100644
--- a/mesonbuild/linkers/linkers.py
+++ b/mesonbuild/linkers/linkers.py
@@ -1235,6 +1235,12 @@ class QualcommLLVMDynamicLinker(LLVMDynamicLinker):
id = 'ld.qcld'
+class ELDDynamicLinker(GnuLikeDynamicLinkerMixin, PosixDynamicLinkerMixin, DynamicLinker):
+
+ """Qualcomm's opensource embedded linker"""
+
+ id = 'ld.eld'
+
class NAGDynamicLinker(PosixDynamicLinkerMixin, DynamicLinker):
diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py
index 536fb612a..1ef029617 100644
--- a/unittests/allplatformstests.py
+++ b/unittests/allplatformstests.py
@@ -5222,7 +5222,7 @@ class AllPlatformTests(BasePlatformTests):
env = get_fake_env()
cc = detect_c_compiler(env, MachineChoice.HOST)
has_rsp = cc.linker.id in {
- 'ld.bfd', 'ld.gold', 'ld.lld', 'ld.mold', 'ld.qcld', 'ld.wasm',
+ 'ld.bfd', 'ld.eld', 'ld.gold', 'ld.lld', 'ld.mold', 'ld.qcld', 'ld.wasm',
'link', 'lld-link', 'mwldarm', 'mwldeppc', 'optlink', 'xilink',
}
self.assertEqual(cc.linker.get_accepts_rsp(), has_rsp)