Skip to content

Commit

Permalink
Add minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
ac2pic committed Jun 26, 2022
1 parent 056bf65 commit f0100df
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pkg/oelf/OELFGenDynlibData.go
Original file line number Diff line number Diff line change
Expand Up @@ -535,11 +535,8 @@ func writeNIDTable(orbisElf *OrbisElf, segmentData *[]byte) (uint64, error) {

for idx, library := range libraries {
libName := library.(string)
libSyms := orbisElf.LibrarySymbolDictionary.Get(libName)
if libSyms == nil {
continue
}
if contains(libSyms.([]string), symbol.Name) {
libSyms := orbisElf.LibrarySymbolDictionary.Get(libName).([]string)
if contains(libSyms, symbol.Name) {
libraryName = libName
symbolLibraryIndex = idx
break
Expand Down

0 comments on commit f0100df

Please sign in to comment.