Page MenuHomeFreeBSD

Refactor ELF interpreter loading into a separate function.
ClosedPublic

Authored by trasz on Mar 28 2019, 10:22 PM.
Tags
None
Referenced Files
F133381406: D19741.id55666.diff
Sat, Oct 25, 8:41 AM
F133344850: D19741.id55566.diff
Sat, Oct 25, 2:06 AM
F133344846: D19741.id55881.diff
Sat, Oct 25, 2:06 AM
F133344845: D19741.id55670.diff
Sat, Oct 25, 2:06 AM
F133344844: D19741.id55940.diff
Sat, Oct 25, 2:06 AM
F133344833: D19741.id.diff
Sat, Oct 25, 2:06 AM
Unknown Object (File)
Fri, Oct 24, 7:50 PM
Unknown Object (File)
Fri, Oct 24, 4:29 AM
Subscribers

Details

Summary

Refactor ELF interpreter loading into a separate function.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 23361
Build 22385: arc lint + arc unit

Event Timeline

sys/kern/imgact_elf.c
981

This block is irrelevant for the task of loading the interpreter. I must not be moved.

sys/kern/imgact_elf.c
961

This block of if() can be naturally moved before calculating newinterp.

971

How could newinterp != NULL and brand_info->interp_path == NULL ?

sys/kern/imgact_elf.c
971

The newinterp comes from brand_info->interp_newpath, not brand_info->interp_path.

More rework - goto is done, as is the 'newinterp' variable.

Looks fine, please test with 32bit binary.

This revision is now accepted and ready to land.Apr 6 2019, 3:07 PM
This revision was automatically updated to reflect the committed changes.