[PATCH] libdw: dwarf_get_units find split units from .dwo.

Mark Wielaard mark@klomp.org
Wed May 16 19:16:00 GMT 2018


For a skeleton DIE dwarf_get_units should provide the split DIE as subdie.
This implements that by trying to find the (named) .dwo file and finding
the matching CU in it. The .dwo file is search relative to the current
DWARF or using the comp_dir of the skeleton DIE.

Also fixes a small issue with str_offsets_base_off which is tested in the
new testcase (by getting the name of the split CU DIE).

Signed-off-by: Mark Wielaard <mark@klomp.org>
---
 libdw/ChangeLog                 |  15 +++++
 libdw/Makefile.am               |   3 +-
 libdw/dwarf_end.c               |   5 ++
 libdw/dwarf_get_units.c         |  23 ++++++--
 libdw/libdwP.h                  |  14 ++++-
 libdw/libdw_find_split_unit.c   | 118 ++++++++++++++++++++++++++++++++++++++++
 libdw/libdw_findcu.c            |   1 +
 tests/ChangeLog                 |  20 +++++++
 tests/Makefile.am               |  10 +++-
 tests/get-units-split.c         | 101 ++++++++++++++++++++++++++++++++++
 tests/run-get-units-split.sh    |  65 ++++++++++++++++++++++
 tests/testfile-dwarf-45.source  |   8 +++
 tests/testfile-hello4.dwo.bz2   | Bin 0 -> 1453 bytes
 tests/testfile-hello5.dwo.bz2   | Bin 0 -> 1520 bytes
 tests/testfile-splitdwarf-4.bz2 | Bin 0 -> 3591 bytes
 tests/testfile-splitdwarf-5.bz2 | Bin 0 -> 3611 bytes
 tests/testfile-world4.dwo.bz2   | Bin 0 -> 1444 bytes
 tests/testfile-world5.dwo.bz2   | Bin 0 -> 1498 bytes
 18 files changed, 374 insertions(+), 9 deletions(-)
 create mode 100644 libdw/libdw_find_split_unit.c
 create mode 100644 tests/get-units-split.c
 create mode 100755 tests/run-get-units-split.sh
 create mode 100644 tests/testfile-hello4.dwo.bz2
 create mode 100644 tests/testfile-hello5.dwo.bz2
 create mode 100755 tests/testfile-splitdwarf-4.bz2
 create mode 100755 tests/testfile-splitdwarf-5.bz2
 create mode 100644 tests/testfile-world4.dwo.bz2
 create mode 100644 tests/testfile-world5.dwo.bz2

diff --git a/libdw/ChangeLog b/libdw/ChangeLog
index 385f52c..a87a709 100644
--- a/libdw/ChangeLog
+++ b/libdw/ChangeLog
@@ -1,5 +1,20 @@
 2018-05-15  Mark Wielaard  <mark@klomp.org>
 
+	* Makefile.am (libdw_a_SOURCES): Add libdw_find_split_unit.c.
+	* dwarf_end.c (cu_free): Free split Dwarf.
+	* dwarf_get_units.c (dwarf_get_units): Handle DW_UT_skeleton by
+	calling __libdw_find_split_unit.
+	* libdwP.h (struct Dwarf_CU): Add split Dwarf_CU field.
+	(__libdw_find_split_unit): New function prototype.
+	(str_offsets_base_off): Use cu Dwarf if dbg is NULL.
+	(filepath): Rename to ...
+	(__libdw_filepath): This. Which is the actual function name in
+	dwarf_getalt.c.
+	(libdw_find_split_unit.c): New file.
+	* libdw_findcu.c (__libdw_intern_next_unit): Initialize split to -1.
+
+2018-05-15  Mark Wielaard  <mark@klomp.org>
+
 	* libdwP.h (__libdw_first_die_from_cu_start): Adjust commented out
 	asserts.
 	* libdw_findcu.c (__libdw_intern_next_unit): For version 4 DWARF if
diff --git a/libdw/Makefile.am b/libdw/Makefile.am
index 8848f14..ba9919c 100644
--- a/libdw/Makefile.am
+++ b/libdw/Makefile.am
@@ -90,7 +90,8 @@ libdw_a_SOURCES = dwarf_begin.c dwarf_begin_elf.c dwarf_end.c dwarf_getelf.c \
 		  dwarf_getlocation_die.c dwarf_getlocation_attr.c \
 		  dwarf_getalt.c dwarf_setalt.c dwarf_cu_getdwarf.c \
 		  dwarf_cu_die.c dwarf_peel_type.c dwarf_default_lower_bound.c \
-		  dwarf_die_addr_die.c dwarf_get_units.c
+		  dwarf_die_addr_die.c dwarf_get_units.c \
+		  libdw_find_split_unit.c
 
 if MAINTAINER_MODE
 BUILT_SOURCES = $(srcdir)/known-dwarf.h
diff --git a/libdw/dwarf_end.c b/libdw/dwarf_end.c
index f6915ab..43223de 100644
--- a/libdw/dwarf_end.c
+++ b/libdw/dwarf_end.c
@@ -55,6 +55,11 @@ cu_free (void *arg)
   Dwarf_Abbrev_Hash_free (&p->abbrev_hash);
 
   tdestroy (p->locs, noop_free);
+
+  /* Free split dwarf one way (from skeleton to split).  */
+  if (p->unit_type == DW_UT_skeleton
+      && p->split != NULL && p->split != (void *)-1)
+    INTUSE(dwarf_end) (p->split->dbg);
 }
 
 
diff --git a/libdw/dwarf_get_units.c b/libdw/dwarf_get_units.c
index 19ff5de..aece17e 100644
--- a/libdw/dwarf_get_units.c
+++ b/libdw/dwarf_get_units.c
@@ -100,10 +100,25 @@ dwarf_get_units (Dwarf *dwarf, Dwarf_CU *cu, Dwarf_CU **next_cu,
 
   if (subdie != NULL)
     {
-      if (next->version >= 2 && next->version <= 5
-	  && (next->unit_type == DW_UT_type
-	      || next->unit_type == DW_UT_split_type))
-	*subdie = SUBDIE(next);
+      if (next->version >= 2 && next->version <= 5)
+	{
+	  /* For types, return the actual type DIE.  For skeletons,
+	     find the associated split compile unit and return its
+	     DIE.  */
+	  if (next->unit_type == DW_UT_type
+	      || next->unit_type == DW_UT_split_type)
+	    *subdie = SUBDIE(next);
+	  else if (next->unit_type == DW_UT_skeleton)
+	    {
+	      Dwarf_CU *split_cu = __libdw_find_split_unit (next);
+	      if (split_cu != NULL)
+		*subdie = CUDIE(split_cu);
+	      else
+		memset (subdie, '\0', sizeof (Dwarf_Die));
+	    }
+	  else
+	    memset (subdie, '\0', sizeof (Dwarf_Die));
+	}
       else
 	memset (subdie, '\0', sizeof (Dwarf_Die));
     }
diff --git a/libdw/libdwP.h b/libdw/libdwP.h
index 25a5ad3..6057227 100644
--- a/libdw/libdwP.h
+++ b/libdw/libdwP.h
@@ -314,6 +314,12 @@ struct Dwarf_CU
   size_t subdie_offset;
   uint64_t unit_id8;
 
+  /* If this is a skeleton unit this points to the split compile unit.
+     Or the other way around if this is a split compile unit.  Set to -1
+     if not yet searched.  Always use __libdw_find_split_unit to access
+     this field.  */
+  struct Dwarf_CU *split;
+
   /* Hash table for the abbreviations.  */
   Dwarf_Abbrev_Hash abbrev_hash;
   /* Offset of the first abbreviation.  */
@@ -589,6 +595,9 @@ extern struct Dwarf_CU *__libdw_findcu (Dwarf *dbg, Dwarf_Off offset, bool tu)
 extern struct Dwarf_CU *__libdw_findcu_addr (Dwarf *dbg, void *addr)
      __nonnull_attribute__ (1) internal_function;
 
+/* Find the split (or skeleton) unit.  */
+extern struct Dwarf_CU *__libdw_find_split_unit (Dwarf_CU *cu);
+
 /* Get abbreviation with given code.  */
 extern Dwarf_Abbrev *__libdw_findabbrev (struct Dwarf_CU *cu,
 					 unsigned int code)
@@ -972,6 +981,9 @@ str_offsets_base_off (Dwarf *dbg, Dwarf_CU *cu)
 	      cu->str_off_base = 0;
 	      return cu->str_off_base;
 	    }
+
+	  if (dbg == NULL)
+	    dbg = cu->dbg;
 	}
       else
 	return cu->str_off_base;
@@ -1051,7 +1063,7 @@ static inline Dwarf_Off __libdw_cu_str_off_base (Dwarf_CU *cu)
    constructed NULL is returned.
 
    The caller is responsible for freeing the result if not NULL.  */
-char * filepath (int fd, const char *dir, const char *file)
+char * __libdw_filepath (int fd, const char *dir, const char *file)
   internal_function;
 
 
