Control: tags 731846 + patch
Control: tags 731846 + pending

Dear maintainer,

I've prepared an NMU for mutrace (versioned as 0.2.0-3.2) and
uploaded it to mentors for sponsoring. Please feel free to tell me if I
should remove it.

Note:
After fixing the problem with bfd_openr(), it also reported errors with
bfd_get_section_flags() and bfd_get_section_vma(). I took the liberty
to fix them as well at the same time.

--
Regards
Sudip

diff -u mutrace-0.2.0/backtrace-symbols.c mutrace-0.2.0/backtrace-symbols.c
--- mutrace-0.2.0/backtrace-symbols.c
+++ mutrace-0.2.0/backtrace-symbols.c
@@ -127,10 +127,10 @@
        if (found)
                return;
 
-       if ((bfd_get_section_flags(abfd, section) & SEC_ALLOC) == 0)
+       if ((bfd_section_flags(section) & SEC_ALLOC) == 0)
                return;
 
-       vma = bfd_get_section_vma(abfd, section);
+       vma = bfd_section_vma(section);
        if (pc < vma)
                return;
 
diff -u mutrace-0.2.0/debian/changelog mutrace-0.2.0/debian/changelog
--- mutrace-0.2.0/debian/changelog
+++ mutrace-0.2.0/debian/changelog
@@ -1,3 +1,10 @@
+mutrace (0.2.0-3.2) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix error with undefined symbol. (Closes: #731846)
+
+ -- Sudip Mukherjee <sudipm.mukher...@gmail.com>  Thu, 12 Mar 2020 22:01:21 
+0000
+
 mutrace (0.2.0-3.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -u mutrace-0.2.0/debian/rules mutrace-0.2.0/debian/rules
--- mutrace-0.2.0/debian/rules
+++ mutrace-0.2.0/debian/rules
@@ -1,5 +1,7 @@
 #!/usr/bin/make -f
 
+export LIBS = -lbfd
+
 override_dh_auto_clean:
        dh_auto_clean
        rm -f Makefile.in aclocal.m4 compile config.guess config.h.in 
config.sub configure depcomp install-sh ltmain.sh m4/libtool.m4 m4/ltoptions.m4 
m4/ltsugar.m4 m4/ltversion.m4 m4/lt~obsolete.m4 missing

Reply via email to