diff --git a/elf_reader.go b/elf_reader.go index f2c9196b7..279bc8158 100644 --- a/elf_reader.go +++ b/elf_reader.go @@ -510,7 +510,7 @@ func (ec *elfCode) relocateInstruction(ins *asm.Instruction, rel elf.Symbol) err return fmt.Errorf("possible erroneous static qualifier on map definition: found reference to %q", name) } - if bind != elf.STB_GLOBAL { + if bind != elf.STB_GLOBAL && bind != elf.STB_WEAK { return fmt.Errorf("map %q: %w: %s", name, errUnsupportedBinding, bind) }