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