1*7304104dSAndroid Build Coastguard Worker#! /bin/sh 2*7304104dSAndroid Build Coastguard Worker# Copyright (C) 2005 Red Hat, Inc. 3*7304104dSAndroid Build Coastguard Worker# This file is part of elfutils. 4*7304104dSAndroid Build Coastguard Worker# 5*7304104dSAndroid Build Coastguard Worker# This file is free software; you can redistribute it and/or modify 6*7304104dSAndroid Build Coastguard Worker# it under the terms of the GNU General Public License as published by 7*7304104dSAndroid Build Coastguard Worker# the Free Software Foundation; either version 3 of the License, or 8*7304104dSAndroid Build Coastguard Worker# (at your option) any later version. 9*7304104dSAndroid Build Coastguard Worker# 10*7304104dSAndroid Build Coastguard Worker# elfutils is distributed in the hope that it will be useful, but 11*7304104dSAndroid Build Coastguard Worker# WITHOUT ANY WARRANTY; without even the implied warranty of 12*7304104dSAndroid Build Coastguard Worker# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13*7304104dSAndroid Build Coastguard Worker# GNU General Public License for more details. 14*7304104dSAndroid Build Coastguard Worker# 15*7304104dSAndroid Build Coastguard Worker# You should have received a copy of the GNU General Public License 16*7304104dSAndroid Build Coastguard Worker# along with this program. If not, see <http://www.gnu.org/licenses/>. 17*7304104dSAndroid Build Coastguard Worker 18*7304104dSAndroid Build Coastguard Worker. $srcdir/test-subr.sh 19*7304104dSAndroid Build Coastguard Worker 20*7304104dSAndroid Build Coastguard Workertestfiles testfile testfile11 testfile22 testfile24 \ 21*7304104dSAndroid Build Coastguard Worker testfile25 testfile3 testfile4 testfile5 testfile6 22*7304104dSAndroid Build Coastguard Worker 23*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_builddir}/find-prologues -e testfile <<\EOF 24*7304104dSAndroid Build Coastguard Workermain 0x000000000804842c 0x0000000008048432 25*7304104dSAndroid Build Coastguard Workerbar 0x000000000804845c 0x000000000804845f 26*7304104dSAndroid Build Coastguard Workerfoo 0x0000000008048468 0x000000000804846b 27*7304104dSAndroid Build Coastguard WorkerEOF 28*7304104dSAndroid Build Coastguard Worker 29*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_builddir}/find-prologues -e testfile11 <<\EOF 30*7304104dSAndroid Build Coastguard Workermain 0x00000000080489b8 0x00000000080489cd 31*7304104dSAndroid Build Coastguard Workergnu_obj_2 0x0000000008048c9e 0x0000000008048ca4 32*7304104dSAndroid Build Coastguard Workergnu_obj_3 0x0000000008048cd8 0x0000000008048cde 33*7304104dSAndroid Build Coastguard Workergnu_obj_2 0x0000000008048cf4 0x0000000008048cfa 34*7304104dSAndroid Build Coastguard Worker~invalid_argument 0x0000000008048d2e 0x0000000008048d34 35*7304104dSAndroid Build Coastguard Workergnu_obj_1 0x0000000008048d62 0x0000000008048d65 36*7304104dSAndroid Build Coastguard Workergnu_obj_1 0x0000000008048d8a 0x0000000008048d8d 37*7304104dSAndroid Build Coastguard Worker~invalid_argument 0x0000000008048db2 0x0000000008048db8 38*7304104dSAndroid Build Coastguard WorkerEOF 39*7304104dSAndroid Build Coastguard Worker 40*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_builddir}/find-prologues -e testfile22 <<\EOF 41*7304104dSAndroid Build Coastguard Workerfunction 0x0000000008048348 0x000000000804834e 42*7304104dSAndroid Build Coastguard Workermain 0x000000000804835b 0x0000000008048377 43*7304104dSAndroid Build Coastguard WorkerEOF 44*7304104dSAndroid Build Coastguard Worker 45*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_builddir}/find-prologues -e testfile24 <<\EOF 46*7304104dSAndroid Build Coastguard Workerincr 0x0000000008048348 0x000000000804834e 47*7304104dSAndroid Build Coastguard Workermain 0x0000000008048354 0x0000000008048360 48*7304104dSAndroid Build Coastguard WorkerEOF 49*7304104dSAndroid Build Coastguard Worker 50*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_builddir}/find-prologues -e testfile25 <<\EOF 51*7304104dSAndroid Build Coastguard Workerincr 0x0000000008048348 0x000000000804834c 52*7304104dSAndroid Build Coastguard WorkerEOF 53*7304104dSAndroid Build Coastguard Worker 54*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_builddir}/find-prologues -e testfile3 <<\EOF 55*7304104dSAndroid Build Coastguard Workermain 0x000000000804842c 0x0000000008048433 56*7304104dSAndroid Build Coastguard Workerbar 0x0000000008048458 0x000000000804845b 57*7304104dSAndroid Build Coastguard Workerfoo 0x0000000008048464 0x0000000008048467 58*7304104dSAndroid Build Coastguard WorkerEOF 59*7304104dSAndroid Build Coastguard Worker 60*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_builddir}/find-prologues -e testfile4 <<\EOF 61*7304104dSAndroid Build Coastguard Workerget 0x00000000080493fc 0x0000000008049402 62*7304104dSAndroid Build Coastguard Workermain 0x0000000008049498 0x000000000804949e 63*7304104dSAndroid Build Coastguard Workera 0x000000000804d85c 0x000000000804d85c 64*7304104dSAndroid Build Coastguard Worker__tfPCc 0x000000000804d86c 0x000000000804d872 65*7304104dSAndroid Build Coastguard Worker__tfCc 0x000000000804d8a4 0x000000000804d8a4 66*7304104dSAndroid Build Coastguard WorkerEOF 67*7304104dSAndroid Build Coastguard Worker 68*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_builddir}/find-prologues -e testfile5 <<\EOF 69*7304104dSAndroid Build Coastguard Workerbar 0x000000000804842c 0x000000000804842f 70*7304104dSAndroid Build Coastguard Workerfoo 0x0000000008048438 0x000000000804843b 71*7304104dSAndroid Build Coastguard Workermain 0x0000000008048444 0x000000000804844a 72*7304104dSAndroid Build Coastguard WorkerEOF 73*7304104dSAndroid Build Coastguard Worker 74*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_builddir}/find-prologues -e testfile6 <<\EOF 75*7304104dSAndroid Build Coastguard Workermain 0x00000000080489b8 0x00000000080489cd 76*7304104dSAndroid Build Coastguard Workergnu_obj_2 0x0000000008048c9e 0x0000000008048ca4 77*7304104dSAndroid Build Coastguard Workergnu_obj_3 0x0000000008048cd8 0x0000000008048cde 78*7304104dSAndroid Build Coastguard Workergnu_obj_2 0x0000000008048cf4 0x0000000008048cfa 79*7304104dSAndroid Build Coastguard Worker~invalid_argument 0x0000000008048d2e 0x0000000008048d34 80*7304104dSAndroid Build Coastguard Workergnu_obj_1 0x0000000008048d62 0x0000000008048d65 81*7304104dSAndroid Build Coastguard Workergnu_obj_1 0x0000000008048d8a 0x0000000008048d8d 82*7304104dSAndroid Build Coastguard Worker~invalid_argument 0x0000000008048db2 0x0000000008048db8 83*7304104dSAndroid Build Coastguard WorkerEOF 84*7304104dSAndroid Build Coastguard Worker 85*7304104dSAndroid Build Coastguard Workerexit 0 86