cc kdump.o kdump-kern.o kdump-kern-dwarfs.o -o kdump -no-pie -lpthread
/bin/ld: kdump-kern.o: in function `GetOffset':
kdump-kern.c:(.text+0x15): undefined reference to `__x86_return_thunk'
/bin/ld: kdump-kern.o: in function `KernInit':
kdump-kern.c:(.text+0x1f7): undefined reference to `__x86_return_thunk'
/bin/ld: kdump-kern.o: in function `GenericGet':
kdump-kern.c:(.text+0x37a): undefined reference to `__x86_return_thunk'
/bin/ld: kdump-kern.c:(.text+0x38e): undefined reference to `__x86_return_thunk'
/bin/ld: kdump-kern.o: in function `tiNext':
kdump-kern.c:(.text+0x429): undefined reference to `__x86_return_thunk'
/bin/ld: kdump-kern.o:kdump-kern.c:(.text+0x468): more undefined references to `__x86_return_thunk' follow
collect2: error: ld returned 1 exit statuscc kdump.o kdump-kern.o kdump-kern-dwarfs.o -o kdump -no-pie -lpthread
/bin/ld: kdump-kern.o: in function `GetOffset':
kdump-kern.c:(.text+0x15): undefined reference to `__x86_return_thunk'
/bin/ld: kdump-kern.o: in function `KernInit':
kdump-kern.c:(.text+0x1f7): undefined reference to `__x86_return_thunk'
/bin/ld: kdump-kern.o: in function `GenericGet':
kdump-kern.c:(.text+0x37a): undefined reference to `__x86_return_thunk'
/bin/ld: kdump-kern.c:(.text+0x38e): undefined reference to `__x86_return_thunk'
/bin/ld: kdump-kern.o: in function `tiNext':
kdump-kern.c:(.text+0x429): undefined reference to `__x86_return_thunk'
/bin/ld: kdump-kern.o:kdump-kern.c:(.text+0x468): more undefined references to `__x86_return_thunk' follow
collect2: error: ld returned 1 exit status