aboutsummaryrefslogtreecommitdiff
path: root/lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2025-08-04 00:29:13 -0700
committerFangrui Song <i@maskray.me>2025-08-04 00:29:14 -0700
commitdf71243fa885cd3db701dc35a0c8d157adaf93b3 (patch)
tree7989961d11c917a0cea35e76713c7143af972225 /lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp
parentc9684e58923babef7b994846b2208a05f3e3b31b (diff)
downloadllvm-df71243fa885cd3db701dc35a0c8d157adaf93b3.zip
llvm-df71243fa885cd3db701dc35a0c8d157adaf93b3.tar.gz
llvm-df71243fa885cd3db701dc35a0c8d157adaf93b3.tar.bz2
MC: Evaluate .org during fragment relaxation
Similar to 742ecfc13e8aa34cfff2900e31838f657fcafe30 for MCFillFragment, ensure `.org` directives with expressions are re-evaluated during fragment relaxation, as their sizes may change. Continue iteration to prevent stale, incorrect sizes. While I knew MCOrgFragment likely needed to be re-evaluated at all, I did not have a motivation to add it;-) This fixes the root cause of https://github.com/ClangBuiltLinux/linux/issues/2116 (writeSectionData assertion failure when building the Linux kernel for arm64) The issue cannot be reliably replicated. The specific test case would not replicate if any of the following condition was not satisfied: * .org was not re-evaluated. Fixed by this commit. * clang -cc1as has a redundant `initSections` call, leading to a redundant initial FT_Align fragment. llvm-mc -filetype=obj, lacking the redundant `initSections`, doesn't replicate. * faa931b717c02d57f0814caa9133219040e6a85b decreased sizeof(MCFragment). * f1aa6050bd90f8ec4273da55d362e23905ad3a81 added more fragments
Diffstat (limited to 'lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp')
0 files changed, 0 insertions, 0 deletions