HomeFreeBSD

libdwarf: Handle .rel relocations

Description

libdwarf: Handle .rel relocations

Some architectures use .rel relocations (for debug data), so they must
be handled.

This was discovered from ctfconvert on ARM object files. The lack of
relocation handling caused all string lookups to return the string at
offset 0 in .debug_str, typically "FreeBSD clang version ..."

Reviewed by: gnn, imp, rpaulo (earlier version)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D1819

Details

Provenance
emasteAuthored on
Reviewer
gnn
Differential Revision
D1819: libdwarf: Handle .rel relocations
Parents
rS278610: Add a ROADMAP file for FreeBSD/arm release builds, which
Branches
Unknown
Tags
Unknown

Event Timeline