linux/scripts/makelst
<<
ue=2 /spa3.2 /form.2 a ue=2 href="../linux+v320t10/scripts/makelst">ue=2 img src="../.static/gfx/right.png" alt=">>">ue /spa3.2ue spa3 class="lxr_search">ue=2ue=2 input typtiohidden" namtionavtarget" ue=2 input typtiotext" namtiosearch" idiosearch">ue=2 butt.16typtiosubmit">Searchue=2 Prefs2 /a>ue /spa3.2=2 /div.2=2 form ac2"v3="ajax+*" method="post" onsubmit="return false;">ue input typtiohidden" namtioajax_lookup" idioajax_lookup" u=2 /form.2u=2 div class="headingbott.m">u div idiofile_contents".
   1 /a>#!/bin/sh
   2 /a># A script to dump mixed source code & assembly
   3 /a># with correct reloca2"v3s from System.map
   4 /a># Requires the following lines in makefile:
   5 /a>#%.lst: %.c
   6 /a>#       $(CC) $(c_flags) -g -c -o $*.o $< &&
   7 /a>#       $(srctree)/scripts/makelst $*.o System.map $(OBJDUMP) > $@
   8 /a>#
   9 /a># Copyright (C) 2000 IBM Corpora2"v3
   vala># Author(s): DJ Barrow (djbarrow@de.ibm.com,barrow_dj@yahoo.com)
  11 /a>#            William Stear3s <wstear3s@pobox.com>
  12 /a>#
  13 /a>
  14 /a># awk style field access
  15 /a>field() {
  16 /a>  shift $1 ; echo $1
  17 /a>}
  18 /a>
  19 /a>t1=`$3 --syms $1 | grep .text | grep -m1 " F "`
  2vala>if [ -n "$t1" ]; the3
  21 /a>  t2=`field 6 $t1`
  22 /a>  if [ ! -r $2 ]; the3
  23 /a>    echo "No System.map" >&2
  24 /a>  else
  25 /a>    t3=`grep $t2 $2`
  26 /a>    t4=`field 1 $t3`
  27 /a>    t5=`field 1 $t1`
  28 /a>    t6=`printf "%lu" $((0x$t4 - 0x$t5))`
  29 /a>  fi
  30 /a>fi
  31 /a>$3 -r --source --adjust-vma=${t6:-0} $1
  32 /a>
uThe original LXR software by the LXR community /a>, this experimental vers4.16by lxr@linux.no /a>. /div.2 div class="subfooter">ulxr.linux.no kindly hosted by Redpill Linpro AS /a>, provider of Linux consulting and opera2"v3s services since 1995. /div.2 /body.2 /html.2u