Files
kaf24@firebug.cl.cam.ac.uk 13e63314c4 bitkeeper revision 1.1691.1.5 (42a6b4baIjkVZx9lVWvoA9RqgAGLMQ)
The following allows you to run unmodified guest operating systems
under Xen on VMX (VT) enabled processors. The tree lives under
<ROOT>/tools/dfw. Instead of booting a guest kernel, boot vmxloader and
specify the disk image in qemurc.

        Leendert

Signed-Off-By: Leendert van Doorn <leendert@watson.ibm.com>
2005-06-08 09:04:58 +00:00

24 lines
539 B
Bash
Executable File

#!/bin/bash
awk \
'BEGIN { }\
/^\.text/,/DATA_SEG_DEFS_HERE/ { print }\
END { }'\
$1 > temp.awk.1
awk \
'BEGIN { i = 0; last = "hello" }\
/BLOCK_STRINGS_BEGIN/,/^\.bss/ { if ( i > 1 ) { print last } last = $0; i = i + 1 }\
END { }'\
$1 > temp.awk.2
awk \
'BEGIN { }\
/DATA_SEG_DEFS_HERE/,/BLOCK_STRINGS_BEGIN/ { print }\
END { }'\
$1 > temp.awk.3
cp $1 $1.orig
cat temp.awk.1 temp.awk.2 temp.awk.3 | sed -e 's/^\.data//' -e 's/^\.bss//' -e 's/^\.text//' > $1
/bin/rm -f temp.awk.1 temp.awk.2 temp.awk.3 $1.orig