diff --git a/libdw/libdw_find_split_unit.c b/libdw/libdw_find_split_unit.c
new file mode 100644
index 0000000..0f74b39
--- /dev/null
+++ b/libdw/libdw_find_split_unit.c
@@ -0,0 +1,118 @@
+/* Find the split (or skeleton) unit for a given unit.
+   Copyright (C) 2018 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 either
+
+     * the GNU Lesser General Public License as published by the Free
+       Software Foundation; either version 3 of the License, or (at
+       your option) any later version
+
+   or
+
+     * the GNU General Public License as published by the Free
+       Software Foundation; either version 2 of the License, or (at
+       your option) any later version
+
+   or both in parallel, as here.
+
+   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 copies of the GNU General Public License and
+   the GNU Lesser General Public License along with this program.  If
+   not, see <http://www.gnu.org/licenses/>.  */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include "libdwP.h"
+#include "libelfP.h"
+
+#include <limits.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <unistd.h>
+
+
+Dwarf_CU *
+internal_function
+__libdw_find_split_unit (Dwarf_CU *cu)
+{
+  /* Only try once.  */
+  if (cu->split != (Dwarf_CU *) -1)
+    return cu->split;
+
+  /* We need a skeleton unit with a comp_dir and [GNU_]dwo_name attributes.
+     The split unit will be the first in the dwo file and should have the
+     same id as the skeleton.  */
+  if (cu->unit_type == DW_UT_skeleton)
+    {
+      Dwarf_Die cudie = CUDIE (cu);
+      Dwarf_Attribute compdir, dwo_name;
+      /* It is fine if compdir doesn't exists, but then dwo_name needs
+	 to be an absolute path.  Also try relative path first.  */
+      dwarf_attr (&cudie, DW_AT_comp_dir, &compdir);
+	if (dwarf_attr (&cudie, DW_AT_dwo_name, &dwo_name) != NULL
+	    || dwarf_attr (&cudie, DW_AT_GNU_dwo_name, &dwo_name) != NULL)
+	{
+	  const char *comp_dir = dwarf_formstring (&compdir);
+	  const char *dwo_file = dwarf_formstring (&dwo_name);
+	  int fd = cu->dbg->elf->fildes;
+	  char *dwo_path = __libdw_filepath (fd, NULL, dwo_file);
+	  if (dwo_path == NULL && comp_dir != NULL)
+	    dwo_path = __libdw_filepath (fd, comp_dir, dwo_file);
+	  if (dwo_path != NULL)
+	    {
+	      int split_fd = open (dwo_path, O_RDONLY);
+	      if (split_fd != -1)
+		{
+		  Dwarf *split_dwarf = dwarf_begin (split_fd, DWARF_C_READ);
+		  if (split_dwarf != NULL)
+		    {
+		      Dwarf_CU *split = NULL;
+		      while (dwarf_get_units (split_dwarf, split, &split,
+					      NULL, NULL, NULL, NULL) == 0)
+			{
+			  if (split->unit_type == DW_UT_split_compile
+			      && cu->unit_id8 == split->unit_id8)
+			    {
+			      /* Link skeleton and split compule units.  */
+			      cu->split = split;
+			      split->split = cu;
+
+			      /* We have everything we need from this
+				 ELF file.  And we are going to close
+				 the fd to not run out of file
+				 descriptors.  */
+			      elf_cntl (split_dwarf->elf, ELF_C_FDDONE);
+			      break;
+			    }
+
+			  if (cu->split == (Dwarf_CU *) -1)
+			    dwarf_end (split_dwarf);
+			}
+		      /* Always close, because we don't want to run
+			 out of file descriptors.  See also the
+			 elf_fcntl ELF_C_FDDONE call above.  */
+		    }
+		  close (split_fd);
+		}
+	      free (dwo_path);
+	    }
+	}
+    }
+
+  /* If we found nothing, make sure we don't try again.  */
+  if (cu->split == (Dwarf_CU *) -1)
+    cu->split = NULL;
+
+  return cu->split;
+}
diff --git a/libdw/libdw_findcu.c b/libdw/libdw_findcu.c
index 0a65c97..d6975f3 100644
--- a/libdw/libdw_findcu.c
+++ b/libdw/libdw_findcu.c
@@ -116,6 +116,7 @@ __libdw_intern_next_unit (Dwarf *dbg, bool debug_types)
   newp->orig_abbrev_offset = newp->last_abbrev_offset = abbrev_offset;
   newp->lines = NULL;
   newp->locs = NULL;
+  newp->split = (Dwarf_CU *) -1;
   newp->base_address = (Dwarf_Addr) -1;
   newp->addr_base = (Dwarf_Off) -1;
   newp->str_off_base = (Dwarf_Off) -1;
