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