2 # A script to dump mixed source code & assembly
3 # with correct relocations from System.map
4 # Requires the following lines in makefile:
6 # $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(CFLAGS_$@) -g -c -o $*.o $<
7 # $(srctree)/scripts/makelst $*.o $(objtree)/System.map $(OBJDUMP)
9 # Copyright (C) 2000 IBM Corporation
10 # Author(s): DJ Barrow (djbarrow@de.ibm.com,barrow_dj@yahoo.com)
11 # William Stearns <wstearns@pobox.com>
14 # awk style field access
19 t1=`$3 --syms $1 | grep .text | grep -m1 " F "`
23 echo "No System.map" >&2
28 t6=`printf "%lu" $((0x$t4 - 0x$t5))`
31 $3 -r --source --adjust-vma=${t6:-0} $1