build err on arm64 machine, relocation truncated to fit: R_AARCH64_LD64_GOTPAGE_LO15 against symbol #3148
Closed
zhangzhiqiangcs
started this conversation in
Development
Replies: 1 comment 2 replies
-
Checked those static libraries on both arm64 and amd64, found that on arm64, static library on arm64 has much more GOT entries than on amd64. #!/bin/bash
for s in `cat build-static/src/CMakeFiles/bpftrace.dir/link.txt | tr ' ' '\n' | cat | grep /usr/lib`; do
cnt=`readelf -r $s | grep GOT | wc -l`
echo "$s $cnt"
done
But mose of GOT is something like |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, all, I try to build a static bpftrace binary on my arm64 manchine in a alpine:3.18 container, just followed the
docker/Dockerfile.static
andstatic.sh
, the build process always filed at final link stage with errBeta Was this translation helpful? Give feedback.
All reactions