Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib/std/Build/Step/CheckObject: dump section as string #19661

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

kubkon
Copy link
Member

@kubkon kubkon commented Apr 15, 2024

Allows us to emulate readelf -p .rodata.str1.1.

Here's how I use it in zld tests already:

const check = obj.checkObject();
check.dumpSection(".rodata.str1.1");
check.checkExact("Hello \x00World \x00");
test_step.dependOn(&check.step);

Copy link
Member

@Luukdegram Luukdegram left a comment

Choose a reason for hiding this comment

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

Nice addition!

@kubkon kubkon enabled auto-merge (rebase) April 15, 2024 14:38
@kubkon kubkon merged commit 1e5075f into master Apr 15, 2024
10 checks passed
@kubkon kubkon deleted the check-object-dump-section branch April 15, 2024 16:06
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