[llvm] Add symbol version support to llvm-ifs (PR #163030)

via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 11 03:39:10 PST 2026


ur4t wrote:

> 1. Items of `Symbols` now have an optional string field `Version`
> 2. Items of `VersionDefinitions` have a string field `Name` and an optional list field `Parents` whose items are string.
> 2.2 `Name` is required to identify items in `VersionDefinitions`.

I am wondering whether we should use `VersionIndex` to identify versions just like ELF format, within items of `Symbols` or in another standalone section just like ELF format, which:
- keeps versions ordered natively,
- is friendly to add version requirements from different files without worrying name collision,
- reduces readibility a lot for humans however,
- might introduce huge diffs when new symbols or new versions are added,
- feels like a reduced version of `obj2yaml`.

I am even considering to leave IFS text format untouched. It might be acceptable that `llvm-ifs` generates ELF stubs with versioned symbols when input ELF contains version symbols.

https://github.com/llvm/llvm-project/pull/163030


More information about the llvm-commits mailing list