The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/scripts/makelst

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 #!/bin/bash
    2 # A script to dump mixed source code & assembly
    3 # with correct relocations from System.map
    4 # Requires the following lines in Rules.make.
    5 # Author(s): DJ Barrow (djbarrow@de.ibm.com,barrow_dj@yahoo.com) 
    6 #            William Stearns <wstearns@pobox.com>
    7 #%.lst: %.c
    8 #       $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(CFLAGS_$@) -g -c -o $*.o $<
    9 #       $(TOPDIR)/scripts/makelst $* $(TOPDIR) $(OBJDUMP)
   10 #
   11 #    Copyright (C) 2000 IBM Corporation
   12 #    Author(s): DJ Barrow (djbarrow@de.ibm.com,barrow_dj@yahoo.com) 
   13 #
   14 
   15 t1=`$3 --syms $2/$1.o | grep .text | grep " F " | head -n 1`
   16 t2=`echo $t1 | gawk '{ print $6 }'`
   17 t3=`grep $t2 $2/System.map`
   18 t4=`echo $t3 | gawk '{ print $1 }'`
   19 t5=`echo $t1 | gawk '{ print $1 }'`
   20 t6=`echo $t4 - $t5 | sed -e s/a/A/g -e s/b/B/g -e s/c/C/g -e s/d/D/g -e s/e/E/g -e s/f/F/g`
   21 t7=`( echo  ibase=16 ; echo $t6 ) | bc`
   22 $3 --source --adjust-vma=$t7 $2/$1.o > $2/$1.lst

Cache object: 0f7933fa04195b2dd188cec7b2ce9f5a


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.