[Rpm-maint] [rpm-software-management/rpm] debugedit fails to update section headers (#423)

2018-03-29 Thread rguenth
debugedit -b /home/abuild/rpmbuild/BUILD/xtables-addons-3.0 -d /usr/src/debug/xtables-addons-3.0-0.x86_64 test.ko results in There are 41 section headers, starting at offset 0x870a8: Section Headers: [Nr] Name Type Address Offset Size Ent

Re: [Rpm-maint] [rpm-software-management/rpm] debugedit fails to update section headers (#423)

2018-03-29 Thread rguenth
[xt_DHCPMAC.ko.gz](https://github.com/rpm-software-management/rpm/files/1859743/xt_DHCPMAC.ko.gz) -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/423#issuecomment-3771981

Re: [Rpm-maint] [rpm-software-management/rpm] debugedit fails to update section headers (#423)

2018-09-24 Thread Sergei Trofimovich
debugedit also can break gcc's crtstartup: https://bugs.gentoo.org/666954 . I think it's the same issue. Will try to provide more detail today. -- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issue

Re: [Rpm-maint] [rpm-software-management/rpm] debugedit fails to update section headers (#423)

2018-09-24 Thread Sergei Trofimovich
I think in my case it happens because `debugedit` was not able to delete any sections (no file size changes) but it reordered sections in the file and did not update section offsets. Attaching original, mangled file and a script:[__t.tar.gz](https://github.com/rpm-software-management/rpm/files/2

Re: [Rpm-maint] [rpm-software-management/rpm] debugedit fails to update section headers (#423)

2018-09-24 Thread Sergei Trofimovich
The following workaround allows to maintain original section order: ```diff --- a/tools/debugedit.c +++ b/tools/debugedit.c @@ -2342,21 +2342,21 @@ fdopen_dso (int fd, const char *name) } if (elf_getphdrnum (elf, &phnum) != 0) { error (0, 0, "Couldn't get number of phdrs: %s",

Re: [Rpm-maint] [rpm-software-management/rpm] debugedit fails to update section headers (#423)

2019-04-29 Thread Michael Schroeder
Mark, any update on this? We (SUSE) get corrupt debuginfo files from time to time because of this bug. -- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/423#issuecomment-487600464_

Re: [Rpm-maint] [rpm-software-management/rpm] debugedit fails to update section headers (#423)

2019-05-12 Thread Mark Wielaard
On Mon, Apr 29, 2019 at 02:24:33PM +, Michael Schroeder wrote: > Mark, any update on this? We (SUSE) get corrupt debuginfo files from > time to time because of this bug. Apologies for the slow response. I looked at it before, but didn't understand what was going wrong. But I now believe this

Re: [Rpm-maint] [rpm-software-management/rpm] debugedit fails to update section headers (#423)

2019-05-13 Thread Sergei Trofimovich
> But I now believe this is actually an elfutils libelf issue: > https://sourceware.org/ml/elfutils-devel/2019-q2/msg00077.html Could you try > that out and see if it resolves the issue for you? (The actual patch is just > 3 lines, but there is also a larger testcase added to make sure the issu

Re: [Rpm-maint] [rpm-software-management/rpm] debugedit fails to update section headers (#423)

2019-10-15 Thread Panu Matilainen
Okay so this was confirmed fixed on elfutils side, we can close it here. -- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/423#issuecomment-542200334

Re: [Rpm-maint] [rpm-software-management/rpm] debugedit fails to update section headers (#423)

2019-10-15 Thread Panu Matilainen
Closed #423. -- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/423#event-2713882777___ Rpm-maint mailing list Rpm-maint@lists.rpm.org http://lists.rp