Skip to content

Commit 5126b14

Browse files
authored
Fix ld cache open on ARM64 (#156)
1 parent 5e652f3 commit 5126b14

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

‎src/sym/bcc_proc.cpp‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
#include <sys/stat.h>
3131
#include <sys/types.h>
3232
#include <unistd.h>
33-
#include <sys/syscall.h>
34-
#include <fcntl.h>
3533

3634

3735
#include "bcc_elf.h"
@@ -403,11 +401,7 @@ static int load_ld_cache(const char *cache_path) {
403401
size_t ld_size;
404402
const char *ld_map;
405403

406-
int ret, fd = syscall(SYS_open, cache_path, O_RDONLY, 0);
407-
if (fd <= 0)
408-
{
409-
return -1;
410-
}
404+
int ret, fd = open(cache_path, O_RDONLY);
411405

412406
if (fd < 0)
413407
return -1;

0 commit comments

Comments
 (0)