Blame SOURCES/elfutils-0.176-xlate-note.patch

02b998
commit 28b5f578ae772bb2404c3847e4e22ad1c407af54
02b998
Author: Mark Wielaard <mark@klomp.org>
02b998
Date:   Tue Apr 30 13:00:17 2019 +0200
02b998
02b998
    libelf: If xlate can only convert the ELF note header, just do that.
02b998
    
02b998
    When we started parsing new style ELF_T_NHDR8 notes we added extra
02b998
    checks on alignment and padding. When those failed we would stop
02b998
    converting and just return the rest of the ELF Note unconverted.
02b998
    In the case were we just had enough data for just the ELF Note header
02b998
    and the destionation and source weren't the same we would then
02b998
    accidentially throw away the Note header conversion we just did.
02b998
    
02b998
    Fix that by indicating we did correctly convert just the header.
02b998
    
02b998
    Adds testcase that compares parsing ELF notes with gelf_getnote
02b998
    and parsing the raw data by hand using elf32_xlatetom using just
02b998
    the Note header and ignoring the (raw) note data.
02b998
    
02b998
    Signed-off-by: Mark Wielaard <mark@klomp.org>
02b998
02b998
diff --git a/libelf/note_xlate.h b/libelf/note_xlate.h
02b998
index bc9950f..7e2784b 100644
02b998
--- a/libelf/note_xlate.h
02b998
+++ b/libelf/note_xlate.h
02b998
@@ -47,13 +47,25 @@ elf_cvt_note (void *dest, const void *src, size_t len, int encode,
02b998
       note_len += n->n_namesz;
02b998
       note_len = nhdr8 ? NOTE_ALIGN8 (note_len) : NOTE_ALIGN4 (note_len);
02b998
       if (note_len > len || note_len < sizeof *n)
02b998
-	break;
02b998
+	{
02b998
+	  /* Header was translated, nothing else.  */
02b998
+	  len -= sizeof *n;
02b998
+	  src += sizeof *n;
02b998
+	  dest += sizeof *n;
02b998
+	  break;
02b998
+	}
02b998
 
02b998
       /* data as a whole needs to be aligned.  */
02b998
       note_len += n->n_descsz;
02b998
       note_len = nhdr8 ? NOTE_ALIGN8 (note_len) : NOTE_ALIGN4 (note_len);
02b998
       if (note_len > len || note_len < sizeof *n)
02b998
-	break;
02b998
+	{
02b998
+	  /* Header was translated, nothing else.  */
02b998
+	  len -= sizeof *n;
02b998
+	  src += sizeof *n;
02b998
+	  dest += sizeof *n;
02b998
+	  break;
02b998
+	}
02b998
 
02b998
       /* Copy or skip the note data.  */
02b998
       size_t note_data_len = note_len - sizeof *n;
02b998
diff --git a/tests/Makefile.am b/tests/Makefile.am
02b998
index 1b0c7d3..498c1db 100644
02b998
--- a/tests/Makefile.am
02b998
+++ b/tests/Makefile.am
02b998
@@ -60,7 +60,7 @@ check_PROGRAMS = arextract arsymtest newfile saridx scnnames sectiondump \
02b998
 		  fillfile dwarf_default_lower_bound dwarf-die-addr-die \
02b998
 		  get-units-invalid get-units-split attr-integrate-skel \
02b998
 		  all-dwarf-ranges unit-info next_cfi \
02b998
-		  elfcopy addsections
02b998
+		  elfcopy addsections xlate_notes
02b998
 
02b998
 asm_TESTS = asm-tst1 asm-tst2 asm-tst3 asm-tst4 asm-tst5 \
02b998
 	    asm-tst6 asm-tst7 asm-tst8 asm-tst9
02b998
@@ -159,7 +159,7 @@ TESTS = run-arextract.sh run-arsymtest.sh run-ar.sh newfile test-nlist \
02b998
 	run-next-cfi.sh run-next-cfi-self.sh \
02b998
 	run-copyadd-sections.sh run-copymany-sections.sh \
02b998
 	run-typeiter-many.sh run-strip-test-many.sh \
02b998
-	run-strip-version.sh
02b998
+	run-strip-version.sh run-xlate-note.sh
02b998
 
02b998
 if !BIARCH
02b998
 export ELFUTILS_DISABLE_BIARCH = 1
02b998
@@ -423,7 +423,8 @@ EXTRA_DIST = run-arextract.sh run-arsymtest.sh run-ar.sh \
02b998
 	     testfile-debug-rel-ppc64-g.o.bz2 \
02b998
 	     testfile-debug-rel-ppc64-z.o.bz2 \
02b998
 	     testfile-debug-rel-ppc64.o.bz2 \
02b998
-	     run-strip-version.sh testfile-version.bz2
02b998
+	     run-strip-version.sh testfile-version.bz2 \
02b998
+	     run-xlate-note.sh
02b998
 
02b998
 if USE_VALGRIND
02b998
 valgrind_cmd='valgrind -q --leak-check=full --error-exitcode=1'
02b998
@@ -593,6 +594,7 @@ unit_info_LDADD = $(libdw)
02b998
 next_cfi_LDADD = $(libelf) $(libdw)
02b998
 elfcopy_LDADD = $(libelf)
02b998
 addsections_LDADD = $(libelf)
02b998
+xlate_notes_LDADD = $(libelf)
02b998
 
02b998
 # We want to test the libelf header against the system elf.h header.
02b998
 # Don't include any -I CPPFLAGS. Except when we install our own elf.h.
02b998
diff --git a/tests/run-xlate-note.sh b/tests/run-xlate-note.sh
02b998
new file mode 100755
02b998
index 0000000..a907418
02b998
--- /dev/null
02b998
+++ b/tests/run-xlate-note.sh
02b998
@@ -0,0 +1,93 @@
02b998
+# Copyright (C) 2019 Red Hat, Inc.
02b998
+# This file is part of elfutils.
02b998
+#
02b998
+# This file is free software; you can redistribute it and/or modify
02b998
+# it under the terms of the GNU General Public License as published by
02b998
+# the Free Software Foundation; either version 3 of the License, or
02b998
+# (at your option) any later version.
02b998
+#
02b998
+# elfutils is distributed in the hope that it will be useful, but
02b998
+# WITHOUT ANY WARRANTY; without even the implied warranty of
02b998
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
02b998
+# GNU General Public License for more details.
02b998
+#
02b998
+# You should have received a copy of the GNU General Public License
02b998
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
02b998
+
02b998
+. $srcdir/test-subr.sh
02b998
+
02b998
+testfiles testfileppc32
02b998
+testrun_compare ${abs_top_builddir}/tests/xlate_notes testfileppc32 << EOF
02b998
+Notes in section 2:
02b998
+type: 1,1, namesz: 4,4, descsz: 16,16
02b998
+Notes in section 3:
02b998
+type: 3,3, namesz: 4,4, descsz: 20,20
02b998
+EOF
02b998
+
02b998
+testfiles testfileppc64
02b998
+testrun_compare ${abs_top_builddir}/tests/xlate_notes testfileppc64 << EOF
02b998
+Notes in section 2:
02b998
+type: 1,1, namesz: 4,4, descsz: 16,16
02b998
+Notes in section 3:
02b998
+type: 3,3, namesz: 4,4, descsz: 20,20
02b998
+EOF
02b998
+
02b998
+testfiles testfiles390
02b998
+testrun_compare ${abs_top_builddir}/tests/xlate_notes testfiles390 << EOF
02b998
+Notes in section 2:
02b998
+type: 1,1, namesz: 4,4, descsz: 16,16
02b998
+Notes in section 3:
02b998
+type: 3,3, namesz: 4,4, descsz: 20,20
02b998
+EOF
02b998
+
02b998
+testfiles testfiles390x
02b998
+testrun_compare ${abs_top_builddir}/tests/xlate_notes testfiles390x << EOF
02b998
+Notes in section 2:
02b998
+type: 1,1, namesz: 4,4, descsz: 16,16
02b998
+Notes in section 3:
02b998
+type: 3,3, namesz: 4,4, descsz: 20,20
02b998
+EOF
02b998
+
02b998
+testfiles testfileaarch64
02b998
+testrun_compare ${abs_top_builddir}/tests/xlate_notes testfileaarch64 << EOF
02b998
+Notes in section 2:
02b998
+type: 1,1, namesz: 4,4, descsz: 16,16
02b998
+Notes in section 3:
02b998
+type: 3,3, namesz: 4,4, descsz: 20,20
02b998
+EOF
02b998
+
02b998
+testfiles testfilearm
02b998
+testrun_compare ${abs_top_builddir}/tests/xlate_notes testfilearm << EOF
02b998
+Notes in section 2:
02b998
+type: 1,1, namesz: 4,4, descsz: 16,16
02b998
+Notes in section 3:
02b998
+type: 3,3, namesz: 4,4, descsz: 20,20
02b998
+EOF
02b998
+
02b998
+testfiles testfile_gnu_props.32be.o
02b998
+testrun_compare ${abs_top_builddir}/tests/xlate_notes testfile_gnu_props.32be.o << EOF
02b998
+Notes in section 4:
02b998
+type: 5,5, namesz: 4,4, descsz: 12,12
02b998
+type: 5,5, namesz: 4,4, descsz: 8,8
02b998
+EOF
02b998
+
02b998
+testfiles testfile_gnu_props.32le.o
02b998
+testrun_compare ${abs_top_builddir}/tests/xlate_notes testfile_gnu_props.32le.o << EOF
02b998
+Notes in section 4:
02b998
+type: 5,5, namesz: 4,4, descsz: 12,12
02b998
+type: 5,5, namesz: 4,4, descsz: 8,8
02b998
+EOF
02b998
+
02b998
+testfiles testfile_gnu_props.64be.o
02b998
+testrun_compare ${abs_top_builddir}/tests/xlate_notes testfile_gnu_props.64be.o << EOF
02b998
+Notes in section 4:
02b998
+type: 5,5, namesz: 4,4, descsz: 16,16
02b998
+type: 5,5, namesz: 4,4, descsz: 8,8
02b998
+EOF
02b998
+
02b998
+testfiles testfile_gnu_props.64le.o
02b998
+testrun_compare ${abs_top_builddir}/tests/xlate_notes testfile_gnu_props.64le.o << EOF
02b998
+Notes in section 4:
02b998
+type: 5,5, namesz: 4,4, descsz: 16,16
02b998
+type: 5,5, namesz: 4,4, descsz: 8,8
02b998
+EOF
02b998
diff --git a/tests/xlate_notes.c b/tests/xlate_notes.c
02b998
new file mode 100644
02b998
index 0000000..90a4ae2
02b998
--- /dev/null
02b998
+++ b/tests/xlate_notes.c
02b998
@@ -0,0 +1,157 @@
02b998
+/* Test program for extracting ELF Note headers and getting whole notes.
02b998
+   Copyright (C) 2019 Red Hat, Inc.
02b998
+   This file is part of elfutils.
02b998
+
02b998
+   This file is free software; you can redistribute it and/or modify
02b998
+   it under the terms of the GNU General Public License as published by
02b998
+   the Free Software Foundation; either version 3 of the License, or
02b998
+   (at your option) any later version.
02b998
+
02b998
+   elfutils is distributed in the hope that it will be useful, but
02b998
+   WITHOUT ANY WARRANTY; without even the implied warranty of
02b998
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
02b998
+   GNU General Public License for more details.
02b998
+
02b998
+   You should have received a copy of the GNU General Public License
02b998
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
02b998
+
02b998
+#ifdef HAVE_CONFIG_H
02b998
+# include <config.h>
02b998
+#endif
02b998
+
02b998
+#include <errno.h>
02b998
+#include <fcntl.h>
02b998
+#include <inttypes.h>
02b998
+#include <stdio.h>
02b998
+#include <stdlib.h>
02b998
+#include <string.h>
02b998
+#include <unistd.h>
02b998
+
02b998
+#include ELFUTILS_HEADER(elf)
02b998
+#include <gelf.h>
02b998
+
02b998
+int
02b998
+main (int argc, char *argv[])
02b998
+{
02b998
+  if (argc != 2)
02b998
+    {
02b998
+      printf ("No ELF file given as argument\n");
02b998
+      exit (1);
02b998
+    }
02b998
+
02b998
+  const char *fname = argv[1];
02b998
+
02b998
+  // Initialize libelf.
02b998
+  elf_version (EV_CURRENT);
02b998
+
02b998
+  /* Read the ELF from disk now.  */
02b998
+  int fd = open (fname, O_RDONLY);
02b998
+  if (fd == -1)
02b998
+    {
02b998
+      printf ("cannot open '%s': %s\n", fname, strerror (errno));
02b998
+      exit (1);
02b998
+    }
02b998
+
02b998
+  Elf *elf = elf_begin (fd, ELF_C_READ, NULL);
02b998
+  if (elf == NULL)
02b998
+    {
02b998
+      printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1));
02b998
+      exit (1);
02b998
+    }
02b998
+
02b998
+  GElf_Ehdr ehdr;
02b998
+  if (gelf_getehdr (elf, &ehdr) == NULL)
02b998
+    {
02b998
+      printf ("cannot get Ehdr: %s\n", elf_errmsg (-1));
02b998
+      exit (1);
02b998
+    }
02b998
+
02b998
+  /* Search for all SHT_NOTE sections.  */
02b998
+  Elf_Scn *scn = NULL;
02b998
+  while ((scn = elf_nextscn (elf, scn)) != NULL)
02b998
+    {
02b998
+      /* Get the header.  */
02b998
+      GElf_Shdr shdr;
02b998
+      if (gelf_getshdr (scn, &shdr) == NULL)
02b998
+	{
02b998
+	  printf ("couldn't get shdr: %s\n", elf_errmsg (-1));
02b998
+	  exit (1);
02b998
+	}
02b998
+
02b998
+      if (shdr.sh_type == SHT_NOTE)
02b998
+	{
02b998
+	  printf ("Notes in section %zd:\n", elf_ndxscn (scn));
02b998
+
02b998
+	  Elf_Data *raw = elf_rawdata (scn, NULL);
02b998
+	  if (raw == NULL)
02b998
+	    {
02b998
+	      printf ("couldn't get raw data: %s\n", elf_errmsg (-1));
02b998
+	      exit (1);
02b998
+	    }
02b998
+
02b998
+	  Elf_Data *data = elf_getdata (scn, NULL);
02b998
+	  if (data == NULL)
02b998
+	    {
02b998
+	      printf ("couldn't get data: %s\n", elf_errmsg (-1));
02b998
+	      exit (1);
02b998
+	    }
02b998
+
02b998
+	  size_t off = 0;
02b998
+	  size_t next;
02b998
+	  GElf_Nhdr nhdr;
02b998
+	  size_t n_off;
02b998
+	  size_t d_off;
02b998
+	  while ((next = gelf_getnote (data, off, &nhdr, &n_off, &d_off)) > 0)
02b998
+	    {
02b998
+	      /* Now just get the note header "raw" (don't
02b998
+		 copy/translate the note data). This only handles
02b998
+		 traditional GNU ELF Notes, so we still use the next
02b998
+		 from gelf_getnote (padding is different for new style
02b998
+		 ELF_T_NHDR8 notes).  */
02b998
+	      Elf32_Nhdr nh;
02b998
+	      Elf_Data src =
02b998
+                {
02b998
+                  .d_version = EV_CURRENT, .d_type = ELF_T_NHDR,
02b998
+		  .d_size = sizeof nh
02b998
+                };
02b998
+	      Elf_Data dst = src;
02b998
+	      src.d_buf = raw->d_buf + off;
02b998
+	      dst.d_buf = &nh;
02b998
+
02b998
+	      if (elf32_xlatetom (&dst, &src, ehdr.e_ident[EI_DATA]) == NULL)
02b998
+		{
02b998
+		  printf ("couldn't xlate note: %s\n", elf_errmsg (-1));
02b998
+		  exit (1);
02b998
+		}
02b998
+
02b998
+	      printf ("type: %" PRId32 ",%" PRId32
02b998
+		      ", namesz: %" PRId32 ",%" PRId32
02b998
+		      ", descsz: %" PRId32 ",%" PRId32 "\n",
02b998
+		      nhdr.n_type, nh.n_type,
02b998
+		      nhdr.n_namesz, nh.n_namesz,
02b998
+		      nhdr.n_descsz, nh.n_descsz);
02b998
+
02b998
+	      if (nhdr.n_type != nh.n_type
02b998
+		  || nhdr.n_namesz != nh.n_namesz
02b998
+		  || nhdr.n_descsz != nh.n_descsz)
02b998
+		{
02b998
+		  printf ("Nhdrs not equal!\n");
02b998
+		  exit (1);
02b998
+		}
02b998
+
02b998
+	      off = next;
02b998
+	    }
02b998
+	}
02b998
+
02b998
+    }
02b998
+
02b998
+  if (elf_end (elf) != 0)
02b998
+    {
02b998
+      printf ("failure in elf_end: %s\n", elf_errmsg (-1));
02b998
+      exit (1);
02b998
+    }
02b998
+
02b998
+  close (fd);
02b998
+
02b998
+  return 0;
02b998
+}
02b998
diff -ur elfutils-0.176.orig/tests/Makefile.in elfutils-0.176/tests/Makefile.in
02b998
--- elfutils-0.176.orig/tests/Makefile.in	2019-04-30 22:42:49.534655124 +0200
02b998
+++ elfutils-0.176/tests/Makefile.in	2019-04-30 22:46:30.046656790 +0200
02b998
@@ -131,8 +131,8 @@
02b998
 	get-units-invalid$(EXEEXT) get-units-split$(EXEEXT) \
02b998
 	attr-integrate-skel$(EXEEXT) all-dwarf-ranges$(EXEEXT) \
02b998
 	unit-info$(EXEEXT) next_cfi$(EXEEXT) elfcopy$(EXEEXT) \
02b998
-	addsections$(EXEEXT) $(am__EXEEXT_1) $(am__EXEEXT_2) \
02b998
-	$(am__EXEEXT_4)
02b998
+	addsections$(EXEEXT) xlate_notes$(EXEEXT) $(am__EXEEXT_1) \
02b998
+	$(am__EXEEXT_2) $(am__EXEEXT_4)
02b998
 @BIARCH_TRUE@am__append_5 = backtrace-child-biarch
02b998
 TESTS = run-arextract.sh run-arsymtest.sh run-ar.sh newfile$(EXEEXT) \
02b998
 	test-nlist$(EXEEXT) update1$(EXEEXT) update2$(EXEEXT) \
02b998
@@ -211,8 +211,8 @@
02b998
 	run-unit-info.sh run-reloc-bpf.sh run-next-cfi.sh \
02b998
 	run-next-cfi-self.sh run-copyadd-sections.sh \
02b998
 	run-copymany-sections.sh run-typeiter-many.sh \
02b998
-	run-strip-test-many.sh run-strip-version.sh $(am__EXEEXT_2) \
02b998
-	$(am__append_8) $(am__EXEEXT_5)
02b998
+	run-strip-test-many.sh run-strip-version.sh run-xlate-note.sh \
02b998
+	$(am__EXEEXT_2) $(am__append_8) $(am__EXEEXT_5)
02b998
 @STANDALONE_FALSE@am__append_6 = msg_tst system-elf-libelf-test
02b998
 @STANDALONE_FALSE@am__append_7 = msg_tst system-elf-libelf-test
02b998
 @LZMA_TRUE@am__append_8 = run-readelf-s.sh run-dwflsyms.sh
02b998
@@ -606,6 +606,9 @@
02b998
 vendorelf_SOURCES = vendorelf.c
02b998
 vendorelf_OBJECTS = vendorelf.$(OBJEXT)
02b998
 vendorelf_DEPENDENCIES = $(am__DEPENDENCIES_2)
02b998
+xlate_notes_SOURCES = xlate_notes.c
02b998
+xlate_notes_OBJECTS = xlate_notes.$(OBJEXT)
02b998
+xlate_notes_DEPENDENCIES = $(am__DEPENDENCIES_2)
02b998
 zstrptr_SOURCES = zstrptr.c
02b998
 zstrptr_OBJECTS = zstrptr.$(OBJEXT)
02b998
 zstrptr_DEPENDENCIES = $(am__DEPENDENCIES_2)
02b998
@@ -683,7 +686,7 @@
02b998
 	./$(DEPDIR)/update2.Po ./$(DEPDIR)/update3.Po \
02b998
 	./$(DEPDIR)/update4.Po ./$(DEPDIR)/varlocs.Po \
02b998
 	./$(DEPDIR)/vdsosyms.Po ./$(DEPDIR)/vendorelf.Po \
