diff options
author | Fangrui Song <i@maskray.me> | 2025-08-02 09:27:05 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2025-08-02 09:27:06 -0700 |
commit | d3589edafca1f893188540c8e85a1fa1a4dd22c1 (patch) | |
tree | fc1b4d67de544f0313edd70fd5030ae95ecbd442 /lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp | |
parent | 300e41d72fc4f04b3cd6e65bd56a01643bf7f060 (diff) | |
download | llvm-d3589edafca1f893188540c8e85a1fa1a4dd22c1.zip llvm-d3589edafca1f893188540c8e85a1fa1a4dd22c1.tar.gz llvm-d3589edafca1f893188540c8e85a1fa1a4dd22c1.tar.bz2 |
MCAsmBackend::applyFixup: Change `Data` to indicate the relocated location
`Data` now references the first byte of the fixup offset within the current fragment.
MCAssembler::layout asserts that the fixup offset is within either the
fixed-size content or the optional variable-size tail, as this is the
most the generic code can validate without knowing the target-specific
fixup size.
Many backends applyFixup assert
```
assert(Offset + Size <= F.getSize() && "Invalid fixup offset!");
```
This refactoring allows a subsequent change to move the fixed-size
content outside of MCSection::ContentStorage, fixing the
-fsanitize=pointer-overflow issue of #150846
Pull Request: https://github.com/llvm/llvm-project/pull/151724
Diffstat (limited to 'lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp')
0 files changed, 0 insertions, 0 deletions