From 2392ad530d13f5ebc0ef7db8cd42d46235ee75dd Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Thu, 11 Jun 2020 19:18:03 +0200 Subject: [PATCH] 0.180-1 - New upstream release. --- .gitignore | 1 + elfutils-0.179-debug-client-alt-link.patch | 60 ---------------------- elfutils.spec | 13 +++-- sources | 2 +- 4 files changed, 12 insertions(+), 64 deletions(-) delete mode 100644 elfutils-0.179-debug-client-alt-link.patch diff --git a/.gitignore b/.gitignore index 9f77f37..d198cb4 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ /elfutils-0.177.tar.bz2 /elfutils-0.178.tar.bz2 /elfutils-0.179.tar.bz2 +/elfutils-0.180.tar.bz2 diff --git a/elfutils-0.179-debug-client-alt-link.patch b/elfutils-0.179-debug-client-alt-link.patch deleted file mode 100644 index bb84954..0000000 --- a/elfutils-0.179-debug-client-alt-link.patch +++ /dev/null @@ -1,60 +0,0 @@ -From b1d2404cc6ca0d9ce786e229a87c24db49163cfe Mon Sep 17 00:00:00 2001 -From: Mark Wielaard -Date: Thu, 30 Apr 2020 23:57:26 +0200 -Subject: [PATCH] libdwfl: Handle debugaltlink in dwfl_standard_find_debuginfo. - -When we fall back to the debuginfod client then we need to do the -same trick we do for local lookups in dwfl_build_id_find_debuginfo. -If the debug file (dw) is already set, then we must be looking for -the altfile. But we cannot use the actual file/path name given as -hint. We'll have to lookup the alt file "build-id". Because the -debuginfod client only handles build-ids. - -Previously we would use the build-id of the main file which meant -the debuginfod client would give us another copy of the debug file, -which would then be set as its own altfile. This caused lots of -confusion... - -Signed-off-by: Mark Wielaard ---- - libdwfl/ChangeLog | 5 +++++ - libdwfl/find-debuginfo.c | 23 +++++++++++++++++++++-- - 2 files changed, 26 insertions(+), 2 deletions(-) - -diff --git a/libdwfl/find-debuginfo.c b/libdwfl/find-debuginfo.c -index 2dd11c48..4cfd0b8b 100644 ---- a/libdwfl/find-debuginfo.c -+++ b/libdwfl/find-debuginfo.c -@@ -398,8 +398,27 @@ dwfl_standard_find_debuginfo (Dwfl_Module *mod, - free (canon); - } - -- if (fd < 0 && bits_len > 0) -- fd = __libdwfl_debuginfod_find_debuginfo (mod->dwfl, bits, bits_len); -+ /* Still nothing? Try if we can use the debuginfod client. -+ But note that we might be looking for the alt file. -+ We use the same trick as dwfl_build_id_find_debuginfo. -+ If the debug file (dw) is already set, then we must be -+ looking for the altfile. But we cannot use the actual -+ file/path name given as hint. We'll have to lookup the -+ alt file "build-id". Because the debuginfod client only -+ handles build-ids. */ -+ if (fd < 0) -+ { -+ if (mod->dw != NULL) -+ { -+ const char *altname; -+ bits_len = INTUSE(dwelf_dwarf_gnu_debugaltlink) (mod->dw, &altname, -+ (const void **) -+ &bits); -+ } -+ -+ if (bits_len > 0) -+ fd = __libdwfl_debuginfod_find_debuginfo (mod->dwfl, bits, bits_len); -+ } - - return fd; - } --- -2.18.2 - diff --git a/elfutils.spec b/elfutils.spec index aed7cf2..c146d11 100644 --- a/elfutils.spec +++ b/elfutils.spec @@ -1,5 +1,5 @@ Name: elfutils -Version: 0.179 +Version: 0.180 %global baserelease 2 Release: %{baserelease}%{?dist} URL: http://elfutils.org/ @@ -55,7 +55,6 @@ BuildRequires: curl %endif # Patches -Patch1: elfutils-0.179-debug-client-alt-link.patch %description Elfutils is a collection of utilities, including stack (to show @@ -247,7 +246,6 @@ such servers to download those files on demand. %setup -q # Apply patches -%patch1 -p1 -b .debug-client-alt # In case the above patches added any new test scripts, make sure they # are executable. @@ -425,6 +423,15 @@ exit 0 %systemd_postun_with_restart debuginfod.service %changelog +* Thu Jun 11 2020 Mark Wielaard - 0.180-1 +- New upstream release. + elflint: Allow SHF_EXCLUDE as generic section flag when --gnu is given. + libdw, readelf: Handle GCC LTO .gnu.debuglto_ prefix. + libdw: Use correct CU to resolve file names in dwarf_decl_file. + libdwfl: Handle debugaltlink in dwfl_standard_find_debuginfo. + size: Also obey radix printing for bsd format. + nm: Explicitly print weak 'V' or 'T' and common 'C' symbols. + * Thu Apr 30 2020 Mark Wielaard - 0.179-2 - Add elfutils-0.179-debug-client-alt-link.patch diff --git a/sources b/sources index 43f3cfa..186b1cd 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (elfutils-0.179.tar.bz2) = ff2d96ad1db08e3a2ddaa60bd5a05e9b61ffa71d646f889cebb6bef51322e874930809c6dd0a257ced8c6e8de4b59ecf13ca6741dc68f9400293208278a0c052 +SHA512 (elfutils-0.180.tar.bz2) = 62e96035ccfe8928baca2285decbe8b8703a2daa956df81ece18fecf643272fb68955806b3e807a514141a7a9bf44520bf09461672aa580bd6807485fb604d25