diff --git a/0001-libdwarf-Update-news.patch b/0001-libdwarf-Update-news.patch new file mode 100644 index 0000000000000000000000000000000000000000..9804619eeac2ccfdbcdb1f5055e44cff46b6aebb --- /dev/null +++ b/0001-libdwarf-Update-news.patch @@ -0,0 +1,43 @@ +From 7d299e856640f1a0041bf5b08ff6576cefe9494c Mon Sep 17 00:00:00 2001 +From: xiaoweiwei +Date: Sun, 27 Sep 2020 16:00:33 +0800 +Subject: [PATCH] Update news + +--- + NEWS | 23 +++++++++++++++++++++++ + 1 file changed, 23 insertions(+) + +diff --git a/NEWS b/NEWS +index 7013d58..2c20154 100644 +--- a/NEWS ++++ b/NEWS +@@ -1,3 +1,26 @@ ++2020-07-08: ++ libdwarf now reads .debug_gnu_pubtypes & pubnames ++ (non-standard but gcc creates them in DWARF5) ++ via a small number of new functions ++ and dwarfdump --print-debug-gnu prints both sections. ++ Verifying the .debug_info offsets is not yet done. ++2020-06-29: ++ Dwarfdump now dumps DWARF5 .debug_rnglists and ++ .debug_loclists. To handle DWARF5 there are ++ a small number of new functions. All existing ++ functions are still supported, but ++ to read DWARF5 some small changes are required. ++ In libdwarf see libdwarf2.1.pdf and also see ++ libdwarf/ChangeLog for details. ++2020-05-23: ++ dwarfdump now takes much less malloc() to work, as measured ++ by valgrind --tool=massif and massif-visualizer. ++ A dwarfdump run that did 2.2Gib of malloc/free before the changes ++ now does 1.4GiB. ++2020-05-19: ++ libdwarf and dwarfdump now support DWARF5 .debug_rnglists. ++ The new interfaces are documented in libdwarf/libdwarf2.1.pdf. ++ The new option to dwarfdump is "--print-raw-rnglists". + 2019-11-04: + The code (dwarfdump/libdwarf), regressiontests, + and readelfobj directories and all their tests +-- +1.8.3.1 + diff --git a/libdwarf-20180809.tar.gz b/libdwarf-20180809.tar.gz deleted file mode 100644 index ca99e7046bef094368467ed3db931bca0319fe47..0000000000000000000000000000000000000000 Binary files a/libdwarf-20180809.tar.gz and /dev/null differ diff --git a/libdwarf-20200114.tar.gz b/libdwarf-20200114.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..cb8876ae80eb0dc1ed668aaac3e131335816845d Binary files /dev/null and b/libdwarf-20200114.tar.gz differ diff --git a/libdwarf.spec b/libdwarf.spec index f5d83a8b607871a5a80310e9124bd76bc71b013c..22c53b00591d95f7e8b7f7f73fc5fa509a92ecb2 100644 --- a/libdwarf.spec +++ b/libdwarf.spec @@ -1,11 +1,13 @@ Name: libdwarf -Version: 20180809 -Release: 2 +Version: 20200114 +Release: 1 Summary: Library to access DWARF debugging information License: LGPLv2 URL: http://www.prevanders.net/dwarf.html Source0: http://www.prevanders.net/%{name}-%{version}.tar.gz -BuildRequires: gcc binutils-devel elfutils-libelf-devel +BuildRequires: gcc binutils-devel elfutils-libelf-devel dos2unix + +Patch0: 0001-%{name}-Update-news.patch %description Libdwarf is a library of functions to provide read/write DWARF @@ -27,12 +29,7 @@ Requires: %{name} = %{version}-%{release} %description tools Libdwarf-tools contains dwarfdump, a tool to access DWARF debug information. -%package help -Summary: Help documents for libdwarf -Requires: %{name} = %{version}-%{release} - -%description help -Libdwarf-help provides man pages and other related help documents for libdwarf. +%package_help %prep %autosetup -n %{name}-%{version} -p1 @@ -48,27 +45,37 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool install -d %{buildroot}%{_includedir}/libdwarf mv %{buildroot}%{_includedir}/*.h %{buildroot}%{_includedir}/libdwarf +%delete_la + +%check +LD_LIBRARY_PATH=$PWD/libdwarf/.libs %__make check + %files +%defattr(-,root,root) %license libdwarf/{COPYING,LIBDWARFCOPYRIGHT,LGPL.txt} %{_libdir}/libdwarf.so.* %exclude %{_datadir}/libdwarf %files devel +%defattr(-,root,root) %{_includedir}/libdwarf %{_libdir}/{libdwarf.so,libdwarf.a} -%exclude %{_libdir}/*.la %files tools +%defattr(-,root,root) %doc dwarfdump/{README,ChangeLog} %license dwarfdump/{COPYING,DWARFDUMPCOPYRIGHT,GPL.txt} %{_bindir}/dwarfdump %{_datadir}/dwarfdump/dwarfdump.conf %files help +%defattr(-,root,root) %doc libdwarf/{ChangeLog,README,*.pdf} %{_mandir}/man1/dwarfdump.1.gz %changelog -* Tue Nov 05 2019 yanzhihua - 20180809-2 -- Package init +* Tue Apr 21 2020 songnannan - 20200114 +- update to 20200114 +* Tue Nov 05 2019 yanzhihua - 20180809-2 +- Package init \ No newline at end of file