Bug ID: 41525
           Summary: Stop assuming there's a symbol table when loading
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: llvm-objcopy/strip

It is possible to see an ELF with a relocation section but no symbol table, as
not all relocations require symbols. However, llvm-objcopy assumes that there
is a symbol table if it sees a relocation section, and proceeds to try to use
it when loading relocations, resulting in a crash. The offending code is the
initRelocations function.

In the event that the symbol table does not exist (i.e. sh_link is 0), we
should consider emitting an error if any of the relocations have a non-zero
symbol index.

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

Reply via email to