reloc patching, avoid int3 overfill
[ia32rtools.git] / run_mkpubinc.sh
CommitLineData
feb96a61 1#!/bin/sh
8022df01 2set -e
feb96a61 3
8022df01 4echo -n > $2
feb96a61 5
8022df01 6cat $1 | fromdos | sed -e \
feb96a61 7'1,/^_rdata.*segment/d;/^_data_last/q;/^[[:blank:];]/d;/^;/d;/^_r\?data\>/d;' | awk '{print $1}' | \
8while read a; do
9 test -z "$a" && continue
7b64f7cd 10 case $a in
11 __IMPORT_DESCRIPTOR*)
12 continue
13 ;;
14 *)
15 ;;
16 esac
17
8022df01 18 echo "PUBLIC $a" >> $2
feb96a61 19done