Skip to content

For 32-bit arch, the libc symlink in sysroot should point to /system/lib/libc.so #126

Description

@1NC4NDESCENCE

if [[ ! -e $SYSROOT/lib/libbcc.so.0 ]]; then
ln $SYSROOT/lib/libbcc.so -s $SYSROOT/lib/libbcc.so.0
fi
if [[ ! -e $SYSROOT/lib/libc.so.6 ]]; then
ln /system/lib64/libc.so -s $SYSROOT/lib/libc.so.6
fi
if [[ ! -e $SYSROOT/lib/librt.so.1 ]]; then
ln /system/lib64/libc.so -s $SYSROOT/lib/librt.so.1
fi
export PATH=$SYSROOT/bin:$PATH
export LD_LIBRARY_PATH=$SYSROOT/lib:$SYSROOT/lib64:$LD_LIBRARY_PATH
# define environment variables bpftrace and bcc need to determine arch and
# kernel source path
export ARCH="<TARGET_ARCH_ENV_VAR>"

Tried to use bpftrace on 32-bit arm Android TV and found this problem

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions