[Bug 232176] elftoolchain elfcopy/strip incorrectly strips relocations

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Oct 11 13:08:07 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232176

Ed Maste <emaste at freebsd.org> changed:

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

--- Comment #1 from Ed Maste <emaste at 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) == NULL)
                errx(EXIT_FAILURE, "gelf_getehdr() failed: %s",
                    elf_errmsg(-1));

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


More information about the freebsd-bugs mailing list