aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectProcess.cpp
diff options
context:
space:
mode:
authoralx32 <103613512+alx32@users.noreply.github.com>2025-05-01 10:29:07 -0700
committerGitHub <noreply@github.com>2025-05-01 10:29:07 -0700
commitdeae5eef7147c5ad3acff612ab0ed00e2186d9a5 (patch)
treef113cbb311a95a8cf7dc4bfba1708b63e396a70c /lldb/source/Commands/CommandObjectProcess.cpp
parentb6d4b7eba1dabadd934c0b92fc32bb6d658e2cf6 (diff)
downloadllvm-deae5eef7147c5ad3acff612ab0ed00e2186d9a5.zip
llvm-deae5eef7147c5ad3acff612ab0ed00e2186d9a5.tar.gz
llvm-deae5eef7147c5ad3acff612ab0ed00e2186d9a5.tar.bz2
[lld-macho] Fix branch extension logic compatibility with __objc_stubs (#137913)
Enhance branch extension logic to handle __objc_stubs identically to __stubs The branch extension algorithm currently has specific handling for the `__stubs` section: 1. It ensures all `__stubs` content is directly reachable via branches from the text section. 2. It calculates the latest text section address that might require thunks to reach the end of `__stubs`. The `__objc_stubs` section requires precisely the same handling due to its similar nature, but this was not implemented. This commit generalizes the existing logic so it applies consistently to both the `__stubs` and `__objc_stubs` sections, ensuring correct reachability and thunk placement for both. Without this change it's possible to get relocation errors during linking in scenarios where the `__objc_stubs` section is large enough.
Diffstat (limited to 'lldb/source/Commands/CommandObjectProcess.cpp')
0 files changed, 0 insertions, 0 deletions