diff options
| author | Mark Wielaard <[email protected]> | 2012-06-06 10:57:48 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2012-06-06 10:59:19 +0200 |
| commit | 236f2f5f2122b2e1981f2e6f3ac2e7047b44d907 (patch) | |
| tree | 79018260dfdd0e79e4ef7706d4e988898f87e44e /tests | |
| parent | 99cd353bdb68e74d5dad5869b2fa6b4a4aaefd72 (diff) | |
| parent | de2ed97f33139af5c7a0811e4ec66fc896a13cf2 (diff) | |
Merge branch 'master' into dwarf
Signed-off-by: Richard Fontana <[email protected]>
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'tests')
126 files changed, 1880 insertions, 2507 deletions
diff --git a/tests/.cvsignore b/tests/.cvsignore deleted file mode 100644 index 70845e08..00000000 --- a/tests/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -Makefile.in diff --git a/tests/ChangeLog b/tests/ChangeLog index 271096a5..76b07097 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,105 @@ +2012-05-11 Mark Wielaard <[email protected]> + + * Makefile.am (TESTS_ENVIRONMENT): Set LC_ALL and LANG to C. + +2012-05-07 Mark Wielaard <[email protected]> + + * low_high_pc.c: Allow highpc == lowpc for CU DIEs for buggy GCC. + +2012-04-27 Mark Wielaard <[email protected]> + + * Makefile.am (TESTS): Add run-low_high_pc.sh + (EXTRA_DIST): Add run-low_high_pc.sh and testfile_low_high_pc.bz2 + (noinst_PROGRAMS): Add low_high_pc. + (low_high_pc_LDADD): New variable. + * low_high_pc.c: New test. + +2012-04-26 Mark Wielaard <[email protected]> + + * Makefile.am (EXTRA_DIST): Remove run-show-ciefde.sh. + * run-show-ciefde.sh: Removed old libdwarf test. + * show-ciefde.c: Likewise. + +2012-04-02 Mark Wielaard <[email protected]> + + * Makefile.am (TESTS): Add run-unstrip-n.sh. + (EXTRA_DIST): Add testcore-rtlib.bz2 and run-unstrip-n.sh. + * run-unstrip-n.sh: New test. + * testcore-rtlib.bz2: New testfile. + +2012-04-02 Mark Wielaard <[email protected]> + + * Makefile.am (TESTS): Add run-readelf-d.sh. + (EXTRA_DIST): Add testlib_dynseg.so.bz2 and run-readelf-d.sh. + * run-readelf-d.sh: New test. + * run-elflint-test.sh: Check new testfile. + +2012-03-21 Tom Tromey <[email protected]> + + * typeiter.c: New file. + * run-typeiter.sh: New file. + * testfile59.bz2: New file. + * Makefile.am (noinst_PROGRAMS): Add typeiter. + (TESTS): Add run-typeiter.sh. + (EXTRA_DIST): Add run-typeiter.sh, testfile59.bz2. + (typeiter_LDADD): New variable. + +2012-02-21 Kurt Roeckx <[email protected]> + + * run-alldts.sh: testrun ./alldts. + +2012-02-21 Roland McGrath <[email protected]> + + * test-wrapper.sh: Add ${libdir}/elfutils to LD_LIBRARY_PATH. + * test-subr.sh (installed_testrun): Likewise. + +2012-01-18 Roland McGrath <[email protected]> + + * asm-tst4.c (main): Don't set LD_LIBRARY_PATH in system invocation; + it will have been inherited correctly from the test harness. + * asm-tst5.c (main): Likewise. + * asm-tst6.c (main): Likewise. + Reported by Serge Pavlov <[email protected]>. + +2011-07-09 Roland McGrath <[email protected]> + + * sha1-tst.c: File removed. + * Makefile.am (noinst_PROGRAMS, TESTS): Remove it. + (sha1_tst_LDADD): Variable removed. + + * md5-sha1-test.c: New file. + * Makefile.am [!STANDALONE] (noinst_PROGRAMS, TESTS): Add it. + (md5_sha1_test_LDADD): New variable. + +2011-05-30 Mark Wielaard <[email protected]> + + * Makefile.am (EXTRA_DIST): Add run-readelf-twofiles.sh and + run-rerequest_tag.sh + +2011-05-24 Mark Wielaard <[email protected]> + + * Makefile.am (EXTRA_DIST): Add hello_s390.ko.bz2. + * run-strip-reloc.sh: Add hello_s390.ko testcase. + * hello_s390.ko.bz2: New test file. + +2011-05-23 Mark Wielaard <[email protected]> + + * Makefile.am (TESTS): Add run-strip-reloc.sh. + (EXTRA_DIST): Add run-strip-reloc.sh, hello_i386.ko.bz2 + hello_x86_64.ko.bz2 and hello_ppc64.ko.bz2 + * run-strip-reloc.sh: New test. + * hello_i386.ko.bz2: New test file. + * hello_x86_64.ko.bz2: Likewise. + * hello_ppc64.ko.bz2: Likewise. + +2011-05-18 Mark Wielaard <[email protected]> + + * run-strip-groups.sh: New test. + * testfile58.bz2: New test file. + * Makefile.am (EXTRA_DIST): Add testfile58.bz2. + (TESTS): Add run-strip-groups.sh. + (EXTRA_DIST): Likewise. + 2011-03-28 Marek Polacek <[email protected]> * alldts.c: New file. diff --git a/tests/Makefile.am b/tests/Makefile.am index b60e4cc9..3f75e1be 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,28 +1,20 @@ ## Process this file with automake to create Makefile.in ## -## Copyright (C) 1996-2011 Red Hat, Inc. -## This file is part of Red Hat elfutils. +## Copyright (C) 1996-2012 Red Hat, Inc. +## This file is part of elfutils. ## -## Red Hat elfutils is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by the -## Free Software Foundation; version 2 of the License. +## This file is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 3 of the License, or +## (at your option) any later version. ## -## Red Hat elfutils is distributed in the hope that it will be useful, but +## elfutils is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -## General Public License for more details. +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. ## -## You should have received a copy of the GNU General Public License along -## with Red Hat elfutils; if not, write to the Free Software Foundation, -## Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -## -## Red Hat elfutils is an included package of the Open Invention Network. -## An included package of the Open Invention Network is a package for which -## Open Invention Network licensees cross-license their patents. No patent -## license is granted, either expressly or impliedly, by designation as an -## included package. Should you wish to participate in the Open Invention -## Network licensing program, please visit www.openinventionnetwork.com -## <http://www.openinventionnetwork.com>. +## You should have received a copy of the GNU General Public License +## along with this program. If not, see <http://www.gnu.org/licenses/>. ## include $(top_srcdir)/config/eu.am if MUDFLAP @@ -61,8 +53,7 @@ noinst_PROGRAMS = arextract arsymtest newfile saridx scnnames sectiondump \ dwfl-bug-getmodules dwarf-getmacros addrcfi \ dwarf-print dwarf_edit dwarf_edit_output \ test-flag-nobits dwarf-getstring rerequest_tag \ - alldts - + alldts md5-sha1-test typeiter low_high_pc asm_TESTS = asm-tst1 asm-tst2 asm-tst3 asm-tst4 asm-tst5 \ asm-tst6 asm-tst7 asm-tst8 asm-tst9 @@ -74,6 +65,7 @@ TESTS = run-arextract.sh run-arsymtest.sh newfile test-nlist \ newscn run-strip-test.sh run-strip-test2.sh \ run-strip-test3.sh run-strip-test4.sh run-strip-test5.sh \ run-strip-test6.sh run-strip-test7.sh run-strip-test8.sh \ + run-strip-groups.sh run-strip-reloc.sh \ run-unstrip-test.sh run-unstrip-test2.sh \ run-ecp-test.sh run-ecp-test2.sh run-alldts.sh \ run-elflint-test.sh run-elflint-self.sh run-ranlib-test.sh \ @@ -91,14 +83,14 @@ TESTS = run-arextract.sh run-arsymtest.sh newfile test-nlist \ run-dwarf-attributes.sh \ run-dwarf_edit.sh dwarf_edit_output \ run-test-flag-nobits.sh run-prelink-addr-test.sh \ - run-dwarf-getstring.sh run-rerequest_tag.sh \ + run-dwarf-getstring.sh run-rerequest_tag.sh run-typeiter.sh\ run-dwarflint-self.sh \ - run-dwarfcmp-self.sh run-dwarfcmp-test-self.sh -# run-show-ciefde.sh + run-dwarfcmp-self.sh run-dwarfcmp-test-self.sh \ + run-readelf-d.sh run-unstrip-n.sh run-low_high_pc.sh if !STANDALONE -noinst_PROGRAMS += msg_tst sha1-tst -TESTS += msg_tst sha1-tst +noinst_PROGRAMS += msg_tst md5-sha1-test +TESTS += msg_tst md5-sha1-test endif if HAVE_LIBASM @@ -110,7 +102,7 @@ endif EXTRA_DIST = run-arextract.sh run-arsymtest.sh \ run-show-die-info.sh run-get-files.sh run-get-lines.sh \ run-get-pubnames.sh run-get-aranges.sh \ - run-show-ciefde.sh run-show-abbrev.sh run-strip-test.sh \ + run-show-abbrev.sh run-strip-test.sh \ run-strip-test2.sh run-ecp-test.sh run-ecp-test2.sh \ testfile.bz2 testfile2.bz2 testfile3.bz2 testfile4.bz2 \ testfile5.bz2 testfile6.bz2 testfile7.bz2 testfile8.bz2 \ @@ -118,7 +110,9 @@ EXTRA_DIST = run-arextract.sh run-arsymtest.sh \ testfile13.bz2 run-strip-test3.sh run-allfcts.sh \ run-line2addr.sh run-elflint-test.sh testfile14.bz2 \ run-strip-test4.sh run-strip-test5.sh run-strip-test6.sh \ - run-strip-test7.sh run-strip-test8.sh \ + run-strip-test7.sh run-strip-test8.sh run-strip-groups.sh \ + run-strip-reloc.sh hello_i386.ko.bz2 hello_x86_64.ko.bz2 \ + hello_ppc64.ko.bz2 hello_s390.ko.bz2 \ run-unstrip-test.sh run-unstrip-test2.sh \ run-elflint-self.sh run-ranlib-test.sh run-ranlib-test2.sh \ run-ranlib-test3.sh run-ranlib-test4.sh \ @@ -129,7 +123,7 @@ EXTRA_DIST = run-arextract.sh run-arsymtest.sh \ run-dwarf-getmacros.sh run-test-flag-nobits.sh \ run-dwarfcmp-self.sh run-dwarfcmp-test-self.sh \ run-dwarflint-self.sh run-dwarf-attributes.sh run-dwarf_edit.sh \ - run-dwarf-getstring.sh run-alldts.sh \ + run-dwarf-getstring.sh run-rerequest_tag.sh run-alldts.sh \ testfile15.bz2 testfile15.debug.bz2 \ testfile16.bz2 testfile16.debug.bz2 \ testfile17.bz2 testfile17.debug.bz2 \ @@ -140,7 +134,7 @@ EXTRA_DIST = run-arextract.sh run-arsymtest.sh \ testfile26.bz2 testfile27.bz2 \ coverage.sh test-subr.sh test-wrapper.sh \ run-readelf-test1.sh run-readelf-test2.sh run-readelf-test3.sh \ - run-readelf-test4.sh \ + run-readelf-test4.sh run-readelf-twofiles.sh \ run-bug1-test.sh testfile28.bz2 testfile28.rdwr.bz2 \ testfile29.bz2 testfile29.rdwr.bz2 \ testfile30.bz2 testfile31.bz2 testfile32.bz2 testfile33.bz2 \ @@ -168,17 +162,22 @@ EXTRA_DIST = run-arextract.sh run-arsymtest.sh \ testfile55-32.bz2 testfile55-32.debug.bz2 \ testfile55-32.prelink.bz2 testfile55-64.bz2 \ testfile55-64.debug.bz2 testfile55-64.prelink.bz2 \ - testfile56.bz2 testfile57.bz2 + testfile56.bz2 testfile57.bz2 testfile58.bz2 \ + run-typeiter.sh testfile59.bz2 \ + run-readelf-d.sh testlib_dynseg.so.bz2 \ + run-unstrip-n.sh testcore-rtlib.bz2 \ + run-low_high_pc.sh testfile_low_high_pc.bz2 installed_TESTS_ENVIRONMENT = libdir=$(DESTDIR)$(libdir) \ bindir=$(DESTDIR)$(bindir) \ + LC_ALL=C LANG=C \ $(srcdir)/test-wrapper.sh \ installed $(tests_rpath) \ $(program_transform_name) if STANDALONE TESTS_ENVIRONMENT = $(installed_TESTS_ENVIRONMENT) else !STANDALONE -TESTS_ENVIRONMENT = $(srcdir)/test-wrapper.sh \ +TESTS_ENVIRONMENT = LC_ALL=C LANG=C $(srcdir)/test-wrapper.sh \ ../libdw:../backends:../libelf:../libasm installcheck-local: @@ -270,13 +269,15 @@ dwfl_bug_fd_leak_LDADD = $(libdw) $(libebl) $(libelf) $(libmudflap) -ldl dwfl_bug_report_LDADD = $(libdw) $(libebl) $(libelf) $(libmudflap) -ldl dwfl_bug_getmodules_LDADD = $(libdw) $(libebl) $(libelf) $(libmudflap) -ldl dwfl_addr_sect_LDADD = $(libdw) $(libebl) $(libelf) $(libmudflap) -ldl -sha1_tst_LDADD = $(libeu) $(libmudflap) dwarf_getmacros_LDADD = $(libdw) $(libmudflap) dwarf_getstring_LDADD = $(libdw) $(libmudflap) addrcfi_LDADD = $(libdw) $(libebl) $(libelf) $(libmudflap) -ldl test_flag_nobits_LDADD = $(libelf) $(libmudflap) rerequest_tag_LDADD = $(libdw) $(libmudflap) alldts_LDADD = $(libebl) $(libelf) $(libmudflap) +md5_sha1_test_LDADD = $(libeu) +typeiter_LDADD = $(libdw) $(libelf) $(libmudflap) +low_high_pc_LDADD = $(libdw) $(libelf) $(libmudflap) if GCOV check: check-am coverage diff --git a/tests/addrcfi.c b/tests/addrcfi.c index 4e042418..bc8bc32b 100644 --- a/tests/addrcfi.c +++ b/tests/addrcfi.c @@ -1,27 +1,19 @@ /* Test program for CFI handling. Copyright (C) 2009-2010 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <config.h> #include <assert.h> diff --git a/tests/addrscopes.c b/tests/addrscopes.c index 3394cd29..fca61d33 100644 --- a/tests/addrscopes.c +++ b/tests/addrscopes.c @@ -1,27 +1,19 @@ /* Test program for dwarf_getscopes. Copyright (C) 2005 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <config.h> #include <assert.h> diff --git a/tests/alldts.c b/tests/alldts.c index ed7624a7..378aa412 100644 --- a/tests/alldts.c +++ b/tests/alldts.c @@ -1,28 +1,20 @@ /* Create an ELF file with all the DT_* flags set. Copyright (C) 2011 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. Written by Marek Polacek <[email protected]>, 2011. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifdef HAVE_CONFIG_H # include <config.h> diff --git a/tests/allfcts.c b/tests/allfcts.c index 5fed8148..f14b4935 100644 --- a/tests/allfcts.c +++ b/tests/allfcts.c @@ -1,26 +1,18 @@ /* Copyright (C) 2005 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifdef HAVE_CONFIG_H # include <config.h> diff --git a/tests/allregs.c b/tests/allregs.c index f1856dfd..b30d8999 100644 --- a/tests/allregs.c +++ b/tests/allregs.c @@ -1,26 +1,18 @@ /* Copyright (C) 2005, 2006 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifdef HAVE_CONFIG_H # include <config.h> diff --git a/tests/arextract.c b/tests/arextract.c index 5bc4f274..21850b6c 100644 --- a/tests/arextract.c +++ b/tests/arextract.c @@ -1,27 +1,19 @@ /* Copyright (C) 1999, 2000, 2002 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 1999. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifdef HAVE_CONFIG_H # include <config.h> diff --git a/tests/arls.c b/tests/arls.c index 79b867da..cd8e4b81 100644 --- a/tests/arls.c +++ b/tests/arls.c @@ -1,3 +1,19 @@ +/* Copyright (C) 2007 Red Hat, Inc. + This file is part of elfutils. + + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + elfutils is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ + #include <ar.h> #include <fcntl.h> #include <libelf.h> diff --git a/tests/arsymtest.c b/tests/arsymtest.c index 86d82cf6..c724863f 100644 --- a/tests/arsymtest.c +++ b/tests/arsymtest.c @@ -1,27 +1,19 @@ /* Copyright (C) 1999, 2000, 2002 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 1999. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <config.h> diff --git a/tests/asm-tst1.c b/tests/asm-tst1.c index 123346a3..f611d66b 100644 --- a/tests/asm-tst1.c +++ b/tests/asm-tst1.c @@ -1,27 +1,19 @@ /* Copyright (C) 2002, 2005 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 2002. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifdef HAVE_CONFIG_H # include <config.h> diff --git a/tests/asm-tst2.c b/tests/asm-tst2.c index 7caaf362..41bf13ae 100644 --- a/tests/asm-tst2.c +++ b/tests/asm-tst2.c @@ -1,27 +1,19 @@ /* Copyright (C) 2002, 2005 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 2002. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifdef HAVE_CONFIG_H # include <config.h> diff --git a/tests/asm-tst3.c b/tests/asm-tst3.c index f38feeb1..acec1a48 100644 --- a/tests/asm-tst3.c +++ b/tests/asm-tst3.c @@ -1,27 +1,19 @@ /* Copyright (C) 2002, 2005 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 2002. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifdef HAVE_CONFIG_H # include <config.h> diff --git a/tests/asm-tst4.c b/tests/asm-tst4.c index 54d054c2..4788b79e 100644 --- a/tests/asm-tst4.c +++ b/tests/asm-tst4.c @@ -1,27 +1,19 @@ -/* Copyright (C) 2002, 2004, 2005 Red Hat, Inc. - This file is part of Red Hat elfutils. +/* Copyright (C) 2002-2012 Red Hat, Inc. + This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 2002. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifdef HAVE_CONFIG_H # include <config.h> @@ -101,8 +93,7 @@ main (void) } if (result == 0) - result = WEXITSTATUS (system ("\ -env LD_LIBRARY_PATH=../libelf ../src/elflint -q asm-tst4-out.o")); + result = WEXITSTATUS (system ("../src/elflint -q asm-tst4-out.o")); /* We don't need the file anymore. */ unlink (fname); diff --git a/tests/asm-tst5.c b/tests/asm-tst5.c index 2a8b3f02..d97d4be9 100644 --- a/tests/asm-tst5.c +++ b/tests/asm-tst5.c @@ -1,27 +1,19 @@ -/* Copyright (C) 2002, 2004, 2005 Red Hat, Inc. - This file is part of Red Hat elfutils. +/* Copyright (C) 2002-2012 Red Hat, Inc. + This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 2002. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifdef HAVE_CONFIG_H # include <config.h> @@ -113,8 +105,7 @@ main (void) } if (result == 0) - result = WEXITSTATUS (system ("\ -env LD_LIBRARY_PATH=../libelf ../src/elflint -q asm-tst5-out.o")); + result = WEXITSTATUS (system ("../src/elflint -q asm-tst5-out.o")); /* We don't need the file anymore. */ unlink (fname); diff --git a/tests/asm-tst6.c b/tests/asm-tst6.c index bd6a71df..35854d52 100644 --- a/tests/asm-tst6.c +++ b/tests/asm-tst6.c @@ -1,27 +1,19 @@ -/* Copyright (C) 2002, 2004, 2005 Red Hat, Inc. - This file is part of Red Hat elfutils. +/* Copyright (C) 2002-2012 Red Hat, Inc. + This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 2002. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifdef HAVE_CONFIG_H # include <config.h> @@ -147,8 +139,7 @@ main (void) } if (result == 0) - result = WEXITSTATUS (system ("\ -env LD_LIBRARY_PATH=../libelf ../src/elflint -q asm-tst6-out.o")); + result = WEXITSTATUS (system ("../src/elflint -q asm-tst6-out.o")); /* We don't need the file anymore. */ unlink (fname); diff --git a/tests/asm-tst7.c b/tests/asm-tst7.c index 329f03ba..a875eb4c 100644 --- a/tests/asm-tst7.c +++ b/tests/asm-tst7.c @@ -1,27 +1,19 @@ /* Copyright (C) 2002, 2005 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 2002. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifdef HAVE_CONFIG_H # include <config.h> diff --git a/tests/asm-tst8.c b/tests/asm-tst8.c index 19c7aa96..597c5cb3 100644 --- a/tests/asm-tst8.c +++ b/tests/asm-tst8.c @@ -1,27 +1,19 @@ /* Copyright (C) 2002, 2005 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 2002. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifdef HAVE_CONFIG_H # include <config.h> diff --git a/tests/asm-tst9.c b/tests/asm-tst9.c index ad252759..b9fcdd4d 100644 --- a/tests/asm-tst9.c +++ b/tests/asm-tst9.c @@ -1,27 +1,19 @@ /* Copyright (C) 2002-2010 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 2002. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifdef HAVE_CONFIG_H # include <config.h> diff --git a/tests/configure.ac b/tests/configure.ac index b5d888c1..c0dbd7c8 100644 --- a/tests/configure.ac +++ b/tests/configure.ac @@ -16,7 +16,7 @@ dnl You should have received a copy of the GNU General Public License dnl along with this program; if not, write to the Free Software Foundation, dnl Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. dnl -AC_INIT([Red Hat elfutils tests],[0.117], +AC_INIT([elfutils tests],[0.117], [http://bugzilla.redhat.com/bugzilla/], [elfutils-tests]) diff --git a/tests/dwarf-getmacros.c b/tests/dwarf-getmacros.c index 5c380976..7972edc9 100644 --- a/tests/dwarf-getmacros.c +++ b/tests/dwarf-getmacros.c @@ -1,27 +1,19 @@ /* Test program for dwfl_module_return_value_location. Copyright (C) 2009 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <config.h> #include ELFUTILS_HEADER(dw) diff --git a/tests/dwarf-getstring.c b/tests/dwarf-getstring.c index 66ab329d..b70c2a70 100644 --- a/tests/dwarf-getstring.c +++ b/tests/dwarf-getstring.c @@ -1,27 +1,19 @@ /* Copyright (C) 2011 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. Written by Marek Polacek <[email protected]>, 2011. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifdef HAVE_CONFIG_H # include <config.h> diff --git a/tests/dwfl-addr-sect.c b/tests/dwfl-addr-sect.c index 62d11541..21e470a3 100644 --- a/tests/dwfl-addr-sect.c +++ b/tests/dwfl-addr-sect.c @@ -1,27 +1,19 @@ /* Test program for libdwfl ... foo Copyright (C) 2007 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <config.h> #include <assert.h> diff --git a/tests/dwfl-bug-addr-overflow.c b/tests/dwfl-bug-addr-overflow.c index 0e875dac..aa8030e1 100644 --- a/tests/dwfl-bug-addr-overflow.c +++ b/tests/dwfl-bug-addr-overflow.c @@ -1,27 +1,19 @@ /* Test program for libdwfl basic module tracking, relocation. Copyright (C) 2007 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <config.h> #include <assert.h> diff --git a/tests/dwfl-bug-fd-leak.c b/tests/dwfl-bug-fd-leak.c index 37ff402e..170a61a7 100644 --- a/tests/dwfl-bug-fd-leak.c +++ b/tests/dwfl-bug-fd-leak.c @@ -1,27 +1,19 @@ /* Test program for libdwfl file decriptors leakage. Copyright (C) 2007, 2008 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <config.h> #include <assert.h> diff --git a/tests/dwfl-bug-getmodules.c b/tests/dwfl-bug-getmodules.c index f7042c02..1ee989f8 100644 --- a/tests/dwfl-bug-getmodules.c +++ b/tests/dwfl-bug-getmodules.c @@ -1,27 +1,19 @@ /* Test program for dwfl_getmodules bug. Copyright (C) 2008 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <config.h> #include ELFUTILS_HEADER(dwfl) diff --git a/tests/dwfl-bug-report.c b/tests/dwfl-bug-report.c index 459a41ae..80ff8066 100644 --- a/tests/dwfl-bug-report.c +++ b/tests/dwfl-bug-report.c @@ -1,27 +1,19 @@ /* Test program for dwfl_report_end bug. Copyright (C) 2007 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <config.h> #include ELFUTILS_HEADER(dwfl) diff --git a/tests/dwflmodtest.c b/tests/dwflmodtest.c index 94f960fa..0027f96b 100644 --- a/tests/dwflmodtest.c +++ b/tests/dwflmodtest.c @@ -1,27 +1,19 @@ /* Test program for libdwfl basic module tracking, relocation. Copyright (C) 2005, 2007 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <config.h> #include <assert.h> diff --git a/tests/early-offscn.c b/tests/early-offscn.c index 8778d506..924cb9ef 100644 --- a/tests/early-offscn.c +++ b/tests/early-offscn.c @@ -1,26 +1,18 @@ /* Copyright (C) 2008 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifdef HAVE_CONFIG_H # include <config.h> diff --git a/tests/ecp.c b/tests/ecp.c index 9d0a706e..39a48510 100644 --- a/tests/ecp.c +++ b/tests/ecp.c @@ -1,27 +1,19 @@ /* Copyright (C) 2002, 2005 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 2002. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <errno.h> #include <error.h> diff --git a/tests/find-prologues.c b/tests/find-prologues.c index c0e73d0d..ba8ae371 100644 --- a/tests/find-prologues.c +++ b/tests/find-prologues.c @@ -1,27 +1,19 @@ /* Test program for dwarf_entry_breakpoints. Copyright (C) 2005 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <config.h> #include <assert.h> diff --git a/tests/funcretval.c b/tests/funcretval.c index 3a8750f6..8d19d117 100644 --- a/tests/funcretval.c +++ b/tests/funcretval.c @@ -1,27 +1,19 @@ /* Test program for dwfl_module_return_value_location. Copyright (C) 2005 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <config.h> #include <assert.h> diff --git a/tests/funcscopes.c b/tests/funcscopes.c index 4b583698..720ff3b9 100644 --- a/tests/funcscopes.c +++ b/tests/funcscopes.c @@ -1,27 +1,19 @@ /* Test program for dwarf_getscopes. Copyright (C) 2005 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <config.h> #include <assert.h> diff --git a/tests/get-aranges.c b/tests/get-aranges.c index c6cd511a..7f85cdad 100644 --- a/tests/get-aranges.c +++ b/tests/get-aranges.c @@ -1,27 +1,19 @@ /* Copyright (C) 2002, 2004 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 2002. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifdef HAVE_CONFIG_H # include <config.h> diff --git a/tests/get-files.c b/tests/get-files.c index 81daea27..04091733 100644 --- a/tests/get-files.c +++ b/tests/get-files.c @@ -1,27 +1,19 @@ /* Copyright (C) 2002, 2004, 2005, 2007 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 2002. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifdef HAVE_CONFIG_H # include <config.h> diff --git a/tests/get-lines.c b/tests/get-lines.c index 45d2c8d1..c361a2c3 100644 --- a/tests/get-lines.c +++ b/tests/get-lines.c @@ -1,27 +1,19 @@ /* Copyright (C) 2002, 2004 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 2002. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifdef HAVE_CONFIG_H # include <config.h> diff --git a/tests/get-pubnames.c b/tests/get-pubnames.c index f1361c63..4777f49d 100644 --- a/tests/get-pubnames.c +++ b/tests/get-pubnames.c @@ -1,27 +1,19 @@ /* Copyright (C) 2002, 2005 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 2002. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifdef HAVE_CONFIG_H # include <config.h> diff --git a/tests/hash.c b/tests/hash.c index ab7efeb3..86b6ad85 100644 --- a/tests/hash.c +++ b/tests/hash.c @@ -1,27 +1,19 @@ /* Copyright (C) 2002 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 2002. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifdef HAVE_CONFIG_H # include <config.h> diff --git a/tests/hello_i386.ko.bz2 b/tests/hello_i386.ko.bz2 Binary files differnew file mode 100644 index 00000000..f89b292c --- /dev/null +++ b/tests/hello_i386.ko.bz2 diff --git a/tests/hello_ppc64.ko.bz2 b/tests/hello_ppc64.ko.bz2 Binary files differnew file mode 100644 index 00000000..f4d3ff20 --- /dev/null +++ b/tests/hello_ppc64.ko.bz2 diff --git a/tests/hello_s390.ko.bz2 b/tests/hello_s390.ko.bz2 Binary files differnew file mode 100644 index 00000000..41525bf5 --- /dev/null +++ b/tests/hello_s390.ko.bz2 diff --git a/tests/hello_x86_64.ko.bz2 b/tests/hello_x86_64.ko.bz2 Binary files differnew file mode 100644 index 00000000..ba06f91e --- /dev/null +++ b/tests/hello_x86_64.ko.bz2 diff --git a/tests/line2addr.c b/tests/line2addr.c index 5630da3c..e0d65d3d 100644 --- a/tests/line2addr.c +++ b/tests/line2addr.c @@ -1,26 +1,18 @@ /* Copyright (C) 2005 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifdef HAVE_CONFIG_H # include <config.h> diff --git a/tests/low_high_pc.c b/tests/low_high_pc.c new file mode 100644 index 00000000..ed21b8b1 --- /dev/null +++ b/tests/low_high_pc.c @@ -0,0 +1,109 @@ +/* Test program for dwarf_lowpc and dwarf_highpc + Copyright (C) 2012 Red Hat, Inc. + This file is part of elfutils. + + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + elfutils is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ + +#include <config.h> +#include <assert.h> +#include <inttypes.h> +#include ELFUTILS_HEADER(dwfl) +#include <dwarf.h> +#include <argp.h> +#include <stdio.h> +#include <stdio_ext.h> +#include <locale.h> +#include <stdlib.h> +#include <error.h> +#include <string.h> +#include <fnmatch.h> + +struct args +{ + Dwfl *dwfl; + Dwarf_Die *cu; + Dwarf_Addr dwbias; + char **argv; + const char *file; +}; + +static struct args *args; + +static void +fail(Dwarf_Off off, const char *name, const char *msg) +{ + printf("%s: [%lx] '%s' %s\n", args->file, off, name, msg); + exit(-1); +} + +static int +handle_die (Dwarf_Die *die, void *arg) +{ + args = arg; + Dwarf_Off off = dwarf_dieoffset (die); + + const char *name = dwarf_diename (die); + if (name == NULL) + fail (off, "<no name>", "die without a name"); + + Dwarf_Addr lowpc = 0; + Dwarf_Addr highpc = 0; + if (dwarf_lowpc (die, &lowpc) != 0 && dwarf_hasattr (die, DW_AT_low_pc)) + fail (off, name, "has DW_AT_low_pc but dwarf_lowpc fails"); + if (dwarf_highpc (die, &highpc) != 0 && dwarf_hasattr (die, DW_AT_high_pc)) + fail (off, name, "has DW_AT_high_pc but dwarf_highpc fails"); + + /* GCC < 4.7 had a bug where no code CUs got a highpc == lowpc. + Allow that, because it is not the main purpose of this test. */ + if (dwarf_hasattr (die, DW_AT_low_pc) + && dwarf_hasattr (die, DW_AT_high_pc) + && highpc <= lowpc + && ! (dwarf_tag (die) == DW_TAG_compile_unit && highpc == lowpc)) + { + printf("lowpc: %lx, highpc: %lx\n", lowpc, highpc); + fail (off, name, "highpc <= lowpc"); + } + + return 0; +} + + +int +main (int argc, char *argv[]) +{ + int remaining; + + /* Set locale. */ + (void) setlocale (LC_ALL, ""); + + struct args a = { .dwfl = NULL, .cu = NULL }; + + (void) argp_parse (dwfl_standard_argp (), argc, argv, 0, &remaining, + &a.dwfl); + assert (a.dwfl != NULL); + a.argv = &argv[remaining]; + + int result = 0; + + while ((a.cu = dwfl_nextcu (a.dwfl, a.cu, &a.dwbias)) != NULL) + { + a.file = dwarf_diename (a.cu); + handle_die (a.cu, &a); + dwarf_getfuncs (a.cu, &handle_die, &a, 0); + } + + dwfl_end (a.dwfl); + + return result; +} diff --git a/tests/md5-sha1-test.c b/tests/md5-sha1-test.c new file mode 100644 index 00000000..49de0785 --- /dev/null +++ b/tests/md5-sha1-test.c @@ -0,0 +1,101 @@ +/* Copyright (C) 2011 Red Hat, Inc. + This file is part of elfutils. + + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + elfutils is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ + +#ifdef HAVE_CONFIG_H +# include <config.h> +#endif + +#include <string.h> +#include <error.h> + +#include "md5.h" +#include "sha1.h" + +static const struct expected +{ + const char *sample; + const char *md5_expected; + const char *sha1_expected; +} tests[] = + { + { + "abc", + "\x90\x01\x50\x98\x3c\xd2\x4f\xb0\xd6\x96\x3f\x7d\x28\xe1\x7f\x72", + "\xa9\x99\x3e\x36\x47\x06\x81\x6a\xba\x3e" + "\x25\x71\x78\x50\xc2\x6c\x9c\xd0\xd8\x9d" + }, + { + "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", + "\x82\x15\xef\x07\x96\xa2\x0b\xca\xaa\xe1\x16\xd3\x87\x6c\x66\x4a", + "\x84\x98\x3e\x44\x1c\x3b\xd2\x6e\xba\xae" + "\x4a\xa1\xf9\x51\x29\xe5\xe5\x46\x70\xf1" + }, + { + "\0a", + "\x77\x07\xd6\xae\x4e\x02\x7c\x70\xee\xa2\xa9\x35\xc2\x29\x6f\x21", + "\x34\xaa\x97\x3c\xd4\xc4\xda\xa4\xf6\x1e" + "\xeb\x2b\xdb\xad\x27\x31\x65\x34\x01\x6f", + }, + { + "When in the Course of human events it becomes necessary", + "\x62\x6b\x5e\x22\xcd\x3d\x02\xea\x07\xde\xd4\x50\x62\x3d\xb9\x96", + "\x66\xc3\xc6\x8d\x62\x91\xc5\x1e\x63\x0c" + "\x85\xc8\x6c\xc4\x4b\x3a\x79\x3e\x07\x28", + }, + }; +#define NTESTS (sizeof tests / sizeof tests[0]) + +#define md5_size 16 +#define sha1_size 20 + +static const char md5_expected[] = + { + }; + +static const char sha1_expected[] = + { + }; + +#define TEST_HASH(ALGO, I) \ + { \ + struct ALGO##_ctx ctx; \ + uint32_t result_buffer[(ALGO##_size + 3) / 4]; \ + ALGO##_init_ctx (&ctx); \ + if (tests[I].sample[0] == '\0') \ + { \ + char input_buffer[1000]; \ + memset (input_buffer, tests[I].sample[1], sizeof input_buffer); \ + for (int rept = 0; rept < 1000; ++rept) \ + ALGO##_process_bytes (input_buffer, sizeof input_buffer, &ctx); \ + } \ + else \ + ALGO##_process_bytes (tests[I].sample, strlen (tests[I].sample), &ctx); \ + char *result = ALGO##_finish_ctx (&ctx, result_buffer); \ + if (result != (void *) result_buffer \ + || memcmp (result, tests[I].ALGO##_expected, ALGO##_size) != 0) \ + error (0, 0, #ALGO " test %zu failed", 1 + I); \ + } + +int +main (void) +{ + for (size_t i = 0; i < NTESTS; ++i) + { + TEST_HASH (md5, i); + TEST_HASH (sha1, i); + } + return error_message_count; +} diff --git a/tests/msg_tst.c b/tests/msg_tst.c index f2390962..10ff0f73 100644 --- a/tests/msg_tst.c +++ b/tests/msg_tst.c @@ -1,27 +1,19 @@ /* Copyright (C) 2002, 2005, 2006 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 2002. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <config.h> diff --git a/tests/newfile.c b/tests/newfile.c index f8b132f9..5eabdcb7 100644 --- a/tests/newfile.c +++ b/tests/newfile.c @@ -1,27 +1,19 @@ /* Copyright (C) 1999, 2000, 2001, 2002, 2005 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 1999. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <config.h> diff --git a/tests/newscn.c b/tests/newscn.c index 56eae971..466f2f68 100644 --- a/tests/newscn.c +++ b/tests/newscn.c @@ -1,26 +1,18 @@ /* Copyright (C) 1999, 2000, 2001, 2002, 2005 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifdef HAVE_CONFIG_H # include <config.h> diff --git a/tests/rdwrmmap.c b/tests/rdwrmmap.c index 263be0fd..95a4df35 100644 --- a/tests/rdwrmmap.c +++ b/tests/rdwrmmap.c @@ -1,3 +1,19 @@ +/* Copyright (C) 2006 Red Hat, Inc. + This file is part of elfutils. + + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + elfutils is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ + #include <errno.h> #include <error.h> #include <stdio.h> diff --git a/tests/rerequest_tag.c b/tests/rerequest_tag.c index bd76731e..d0bf5f24 100644 --- a/tests/rerequest_tag.c +++ b/tests/rerequest_tag.c @@ -1,26 +1,18 @@ /* Copyright (C) 2011 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <config.h> diff --git a/tests/run-addrname-test.sh b/tests/run-addrname-test.sh index d525523d..35316439 100755 --- a/tests/run-addrname-test.sh +++ b/tests/run-addrname-test.sh @@ -1,27 +1,19 @@ #! /bin/sh # Copyright (C) 2007, 2008 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-addrscopes.sh b/tests/run-addrscopes.sh index d13c55df..38b9d886 100755 --- a/tests/run-addrscopes.sh +++ b/tests/run-addrscopes.sh @@ -1,27 +1,19 @@ #! /bin/sh # Copyright (C) 2005 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-alldts.sh b/tests/run-alldts.sh index 327f2f14..d8b87c29 100755 --- a/tests/run-alldts.sh +++ b/tests/run-alldts.sh @@ -1,32 +1,24 @@ #! /bin/sh # Copyright (C) 2011 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh # This will produce "testfile-alldts" file -./alldts +testrun ./alldts testrun_compare ../src/readelf -d testfile-alldts <<\EOF diff --git a/tests/run-allfcts.sh b/tests/run-allfcts.sh index e990a63e..4d0ec61d 100755 --- a/tests/run-allfcts.sh +++ b/tests/run-allfcts.sh @@ -1,28 +1,20 @@ #! /bin/sh # Copyright (C) 2005 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # Written by Ulrich Drepper <[email protected]>, 2005. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-allregs.sh b/tests/run-allregs.sh index 7ebaa719..cc483429 100755 --- a/tests/run-allregs.sh +++ b/tests/run-allregs.sh @@ -1,27 +1,19 @@ #! /bin/sh # Copyright (C) 2005, 2006, 2007 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-arextract.sh b/tests/run-arextract.sh index 29119a13..668b3636 100755 --- a/tests/run-arextract.sh +++ b/tests/run-arextract.sh @@ -1,28 +1,20 @@ #! /bin/sh # Copyright (C) 1999, 2000, 2002, 2005, 2006 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # Written by Ulrich Drepper <[email protected]>, 1999. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-arsymtest.sh b/tests/run-arsymtest.sh index d47df7a7..89c78219 100755 --- a/tests/run-arsymtest.sh +++ b/tests/run-arsymtest.sh @@ -1,28 +1,20 @@ #! /bin/sh # Copyright (C) 1999, 2000, 2002, 2006 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # Written by Ulrich Drepper <[email protected]>, 1999. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-bug1-test.sh b/tests/run-bug1-test.sh index 7367a4ed..f6510518 100755 --- a/tests/run-bug1-test.sh +++ b/tests/run-bug1-test.sh @@ -2,26 +2,18 @@ # Copyright (C) 2006 Red Hat, Inc. # Written by Ulrich Drepper <[email protected]>, 2006. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-disasm-x86-64.sh b/tests/run-disasm-x86-64.sh index 01803c0a..96e14d91 100755 --- a/tests/run-disasm-x86-64.sh +++ b/tests/run-disasm-x86-64.sh @@ -1,27 +1,19 @@ #! /bin/sh # Copyright (C) 2007, 2008 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-disasm-x86.sh b/tests/run-disasm-x86.sh index efd734c0..399664c8 100755 --- a/tests/run-disasm-x86.sh +++ b/tests/run-disasm-x86.sh @@ -1,27 +1,19 @@ #! /bin/sh # Copyright (C) 2007, 2008 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-dwarf-getmacros.sh b/tests/run-dwarf-getmacros.sh index d29c5349..b748b0f5 100755 --- a/tests/run-dwarf-getmacros.sh +++ b/tests/run-dwarf-getmacros.sh @@ -1,27 +1,19 @@ #! /bin/sh # Copyright (C) 2009 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-dwarf-getstring.sh b/tests/run-dwarf-getstring.sh index df90a584..c765f75a 100755 --- a/tests/run-dwarf-getstring.sh +++ b/tests/run-dwarf-getstring.sh @@ -1,27 +1,19 @@ #! /bin/sh # Copyright (C) 2011 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-dwfl-addr-sect.sh b/tests/run-dwfl-addr-sect.sh index f33a6e42..85424fde 100755 --- a/tests/run-dwfl-addr-sect.sh +++ b/tests/run-dwfl-addr-sect.sh @@ -1,27 +1,19 @@ #! /bin/sh # Copyright (C) 2007-2009 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-dwfl-bug-offline-rel.sh b/tests/run-dwfl-bug-offline-rel.sh index d1f6149a..3e19a587 100755 --- a/tests/run-dwfl-bug-offline-rel.sh +++ b/tests/run-dwfl-bug-offline-rel.sh @@ -1,27 +1,19 @@ #! /bin/sh # Copyright (C) 2007 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-early-offscn.sh b/tests/run-early-offscn.sh index 70be2192..55a38f9f 100755 --- a/tests/run-early-offscn.sh +++ b/tests/run-early-offscn.sh @@ -1,27 +1,19 @@ #! /bin/sh # Copyright (C) 2008 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-ecp-test.sh b/tests/run-ecp-test.sh index 941f3e96..d68a873c 100755 --- a/tests/run-ecp-test.sh +++ b/tests/run-ecp-test.sh @@ -1,28 +1,20 @@ #! /bin/sh # Copyright (C) 2002, 2005 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # Written by Jakub Jelinek <[email protected]>, 2002. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-ecp-test2.sh b/tests/run-ecp-test2.sh index 42317080..a9acbe9a 100755 --- a/tests/run-ecp-test2.sh +++ b/tests/run-ecp-test2.sh @@ -1,28 +1,20 @@ #! /bin/sh # Copyright (C) 2002, 2005 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # Written by Jakub Jelinek <[email protected]>, 2002. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-elflint-self.sh b/tests/run-elflint-self.sh index 684f9839..f335eeb1 100755 --- a/tests/run-elflint-self.sh +++ b/tests/run-elflint-self.sh @@ -1,28 +1,20 @@ #! /bin/sh # Copyright (C) 2005, 2007 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # Written by Ulrich Drepper <[email protected]>, 2005. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-elflint-test.sh b/tests/run-elflint-test.sh index e0e1c547..5a5c6227 100755 --- a/tests/run-elflint-test.sh +++ b/tests/run-elflint-test.sh @@ -1,28 +1,20 @@ #! /bin/sh # Copyright (C) 2005, 2007, 2008 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # Written by Ulrich Drepper <[email protected]>, 2005. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh @@ -44,4 +36,8 @@ testrun ../src/elflint -q --gnu-ld testfile42 testfiles testfile46 testrun ../src/elflint -q testfile46 +# see also run-readelf-d.sh +testfiles testlib_dynseg.so +testrun ../src/elflint -q --gnu-ld testlib_dynseg.so + exit 0 diff --git a/tests/run-find-prologues.sh b/tests/run-find-prologues.sh index eddc9ee7..78caa8c4 100755 --- a/tests/run-find-prologues.sh +++ b/tests/run-find-prologues.sh @@ -1,27 +1,19 @@ #! /bin/sh # Copyright (C) 2005 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-funcscopes.sh b/tests/run-funcscopes.sh index 52e50f40..a0e48c13 100755 --- a/tests/run-funcscopes.sh +++ b/tests/run-funcscopes.sh @@ -1,27 +1,19 @@ #! /bin/sh # Copyright (C) 2005 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-get-aranges.sh b/tests/run-get-aranges.sh index f78a4a1d..f3949f47 100755 --- a/tests/run-get-aranges.sh +++ b/tests/run-get-aranges.sh @@ -1,28 +1,20 @@ #! /bin/sh # Copyright (C) 1999, 2000, 2002, 2005 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # Written by Ulrich Drepper <[email protected]>, 1999. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-get-files.sh b/tests/run-get-files.sh index 7d51f5fc..6eadcd55 100755 --- a/tests/run-get-files.sh +++ b/tests/run-get-files.sh @@ -1,28 +1,20 @@ #! /bin/sh # Copyright (C) 1999, 2000, 2002, 2004, 2005, 2007 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # Written by Ulrich Drepper <[email protected]>, 1999. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-get-lines.sh b/tests/run-get-lines.sh index fb675dc7..8c8c71e4 100755 --- a/tests/run-get-lines.sh +++ b/tests/run-get-lines.sh @@ -1,28 +1,20 @@ #! /bin/sh # Copyright (C) 1999, 2000, 2002, 2004, 2005 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # Written by Ulrich Drepper <[email protected]>, 1999. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-get-pubnames.sh b/tests/run-get-pubnames.sh index 131baf0d..a8a17593 100755 --- a/tests/run-get-pubnames.sh +++ b/tests/run-get-pubnames.sh @@ -1,28 +1,20 @@ #! /bin/sh # Copyright (C) 1999, 2000, 2002, 2003, 2005 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # Written by Ulrich Drepper <[email protected]>, 1999. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-line2addr.sh b/tests/run-line2addr.sh index 3fb6f471..768cf696 100755 --- a/tests/run-line2addr.sh +++ b/tests/run-line2addr.sh @@ -1,28 +1,20 @@ #! /bin/sh # Copyright (C) 2005 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # Written by Ulrich Drepper <[email protected]>, 2005. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-low_high_pc.sh b/tests/run-low_high_pc.sh new file mode 100755 index 00000000..eb6f8cf0 --- /dev/null +++ b/tests/run-low_high_pc.sh @@ -0,0 +1,34 @@ +#! /bin/sh +# Copyright (C) 2005 Red Hat, Inc. +# This file is part of elfutils. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# elfutils is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +. $srcdir/test-subr.sh + +# int +# main (int argc, char **argv) +# { +# return 0; +# } +# gcc -g -o main main.c +testfiles testfile_low_high_pc + +testrun ./low_high_pc -e ./testfile_low_high_pc +testrun ./low_high_pc -e ./low_high_pc +testrun ./low_high_pc -e ../src/strip +testrun ./low_high_pc -e ../src/strip.o +testrun ./low_high_pc -e ../libelf/libelf.so + +exit 0 diff --git a/tests/run-native-test.sh b/tests/run-native-test.sh index 99926b03..ed7672fe 100755 --- a/tests/run-native-test.sh +++ b/tests/run-native-test.sh @@ -1,27 +1,19 @@ #! /bin/sh # Copyright (C) 2005, 2006 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-prelink-addr-test.sh b/tests/run-prelink-addr-test.sh index 38a2130d..52bb2841 100755 --- a/tests/run-prelink-addr-test.sh +++ b/tests/run-prelink-addr-test.sh @@ -1,27 +1,19 @@ #! /bin/sh # Copyright (C) 2011 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-ranlib-test.sh b/tests/run-ranlib-test.sh index 01c0d0b7..ce109cf5 100755 --- a/tests/run-ranlib-test.sh +++ b/tests/run-ranlib-test.sh @@ -1,28 +1,20 @@ #! /bin/sh # Copyright (C) 2005 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # Written by Ulrich Drepper <[email protected]>, 2005. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-ranlib-test2.sh b/tests/run-ranlib-test2.sh index 87040376..75d00b36 100755 --- a/tests/run-ranlib-test2.sh +++ b/tests/run-ranlib-test2.sh @@ -1,28 +1,20 @@ #! /bin/sh # Copyright (C) 2005 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # Written by Ulrich Drepper <[email protected]>, 2005. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-ranlib-test3.sh b/tests/run-ranlib-test3.sh index 7be6ddd3..1fc21cdd 100755 --- a/tests/run-ranlib-test3.sh +++ b/tests/run-ranlib-test3.sh @@ -1,28 +1,20 @@ #! /bin/sh # Copyright (C) 2005 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # Written by Ulrich Drepper <[email protected]>, 2005. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. original=testfile20 diff --git a/tests/run-ranlib-test4.sh b/tests/run-ranlib-test4.sh index eeeb56fb..8070415b 100755 --- a/tests/run-ranlib-test4.sh +++ b/tests/run-ranlib-test4.sh @@ -1,28 +1,20 @@ #! /bin/sh # Copyright (C) 2005 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # Written by Ulrich Drepper <[email protected]>, 2005. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. original=testfile21 diff --git a/tests/run-readelf-d.sh b/tests/run-readelf-d.sh new file mode 100755 index 00000000..3e4b7bf2 --- /dev/null +++ b/tests/run-readelf-d.sh @@ -0,0 +1,70 @@ +#! /bin/sh +# Copyright (C) 2012 Red Hat, Inc. +# This file is part of elfutils. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# elfutils is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +. $srcdir/test-subr.sh + +# #include <stdio.h> +# +# __thread int i; +# +# void print_i () +# { +# printf("%d\n", i); +# } +# +# gcc -fPIC -shared -o testlib_dynseg.so testlib_dynseg.c +# With ld --version +# GNU gold (GNU Binutils 2.22.52.20120402) 1.11 + +testfiles testlib_dynseg.so + +testrun_compare ../src/readelf -d testlib_dynseg.so <<\EOF + +Dynamic segment contains 28 entries: + Addr: 0x00000000000017e0 Offset: 0x0007e0 Link to section: [ 3] '.dynstr' + Type Value + PLTGOT 0x00000000000019c8 + PLTRELSZ 72 (bytes) + JMPREL 0x0000000000000568 + PLTREL RELA + RELA 0x00000000000004d8 + RELASZ 144 (bytes) + RELAENT 24 (bytes) + RELACOUNT 1 + SYMTAB 0x0000000000000228 + SYMENT 24 (bytes) + STRTAB 0x0000000000000360 + STRSZ 190 (bytes) + GNU_HASH 0x0000000000000420 + NEEDED Shared library: [libc.so.6] + NEEDED Shared library: [ld-linux-x86-64.so.2] + INIT 0x00000000000005b0 + FINI 0x0000000000000748 + VERSYM 0x0000000000000460 + VERDEF 0x000000000000047c + VERDEFNUM 1 + VERNEED 0x0000000000000498 + VERNEEDNUM 2 + NULL + NULL + NULL + NULL + NULL + NULL +EOF + +exit 0 diff --git a/tests/run-readelf-test1.sh b/tests/run-readelf-test1.sh index aaa03edb..b64103e5 100755 --- a/tests/run-readelf-test1.sh +++ b/tests/run-readelf-test1.sh @@ -1,28 +1,20 @@ #! /bin/sh # Copyright (C) 2005 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # Written by Ulrich Drepper <[email protected]>, 2005. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-readelf-test2.sh b/tests/run-readelf-test2.sh index 4edaea6c..676fcded 100755 --- a/tests/run-readelf-test2.sh +++ b/tests/run-readelf-test2.sh @@ -1,27 +1,19 @@ #! /bin/sh # Copyright (C) 2007 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-readelf-test3.sh b/tests/run-readelf-test3.sh index 71dd8aea..15f0ba5f 100755 --- a/tests/run-readelf-test3.sh +++ b/tests/run-readelf-test3.sh @@ -1,27 +1,19 @@ #! /bin/sh # Copyright (C) 2007 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-readelf-test4.sh b/tests/run-readelf-test4.sh index 85e76ed0..16cf8023 100755 --- a/tests/run-readelf-test4.sh +++ b/tests/run-readelf-test4.sh @@ -1,27 +1,19 @@ #! /bin/sh # Copyright (C) 2007 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-readelf-twofiles.sh b/tests/run-readelf-twofiles.sh index 4255587c..d12f57f9 100755 --- a/tests/run-readelf-twofiles.sh +++ b/tests/run-readelf-twofiles.sh @@ -1,27 +1,19 @@ #! /bin/sh # Copyright (C) 2011 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-rerequest_tag.sh b/tests/run-rerequest_tag.sh index c61a9fd6..3a4cb1cb 100755 --- a/tests/run-rerequest_tag.sh +++ b/tests/run-rerequest_tag.sh @@ -1,27 +1,19 @@ #! /bin/sh # Copyright (C) 2011 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-show-abbrev.sh b/tests/run-show-abbrev.sh index a148dffb..351730f6 100755 --- a/tests/run-show-abbrev.sh +++ b/tests/run-show-abbrev.sh @@ -1,28 +1,20 @@ #! /bin/sh # Copyright (C) 1999, 2000, 2002, 2003, 2004, 2005 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # Written by Ulrich Drepper <[email protected]>, 1999. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-show-ciefde.sh b/tests/run-show-ciefde.sh deleted file mode 100755 index 37505c00..00000000 --- a/tests/run-show-ciefde.sh +++ /dev/null @@ -1,324 +0,0 @@ -#! /bin/sh -# Copyright (C) 1999, 2000, 2002, 2005 Red Hat, Inc. -# This file is part of Red Hat elfutils. -# Written by Ulrich Drepper <[email protected]>, 1999. -# -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. -# -# Red Hat elfutils is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. - -. $srcdir/test-subr.sh - -testfiles testfile3 testfile4 - -testrun_compare ./show-ciefde testfile3 testfile4 <<\EOF -testfile3 has 1 CIEs and 1 FDEs -CIE[0]: bytes_in_cie = 16, version = 1, augmenter = "" -CIE[0]: code_alignment_factor = 1 -CIE[0]: data_alignment_factor = fffffffffffffffc -CIE[0]: return_address_register = 8 -CIE[0]: bytes = 0c 04 04 88 01 00 00 -FDE[0]: low_pc = 0x804842c, length = 41 -FDE[0]: bytes = 18 00 00 00 18 00 00 00 2c 84 04 08 29 00 00 00 41 0e 08 85 02 42 0d 05 41 83 03 00 -FDE[0]: cie_offset = 0, cie_index = 0, fde_offset = 24 -FDE[0]: instructions = 41 0e 08 85 02 42 0d 05 41 83 03 00 -no FDE at 8048400 -FDE[@804842c]: cie_offset = 0, cie_index = 0, fde_offset = 24 -FDE[@8048454]: cie_offset = 0, cie_index = 0, fde_offset = 24 -no FDE at 8048455 -no FDE at 80493fc -testfile4 has 5 CIEs and 61 FDEs -CIE[0]: bytes_in_cie = 20, version = 1, augmenter = "eh" -CIE[0]: code_alignment_factor = 1 -CIE[0]: data_alignment_factor = fffffffffffffffc -CIE[0]: return_address_register = 8 -CIE[0]: bytes = 0c 04 04 88 01 -CIE[1]: bytes_in_cie = 16, version = 1, augmenter = "" -CIE[1]: code_alignment_factor = 1 -CIE[1]: data_alignment_factor = fffffffffffffffc -CIE[1]: return_address_register = 8 -CIE[1]: bytes = 0c 04 04 88 01 00 00 -CIE[2]: bytes_in_cie = 16, version = 1, augmenter = "" -CIE[2]: code_alignment_factor = 1 -CIE[2]: data_alignment_factor = fffffffffffffffc -CIE[2]: return_address_register = 8 -CIE[2]: bytes = 0c 04 04 88 01 00 00 -CIE[3]: bytes_in_cie = 20, version = 1, augmenter = "eh" -CIE[3]: code_alignment_factor = 1 -CIE[3]: data_alignment_factor = fffffffffffffffc -CIE[3]: return_address_register = 8 -CIE[3]: bytes = 0c 04 04 88 01 -CIE[4]: bytes_in_cie = 16, version = 1, augmenter = "" -CIE[4]: code_alignment_factor = 1 -CIE[4]: data_alignment_factor = fffffffffffffffc -CIE[4]: return_address_register = 8 -CIE[4]: bytes = 0c 04 04 88 01 00 00 -FDE[0]: low_pc = 0x80493fc, length = 154 -FDE[0]: bytes = 2c 00 00 00 1c 00 00 00 fc 93 04 08 9a 00 00 00 41 0e 08 85 02 42 0d 05 53 2e 08 50 2e 10 48 2e 00 58 2e 10 62 2e 00 63 2e 10 45 2e 00 00 00 00 -FDE[0]: cie_offset = 0, cie_index = 0, fde_offset = 28 -FDE[0]: instructions = 41 0e 08 85 02 42 0d 05 53 2e 08 50 2e 10 48 2e 00 58 2e 10 62 2e 00 63 2e 10 45 2e 00 00 00 00 -FDE[1]: low_pc = 0x8049498, length = 49 -FDE[1]: bytes = 18 00 00 00 4c 00 00 00 98 94 04 08 31 00 00 00 41 0e 08 85 02 42 0d 05 4c 2e 10 00 -FDE[1]: cie_offset = 0, cie_index = 0, fde_offset = 76 -FDE[1]: instructions = 41 0e 08 85 02 42 0d 05 4c 2e 10 00 -FDE[2]: low_pc = 0x80494d4, length = 23 -FDE[2]: bytes = 18 00 00 00 18 00 00 00 d4 94 04 08 17 00 00 00 41 0e 08 85 02 42 0d 05 41 83 03 00 -FDE[2]: cie_offset = 100, cie_index = 1, fde_offset = 24 -FDE[2]: instructions = 41 0e 08 85 02 42 0d 05 41 83 03 00 -FDE[3]: low_pc = 0x80494f0, length = 26 -FDE[3]: bytes = 18 00 00 00 34 00 00 00 f0 94 04 08 1a 00 00 00 41 0e 08 85 02 42 0d 05 41 83 03 00 -FDE[3]: cie_offset = 100, cie_index = 1, fde_offset = 52 -FDE[3]: instructions = 41 0e 08 85 02 42 0d 05 41 83 03 00 -FDE[4]: low_pc = 0x8049560, length = 85 -FDE[4]: bytes = 24 00 00 00 50 00 00 00 60 95 04 08 55 00 00 00 41 0e 08 85 02 42 0d 05 41 86 03 41 83 04 53 2e 10 4e 2e 00 55 2e 10 00 -FDE[4]: cie_offset = 100, cie_index = 1, fde_offset = 80 -FDE[4]: instructions = 41 0e 08 85 02 42 0d 05 41 86 03 41 83 04 53 2e 10 4e 2e 00 55 2e 10 00 -FDE[5]: low_pc = 0x80495c0, length = 66 -FDE[5]: bytes = 20 00 00 00 78 00 00 00 c0 95 04 08 42 00 00 00 41 0e 08 85 02 42 0d 05 41 86 03 41 83 04 5e 2e 10 00 00 00 -FDE[5]: cie_offset = 100, cie_index = 1, fde_offset = 120 -FDE[5]: instructions = 41 0e 08 85 02 42 0d 05 41 86 03 41 83 04 5e 2e 10 00 00 00 -FDE[6]: low_pc = 0x8049610, length = 28 -FDE[6]: bytes = 18 00 00 00 9c 00 00 00 10 96 04 08 1c 00 00 00 41 0e 08 85 02 42 0d 05 41 83 03 00 -FDE[6]: cie_offset = 100, cie_index = 1, fde_offset = 156 -FDE[6]: instructions = 41 0e 08 85 02 42 0d 05 41 83 03 00 -FDE[7]: low_pc = 0x8049630, length = 31 -FDE[7]: bytes = 18 00 00 00 b8 00 00 00 30 96 04 08 1f 00 00 00 41 0e 08 85 02 42 0d 05 41 83 03 00 -FDE[7]: cie_offset = 100, cie_index = 1, fde_offset = 184 -FDE[7]: instructions = 41 0e 08 85 02 42 0d 05 41 83 03 00 -FDE[8]: low_pc = 0x80496e0, length = 71 -FDE[8]: bytes = 1c 00 00 00 d4 00 00 00 e0 96 04 08 47 00 00 00 41 0e 08 85 02 42 0d 05 41 83 03 5c 2e 10 00 00 -FDE[8]: cie_offset = 100, cie_index = 1, fde_offset = 212 -FDE[8]: instructions = 41 0e 08 85 02 42 0d 05 41 83 03 5c 2e 10 00 00 -FDE[9]: low_pc = 0x8049730, length = 165 -FDE[9]: bytes = 20 00 00 00 f4 00 00 00 30 97 04 08 a5 00 00 00 41 0e 08 85 02 42 0d 05 41 83 03 69 2e 10 02 66 2e 00 00 00 -FDE[9]: cie_offset = 100, cie_index = 1, fde_offset = 244 -FDE[9]: instructions = 41 0e 08 85 02 42 0d 05 41 83 03 69 2e 10 02 66 2e 00 00 00 -FDE[10]: low_pc = 0x80497e0, length = 89 -FDE[10]: bytes = 1c 00 00 00 18 01 00 00 e0 97 04 08 59 00 00 00 41 0e 08 85 02 42 0d 05 41 83 03 74 2e 10 00 00 -FDE[10]: cie_offset = 100, cie_index = 1, fde_offset = 280 -FDE[10]: instructions = 41 0e 08 85 02 42 0d 05 41 83 03 74 2e 10 00 00 -FDE[11]: low_pc = 0x8049840, length = 89 -FDE[11]: bytes = 28 00 00 00 38 01 00 00 40 98 04 08 59 00 00 00 41 0e 08 85 02 42 0d 05 41 86 03 41 83 04 55 2e 10 4e 2e 00 52 2e 10 4c 2e 00 00 00 -FDE[11]: cie_offset = 100, cie_index = 1, fde_offset = 312 -FDE[11]: instructions = 41 0e 08 85 02 42 0d 05 41 86 03 41 83 04 55 2e 10 4e 2e 00 52 2e 10 4c 2e 00 00 00 -FDE[12]: low_pc = 0x80498a0, length = 176 -FDE[12]: bytes = 24 00 00 00 64 01 00 00 a0 98 04 08 b0 00 00 00 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 5e 2e 10 4c 2e 00 00 -FDE[12]: cie_offset = 100, cie_index = 1, fde_offset = 356 -FDE[12]: instructions = 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 5e 2e 10 4c 2e 00 00 -FDE[13]: low_pc = 0x8049950, length = 116 -FDE[13]: bytes = 24 00 00 00 8c 01 00 00 50 99 04 08 74 00 00 00 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 02 5e 2e 10 00 00 00 -FDE[13]: cie_offset = 100, cie_index = 1, fde_offset = 396 -FDE[13]: instructions = 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 02 5e 2e 10 00 00 00 -FDE[14]: low_pc = 0x80499d0, length = 31 -FDE[14]: bytes = 18 00 00 00 b4 01 00 00 d0 99 04 08 1f 00 00 00 41 0e 08 85 02 42 0d 05 41 83 03 00 -FDE[14]: cie_offset = 100, cie_index = 1, fde_offset = 436 -FDE[14]: instructions = 41 0e 08 85 02 42 0d 05 41 83 03 00 -FDE[15]: low_pc = 0x80499f0, length = 313 -FDE[15]: bytes = 24 00 00 00 d0 01 00 00 f0 99 04 08 39 01 00 00 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 02 d8 2e 10 62 2e 00 -FDE[15]: cie_offset = 100, cie_index = 1, fde_offset = 464 -FDE[15]: instructions = 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 02 d8 2e 10 62 2e 00 -FDE[16]: low_pc = 0x8049b30, length = 262 -FDE[16]: bytes = 24 00 00 00 f8 01 00 00 30 9b 04 08 06 01 00 00 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 02 c8 2e 10 62 2e 00 -FDE[16]: cie_offset = 100, cie_index = 1, fde_offset = 504 -FDE[16]: instructions = 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 02 c8 2e 10 62 2e 00 -FDE[17]: low_pc = 0x8049c40, length = 95 -FDE[17]: bytes = 1c 00 00 00 20 02 00 00 40 9c 04 08 5f 00 00 00 41 0e 08 85 02 42 0d 05 41 83 03 6e 2e 10 00 00 -FDE[17]: cie_offset = 100, cie_index = 1, fde_offset = 544 -FDE[17]: instructions = 41 0e 08 85 02 42 0d 05 41 83 03 6e 2e 10 00 00 -FDE[18]: low_pc = 0x8049d60, length = 230 -FDE[18]: bytes = 20 00 00 00 40 02 00 00 60 9d 04 08 e6 00 00 00 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 02 9a 2e 10 00 00 -FDE[18]: cie_offset = 100, cie_index = 1, fde_offset = 576 -FDE[18]: instructions = 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 02 9a 2e 10 00 00 -FDE[19]: low_pc = 0x8049e50, length = 85 -FDE[19]: bytes = 18 00 00 00 64 02 00 00 50 9e 04 08 55 00 00 00 41 0e 08 85 02 42 0d 05 41 83 03 00 -FDE[19]: cie_offset = 100, cie_index = 1, fde_offset = 612 -FDE[19]: instructions = 41 0e 08 85 02 42 0d 05 41 83 03 00 -FDE[20]: low_pc = 0x8049eb0, length = 144 -FDE[20]: bytes = 20 00 00 00 80 02 00 00 b0 9e 04 08 90 00 00 00 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 5b 2e 10 -FDE[20]: cie_offset = 100, cie_index = 1, fde_offset = 640 -FDE[20]: instructions = 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 5b 2e 10 -FDE[21]: low_pc = 0x8049f40, length = 115 -FDE[21]: bytes = 20 00 00 00 a4 02 00 00 40 9f 04 08 73 00 00 00 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 59 2e 10 -FDE[21]: cie_offset = 100, cie_index = 1, fde_offset = 676 -FDE[21]: instructions = 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 59 2e 10 -FDE[22]: low_pc = 0x8049fd0, length = 948 -FDE[22]: bytes = 30 00 00 00 c8 02 00 00 d0 9f 04 08 b4 03 00 00 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 02 f7 2e 20 02 64 2e 10 03 15 01 2e 00 02 9f 2e 10 00 00 -FDE[22]: cie_offset = 100, cie_index = 1, fde_offset = 712 -FDE[22]: instructions = 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 02 f7 2e 20 02 64 2e 10 03 15 01 2e 00 02 9f 2e 10 00 00 -FDE[23]: low_pc = 0x804a390, length = 201 -FDE[23]: bytes = 28 00 00 00 fc 02 00 00 90 a3 04 08 c9 00 00 00 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 02 58 2e 10 52 2e 00 75 2e 10 00 -FDE[23]: cie_offset = 100, cie_index = 1, fde_offset = 764 -FDE[23]: instructions = 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 02 58 2e 10 52 2e 00 75 2e 10 00 -FDE[24]: low_pc = 0x804a460, length = 206 -FDE[24]: bytes = 28 00 00 00 28 03 00 00 60 a4 04 08 ce 00 00 00 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 02 64 2e 10 52 2e 00 6e 2e 10 00 -FDE[24]: cie_offset = 100, cie_index = 1, fde_offset = 808 -FDE[24]: instructions = 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 02 64 2e 10 52 2e 00 6e 2e 10 00 -FDE[25]: low_pc = 0x804b970, length = 1274 -FDE[25]: bytes = 44 00 00 00 18 00 00 00 70 b9 04 08 fa 04 00 00 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 66 2e 10 7b 2e 20 03 7f 01 2e 10 53 2e 08 4c 2e 10 79 2e 20 02 54 2e 10 7e 2e 20 03 6c 01 2e 10 02 45 2e 20 00 00 00 -FDE[25]: cie_offset = 948, cie_index = 2, fde_offset = 24 -FDE[25]: instructions = 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 66 2e 10 7b 2e 20 03 7f 01 2e 10 53 2e 08 4c 2e 10 79 2e 20 02 54 2e 10 7e 2e 20 03 6c 01 2e 10 02 45 2e 20 00 00 00 -FDE[26]: low_pc = 0x804be70, length = 60 -FDE[26]: bytes = 1c 00 00 00 60 00 00 00 70 be 04 08 3c 00 00 00 41 0e 08 85 02 42 0d 05 41 83 03 5e 2e 10 00 00 -FDE[26]: cie_offset = 948, cie_index = 2, fde_offset = 96 -FDE[26]: instructions = 41 0e 08 85 02 42 0d 05 41 83 03 5e 2e 10 00 00 -FDE[27]: low_pc = 0x804c090, length = 85 -FDE[27]: bytes = 24 00 00 00 80 00 00 00 90 c0 04 08 55 00 00 00 41 0e 08 85 02 42 0d 05 41 83 03 66 2e 04 4d 2e 0c 4c 2e 04 46 2e 20 00 -FDE[27]: cie_offset = 948, cie_index = 2, fde_offset = 128 -FDE[27]: instructions = 41 0e 08 85 02 42 0d 05 41 83 03 66 2e 04 4d 2e 0c 4c 2e 04 46 2e 20 00 -FDE[28]: low_pc = 0x804c0f0, length = 75 -FDE[28]: bytes = 2c 00 00 00 a8 00 00 00 f0 c0 04 08 4b 00 00 00 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 5b 2e 04 4a 2e 0c 4d 2e 04 46 2e 20 00 00 00 -FDE[28]: cie_offset = 948, cie_index = 2, fde_offset = 168 -FDE[28]: instructions = 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 5b 2e 04 4a 2e 0c 4d 2e 04 46 2e 20 00 00 00 -FDE[29]: low_pc = 0x804d8e0, length = 71 -FDE[29]: bytes = 20 00 00 00 d8 00 00 00 e0 d8 04 08 47 00 00 00 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 60 2e 10 -FDE[29]: cie_offset = 948, cie_index = 2, fde_offset = 216 -FDE[29]: instructions = 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 60 2e 10 -FDE[30]: low_pc = 0x804d980, length = 71 -FDE[30]: bytes = 20 00 00 00 fc 00 00 00 80 d9 04 08 47 00 00 00 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 60 2e 10 -FDE[30]: cie_offset = 948, cie_index = 2, fde_offset = 252 -FDE[30]: instructions = 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 60 2e 10 -FDE[31]: low_pc = 0x804da20, length = 71 -FDE[31]: bytes = 20 00 00 00 20 01 00 00 20 da 04 08 47 00 00 00 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 60 2e 10 -FDE[31]: cie_offset = 948, cie_index = 2, fde_offset = 288 -FDE[31]: instructions = 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 60 2e 10 -FDE[32]: low_pc = 0x804dac0, length = 71 -FDE[32]: bytes = 20 00 00 00 44 01 00 00 c0 da 04 08 47 00 00 00 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 60 2e 10 -FDE[32]: cie_offset = 948, cie_index = 2, fde_offset = 324 -FDE[32]: instructions = 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 60 2e 10 -FDE[33]: low_pc = 0x804db60, length = 71 -FDE[33]: bytes = 20 00 00 00 68 01 00 00 60 db 04 08 47 00 00 00 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 60 2e 10 -FDE[33]: cie_offset = 948, cie_index = 2, fde_offset = 360 -FDE[33]: instructions = 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 60 2e 10 -FDE[34]: low_pc = 0x804dc00, length = 71 -FDE[34]: bytes = 20 00 00 00 8c 01 00 00 00 dc 04 08 47 00 00 00 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 60 2e 10 -FDE[34]: cie_offset = 948, cie_index = 2, fde_offset = 396 -FDE[34]: instructions = 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 60 2e 10 -FDE[35]: low_pc = 0x804dca0, length = 71 -FDE[35]: bytes = 20 00 00 00 b0 01 00 00 a0 dc 04 08 47 00 00 00 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 60 2e 10 -FDE[35]: cie_offset = 948, cie_index = 2, fde_offset = 432 -FDE[35]: instructions = 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 60 2e 10 -FDE[36]: low_pc = 0x804c5b4, length = 26 -FDE[36]: bytes = 18 00 00 00 1c 00 00 00 b4 c5 04 08 1a 00 00 00 41 0e 08 85 02 42 0d 05 41 83 03 00 -FDE[36]: cie_offset = 1412, cie_index = 3, fde_offset = 28 -FDE[36]: instructions = 41 0e 08 85 02 42 0d 05 41 83 03 00 -FDE[37]: low_pc = 0x804c5d0, length = 23 -FDE[37]: bytes = 18 00 00 00 38 00 00 00 d0 c5 04 08 17 00 00 00 41 0e 08 85 02 42 0d 05 41 83 03 00 -FDE[37]: cie_offset = 1412, cie_index = 3, fde_offset = 56 -FDE[37]: instructions = 41 0e 08 85 02 42 0d 05 41 83 03 00 -FDE[38]: low_pc = 0x804c640, length = 24 -FDE[38]: bytes = 18 00 00 00 54 00 00 00 40 c6 04 08 18 00 00 00 41 0e 08 85 02 42 0d 05 41 83 03 00 -FDE[38]: cie_offset = 1412, cie_index = 3, fde_offset = 84 -FDE[38]: instructions = 41 0e 08 85 02 42 0d 05 41 83 03 00 -FDE[39]: low_pc = 0x804c660, length = 32 -FDE[39]: bytes = 18 00 00 00 70 00 00 00 60 c6 04 08 20 00 00 00 41 0e 08 85 02 42 0d 05 41 83 03 00 -FDE[39]: cie_offset = 1412, cie_index = 3, fde_offset = 112 -FDE[39]: instructions = 41 0e 08 85 02 42 0d 05 41 83 03 00 -FDE[40]: low_pc = 0x804c680, length = 29 -FDE[40]: bytes = 18 00 00 00 8c 00 00 00 80 c6 04 08 1d 00 00 00 41 0e 08 85 02 42 0d 05 41 83 03 00 -FDE[40]: cie_offset = 1412, cie_index = 3, fde_offset = 140 -FDE[40]: instructions = 41 0e 08 85 02 42 0d 05 41 83 03 00 -FDE[41]: low_pc = 0x804c6a0, length = 36 -FDE[41]: bytes = 18 00 00 00 a8 00 00 00 a0 c6 04 08 24 00 00 00 41 0e 08 85 02 42 0d 05 41 83 03 00 -FDE[41]: cie_offset = 1412, cie_index = 3, fde_offset = 168 -FDE[41]: instructions = 41 0e 08 85 02 42 0d 05 41 83 03 00 -FDE[42]: low_pc = 0x804c6d0, length = 98 -FDE[42]: bytes = 24 00 00 00 c4 00 00 00 d0 c6 04 08 62 00 00 00 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 02 43 2e 10 00 00 00 -FDE[42]: cie_offset = 1412, cie_index = 3, fde_offset = 196 -FDE[42]: instructions = 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 02 43 2e 10 00 00 00 -FDE[43]: low_pc = 0x804c740, length = 107 -FDE[43]: bytes = 24 00 00 00 ec 00 00 00 40 c7 04 08 6b 00 00 00 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 53 2e 10 7b 2e 00 00 -FDE[43]: cie_offset = 1412, cie_index = 3, fde_offset = 236 -FDE[43]: instructions = 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 53 2e 10 7b 2e 00 00 -FDE[44]: low_pc = 0x804c7b0, length = 256 -FDE[44]: bytes = 24 00 00 00 14 01 00 00 b0 c7 04 08 00 01 00 00 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 02 bf 2e 10 00 00 00 -FDE[44]: cie_offset = 1412, cie_index = 3, fde_offset = 276 -FDE[44]: instructions = 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 02 bf 2e 10 00 00 00 -FDE[45]: low_pc = 0x804c8b0, length = 78 -FDE[45]: bytes = 1c 00 00 00 3c 01 00 00 b0 c8 04 08 4e 00 00 00 41 0e 08 85 02 42 0d 05 41 86 03 41 83 04 00 00 -FDE[45]: cie_offset = 1412, cie_index = 3, fde_offset = 316 -FDE[45]: instructions = 41 0e 08 85 02 42 0d 05 41 86 03 41 83 04 00 00 -FDE[46]: low_pc = 0x804c900, length = 480 -FDE[46]: bytes = 40 00 00 00 5c 01 00 00 00 c9 04 08 e0 01 00 00 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 7d 2e 10 4c 2e 00 02 48 2e 10 02 54 2e 00 78 2e 10 4c 2e 00 02 44 2e 10 79 2e 08 49 2e 10 48 2e 00 00 00 -FDE[46]: cie_offset = 1412, cie_index = 3, fde_offset = 348 -FDE[46]: instructions = 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 7d 2e 10 4c 2e 00 02 48 2e 10 02 54 2e 00 78 2e 10 4c 2e 00 02 44 2e 10 79 2e 08 49 2e 10 48 2e 00 00 00 -FDE[47]: low_pc = 0x804cae0, length = 37 -FDE[47]: bytes = 1c 00 00 00 a0 01 00 00 e0 ca 04 08 25 00 00 00 41 0e 08 85 02 42 0d 05 41 83 03 52 2e 10 00 00 -FDE[47]: cie_offset = 1412, cie_index = 3, fde_offset = 416 -FDE[47]: instructions = 41 0e 08 85 02 42 0d 05 41 83 03 52 2e 10 00 00 -FDE[48]: low_pc = 0x804cb10, length = 128 -FDE[48]: bytes = 2c 00 00 00 c0 01 00 00 10 cb 04 08 80 00 00 00 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 62 2e 10 56 2e 08 49 2e 10 48 2e 00 6c 2e 10 -FDE[48]: cie_offset = 1412, cie_index = 3, fde_offset = 448 -FDE[48]: instructions = 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 62 2e 10 56 2e 08 49 2e 10 48 2e 00 6c 2e 10 -FDE[49]: low_pc = 0x804cb90, length = 128 -FDE[49]: bytes = 2c 00 00 00 f0 01 00 00 90 cb 04 08 80 00 00 00 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 62 2e 10 56 2e 08 49 2e 10 48 2e 00 6c 2e 10 -FDE[49]: cie_offset = 1412, cie_index = 3, fde_offset = 496 -FDE[49]: instructions = 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 62 2e 10 56 2e 08 49 2e 10 48 2e 00 6c 2e 10 -FDE[50]: low_pc = 0x804cc10, length = 45 -FDE[50]: bytes = 18 00 00 00 20 02 00 00 10 cc 04 08 2d 00 00 00 41 0e 08 85 02 42 0d 05 41 83 03 00 -FDE[50]: cie_offset = 1412, cie_index = 3, fde_offset = 544 -FDE[50]: instructions = 41 0e 08 85 02 42 0d 05 41 83 03 00 -FDE[51]: low_pc = 0x804cc40, length = 43 -FDE[51]: bytes = 18 00 00 00 3c 02 00 00 40 cc 04 08 2b 00 00 00 41 0e 08 85 02 42 0d 05 41 83 03 00 -FDE[51]: cie_offset = 1412, cie_index = 3, fde_offset = 572 -FDE[51]: instructions = 41 0e 08 85 02 42 0d 05 41 83 03 00 -FDE[52]: low_pc = 0x804cde0, length = 89 -FDE[52]: bytes = 20 00 00 00 18 00 00 00 e0 cd 04 08 59 00 00 00 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 6d 2e 20 00 00 00 -FDE[52]: cie_offset = 2008, cie_index = 4, fde_offset = 24 -FDE[52]: instructions = 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 6d 2e 20 00 00 00 -FDE[53]: low_pc = 0x804ce40, length = 217 -FDE[53]: bytes = 20 00 00 00 3c 00 00 00 40 ce 04 08 d9 00 00 00 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 02 40 2e 20 00 00 -FDE[53]: cie_offset = 2008, cie_index = 4, fde_offset = 60 -FDE[53]: instructions = 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 02 40 2e 20 00 00 -FDE[54]: low_pc = 0x804d010, length = 117 -FDE[54]: bytes = 24 00 00 00 60 00 00 00 10 d0 04 08 75 00 00 00 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 5c 2e 10 02 48 2e 20 -FDE[54]: cie_offset = 2008, cie_index = 4, fde_offset = 96 -FDE[54]: instructions = 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 5c 2e 10 02 48 2e 20 -FDE[55]: low_pc = 0x804d090, length = 190 -FDE[55]: bytes = 24 00 00 00 88 00 00 00 90 d0 04 08 be 00 00 00 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 64 2e 10 02 89 2e 20 -FDE[55]: cie_offset = 2008, cie_index = 4, fde_offset = 136 -FDE[55]: instructions = 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 64 2e 10 02 89 2e 20 -FDE[56]: low_pc = 0x804d150, length = 101 -FDE[56]: bytes = 24 00 00 00 b0 00 00 00 50 d1 04 08 65 00 00 00 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 61 2e 10 73 2e 20 00 -FDE[56]: cie_offset = 2008, cie_index = 4, fde_offset = 176 -FDE[56]: instructions = 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 61 2e 10 73 2e 20 00 -FDE[57]: low_pc = 0x804d1c0, length = 480 -FDE[57]: bytes = 28 00 00 00 d8 00 00 00 c0 d1 04 08 e0 01 00 00 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 56 2e 10 02 f5 2e 20 02 91 2e 10 -FDE[57]: cie_offset = 2008, cie_index = 4, fde_offset = 216 -FDE[57]: instructions = 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 56 2e 10 02 f5 2e 20 02 91 2e 10 -FDE[58]: low_pc = 0x804d3a0, length = 897 -FDE[58]: bytes = 28 00 00 00 04 01 00 00 a0 d3 04 08 81 03 00 00 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 61 2e 10 03 61 01 2e 20 00 00 00 -FDE[58]: cie_offset = 2008, cie_index = 4, fde_offset = 260 -FDE[58]: instructions = 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 61 2e 10 03 61 01 2e 20 00 00 00 -FDE[59]: low_pc = 0x804d730, length = 238 -FDE[59]: bytes = 24 00 00 00 30 01 00 00 30 d7 04 08 ee 00 00 00 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 61 2e 10 02 8f 2e 20 -FDE[59]: cie_offset = 2008, cie_index = 4, fde_offset = 304 -FDE[59]: instructions = 41 0e 08 85 02 42 0d 05 41 87 03 41 86 04 41 83 05 61 2e 10 02 8f 2e 20 -FDE[60]: low_pc = 0x804e220, length = 73 -FDE[60]: bytes = 20 00 00 00 58 01 00 00 20 e2 04 08 49 00 00 00 41 0e 08 85 02 42 0d 05 41 87 03 44 86 04 74 2e 20 00 00 00 -FDE[60]: cie_offset = 2008, cie_index = 4, fde_offset = 344 -FDE[60]: instructions = 41 0e 08 85 02 42 0d 05 41 87 03 44 86 04 74 2e 20 00 00 00 -no FDE at 8048400 -no FDE at 804842c -no FDE at 8048454 -no FDE at 8048455 -FDE[@80493fc]: cie_offset = 0, cie_index = 0, fde_offset = 28 -EOF - -exit 0 diff --git a/tests/run-show-die-info.sh b/tests/run-show-die-info.sh index 47b51513..cbe60f93 100755 --- a/tests/run-show-die-info.sh +++ b/tests/run-show-die-info.sh @@ -1,28 +1,20 @@ #! /bin/sh # Copyright (C) 1999, 2000, 2002, 2003, 2004, 2005 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # Written by Ulrich Drepper <[email protected]>, 1999. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-strings-test.sh b/tests/run-strings-test.sh index a5dac634..6bfc87e1 100755 --- a/tests/run-strings-test.sh +++ b/tests/run-strings-test.sh @@ -1,28 +1,20 @@ #! /bin/sh # Copyright (C) 2005, 2006, 2008 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # Written by Ulrich Drepper <[email protected]>, 2005. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-strip-groups.sh b/tests/run-strip-groups.sh new file mode 100755 index 00000000..86d1d441 --- /dev/null +++ b/tests/run-strip-groups.sh @@ -0,0 +1,55 @@ +#! /bin/sh +# Copyright (C) 2011 Red Hat, Inc. +# This file is part of elfutils. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# elfutils is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# +# g++ -gdwarf-4 -c testfile58.cxx +# class ct +# { +# private: +# int i; +# +# public: +# void foo () +# { +# i = 1; +# } +# +# int bar () +# { +# return i; +# } +# }; +# +# int baz () +# { +# class ct c; +# c.foo (); +# return c.bar (); +# } + +. $srcdir/test-subr.sh + +infile=testfile58 +outfile=$infile.stripped +dbgfile=$infile.debug + +testfiles $infile +tempfiles $outfile $dbgfile + +testrun ../src/strip -o $outfile -f $dbgfile $infile +testrun ../src/elflint -q $infile +testrun ../src/elflint -q $outfile +testrun ../src/elflint -q -d $dbgfile diff --git a/tests/run-strip-reloc.sh b/tests/run-strip-reloc.sh new file mode 100755 index 00000000..603fb7c7 --- /dev/null +++ b/tests/run-strip-reloc.sh @@ -0,0 +1,107 @@ +#! /bin/sh +# Copyright (C) 2011 Red Hat, Inc. +# This file is part of elfutils. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# elfutils is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +. $srcdir/test-subr.sh + +testfiles hello_i386.ko hello_x86_64.ko hello_ppc64.ko hello_s390.ko + +status=0 +runtest() { + infile=$1 + is_ET_REL=$2 + outfile1=out.stripped1 + debugfile1=out.debug1 + outfile2=out.stripped2 + debugfile2=out.debug2 + + testrun ../src/strip -o $outfile1 -f $debugfile1 $infile || + { echo "*** failure strip $infile"; status=1; } + + testrun ../src/strip --reloc-debug-sections -o $outfile2 \ + -f $debugfile2 $infile || + { echo "*** failure strip --reloc-debug-sections $infile"; status=1; } + + # shouldn't make any difference for stripped files. + testrun ../src/readelf -a $outfile1 > readelf.out || + { echo "*** failure readelf -a outfile1 $infile"; status=1; } + + testrun_compare ../src/readelf -a $outfile2 < readelf.out || + { echo "*** failure compare stripped files $infile"; status=1; } + + # debug files however should be smaller, when ET_REL. + SIZE1=$(stat -c%s $debugfile1) + SIZE2=$(stat -c%s $debugfile2) + test \( \( $is_ET_REL -eq 1 \) -a \( $SIZE1 -gt $SIZE2 \) \) \ + -o \( \( $is_ET_REL -eq 0 \) -a \( $SIZE1 -eq $SIZE2 \) \) || + { echo "*** failure --reloc-debug-sections not smaller $infile"; status=1; } + + # Strip of DWARF section lines, offset will not match. + # Everything else should match. + testrun ../src/readelf -w $debugfile1 \ + | grep -v ^DWARF\ section > readelf.out1 || + { echo "*** failure readelf -w debugfile1 $infile"; status=1; } + + testrun ../src/readelf -w $debugfile2 \ + | grep -v ^DWARF\ section > readelf.out2 || + { echo "*** failure readelf -w debugfile2 $infile"; status=1; } + + testrun_compare cat readelf.out1 < readelf.out2 || + { echo "*** failure readelf -w compare $infile"; status=1; } + + rm -f $outfile1 $debugfile1 $outfile2 $debugfile2 readelf.out* +} + +# Most simple hello world kernel module for various architectures. +# :::::::::::::: +# Makefile +# :::::::::::::: +# obj-m := hello.o +# hello-y := init.o exit.o +# +# all: +# make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules +# :::::::::::::: +# init.c +# :::::::::::::: +# #include <linux/kernel.h> +# #include <linux/module.h> +# +# int init_module(void) +# { +# printk(KERN_INFO "Hello, world!\n"); +# return 0; +# } +# :::::::::::::: +# exit.c +# :::::::::::::: +# #include <linux/kernel.h> +# #include <linux/module.h> +# +# void cleanup_module() +# { +# printk(KERN_INFO "Goodbye, World!\n"); +# } +runtest hello_i386.ko 1 +runtest hello_x86_64.ko 1 +runtest hello_ppc64.ko 1 +runtest hello_s390.ko 1 + +# self test, shouldn't impact non-ET_REL files at all. +runtest ../src/strip 0 +runtest ../src/strip.o 1 + +exit $status diff --git a/tests/run-strip-test.sh b/tests/run-strip-test.sh index e056f890..c6c7c094 100755 --- a/tests/run-strip-test.sh +++ b/tests/run-strip-test.sh @@ -1,28 +1,20 @@ #! /bin/sh # Copyright (C) 1999, 2000, 2002, 2003, 2005, 2007, 2008 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # Written by Ulrich Drepper <[email protected]>, 1999. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-strip-test2.sh b/tests/run-strip-test2.sh index a5858d2e..92171966 100755 --- a/tests/run-strip-test2.sh +++ b/tests/run-strip-test2.sh @@ -1,28 +1,20 @@ #! /bin/sh # Copyright (C) 1999, 2000, 2002, 2005 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # Written by Ulrich Drepper <[email protected]>, 1999. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. original=testfile8 diff --git a/tests/run-strip-test3.sh b/tests/run-strip-test3.sh index 3d52f6e9..fb37a769 100755 --- a/tests/run-strip-test3.sh +++ b/tests/run-strip-test3.sh @@ -1,28 +1,20 @@ #! /bin/sh # Copyright (C) 1999, 2000, 2002, 2003, 2005 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # Written by Ulrich Drepper <[email protected]>, 1999. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. original=testfile12 diff --git a/tests/run-test-flag-nobits.sh b/tests/run-test-flag-nobits.sh index 1fae6603..15667565 100755 --- a/tests/run-test-flag-nobits.sh +++ b/tests/run-test-flag-nobits.sh @@ -1,27 +1,19 @@ #! /bin/sh # Copyright (C) 2010 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/run-typeiter.sh b/tests/run-typeiter.sh new file mode 100755 index 00000000..3a453ab4 --- /dev/null +++ b/tests/run-typeiter.sh @@ -0,0 +1,50 @@ +#! /bin/sh +# Copyright (C) 2012 Red Hat, Inc. +# This file is part of elfutils. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# elfutils is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +. $srcdir/test-subr.sh + +# struct s1 +# { +# char c; +# short s; +# int i; +# long l; +# float f; +# double d; +# }; +# +# s1 S1; +# +# int func (s1 *p) +# { +# return p->i; +# } +# +# int main() +# { +# return func (&S1); +# } +# +# g++ -gdwarf-4 -g -fdebug-types-section + +testfiles testfile59 + +testrun_compare ./typeiter testfile59 <<\EOF +ok +EOF + +exit 0 diff --git a/tests/run-unstrip-n.sh b/tests/run-unstrip-n.sh new file mode 100755 index 00000000..342a6adc --- /dev/null +++ b/tests/run-unstrip-n.sh @@ -0,0 +1,45 @@ +#! /bin/sh +# Copyright (C) 2012 Red Hat, Inc. +# This file is part of elfutils. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# elfutils is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +. $srcdir/test-subr.sh + +# https://bugzilla.redhat.com/show_bug.cgi?id=805447 +# eu-unstrip emits garbage for librt.so.1 +# +# #include <stdio.h> +# #include <sys/mman.h> +# +# int main(int argc, char **argv) +# { +# // Yes, this crashes... That is the point. +# return shm_open(argv[1], 0, 0); +# } +# +# gcc -m32 -o rt_crash -lrt rt_crash.c + +testfiles testcore-rtlib + +testrun_compare ../src/unstrip -n --core=testcore-rtlib <<\EOF +0x8048000+0x2000 f1c600bc36cb91bf01f9a63a634ecb79aa4c3199@0x8048178 . - [exe] +0xf77d6000+0x1000 676560b1b765cde9c2e53f134f4ee354ea894747@0xf77d6210 . - linux-gate.so.1 +0xf77b3000+0x9000 c6c5b5e35ab9589d4762ac85b4bd56b1b2720e37@0xf77b3164 /lib/librt.so.1 - librt.so.1 +0xf7603000+0x1b0000 0b9bf374699e141e5dfc14757ff42b8c2373b4de@0xf7603184 /lib/libc.so.6 - libc.so.6 +0xf75e9000+0x1a000 29a103420abe341e92072fb14274e250e4072148@0xf75e9164 /lib/libpthread.so.0 - libpthread.so.0 +0xf77d7000+0x21000 6d2cb32650054f1c176d01d48713a4a5e5e84c1a@0xf77d7124 /lib/ld-linux.so.2 - ld-linux.so.2 +EOF + +exit 0 diff --git a/tests/run-unstrip-test.sh b/tests/run-unstrip-test.sh index b9959a10..36549430 100755 --- a/tests/run-unstrip-test.sh +++ b/tests/run-unstrip-test.sh @@ -1,27 +1,19 @@ #! /bin/sh # Copyright (C) 2007-2010 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# This file is part of elfutils. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. . $srcdir/test-subr.sh diff --git a/tests/saridx.c b/tests/saridx.c index d95777f9..8a450d82 100644 --- a/tests/saridx.c +++ b/tests/saridx.c @@ -1,27 +1,19 @@ /* Copyright (C) 1998, 1999, 2000, 2002 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 1998. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <config.h> diff --git a/tests/scnnames.c b/tests/scnnames.c index 4ced85c4..7f268258 100644 --- a/tests/scnnames.c +++ b/tests/scnnames.c @@ -1,27 +1,19 @@ /* Copyright (C) 1998, 1999, 2000, 2002, 2005 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 1998. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <config.h> diff --git a/tests/sectiondump.c b/tests/sectiondump.c index 3fdde54b..f8659549 100644 --- a/tests/sectiondump.c +++ b/tests/sectiondump.c @@ -1,27 +1,19 @@ /* Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 1998. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <config.h> diff --git a/tests/sha1-tst.c b/tests/sha1-tst.c deleted file mode 100644 index 9ff8141b..00000000 --- a/tests/sha1-tst.c +++ /dev/null @@ -1,79 +0,0 @@ -/* Copyright (C) 2008 Red Hat, Inc. - This file is part of Red Hat elfutils. - Written by Ulrich Drepper <[email protected]>, 2008. - - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. - - Red Hat elfutils is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ - -#include <stdio.h> -#include <string.h> - -#include <sha1.h> - - -int -main (void) -{ - char buf[1000]; - int result = 0; - - struct sha1_ctx ctx; - sha1_init_ctx (&ctx); - sha1_process_bytes ("abc", 3, &ctx); - sha1_finish_ctx (&ctx, buf); - static const char expected1[SHA1_DIGEST_SIZE] = - "\xa9\x99\x3e\x36\x47\x06\x81\x6a\xba\x3e" - "\x25\x71\x78\x50\xc2\x6c\x9c\xd0\xd8\x9d"; - if (memcmp (buf, expected1, SHA1_DIGEST_SIZE) != 0) - { - puts ("test 1 failed"); - result = 1; - } - - sha1_init_ctx (&ctx); - sha1_process_bytes ("\ -abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", 56, &ctx); - sha1_finish_ctx (&ctx, buf); - static const char expected2[SHA1_DIGEST_SIZE] = - "\x84\x98\x3e\x44\x1c\x3b\xd2\x6e\xba\xae" - "\x4a\xa1\xf9\x51\x29\xe5\xe5\x46\x70\xf1"; - if (memcmp (buf, expected2, SHA1_DIGEST_SIZE) != 0) - { - puts ("test 2 failed"); - result = 1; - } - - sha1_init_ctx (&ctx); - memset (buf, 'a', sizeof (buf)); - for (int i = 0; i < 1000; ++i) - sha1_process_bytes (buf, sizeof (buf), &ctx); - sha1_finish_ctx (&ctx, buf); - static const char expected3[SHA1_DIGEST_SIZE] = - "\x34\xaa\x97\x3c\xd4\xc4\xda\xa4\xf6\x1e" - "\xeb\x2b\xdb\xad\x27\x31\x65\x34\x01\x6f"; - if (memcmp (buf, expected3, SHA1_DIGEST_SIZE) != 0) - { - puts ("test 3 failed"); - result = 1; - } - - return result; -} diff --git a/tests/show-abbrev.c b/tests/show-abbrev.c index 75fddf5e..b0af0297 100644 --- a/tests/show-abbrev.c +++ b/tests/show-abbrev.c @@ -1,27 +1,19 @@ /* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004, 2005 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 1998. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <config.h> diff --git a/tests/show-ciefde.c b/tests/show-ciefde.c deleted file mode 100644 index d1e2f78f..00000000 --- a/tests/show-ciefde.c +++ /dev/null @@ -1,230 +0,0 @@ -/* Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. - This file is part of Red Hat elfutils. - Written by Ulrich Drepper <[email protected]>, 1998. - - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. - - Red Hat elfutils is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ - -#include <config.h> - -#include <fcntl.h> -#include <libelf.h> -#include <libdwarf.h> -#include <stdio.h> -#include <string.h> -#include <unistd.h> - -int -main (int argc, char *argv[]) -{ - int cnt; - - for (cnt = 1; cnt < argc; ++cnt) - { - int fd = open (argv[cnt], O_RDONLY); - Dwarf_Debug dbg; - Dwarf_Signed cie_cnt; - Dwarf_Cie *cie_data; - Dwarf_Signed fde_cnt; - Dwarf_Fde *fde_data; - Dwarf_Error err; - - if (dwarf_init (fd, DW_DLC_READ, NULL, NULL, &dbg, &err) != DW_DLV_OK) - { - printf ("%s not usable: %s\n", argv[cnt], dwarf_errmsg (err)); - continue; - } - else if (dwarf_get_fde_list_eh (dbg, &cie_data, &cie_cnt, &fde_data, - &fde_cnt, &err) != DW_DLV_OK) - printf ("cannot get CIEs and FDEs from %s: %s\n", argv[cnt], - dwarf_errmsg (err)); - else - { - Dwarf_Addr low_pc; - Dwarf_Addr high_pc; - Dwarf_Unsigned func_length; - Dwarf_Ptr fde_bytes; - Dwarf_Unsigned fde_byte_length; - Dwarf_Off cie_offset; - Dwarf_Signed cie_index; - Dwarf_Off fde_offset; - Dwarf_Fde fde; - int i; - - printf ("%s has %lld CIEs and %lld FDEs\n", - basename (argv[cnt]), - (long long int) cie_cnt, (long long int) fde_cnt); - - for (i = 0; i < cie_cnt; ++i) - { - Dwarf_Unsigned bytes_in_cie; - Dwarf_Small version; - char *augmenter; - Dwarf_Unsigned code_alignment_factor; - Dwarf_Signed data_alignment_factor; - Dwarf_Half return_address_register; - Dwarf_Ptr initial_instructions; - Dwarf_Unsigned initial_instructions_length; - - if (dwarf_get_cie_info (cie_data[i], &bytes_in_cie, &version, - &augmenter, &code_alignment_factor, - &data_alignment_factor, - &return_address_register, - &initial_instructions, - &initial_instructions_length, &err) - != DW_DLV_OK) - printf ("cannot get info for CIE %d: %s\n", i, - dwarf_errmsg (err)); - else - { - size_t j; - - printf ("CIE[%d]: bytes_in_cie = %llu, version = %hhd, augmenter = \"%s\"\n", - i, (unsigned long long int) bytes_in_cie, version, - augmenter); - printf ("CIE[%d]: code_alignment_factor = %llx\n" - "CIE[%d]: data_alignment_factor = %llx\n" - "CIE[%d]: return_address_register = %hu\n" - "CIE[%d]: bytes =", - i, (unsigned long long int) code_alignment_factor, - i, (unsigned long long int) data_alignment_factor, - i, return_address_register, i); - - for (j = 0; j < initial_instructions_length; ++j) - printf (" %02hhx", - ((unsigned char *) initial_instructions)[j]); - - putchar ('\n'); - } - } - - for (i = 0; i < fde_cnt; ++i) - { - Dwarf_Cie cie; - - if (dwarf_get_fde_range (fde_data[i], &low_pc, &func_length, - &fde_bytes, &fde_byte_length, - &cie_offset, &cie_index, &fde_offset, - &err) != DW_DLV_OK) - printf ("cannot get range of FDE %d: %s\n", i, - dwarf_errmsg (err)); - else - { - size_t j; - Dwarf_Ptr instrs; - Dwarf_Unsigned len; - - printf ("FDE[%d]: low_pc = %#llx, length = %llu\n", i, - (unsigned long long int) low_pc, - (unsigned long long int) func_length); - printf ("FDE[%d]: bytes =", i); - - for (j = 0; j < fde_byte_length; ++j) - printf (" %02hhx", ((unsigned char *) fde_bytes)[j]); - - printf ("\nFDE[%d]: cie_offset = %lld, cie_index = %lld, fde_offset = %lld\n", - i, (long long int) cie_offset, - (long long int) cie_index, - (long long int) fde_offset); - - if (dwarf_get_fde_instr_bytes (fde_data[i], &instrs, &len, - &err) != DW_DLV_OK) - printf ("cannot get instructions of FDE %d: %s\n", i, - dwarf_errmsg (err)); - else - { - printf ("FDE[%d]: instructions =", i); - - for (j = 0; j < len; ++j) - printf (" %02hhx", ((unsigned char *) instrs)[j]); - - putchar ('\n'); - } - - /* Consistency check. */ - if (dwarf_get_cie_of_fde (fde_data[i], &cie, &err) - != DW_DLV_OK) - printf ("cannot get CIE of FDE %d: %s\n", i, - dwarf_errmsg (err)); - else if (cie_data[cie_index] != cie) - puts ("cie_index for FDE[%d] does not match dwarf_get_cie_of_fde result"); - } - - if (dwarf_get_fde_n (fde_data, i, &fde, &err) != DW_DLV_OK) - printf ("dwarf_get_fde_n for FDE[%d] failed\n", i); - else if (fde != fde_data[i]) - printf ("dwarf_get_fde_n for FDE[%d] didn't return the right value\n", i); - } - - if (dwarf_get_fde_n (fde_data, fde_cnt, &fde, &err) - != DW_DLV_NO_ENTRY) - puts ("dwarf_get_fde_n for invalid index doesn't return DW_DLV_NO_ENTRY"); - - { - const unsigned int addrs[] = - { - 0x8048400, 0x804842c, 0x8048454, 0x8048455, 0x80493fc - }; - const int naddrs = sizeof (addrs) / sizeof (addrs[0]); - - for (i = 0; i < naddrs; ++i) - if (dwarf_get_fde_at_pc (fde_data, addrs[i], &fde, &low_pc, - &high_pc, &err) != DW_DLV_OK) - printf ("no FDE at %x\n", addrs[i]); - else - { - Dwarf_Addr other_low_pc; - - if (dwarf_get_fde_range (fde, &other_low_pc, &func_length, - &fde_bytes, &fde_byte_length, - &cie_offset, &cie_index, - &fde_offset, &err) != DW_DLV_OK) - printf ("cannot get range of FDE returned by dwarf_get_fde_at_pc for %u: %s\n", - addrs[i], dwarf_errmsg (err)); - else - { - printf ("FDE[@%x]: cie_offset = %lld, cie_index = %lld, fde_offset = %lld\n", - addrs[i], - (long long int) cie_offset, - (long long int) cie_index, - (long long int) fde_offset); - - if (low_pc != other_low_pc) - printf ("low_pc returned by dwarf_get_fde_at_pc for %x and dwarf_get_fde_range differs", - addrs[i]); - - if (high_pc != low_pc + func_length - 1) - printf ("high_pc returned by dwarf_get_fde_at_pc for %x and dwarf_get_fde_range differs", - addrs[i]); - } - } - } - } - - if (dwarf_finish (dbg, &err) != DW_DLV_OK) - printf ("dwarf_finish failed for %s: %s\n", argv[cnt], - dwarf_errmsg (err)); - - close (fd); - } - - return 0; -} diff --git a/tests/show-die-info.c b/tests/show-die-info.c index 19015ca1..cdd0d54f 100644 --- a/tests/show-die-info.c +++ b/tests/show-die-info.c @@ -1,27 +1,19 @@ /* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004, 2006 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 1998. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <config.h> diff --git a/tests/showptable.c b/tests/showptable.c index bae17f3b..a794b0e8 100644 --- a/tests/showptable.c +++ b/tests/showptable.c @@ -1,27 +1,19 @@ /* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2005 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 1998. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <config.h> diff --git a/tests/test-flag-nobits.c b/tests/test-flag-nobits.c index 3a79da91..e58d8c3d 100644 --- a/tests/test-flag-nobits.c +++ b/tests/test-flag-nobits.c @@ -1,26 +1,18 @@ /* Copyright (C) 2010 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <fcntl.h> #include <stdlib.h> diff --git a/tests/test-nlist.c b/tests/test-nlist.c index f73955f7..679c911b 100644 --- a/tests/test-nlist.c +++ b/tests/test-nlist.c @@ -1,27 +1,19 @@ /* Copyright (C) 2000, 2002, 2005 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 2000. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <nlist.h> #include <stdio.h> diff --git a/tests/test-subr.sh b/tests/test-subr.sh index cb34b93b..09efa534 100644 --- a/tests/test-subr.sh +++ b/tests/test-subr.sh @@ -1,27 +1,19 @@ #! /bin/sh -# Copyright (C) 2005, 2007, 2008 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# Copyright (C) 2005-2012 Red Hat, Inc. +# This file is part of elfutils. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. # This file is sourced by ". $srcdir/test-subr.sh" at the start of @@ -99,7 +91,8 @@ installed_testrun() ;; esac if [ "${libdir}" != /usr/lib ] && [ "${libdir}" != /usr/lib64 ]; then - LD_LIBRARY_PATH="${libdir}${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" \ + LD_LIBRARY_PATH="${libdir}:${libdir}/elfutils\ +${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" \ $program ${1+"$@"} else $program ${1+"$@"} diff --git a/tests/test-wrapper.sh b/tests/test-wrapper.sh index 3477e382..96ddb742 100755 --- a/tests/test-wrapper.sh +++ b/tests/test-wrapper.sh @@ -1,27 +1,19 @@ #! /bin/sh -# Copyright (C) 2005 Red Hat, Inc. -# This file is part of Red Hat elfutils. +# Copyright (C) 2005-2012 Red Hat, Inc. +# This file is part of elfutils. # -# Red Hat elfutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; version 2 of the License. +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Red Hat elfutils is distributed in the hope that it will be useful, but +# elfutils is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Red Hat elfutils; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. -# -# Red Hat elfutils is an included package of the Open Invention Network. -# An included package of the Open Invention Network is a package for which -# Open Invention Network licensees cross-license their patents. No patent -# license is granted, either expressly or impliedly, by designation as an -# included package. Should you wish to participate in the Open Invention -# Network licensing program, please visit www.openinventionnetwork.com -# <http://www.openinventionnetwork.com>. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. # We don't compile in an rpath because we want "make installcheck" to @@ -46,6 +38,8 @@ else elfutils_testrun=built fi +old_path="${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" + case "$1" in *.sh) export built_library_path program_transform_name elfutils_testrun @@ -53,15 +47,14 @@ case "$1" in ;; *) if [ $elfutils_testrun = built ]; then - LD_LIBRARY_PATH="$built_library_path${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" - export LD_LIBRARY_PATH + LD_LIBRARY_PATH="$built_library_path$old_path" elif [ $elfutils_tests_rpath = yes ]; then echo >&2 installcheck not possible with --enable-tests-rpath exit 77 elif [ "x$libdir" != x/usr/lib ] && [ "x$libdir" != x/usr/lib64 ]; then - LD_LIBRARY_PATH="$libdir${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" - export LD_LIBRARY_PATH + LD_LIBRARY_PATH="${libdir}:${libdir}/elfutils$old_path" fi + export LD_LIBRARY_PATH ;; esac diff --git a/tests/testcore-rtlib.bz2 b/tests/testcore-rtlib.bz2 Binary files differnew file mode 100644 index 00000000..1dc0f1a3 --- /dev/null +++ b/tests/testcore-rtlib.bz2 diff --git a/tests/testfile58.bz2 b/tests/testfile58.bz2 Binary files differnew file mode 100644 index 00000000..839efd92 --- /dev/null +++ b/tests/testfile58.bz2 diff --git a/tests/testfile59.bz2 b/tests/testfile59.bz2 Binary files differnew file mode 100755 index 00000000..bcee648c --- /dev/null +++ b/tests/testfile59.bz2 diff --git a/tests/testfile_low_high_pc.bz2 b/tests/testfile_low_high_pc.bz2 Binary files differnew file mode 100755 index 00000000..f20814aa --- /dev/null +++ b/tests/testfile_low_high_pc.bz2 diff --git a/tests/testlib_dynseg.so.bz2 b/tests/testlib_dynseg.so.bz2 Binary files differnew file mode 100755 index 00000000..94296a4c --- /dev/null +++ b/tests/testlib_dynseg.so.bz2 diff --git a/tests/typeiter.c b/tests/typeiter.c new file mode 100644 index 00000000..dff45260 --- /dev/null +++ b/tests/typeiter.c @@ -0,0 +1,90 @@ +/* Copyright (C) 2012 Red Hat, Inc. + This file is part of elfutils. + + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + elfutils is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ + +#ifdef HAVE_CONFIG_H +# include <config.h> +#endif + +#include <fcntl.h> +#include ELFUTILS_HEADER(dw) +#include <stdio.h> +#include <unistd.h> +#include <dwarf.h> + +int +main (int argc, char *argv[]) +{ + for (int i = 1; i < argc; ++i) + { + int fd = open (argv[i], O_RDONLY); + + Dwarf *dbg = dwarf_begin (fd, DWARF_C_READ); + if (dbg != NULL) + { + Dwarf_Off off = 0; + size_t cuhl; + Dwarf_Off noff; + + while (dwarf_nextcu (dbg, off, &noff, &cuhl, NULL, NULL, NULL) == 0) + { + Dwarf_Die die_mem; + Dwarf_Die *die = dwarf_offdie (dbg, off + cuhl, &die_mem); + + Dwarf_Die iter_mem; + Dwarf_Die *iter = &iter_mem; + dwarf_child (die, &iter_mem); + + while (1) + { + if (dwarf_tag (iter) == DW_TAG_variable) + { + Dwarf_Attribute attr_mem; + Dwarf_Die form_mem; + dwarf_formref_die (dwarf_attr (iter, DW_AT_type, + &attr_mem), + &form_mem); + } + + if (dwarf_siblingof (iter, &iter_mem) != 0) + break; + } + + off = noff; + } + + off = 0; + uint64_t type_sig; + + while (dwarf_next_unit (dbg, off, &noff, &cuhl, NULL, NULL, NULL, + NULL, &type_sig, NULL) == 0) + { + Dwarf_Die die_mem; + Dwarf_Die *die = dwarf_offdie_types (dbg, off + cuhl, &die_mem); + + if (die == NULL) + printf ("fail\n"); + else + printf ("ok\n"); + + off = noff; + } + + dwarf_end (dbg); + } + + close (fd); + } +} diff --git a/tests/update1.c b/tests/update1.c index 6c038c9a..9e40686e 100644 --- a/tests/update1.c +++ b/tests/update1.c @@ -1,28 +1,20 @@ /* Test program for elf_update function. Copyright (C) 2000, 2002, 2005 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 2000. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifdef HAVE_CONFIG_H # include <config.h> diff --git a/tests/update2.c b/tests/update2.c index 330e731f..42326943 100644 --- a/tests/update2.c +++ b/tests/update2.c @@ -1,28 +1,20 @@ /* Test program for elf_update function. Copyright (C) 2000, 2002, 2005 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 2000. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifdef HAVE_CONFIG_H # include <config.h> diff --git a/tests/update3.c b/tests/update3.c index 756d0159..1a62b34b 100644 --- a/tests/update3.c +++ b/tests/update3.c @@ -1,28 +1,20 @@ /* Test program for elf_update function. Copyright (C) 2000, 2002, 2005 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 2000. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifdef HAVE_CONFIG_H # include <config.h> diff --git a/tests/update4.c b/tests/update4.c index e4263783..f5f91e31 100644 --- a/tests/update4.c +++ b/tests/update4.c @@ -1,28 +1,20 @@ /* Test program for elf_update function. Copyright (C) 2000, 2001, 2002, 2005 Red Hat, Inc. - This file is part of Red Hat elfutils. + This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 2000. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifdef HAVE_CONFIG_H # include <config.h> |
