Now I tried the following command in the kernel-sources root-directory:
Code: Alles auswählen
make clean
make CFLAGS='-fPIC' modules KBUILD_EXTMOD=/usr/src/linux-source-6.1/drivers/gpu/drm/mgag200
In the web I found the following command to compile a Shared-Object-file /*.so:
Code: Alles auswählen
cd /usr/src/linux-source-6.1/drivers/gpu/drm/mgag200
gcc -shared -o mgag200_dri.so mgag200_drv.o
Code: Alles auswählen
/usr/bin/ld: mgag200_drv.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: failed to set dynamic section sizes: bad value