makelst

来自「ZD1211 source code, based on linux 2.44 」· 代码 · 共 23 行

TXT
23
字号
#!/bin/bash# A script to dump mixed source code & assembly# with correct relocations from System.map# Requires the following lines in Rules.make.# Author(s): DJ Barrow (djbarrow@de.ibm.com,barrow_dj@yahoo.com) #            William Stearns <wstearns@pobox.com>#%.lst: %.c#	$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(CFLAGS_$@) -g -c -o $*.o $<#	$(TOPDIR)/scripts/makelst $* $(TOPDIR) $(OBJDUMP)##    Copyright (C) 2000 IBM Corporation#    Author(s): DJ Barrow (djbarrow@de.ibm.com,barrow_dj@yahoo.com) #t1=`$3 --syms $2/$1.o | grep .text | grep " F " | head -n 1`t2=`echo $t1 | gawk '{ print $6 }'`t3=`grep $t2 $2/System.map`t4=`echo $t3 | gawk '{ print $1 }'`t5=`echo $t1 | gawk '{ print $1 }'`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`t7=`( echo  ibase=16 ; echo $t6 ) | bc`$3 --source --adjust-vma=$t7 $2/$1.o > $2/$1.lst

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?