blob: 68615b96158eca0fd6c5358a0dfb3e24d5fa8a35 [file] [log] [blame]
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00001#! /bin/sh
Roland McGrath059c83e2008-02-21 06:19:39 +00002# Copyright (C) 2005, 2007, 2008 Red Hat, Inc.
Mark Wielaardde2ed972012-06-05 17:15:16 +02003# This file is part of elfutils.
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00004# Written by Ulrich Drepper <drepper@redhat.com>, 2005.
Roland McGrath6d0c2e82006-04-05 00:59:43 +00005#
Mark Wielaardde2ed972012-06-05 17:15:16 +02006# This file is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 3 of the License, or
9# (at your option) any later version.
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000010#
Mark Wielaardde2ed972012-06-05 17:15:16 +020011# elfutils is distributed in the hope that it will be useful, but
Ulrich Drepper361df7d2006-04-04 21:38:57 +000012# WITHOUT ANY WARRANTY; without even the implied warranty of
Mark Wielaardde2ed972012-06-05 17:15:16 +020013# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000015#
Mark Wielaardde2ed972012-06-05 17:15:16 +020016# You should have received a copy of the GNU General Public License
17# along with this program. If not, see <http://www.gnu.org/licenses/>.
Ulrich Drepper361df7d2006-04-04 21:38:57 +000018
Roland McGrath1b8b4462005-11-16 01:33:38 +000019. $srcdir/test-subr.sh
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000020
Roland McGrath1b8b4462005-11-16 01:33:38 +000021testfiles testfile18
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000022
Mark Wielaard86be7922013-04-26 23:44:25 +020023testrun_compare ${abs_top_builddir}/src/elflint --gnu-ld testfile18 <<\EOF
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000024section [ 8] '.rela.dyn': relocation 1: copy relocation against symbol of type FUNC
25EOF
26
Ulrich Drepperaa915fd2007-02-05 07:25:33 +000027testfiles testfile32
Mark Wielaard86be7922013-04-26 23:44:25 +020028testrun ${abs_top_builddir}/src/elflint -q testfile32
Ulrich Drepperaa915fd2007-02-05 07:25:33 +000029
30testfiles testfile33
Mark Wielaard86be7922013-04-26 23:44:25 +020031testrun ${abs_top_builddir}/src/elflint -q testfile33
Ulrich Drepperaa915fd2007-02-05 07:25:33 +000032
Ulrich Drepperb597dfa2007-10-16 05:21:27 +000033testfiles testfile42
Mark Wielaard86be7922013-04-26 23:44:25 +020034testrun ${abs_top_builddir}/src/elflint -q --gnu-ld testfile42
Ulrich Drepperb597dfa2007-10-16 05:21:27 +000035
Roland McGrath658094a2008-02-22 08:14:07 +000036testfiles testfile46
Mark Wielaard86be7922013-04-26 23:44:25 +020037testrun ${abs_top_builddir}/src/elflint -q testfile46
Roland McGrath059c83e2008-02-21 06:19:39 +000038
Mark Wielaard191d1f02012-04-02 17:11:25 +020039# see also run-readelf-d.sh
40testfiles testlib_dynseg.so
Mark Wielaard86be7922013-04-26 23:44:25 +020041testrun ${abs_top_builddir}/src/elflint -q --gnu-ld testlib_dynseg.so
Mark Wielaard191d1f02012-04-02 17:11:25 +020042
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000043exit 0