-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmake_til.sh
executable file
·30 lines (24 loc) · 1.1 KB
/
make_til.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
export NLSPATH=$HOME/bin/ida76
TILIB=/home/raph/tools/reverse/IDA/v7.6/tools/tilib76/
ALL_HDR=apache2.2-all.h
HTTPD=httpd-2.2.34
gcc -I$HTTPD/os/unix/ -I$HTTPD/include/ -I$HTTPD/srclib/apr/include/ -I$HTTPD/srclib/apr-util/include/ -I$HTTPD/modules/filters/ -E apache_all.h | grep -v "^# " > $ALL_HDR
$TILIB/linux/tilib64 @gcc64.cfg \
-c \
"-b$NLSPATH/til/pc/gnulnx_x64.til" \
"-h$ALL_HDR" \
-D__extension__= \
"-D__builtin_va_list=void *" \
-t"Apache 2.2 - Linux 64bit" \
apache22-debian64.til | grep -v "Unrecognized attribute"
ALL_HDR=apache2.4-all.h
gcc -DAPACHE24 -Ihttpd-2.4.46/os/unix/ -Ihttpd-2.4.46/include/ -Ihttpd-2.4.46/srclib/apr/include/ -Ihttpd-2.4.46/srclib/apr-util/include/ -E apache_all.h | grep -v "^# " > $ALL_HDR
$TILIB/linux/tilib64 @gcc64.cfg \
-c \
"-b$NLSPATH/til/pc/gnulnx_x64.til" \
"-h$ALL_HDR" \
-D__extension__= \
"-D__builtin_va_list=void *" \
apache24-apr17-debian64.til | grep -v "Unrecognized attribute"
cp apache24-apr17-debian64.til apache22-debian64.til "$NLSPATH/til/"