blob: 68615b96158eca0fd6c5358a0dfb3e24d5fa8a35 [file] [log] [blame]
Elliott Hughes03333822015-02-18 22:19:45 -08001#! /bin/sh
2# Copyright (C) 2005, 2007, 2008 Red Hat, Inc.
3# This file is part of elfutils.
4# Written by Ulrich Drepper <drepper@redhat.com>, 2005.
5#
6# 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.
10#
11# elfutils is distributed in the hope that it will be useful, but
12# WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
16# 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/>.
18
19. $srcdir/test-subr.sh
20
21testfiles testfile18
22
23testrun_compare ${abs_top_builddir}/src/elflint --gnu-ld testfile18 <<\EOF
24section [ 8] '.rela.dyn': relocation 1: copy relocation against symbol of type FUNC
25EOF
26
27testfiles testfile32
28testrun ${abs_top_builddir}/src/elflint -q testfile32
29
30testfiles testfile33
31testrun ${abs_top_builddir}/src/elflint -q testfile33
32
33testfiles testfile42
34testrun ${abs_top_builddir}/src/elflint -q --gnu-ld testfile42
35
36testfiles testfile46
37testrun ${abs_top_builddir}/src/elflint -q testfile46
38
39# see also run-readelf-d.sh
40testfiles testlib_dynseg.so
41testrun ${abs_top_builddir}/src/elflint -q --gnu-ld testlib_dynseg.so
42
43exit 0