File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ Stores the RPath entries from an ELF object
8989"""
9090struct ELFRPath{H <: ELFHandle } <: RPath{H}
9191 section_ref:: SectionRef{H}
92- rpath:: Vector
92+ rpath:: Vector{<:AbstractString}
9393end
9494
9595"""
@@ -106,13 +106,18 @@ function RPath(oh::ELFHandle)
106106 des = ELFDynEntries (oh, [DT_RPATH, DT_RUNPATH])
107107
108108 # Lookup each and every one of those strings, split them out into paths
109- colon_paths = [strtab_lookup (d) for d in des]
110- paths = vcat ([split (p, " :" ) for p in colon_paths]. .. )
109+ colon_paths = String[strtab_lookup (d) for d in des]
110+ paths = AbstractString[]
111+ for colon_path in colon_paths
112+ for component in split (colon_path, ' :' )
113+ push! (paths, component)
114+ end
115+ end
111116
112117 # Return our RPath object
113118 return ELFRPath (dyn_section, paths)
114119end
115120
116121Section (rpath:: ELFRPath ) = rpath. section_ref
117122handle (rpath:: ELFRPath ) = handle (Section (rpath))
118- rpaths (rpath:: ELFRPath ) = rpath. rpath
123+ rpaths (rpath:: ELFRPath ) = rpath. rpath
You can’t perform that action at this time.
0 commit comments