]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gendwarfksyms: Limit structure expansion
authorSami Tolvanen <samitolvanen@google.com>
Fri, 3 Jan 2025 20:45:31 +0000 (20:45 +0000)
committerMasahiro Yamada <masahiroy@kernel.org>
Fri, 10 Jan 2025 16:25:25 +0000 (01:25 +0900)
commitf936c129fd4c3ce495768374ea48e5b736655046
treed7497e65f3c3a5b873b1ed2d2f05d17d93d7b42d
parentf6bb92455a5e5b2241d2e1f3e240c5fc036c55cb
gendwarfksyms: Limit structure expansion

Expand each structure type only once per exported symbol. This
is necessary to support self-referential structures, which would
otherwise result in infinite recursion, and it's sufficient for
catching ABI changes.

Types defined in .c files are opaque to external users and thus
cannot affect the ABI. Consider type definitions in .c files to
be declarations to prevent opaque types from changing symbol
versions.

Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Reviewed-by: Petr Pavlu <petr.pavlu@suse.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/gendwarfksyms/Makefile
scripts/gendwarfksyms/cache.c [new file with mode: 0644]
scripts/gendwarfksyms/dwarf.c
scripts/gendwarfksyms/gendwarfksyms.h