02b998
-	./$(DEPDIR)/zstrptr.Po
02b998
+	./$(DEPDIR)/xlate_notes.Po ./$(DEPDIR)/zstrptr.Po
02b998
 am__mv = mv -f
02b998
 AM_V_lt = $(am__v_lt_@AM_V@)
02b998
 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
02b998
@@ -726,7 +729,8 @@
02b998
 	showptable.c strptr.c system-elf-libelf-test.c \
02b998
 	test-elf_cntl_gelf_getshdr.c test-flag-nobits.c test-nlist.c \
02b998
 	typeiter.c typeiter2.c unit-info.c update1.c update2.c \
02b998
-	update3.c update4.c varlocs.c vdsosyms.c vendorelf.c zstrptr.c
02b998
+	update3.c update4.c varlocs.c vdsosyms.c vendorelf.c \
02b998
+	xlate_notes.c zstrptr.c
02b998
 DIST_SOURCES = addrcfi.c addrscopes.c addsections.c aggregate_size.c \
02b998
 	all-dwarf-ranges.c alldts.c allfcts.c allregs.c arextract.c \
02b998
 	arls.c arsymtest.c asm-tst1.c asm-tst2.c asm-tst3.c asm-tst4.c \
02b998
@@ -752,7 +756,8 @@
02b998
 	showptable.c strptr.c system-elf-libelf-test.c \
