Skip to content

Include start/end virtual addresses for extracted Go strings#84

Open
anushkasharmaa1 wants to merge 1 commit intomandiant:masterfrom
anushkasharmaa1:patch-2
Open

Include start/end virtual addresses for extracted Go strings#84
anushkasharmaa1 wants to merge 1 commit intomandiant:masterfrom
anushkasharmaa1:patch-2

Conversation

@anushkasharmaa1
Copy link
Copy Markdown

This change updates ExtractMetadata.Strings to return objfile.GoString
instead of []string, allowing extracted Go strings to include their
start and end virtual addresses.

This builds on the existing -strings implementation and enables
downstream tooling (e.g. IDA / Binary Ninja plugins) to place string
literals at precise locations.

No behavioral changes when -strings is not used.

Include start/end virtual addresses for extracted Go strings
@google-cla
Copy link
Copy Markdown

google-cla bot commented Mar 2, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@stevemk14ebr
Copy link
Copy Markdown
Collaborator

Hi, please sign the CLA. We've removed the GoString structure in a recent PR. To continue this I'd like to a structure storing the start address of the string and the string contents, the end address can be calculated by the string length.

@anushkasharmaa1
Copy link
Copy Markdown
Author

anushkasharmaa1 commented Mar 13, 2026 via email

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.

2 participants