diff --git a/tests/ChangeLog b/tests/ChangeLog
index 16011c8..b865ad5 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -1,3 +1,23 @@
+2018-05-16  Mark Wielaard  <mark@klomp.org>
+
+	* Makefile.am (check_PROGRAMS): Add get-units-split.
+	(TESTS): Add run-get-units-split.sh.
+	(EXTRA_DIST): Add run-get-units-split.sh, testfile-hello4.dwo.bz2,
+	testfile-hello5.dwo.bz2, testfile-splitdwarf-4.bz2,
+	testfile-splitdwarf-5.bz2, testfile-world5.dwo.bz2 and
+	testfile-world4.dwo.bz2.
+	(get_units_split_LDADD): New variable.
+	* get-units-split.c: New test.
+	* run-get-units-split.sh: New test runner.
+	* testfile-dwarf-45.source: Extend with build instructions for new
+	test files.
+	* testfile-hello4.dwo.bz2: New test file.
+	* testfile-hello5.dwo.bz2: Likewise.
+	* testfile-splitdwarf-4.bz2: Likewise.
+	* testfile-splitdwarf-5.bz2: Likewise.
+	* testfile-world5.dwo.bz2 and: Likewise.
+	* testfile-world4.dwo.bz2: Likewise.
+
 2018-05-09  Mark Wielaard  <mark@klomp.org>
 
 	* run-readelf-zdebug.sh: Adjust test output for new header layout.
diff --git a/tests/Makefile.am b/tests/Makefile.am
index ac16a5e..07165d8 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -56,7 +56,7 @@ check_PROGRAMS = arextract arsymtest newfile saridx scnnames sectiondump \
 		  elfshphehdr elfstrmerge dwelfgnucompressed elfgetchdr \
 		  elfgetzdata elfputzdata zstrptr emptyfile vendorelf \
 		  fillfile dwarf_default_lower_bound dwarf-die-addr-die \
-		  get-units-invalid
+		  get-units-invalid get-units-split
 
 asm_TESTS = asm-tst1 asm-tst2 asm-tst3 asm-tst4 asm-tst5 \
 	    asm-tst6 asm-tst7 asm-tst8 asm-tst9
@@ -140,7 +140,7 @@ TESTS = run-arextract.sh run-arsymtest.sh run-ar.sh newfile test-nlist \
 	run-readelf-zdebug.sh run-readelf-zdebug-rel.sh \
 	emptyfile vendorelf fillfile dwarf_default_lower_bound \
 	run-dwarf-die-addr-die.sh \
-	run-get-units-invalid.sh
+	run-get-units-invalid.sh run-get-units-split.sh
 
 if !BIARCH
 export ELFUTILS_DISABLE_BIARCH = 1
@@ -361,7 +361,10 @@ EXTRA_DIST = run-arextract.sh run-arsymtest.sh run-ar.sh \
 	     testfile-bpf-dis1.expect.bz2 testfile-bpf-dis1.o.bz2 \
 	     testfile-m68k-core.bz2 testfile-m68k.bz2 testfile-m68k-s.bz2 \
 	     run-dwarf-die-addr-die.sh \
-	     run-get-units-invalid.sh
+	     run-get-units-invalid.sh run-get-units-split.sh \
+	     testfile-hello4.dwo.bz2 testfile-hello5.dwo.bz2 \
+	     testfile-splitdwarf-4.bz2 testfile-splitdwarf-5.bz2 \
+	     testfile-world5.dwo.bz2 testfile-world4.dwo.bz2
 
 if USE_VALGRIND
 valgrind_cmd='valgrind -q --leak-check=full --error-exitcode=1'
@@ -521,6 +524,7 @@ fillfile_LDADD = $(libelf)
 dwarf_default_lower_bound_LDADD = $(libdw)
 dwarf_die_addr_die_LDADD = $(libdw)
 get_units_invalid_LDADD = $(libdw)
+get_units_split_LDADD = $(libdw)
 
 # We want to test the libelf header against the system elf.h header.
 # Don't include any -I CPPFLAGS.