02b998
 	test-elf_cntl_gelf_getshdr.c test-flag-nobits.c test-nlist.c \
02b998
 	typeiter.c typeiter2.c unit-info.c update1.c update2.c \
02b998
-	update3.c update4.c varlocs.c vdsosyms.c vendorelf.c zstrptr.c
02b998
+	update3.c update4.c varlocs.c vdsosyms.c vendorelf.c \
02b998
+	xlate_notes.c zstrptr.c
02b998
 am__can_run_installinfo = \
02b998
   case $$AM_UPDATE_INFO_DIR in \
02b998
     n|no|NO) false;; \
02b998
@@ -1405,7 +1410,8 @@
02b998
 	     testfile-debug-rel-ppc64-g.o.bz2 \
02b998
 	     testfile-debug-rel-ppc64-z.o.bz2 \
02b998
 	     testfile-debug-rel-ppc64.o.bz2 \
02b998
-	     run-strip-version.sh testfile-version.bz2
02b998
+	     run-strip-version.sh testfile-version.bz2 \
02b998
+	     run-xlate-note.sh
02b998
 
02b998
 @USE_VALGRIND_TRUE@valgrind_cmd = 'valgrind -q --leak-check=full --error-exitcode=1'
02b998
 installed_TESTS_ENVIRONMENT = libdir=$(DESTDIR)$(libdir); \
02b998
@@ -1559,6 +1565,7 @@
02b998
 next_cfi_LDADD = $(libelf) $(libdw)
02b998
 elfcopy_LDADD = $(libelf)
02b998
 addsections_LDADD = $(libelf)
02b998
+xlate_notes_LDADD = $(libelf)
02b998
 
02b998
 # We want to test the libelf header against the system elf.h header.
02b998
 # Don't include any -I CPPFLAGS. Except when we install our own elf.h.
02b998
@@ -2011,6 +2018,10 @@
02b998
 	@rm -f vendorelf$(EXEEXT)
02b998
 	$(AM_V_CCLD)$(LINK) $(vendorelf_OBJECTS) $(vendorelf_LDADD) $(LIBS)
02b998
 
02b998
+xlate_notes$(EXEEXT): $(xlate_notes_OBJECTS) $(xlate_notes_DEPENDENCIES) $(EXTRA_xlate_notes_DEPENDENCIES) 
02b998
+	@rm -f xlate_notes$(EXEEXT)
02b998
+	$(AM_V_CCLD)$(LINK) $(xlate_notes_OBJECTS) $(xlate_notes_LDADD) $(LIBS)
02b998
+
02b998
 zstrptr$(EXEEXT): $(zstrptr_OBJECTS) $(zstrptr_DEPENDENCIES) $(EXTRA_zstrptr_DEPENDENCIES) 
02b998
 	@rm -f zstrptr$(EXEEXT)
02b998
 	$(AM_V_CCLD)$(LINK) $(zstrptr_OBJECTS) $(zstrptr_LDADD) $(LIBS)
02b998
@@ -2124,6 +2135,7 @@
02b998
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/varlocs.Po@am__quote@ # am--include-marker
02b998
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vdsosyms.Po@am__quote@ # am--include-marker
02b998
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vendorelf.Po@am__quote@ # am--include-marker
02b998
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xlate_notes.Po@am__quote@ # am--include-marker
02b998
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zstrptr.Po@am__quote@ # am--include-marker
02b998
 
02b998
 $(am__depfiles_remade):
02b998
@@ -3732,6 +3744,13 @@
02b998
 	--log-file $$b.log --trs-file $$b.trs \
02b998
 	$(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
02b998
 	"$$tst" $(AM_TESTS_FD_REDIRECT)
02b998
+run-xlate-note.sh.log: run-xlate-note.sh
02b998
+	@p='run-xlate-note.sh'; \
02b998
+	b='run-xlate-note.sh'; \
02b998
+	$(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
02b998
+	--log-file $$b.log --trs-file $$b.trs \
02b998
+	$(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
02b998
+	"$$tst" $(AM_TESTS_FD_REDIRECT)
02b998
 msg_tst.log: msg_tst$(EXEEXT)
02b998
 	@p='msg_tst$(EXEEXT)'; \
02b998
 	b='msg_tst'; \
02b998
@@ -4027,6 +4046,7 @@
02b998
 	-rm -f ./$(DEPDIR)/varlocs.Po
02b998
 	-rm -f ./$(DEPDIR)/vdsosyms.Po
02b998
 	-rm -f ./$(DEPDIR)/vendorelf.Po
02b998
+	-rm -f ./$(DEPDIR)/xlate_notes.Po
02b998
 	-rm -f ./$(DEPDIR)/zstrptr.Po
02b998
 	-rm -f Makefile
02b998
 distclean-am: clean-am distclean-compile distclean-generic \
02b998
@@ -4176,6 +4196,7 @@
02b998
 	-rm -f ./$(DEPDIR)/varlocs.Po
02b998
 	-rm -f ./$(DEPDIR)/vdsosyms.Po
02b998
 	-rm -f ./$(DEPDIR)/vendorelf.Po
02b998
+	-rm -f ./$(DEPDIR)/xlate_notes.Po
02b998
 	-rm -f ./$(DEPDIR)/zstrptr.Po
02b998
 	-rm -f Makefile
02b998
 maintainer-clean-am: distclean-am maintainer-clean-generic