diff --git a/tools/readrpl/main.cpp b/tools/readrpl/main.cpp index 673acef..5519e41 100644 --- a/tools/readrpl/main.cpp +++ b/tools/readrpl/main.cpp @@ -552,8 +552,10 @@ formatRplExports(fmt::MemoryWriter &out, Section §ion) out.write(" count = {}\n", exports->count); for (auto i = 0u; i < exports->count; ++i) { + // TLS exports have the high bit set in name for some unknown reason... + auto name = strTab + (exports->exports[i].name & 0x7FFFFFFF); auto value = exports->exports[i].value; - auto name = strTab + exports->exports[i].name; + out.write(" 0x{:08X} {}\n", static_cast(value), name); } }