Skip to content

llvm-objdump does not work for BPF in some reasonably common cases #42375

@yonghong-song

Description

@yonghong-song
Bugzilla Link 43030
Resolution FIXED
Resolved on Aug 20, 2019 02:56
Version 9.0
OS All
Blocks #41819
CC @zmodem

Extended Description

Commit https://reviews.llvm.org/D57939 ("[DWARF] Refactor
RelocVisitor and fix computation of SHT_RELA-typed relocation entries)
made a change for relocation resolution when operating
on an object file.

The change unfortunately broke BPF as given SymbolValue (S) and
Addent (A), previously relocation is resolved to
S + A
and after the change, it is resolved to
S

This bug will happen if there are two bpf programs
defined in the same file, which is fairly common.

The bug is fixed in trunk (currently 10.0.0):
https://reviews.llvm.org/rL369199

This is to request backport the fix to release 9.0.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzilla

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions