我正在使用 Ubuntu 22.04。
我正在编译一个驱动程序来通过串行控制 LED,但在编译结束时出现以下错误:
/usr/bin/ld: dl_free_download.o: R_X86_64_PC32 relocation against symbol "dl_download_data" cannot be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
makeup: ***
[Makefile:65: libdatalink.so.1] Error 1