Skip to content

Main setsymboladdress only (alternate to PR 1749) - #1751

Merged
Shankar Easwaran (quic-seaswara) merged 2 commits into
qualcomm:mainfrom
tcurtiss:main_setsymboladdress_only
Aug 28, 2026
Merged

Main setsymboladdress only (alternate to PR 1749)#1751
Shankar Easwaran (quic-seaswara) merged 2 commits into
qualcomm:mainfrom
tcurtiss:main_setsymboladdress_only

Conversation

@tcurtiss

Copy link
Copy Markdown
Contributor

Use this PR if the setExcludeFromOverlapCheck and setAllowedInNonLoadSegment plugin APIs in PR 1749 are not needed.

LinkerWrapper::setSymbolAddress(Symbol, Addr): detaches a defined symbol from its fragment and assigns it an absolute (SHN_ABS) value, callable during AfterLayout. Preserves original binding (e.g. global, local, weak)

Comment thread lib/Core/Module.cpp
Comment thread lib/Core/Module.cpp
Comment thread lib/LinkerWrapper/LinkerWrapper.cpp Outdated
Comment thread test/Common/Plugin/SetSymbolAddress/SetSymbolAddress.cpp Outdated
- LinkerWrapper::setSymbolAddress(Symbol, Addr): detaches a defined
  symbol from its fragment and assigns it an absolute (SHN_ABS) value,
  callable during AfterLayout. Limited to data symbols only and ensure
  address range is within that of the target architecture. Annotation
  is shown in the map file for affected symbols.

Signed-off-by: Troy Curtiss <trcurtiss@gmail.com>
Comment thread lib/LinkerWrapper/LinkerWrapper.cpp Outdated
Comment thread include/eld/PluginAPI/LinkerWrapper.h
Comment thread include/eld/PluginAPI/LinkerWrapper.h Outdated
- LinkerWrapper::setSymbolAddress(Symbol, Addr): detaches a defined
  symbol from its fragment and assigns it an absolute (SHN_ABS) value,
  callable during AfterLayout. Limited to data symbols only and ensure
  address range is within that of the target architecture. Annotation
  is shown in the map file for affected symbols.

Signed-off-by: Troy Curtiss <trcurtiss@gmail.com>

@parth-07 Parth (parth-07) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@quic-seaswara
Shankar Easwaran (quic-seaswara) merged commit 70ad171 into qualcomm:main Aug 28, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants