VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/BIOS/dataseghack@ 1959

Last change on this file since 1959 was 1, checked in by vboxsync, 55 years ago

import

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 539 bytes
Line 
1#!/bin/bash
2
3awk \
4 'BEGIN { }\
5 /^\.text/,/DATA_SEG_DEFS_HERE/ { print }\
6 END { }'\
7 $1 > temp.awk.1
8
9awk \
10 'BEGIN { i = 0; last = "hello" }\
11 /BLOCK_STRINGS_BEGIN/,/^\.bss/ { if ( i > 1 ) { print last } last = $0; i = i + 1 }\
12 END { }'\
13 $1 > temp.awk.2
14
15awk \
16 'BEGIN { }\
17 /DATA_SEG_DEFS_HERE/,/BLOCK_STRINGS_BEGIN/ { print }\
18 END { }'\
19 $1 > temp.awk.3
20
21cp $1 $1.orig
22cat temp.awk.1 temp.awk.2 temp.awk.3 | sed -e 's/^\.data//' -e 's/^\.bss//' -e 's/^\.text//' > $1
23/bin/rm -f temp.awk.1 temp.awk.2 temp.awk.3 $1.orig
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette