[Bug 218860] libelf doesn't reload section headers after update with ELF_C_WRITE

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Apr 24 23:13:30 UTC 2017


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

            Bug ID: 218860
           Summary: libelf doesn't reload section headers after update
                    with ELF_C_WRITE
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: misc
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: emc2 at metricspace.net

Created attachment 182064
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=182064&action=edit
Patch to fix the problem

The libelf library in base doesn't reload section headers after clearing them
when performing an elf_update with ELF_C_WRITE.  This is because it fails to
clear a flag indicating that the section headers have been loaded.

This is fixed with the attached patch.

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


More information about the freebsd-bugs mailing list