This is an archive of the discontinued LLVM Phabricator instance.

[libc] Enable __llvm_libc_syscall and fork on riscv64.
ClosedPublic

Authored by mikhail.ramalho on Mar 15 2023, 12:01 PM.

Details

Summary

This patch enables the remaining calls from unistd.

The test cases had to be updated to:

  1. Use SYS_symlinkat if SYS_symlink is not available
  2. Use SYS_readlinkat if SYS_readlink is not available
  3. Use SYS_unlinkat if SYS_unlink is not available
  4. Use SYS_openat if SYS_open is not available

We also abort compilation if neither of the syscalls mentioned above are
available.

Diff Detail

Event Timeline

Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 15 2023, 12:01 PM
mikhail.ramalho requested review of this revision.Mar 15 2023, 12:01 PM
sivachandra accepted this revision.Mar 15 2023, 1:53 PM
This revision is now accepted and ready to land.Mar 15 2023, 1:53 PM
sivachandra retitled this revision from [libc] Enable __llvm_libc_syscall and fork to [libc] Enable __llvm_libc_syscall and fork on riscv64..Mar 15 2023, 1:54 PM

I have updated the commit message to make it clear that this change is for riscv64.