From b4d1ab42b8529d0c210d8b2895b8e8b5cb7abb15 Mon Sep 17 00:00:00 2001 From: David Tenty Date: Thu, 11 Apr 2024 12:18:41 -0400 Subject: AIX: Consider tdata symbols in ExportImportList Thread-local variables are put in the tdata section on AIX / XCOFF [1]. Unfortunately the ExportImportList script currently doesn't consider this section when looking for symbols to export. This results in linking failures in applications (such as LLVM) when building which expect these thread local variables to be exported from their shared libraries. [1]: https://www.ibm.com/docs/en/aix/7.3?topic=formats-xcoff-object-file-format --- Modules/Platform/AIX/ExportImportList | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Platform/AIX/ExportImportList b/Modules/Platform/AIX/ExportImportList index 5e16fcb..7c269fd 100755 --- a/Modules/Platform/AIX/ExportImportList +++ b/Modules/Platform/AIX/ExportImportList @@ -63,7 +63,7 @@ if test -z "$no_objects"; then V["EXPORTED"]=" export" V["PROTECTED"]=" protected" } - /^\[[0-9]+\]\tm +[^ ]+ +\.(text|data|bss) +[^ ]+ +(extern|weak) +(EXPORTED|PROTECTED| ) / { + /^\[[0-9]+\]\tm +[^ ]+ +\.(text|data|tdata|bss) +[^ ]+ +(extern|weak) +(EXPORTED|PROTECTED| ) / { if (!match($NF,/^(\.|__sinit|__sterm|__[0-9]+__)/)) { print $NF V[$(NF-1)] } -- cgit v0.12