Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Oct 2018 13:08:05 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 232176] elftoolchain elfcopy/strip incorrectly strips relocations
Message-ID:  <bug-232176-227-9YdTR2PH0H@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-232176-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-232176-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232176

Ed Maste <emaste@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jkoshy@FreeBSD.org,
                   |                            |kaiw@FreeBSD.org

--- Comment #1 from Ed Maste <emaste@freebsd.org> ---
Workaround is to just disable filter_reloc():

diff --git a/elfcopy/sections.c b/elfcopy/sections.c
index 037f9288..78b06ca6 100644
--- a/elfcopy/sections.c
+++ b/elfcopy/sections.c
@@ -689,6 +689,8 @@ filter_reloc(struct elfcopy *ecp, struct section *s)
        uint64_t         cap, n, nrels;
        int              elferr, i;

+       return; /* PR232176 */
+
        if (gelf_getshdr(s->is, &ish) =3D=3D NULL)
                errx(EXIT_FAILURE, "gelf_getehdr() failed: %s",
                    elf_errmsg(-1));

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-232176-227-9YdTR2PH0H>