Add Objective-C name mangler tool


The objcnamemangler tool patches Mach-O binaries by replacing Objective-C
class and category name prefixes. This is useful when multiple frameworks
or bundles share the same ObjC symbol namespace and would otherwise clash
at runtime.

The tool uses LLVM's Mach-O object file support and is gated on LLVM
being available and the platform being macOS. A CMake integration macro,
qt6_mangle_objc_symbols(), is provided for adding the mangling as a
POST_BUILD step, with support for explicit replacement strings, random
namespace generation, per-class exclusions, and optional re-signing via
codesign.

[ChangeLog] Added the objcnamemangler tool and the
qt6_mangle_objc_symbols() CMake function for patching Objective-C symbol
namespaces in Mach-O binaries at build time.

Change-Id: I67366c31e81041641bd6397d6022cca8b247a4f8
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
commitf0df12af992a8d7116e99ed85c62a9976c09d1a6
parent5bdee7a50d67d5783be3ea8d41698e7a57a10268
authorTim Blechmann <tim.blechmann@qt.io>
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>
commit timeWed, 29 Apr 2026 13:15:24 +0000