diff --git a/tests/get-units-split.c b/tests/get-units-split.c
new file mode 100644
index 0000000..410483a
--- /dev/null
+++ b/tests/get-units-split.c
@@ -0,0 +1,101 @@
+/* Test dwarf_get_units finds split DWO CUs.
+   Copyright (C) 2018 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 <dwarf.h>
+#include ELFUTILS_HEADER(dw)
+#include <stdio.h>
+#include <inttypes.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <unistd.h>
+
+
+int
+main (int argc, char *argv[])
+{
+  for (int i = 1; i < argc; i++)
+    {
+      printf ("file: %s\n", argv[i]);
+      int fd = open (argv[i], O_RDONLY);
+      Dwarf *dbg = dwarf_begin (fd, DWARF_C_READ);
+      if (dbg == NULL)
+	{
+	  printf ("%s not usable: %s\n", argv[i], dwarf_errmsg (-1));
+	  return -1;
+	}
+
+      Dwarf_CU *cu = NULL;
+      Dwarf_Die cudie, subdie;
+      uint8_t unit_type;
+      int count = 0;
+      while (dwarf_get_units (dbg, cu, &cu, NULL,
+			      &unit_type, &cudie, &subdie) == 0)
+	{
+	  count++;
+	  printf ("Got cudie unit_type: %" PRIx8 "\n", unit_type);
+
+	  if (unit_type == DW_UT_skeleton)
+	    {
+	      Dwarf_CU *skel_cu = cudie.cu;
+	      Dwarf_CU *split_cu = subdie.cu;
+	      Dwarf_Die skel_die, split_die;
+	      uint64_t skel_id, split_id;
+
+	      printf ("Found a skeleton unit, with split die: %s\n",
+		      dwarf_diename (&subdie));
+
+	      if (dwarf_cu_die (skel_cu, &skel_die, NULL, NULL, NULL, NULL,
+				&skel_id, NULL) == NULL)
+		{
+		  printf ("bad skel_cu: %s\n", dwarf_errmsg (-1));
+		  return -1;
+		}
+
+	      if (dwarf_cu_die (split_cu, &split_die, NULL, NULL, NULL, NULL,
+				&split_id, NULL) == NULL)
+		{
+		  printf ("bad skel_cu: %s\n", dwarf_errmsg (-1));
+		  return -1;
+		}
+
+	      if (skel_id != split_id)
+		{
+		  printf ("Skeleton id and Split id not equal!\n");
+		  return -1;
+		}
+	    }
+	}
+
+      if (count == 0)
+	{
+	  printf ("No units found\n");
+	  return -1;
+	}
+
+      dwarf_end (dbg);
+      close (fd);
+
+      printf ("\n");
+    }
+
+  return 0;
+}
diff --git a/tests/run-get-units-split.sh b/tests/run-get-units-split.sh
new file mode 100755
index 0000000..7b13694
--- /dev/null
+++ b/tests/run-get-units-split.sh
@@ -0,0 +1,65 @@
+#! /bin/sh
+# Copyright (C) 2018 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
+
+# See run-typeiter.sh
+testfiles testfile-debug-types
+
+testrun ${abs_builddir}/get-units-split testfile-debug-types
+
+# see run-readelf-dwz-multi.sh
+testfiles testfile_multi_main testfile_multi.dwz
+
+testrun ${abs_builddir}/get-units-split testfile_multi_main
+
+# see tests/run-dwflsyms.sh
+testfiles testfilebazdbgppc64.debug
+
+testrun ${abs_builddir}/get-units-split testfilebazdbgppc64.debug
+
+# see tests/testfile-dwarf-45.source
+testfiles testfile-dwarf-4 testfile-dwarf-5
+testfiles testfile-splitdwarf-4 testfile-hello4.dwo testfile-world4.dwo
+testfiles testfile-splitdwarf-5 testfile-hello5.dwo testfile-world5.dwo
+
+testrun ${abs_builddir}/get-units-split testfile-dwarf-4
+testrun ${abs_builddir}/get-units-split testfile-dwarf-5
+
+# These two files are the only ones that actually have skeleton units.
+testrun_compare ${abs_builddir}/get-units-split testfile-splitdwarf-4 << \EOF
+file: testfile-splitdwarf-4
+Got cudie unit_type: 4
+Found a skeleton unit, with split die: hello.c
+Got cudie unit_type: 4
+Found a skeleton unit, with split die: world.c
+
+EOF
+
+testrun_compare ${abs_builddir}/get-units-split testfile-splitdwarf-5 << \EOF
+file: testfile-splitdwarf-5
+Got cudie unit_type: 4
+Found a skeleton unit, with split die: hello.c
+Got cudie unit_type: 4
+Found a skeleton unit, with split die: world.c
+
+EOF
+
+# Self test
+testrun_on_self ${abs_builddir}/get-units-split
+
+exit 0
diff --git a/tests/testfile-dwarf-45.source b/tests/testfile-dwarf-45.source
index c9c4446..584c8f7 100644
--- a/tests/testfile-dwarf-45.source
+++ b/tests/testfile-dwarf-45.source
@@ -79,3 +79,11 @@ $ gcc -o testfile-dwarf-4 hello.o world.o
 $ gcc -gdwarf-5 -gno-as-loc-support -gno-variable-location-views -O2 -c world.c
 $ gcc -gdwarf-5 -gno-as-loc-support -gno-variable-location-views -O2 -c hello.c
 $ gcc -o testfile-dwarf-5 hello.o world.o
+
+$ gcc -gdwarf-4 -gsplit-dwarf -gno-as-loc-support -gno-variable-location-views -O2 -o testfile-world4.o -c world.c
+$ gcc -gdwarf-4 -gsplit-dwarf -gno-as-loc-support -gno-variable-location-views -O2 -o testfile-hello4.o -c hello.c
+$ gcc -o testfile-splitdwarf-4 testfile-hello4.o testfile-world4.o
+
+$ gcc -gdwarf-5 -gsplit-dwarf -gno-as-loc-support -gno-variable-location-views -O2 -o testfile-world5.o -c world.c
+$ gcc -gdwarf-5 -gsplit-dwarf -gno-as-loc-support -gno-variable-location-views -O2 -o testfile-hello5.o -c hello.c
+$ gcc -o testfile-splitdwarf-5 testfile-hello5.o testfile-world5.o
diff --git a/tests/testfile-hello4.dwo.bz2 b/tests/testfile-hello4.dwo.bz2
new file mode 100644
index 0000000000000000000000000000000000000000..fe02d65cd5489804d9dc76d82b5e9f365c1b71a3
GIT binary patch
literal 1453
zcmV;e1ycG#T4*^jL0KkKS-}ChCjbIG|NsC0|Nj5~|NsC0-~a#r|L_0(|97AN|Nno#
z|NsC0|NqbfUIH}7H%N@8O-9l^Cy5&*+6JT4@{dvKdV%FMHls{H+J~v?X`?{X(@@Z8
zX`@D(GB&5CqfCZ_G}33PdPk^eJtGrhXpbcIG}F+JDe7$18fK^Jo}<ML4@t5@6KY@$
z5r9k+OaK6CZ6;(1lO_O|0iX$!0i=2~(?FX-dIqK@n9u`3Fvyqy34jE_qGDmGfJ_+*
zq%;5k00003KmgDH00000000wA34j0rpa1{>000001TX~2f&c-a0B8UJGynhq0004?
z00000GyrG-00000001-q01W^D289TdC#R`4MAJh?O&&zVX`s_;2ATlS01S+pFq$;e
zBSSzL2ATi>27mwtfCE4p8UO$TMoj?FU`EHJIfg7)s0~1(pV_JBrB|pS0LhRUa7uVj
z+aWbzn^*ws%^g9aGiBA7TtD2VVWe<0%yP!LfKPA8L{nxe)uaG`Y;XqN`4<|flJ}ti
z=3oFqT)_(KqF<h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Lkowz(|+;>_9
z^wEURh~TM5_h=9|bIuI9vSmoBF&i?2E=e1FsGouIg|)9IUIIZTb&eqqg%{oA7qy$8
zQbqKsrZS%?)S3f_U{1lm*;V(CgYck>Cq8l4bfJ#NgT{So0`9bqXaEbSj)6ZA!D#zh
zt08d?N|}olhFXP^Q_Z#-1Bzg2J@@pv1lte=wV1J1LxoPzh5wdpn=<YI&>W&mY7Ln&
zg(Y`J^~n%&{BRU8N`YUIEHo3F{kY8v_U3X?4oA_*M;VZ~ZB)`1^c3LIzwvh@Q-ui(
H5F3(ko7IvT

literal 0
HcmV?d00001

diff --git a/tests/testfile-hello5.dwo.bz2 b/tests/testfile-hello5.dwo.bz2
new file mode 100644
index 0000000000000000000000000000000000000000..e911375ef24fdf29d83103a66132b41b08822089
GIT binary patch
literal 1520
zcmV<M1rPc{T4*^jL0KkKS-YC{5&!}*|NsC0{onup|NsC0|NsC0|L_0*|NsC0|NsC0
z{r~^(|NqbfUITl*p6kcEHH@k1Vqi@)G{6ahV3+_V(WGH84NMv)00001FbRR60003n
zXcJ5m00h%aG5`|+JxA&TCZ+=-k5kkPnjWLm8lyppnwc>S5cM{o#0;LNq}rJ_rjOM&
zNb~`cZ4*pPAkZ{=O_VTtrk;u928}}+8VF?c8kwZiOlSneGBh$XO%9%*022UA0$?-%
zOaK6w27m^D0F5vJ&;STv4JH5p000000$^yEnr#380O_MCnhgyQHi?FUVH!M|1lmj{
z27sP{H1q-uFaV4uhG+?Z27mwn(lRhK0iX${00009=o%0jA|z!SN$E887)F{sO+8FN
zG(91N05lp8Pyo=-G-;p)gC^8^ngOPO13&-(2c!TR8Z>APGz}i6fEobM$U~S|s;NpA
zD5v*#CAfWBxqGP)O(cYvB+nfFTXNGpr~!a^c}O(8yG`WnY}!d*BdD0KG9dj`Kp-KE
zJ-?uV0RV6&(k}CUjiFcw08Ynqd_XfGMqq$5GcyEGPzWLguQ8Z?kT47-jLHDRF(DQE
zP>Vqph~^C548`?bnXidi3K*FMLBS}Ny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q{ZM%Rs)C
zXoaJ56QZwkidY(10PR7xVJDpL`R$)CKD(w_28&SOB=<c<CDzMyGWAI*PGYmK{?sDR
zhAy?bNSv;uGgVS!k|o<#qi1r>Gg+$&7u4qF{I1xLC$iS*P32kzd&sFRSNnf8?FEhX
z2(H8=XOBVi4m>TQ_p3r+2`^_aIy7i_wZQmYVd-Z<HJGYHBC;k%j-^qU>j3m@Y3z+A
zO@)FbY0BlI$Cv6Z8zh8ow-V!F66ymI=r{vBUf}|URl~Y@z6|R>p<grNjLN|Nfh*f+
W$eLG#0#<AX?-z1KI8czgn)VXAX{Cz*

literal 0
HcmV?d00001

diff --git a/tests/testfile-splitdwarf-4.bz2 b/tests/testfile-splitdwarf-4.bz2
new file mode 100755
index 0000000000000000000000000000000000000000..a1871e619e19a282a9b485f0202395e81f6202a0
GIT binary patch
literal 3591
zcmV+i4*2mxT4*^jL0KkKS<jRFGyo2g|NsC0|NsC0|NsC0|L_0*|NHO%{pWMk|3&}b
zdf)$l|6AY;Zg*YZV_Os*dOdq=LaTEN6^F6YyyA_vhUczb?}ms7Mu81U?I)!5JrwXV
zjS1>zr=br?wLF@QG|eWMCYn7@(i7Cs)6khTJp?j(j7FPNBWVGnPf?Qzpwmq>&}r&2
zX!K0f4Ke|u1Zkitv>7xap3x)JdTKQEnrPEQK+);}kOqJN8Z-?6&;S4cXa;})0D3?G
zG-v<-2%2f4X-`!B5`L)A^#C*mng)+h0000D00xYMLqGrk0004|fB?_~L7)H)001-r
zAtFr^K{T1EKSECs)M(RBMp5Ky9-~L3Hj_;Tngc^esAx24>HugOVl)i~fDHf|0MY6+
z13(%800w~rLq>oA00E#H0BC3c00w{>000dD00E$40gz|_(?9@ZXaHyc01Of+LYPtd
zO%%^m*)u|#HlWY}>NE$aH1v%C001-tL7+CHKxhL%13&-(Gynhq00E$FO)n?AP{umC
zXQxwp;&9RnrvfSAzAT7m%m6|$zGPbPU~=2X`L;<fGSV<;HjGrnQ%SQZ(w2hQuv9c-
zpOI9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)`u5&>TZ1_Wb<_+~H<A%H&SlZKtlNWcJIVHKff?BHvV
zhvRq&5N1ln6$1b%fx`+slQRNYhMJkLa5bSapcq`nS(^0>SCYZOSs_q?gd9R}^~wbX
zW=3Kti9+simQ!Zrs=kP2$1>aLLboQsnphHGxos6JpC5Q^vrMUB8buIB<3LcLVxft)
zP$(CngHYFqtRpOpxeMYc>z9R6?3e;@uHYySh{haNDUS8}@>weO!{Xc*Fyffa>WS(R
zZpaI*QC|8++FwjDFKY_KB7+RZ(U!%8*UVdOlW-ukgCM|>D=LsOQYz+mBneeeDp`Wm
zV5T}y+R!W%p+NK(vt>?P%F)_<CMdBXSTGDQ0~fHQr~%RulWd_;ifkxbu~0}41BmKv
zsnL1h7z{@^t}1|lgk8k|<iNqT2tLnXvwqN>PKYFQ*6G0}(2%K72oJ_CR3J$t=@9{D
z6%&`4H3iQPiivf`<5N7)fpKm@6|~DiKW8BKS|U{e>@9RGf`?BT4U8x)ZfGD`nh=p=
zWakE5>!QMfst|-9W`d*P$V`(xBs~};a0~zv%KIZ?mK=(ODk3QqF->4=Ld+zb<1JTv
z^{`_MvEojo6bAud08mOGy7j|43*bEM!&60EAF+N41SBm;cH1?;FFaMtQH&sRm_#4z
z*-X7uJEdglAS~d|CE`NYK?)^gQNIdsJlk%iVkR1fEKGsVG4vq_Q~%OXu(C)&;?Xv*
zMQ?s+egp(S_>VCUaVG(Q)z^Z?la2Y{p|c0(O&{G_HX{CmP@%d-6QTFDNo%J99ICDw
zv)-O>4;nme=L7G!W>wpK#T?5<kl8_deJCP{*2Y3=E9ZoT2HSx_8}czD5_1@cAhqAV
zXCqTme1upnv~Nt1#ZHM4(y@PTOdwz|>N9?NqB5mdYVmaDy-w1_WDN}b8`4htOaHo<
N7ji{7P>|1){4}S(bT|M2

literal 0
HcmV?d00001

diff --git a/tests/testfile-splitdwarf-5.bz2 b/tests/testfile-splitdwarf-5.bz2
new file mode 100755
index 0000000000000000000000000000000000000000..27ff3bd6cdef305941dabc51f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^=FI6zhxG(a2`@e0jgeU@C+
z3n4C65sbc~nlNG!(2%P6Nq`3;7j6eqNjii9c~%6A`svFoYI<lHo?kxt^EuA8p9UcX
zzA+6v-K<bJoCeQIkrY7xbJgOgl(^x?3eI!POj;l5VE5F?_$!UJu>z{7BFxXu$CQUC
z5268wKtKQuQ}2|7gCUW;r6O2CVzmJXEy_beI1ExmkYHK18UZlO0FOEb#c_1HsEYnW
zrx))<g5uC(HFfj+!qp5G)L~-~Q4s6g&eUVW(W`U4_Sj(GkuH)LT(H;4usnc<0{?Pm
z5D+i|LHeC))TS7vhA9L%WlB==Pj|1;od;S#>9QZd?{NH0Dpupwa$5%S8-z6szug*z
zqZ@D5sAoL#UHEh$ZP>s}7U*QL*<$t+UXuprCyB3TExXHklscw}VLIkS(2WGQ7Yb^j
z64Dr&fY5!R?;i3-An-wVrq;W_=wq_j(EXAu7z~XI5Exb~ks7RD+mZ+v3_DEUrl^dm
hRoJ|pIl8I%ELI~&1g-#j{{4dg7ji{7P>_f-@g2L?i(&u(

literal 0
HcmV?d00001

diff --git a/tests/testfile-world4.dwo.bz2 b/tests/testfile-world4.dwo.bz2
new file mode 100644
index 0000000000000000000000000000000000000000..297fe5fa9c5df6db885cdcb73d4b5bd4057f8c66
GIT binary patch
literal 1444
zcmV;V1zY+;T4*^jL0KkKS)pE7i~s^WfB*mg|NpOl|Nnpg|NsB@|NsC0|NsC0{{P?q
z@Bjb*|NqbfUITAly~ld?)*zSx>I{uNNv6;UzyO+QfshH4MhWN<fD=tU0vH28m<EJ1
z)P{xtCIAyd3FtJ^FljM8Mw=u*PywP~I!B-YPeCvM011Eq4FCWD002EhKr}r-0yNr8
z0000Z000000iXa(nJ^K7lr(4n011hc0001J(J%ne000dD0GI#}Vrhd@000000004?
z012i7X^ffzl#Kw$nTmR9ZA~^QngV3PG++X0qb8UDA({lx84Li8sffvjrV|<?MhyWp
z$kDYLX@CF#ntEzuP}4`CCQJ=ABs3}NdWPDjKn9HfXwcBpN2CUTG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#q_|E=8lr;b<DK=FwZd260Vhb;UnfQf}eWMihz*r4e=ozvFff$nFm&#}$
z@H1kj|2^-->tZg8P)~`QVqJg$ut+Y+!1?{fV40cF+0m8!MXp7yiwi~-gVb5yYcie8
zn0iMf-hwX6212zM4E2I)933mmJEF2#W=wq)zxc01;%lE~X?4hscl&0|C1HP7bz$~u
zxE=!ttzQ{`BYtDZ`&02t`VNPHLKNC|16$A-LUF|_JJE|gb4@p>6v|@Lyh*3`>WbzP
z<v))+mLR$19>Y1h?Exk&XeeY_6v#n~K9z;Q_~DJ$d;NpuIQ;>73!%K6fKWEYtx5pS
z=d1q;;x#pV>U#enDeOPXl%$)rCy+RgBZ&v&IYilEx*iMSB(jzkvW!oN0(!x?ZpQ{#
yZV8ada^pdc@^fvXsGJX>*DAidw3LDg7`%<;W4^1+ra49)ad#wBg$W83<%qxn3xQJr

literal 0
HcmV?d00001

diff --git a/tests/testfile-world5.dwo.bz2 b/tests/testfile-world5.dwo.bz2
new file mode 100644
index 0000000000000000000000000000000000000000..d5c852c38776422291e8db2136f3198dfec16f44
GIT binary patch
literal 1498
zcmV<01tt1IT4*^jL0KkKSuLLU{{RAL|NsC0|NsC0|NH;{|NsC0|NH;{|Ns5>|Nejf
z|Ns2^|G&@!ec@HzUcAl73Z|n|PgB%+FsF(#dQCj0Pbs09O$`U6@{EA=jUJ{z(TVD4
z@gve6pz@nY4K&f}XgxzU00U^$)4@hT>OD=U@`tIXsj)*r>S>APH1!%i5dA20Vj7t<
z(i#9734j0zvW92@GB5*1ngE!drquN?C!hc{X)s0tWMMD>007j$m_`6h1k(|K3W-kz
zGe%R|Mw%lgj5H=RPg74xrU240Fal|S1j(jD5Yd8U!7((*(<4nV02(F$00A;GF*16Y
zF*cJ4h{VAOGD2jY)ZVBF(THfoX_E*8N2oG185uM(VAR4IG%{jnWDN{PfM{p{G-${e
znlPA{CPPgOnE(JXX`?_GqLlP%ZBJ348ZrPqAO_R`002Ee4FL5301r{>8UO$Q00000
z0000000w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