From e112fc24b9d28965fcfd7c8a6f4e9144535a2d15 Mon Sep 17 00:00:00 2001 From: John Dallaway Date: Fri, 27 Jun 2025 16:40:20 +0100 Subject: [PATCH] Accommodate Mach-O LC_RPATH load command --- core/org.eclipse.cdt.core/.settings/.api_filters | 6 ++++++ .../utils/org/eclipse/cdt/utils/macho/MachO64.java | 3 +++ 2 files changed, 9 insertions(+) diff --git a/core/org.eclipse.cdt.core/.settings/.api_filters b/core/org.eclipse.cdt.core/.settings/.api_filters index dff36c18149..dcdc0b9cebf 100644 --- a/core/org.eclipse.cdt.core/.settings/.api_filters +++ b/core/org.eclipse.cdt.core/.settings/.api_filters @@ -69,6 +69,12 @@ + + + + + + diff --git a/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/macho/MachO64.java b/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/macho/MachO64.java index 01508b2a602..6118a9ab859 100644 --- a/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/macho/MachO64.java +++ b/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/macho/MachO64.java @@ -384,6 +384,8 @@ public class MachO64 implements AutoCloseable { */ public final static int LC_LOAD_WEAK_DYLIB = (0x18 | LC_REQ_DYLD); /** @since 9.2 */ + public final static int LC_RPATH = (0x1c | LC_REQ_DYLD); + /** @since 9.2 */ public final static int LC_MAIN = (0x28 | LC_REQ_DYLD); /** @since 9.2 */ public final static int LC_DYLD_EXPORTS_TRIE = (0x33 | LC_REQ_DYLD); @@ -1714,6 +1716,7 @@ public class MachO64 implements AutoCloseable { case LoadCommand.LC_DYLD_CHAINED_FIXUPS: case LoadCommand.LC_DYLD_EXPORTS_TRIE: case LoadCommand.LC_FUNCTION_STARTS: + case LoadCommand.LC_RPATH: case LoadCommand.LC_SOURCE_VERSION: // known load commands we ignore LoadCommand misccmd = new LoadCommand();