On existing machines we define llseek with a link warning and tell people to use lseek64 or lseek instead. So I think what you really should be doing is putting the real code in x32/lseek.S and adding a dummy llseek.c so that we get no llseek at all. Thanks, Roland