1 2 3 4 5 6 7 8 9
#!/bin/sh # $FreeBSD$ # nm -n --defined-only acpi_wakecode.o | while read offset dummy what do echo "#define ${what} 0x${offset}" done exit 0