Skip to content

i#1973: musl: Support late injection#7254

Merged
ziyao233 merged 4 commits intoDynamoRIO:masterfrom
ziyao233:musl/late-injection
Feb 8, 2025
Merged

i#1973: musl: Support late injection#7254
ziyao233 merged 4 commits intoDynamoRIO:masterfrom
ziyao233:musl/late-injection

Conversation

@ziyao233
Copy link
Copy Markdown
Member

@ziyao233 ziyao233 commented Feb 6, 2025

Musl supplies no argument to constructors in .init section, thus it's hard to retrieve environment variables without libc functions. Let's depend on "environ" variable for now, which is relatively fine in libdrpreload.so.

This fixes tests requiring late injection on musl, including common.fib, common.nativeexec and common.nativeexec_{exe,bindnow}*.

Issue: #1973

Musl supplies no argument to constructors in .init section, thus it's
hard to retrieve environment variables without libc functions. Let's
depend on "environ" variable for now, which is relatively fine in
libdrpreload.so.

This fixes tests requiring late injection on musl, including common.fib,
common.nativeexec and common.nativeexec_{exe,bindnow}*.

Issue: DynamoRIO#3544
@ziyao233 ziyao233 changed the title i#3544: musl: Support late injection i#1973: musl: Support late injection Feb 6, 2025
@ziyao233 ziyao233 merged commit a13ca48 into DynamoRIO:master Feb 8, 2025
19 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.

2 participants