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
89
89
"""
90
90
struct ELFRPath{H <: ELFHandle } <: RPath{H}
91
91
section_ref:: SectionRef{H}
92
- rpath:: Vector
92
+ rpath:: Vector{<:AbstractString}
93
93
end
94
94
95
95
"""
@@ -106,13 +106,18 @@ function RPath(oh::ELFHandle)
106
106
des = ELFDynEntries (oh, [DT_RPATH, DT_RUNPATH])
107
107
108
108
# 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
111
116
112
117
# Return our RPath object
113
118
return ELFRPath (dyn_section, paths)
114
119
end
115
120
116
121
Section (rpath:: ELFRPath ) = rpath. section_ref
117
122
handle (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