Skip to content

hwasan: globals which have been assigned a section cannot be instrumented #142442

Open
@shuffle2

Description

@shuffle2

// Globals with custom sections may be used in __start_/__stop_ enumeration,
// which would be broken both by adding tags and potentially by the extra
// padding/alignment that we insert.
if (GV.hasSection())
continue;

I'm not really sure what possible scenario this could be referring to, however there should be a way to bypass this check and allow all globals to be instrumented.

I'm using llvm's hwasan instrumentation with a custom runtime for embedded (baremetal) environment, where assigning sections of code/data symbols is heavily used. It is desirable to instrument all globals and work around any issues which arise from that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions