xref: /minix3/lib/libm/arch/m68060/makeoffs.awk (revision 84d9c625bfea59e274550651111ae9edfdc40fbd)
1*84d9c625SLionel SambucBEGIN{FS=",";s = -16;}
2*84d9c625SLionel Sambuc/\.long/{s += 16;}
3*84d9c625SLionel Sambucs<0 || s>1023{print $0}
4*84d9c625SLionel Sambucs>=0 && s<1024{\
5*84d9c625SLionel Sambuc	printf "ENTRY_NOPROFILE(__fplsp060_%04x) ", s;\
6*84d9c625SLionel Sambuc	print $1 "," $2;\
7*84d9c625SLionel Sambuc	printf "ENTRY_NOPROFILE(__fplsp060_%04x) ", s+8;\
8*84d9c625SLionel Sambuc	print "	.long	" $3 "," $4;\
9*84d9c625SLionel Sambuc}
10