musl on uml - warning: relocation in read-only section `.ref.text'
Jason A. Donenfeld
Jason at zx2c4.com
Wed Jul 13 10:43:13 PDT 2022
In attempting to do a static build using a musl-based toolchain, I'm
seeing this linker error:
/home/zx2c4/Projects/wireguard-linux/tools/testing/selftests/wireguard/qemu/build/um/x86_64-linux-musl-cross/bin/../lib/gcc/x86_64-linux-
musl/11.2.1/../../../../x86_64-linux-musl/bin/ld: init/main.o:
warning: relocation in read-only section `.ref.text'
/home/zx2c4/Projects/wireguard-linux/tools/testing/selftests/wireguard/qemu/build/um/x86_64-linux-musl-cross/bin/../lib/gcc/x86_64-linux-
musl/11.2.1/../../../../x86_64-linux-musl/bin/ld: read-only segment
has dynamic relocations
Wondering if anybody else has seen this with musl.
Thanks,
Jason
More information about the linux-um
mailing list