https://sourceware.org/bugzilla/show_bug.cgi?id=31097

            Bug ID: 31097
           Summary: strip/unstrip on ET_REL binary might fail elflint on
                    i386
           Product: elfutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tools
          Assignee: unassigned at sourceware dot org
          Reporter: amerey at redhat dot com
                CC: elfutils-devel at sourceware dot org
  Target Milestone: ---

tests/run-strip-strmerge.sh contains tests that strip and unstrip an ET_REL
binary. On i386 it is possible for the resulting binary of these tests to fail
elflint due to the presence of relocations with type R_386_GOTPC that refer to
a non-GOT symbol.

This is caught on i386 because of the presence of an ebl_gotpc_reloc_check for
this arch. Most other ebl backends do not implement this check. It is possible
that similar problems are going undetected on other arches.

We should ensure that strip/unstrip always produce binaries that pass elflint.
We should also implement ebl_gotpc_reloc_check for other backends.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to