aya-obj: Fix ProgramSection::from_str for bss and rodata sections

pull/604/head
Mary 2 years ago
parent 7d88470944
commit 18b3d75d09

@ -1093,11 +1093,12 @@ impl BpfSectionKind {
BpfSectionKind::BtfMaps BpfSectionKind::BtfMaps
} else if name.starts_with(".text") { } else if name.starts_with(".text") {
BpfSectionKind::Text BpfSectionKind::Text
} else if name.starts_with(".bss") } else if name.starts_with(".bss") {
|| name.starts_with(".data") BpfSectionKind::Bss
|| name.starts_with(".rodata") } else if name.starts_with(".data") {
{
BpfSectionKind::Data BpfSectionKind::Data
} else if name.starts_with(".rodata") {
BpfSectionKind::Rodata
} else if name == ".BTF" { } else if name == ".BTF" {
BpfSectionKind::Btf BpfSectionKind::Btf
} else if name == ".BTF.ext" { } else if name == ".BTF.ext" {

Loading…
Cancel
Save