Page MenuHomeFreeBSD

[PPC64] Fix rtld direct exec mode
ClosedPublic

Authored by luporl on Aug 1 2019, 8:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 22 2023, 9:26 PM
Unknown Object (File)
Dec 11 2023, 5:49 AM
Unknown Object (File)
Nov 12 2023, 8:20 AM
Unknown Object (File)
Nov 12 2023, 8:16 AM
Unknown Object (File)
Nov 11 2023, 11:39 PM
Unknown Object (File)
Oct 10 2023, 10:37 PM
Unknown Object (File)
Sep 18 2023, 6:32 AM
Unknown Object (File)
May 14 2023, 6:35 PM
Subscribers

Details

Summary

Instead of restoring the saved values of argc, argv and envp,
these must be loaded from the stack that _rtld() modifies.

This fixes rtld direct exec mode.
E.g.: /libexec/ld-elf.so.1 /bin/ls

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 25633
Build 24226: arc lint + arc unit

Event Timeline

Looks good. Can the same change apply to powerpc?

This revision is now accepted and ready to land.Aug 3 2019, 11:58 AM

Looks good. Can the same change apply to powerpc?

A brief look at powerpc/rtld_start.S code seems to indicate that the same changes apply to powerpc.

But it would be better for someone with 32-bit powerpc hardware to make the change and confirm it works fine.

This revision was automatically updated to reflect the committed changes.