Skip to content

Commit 2cd8a69

Browse files
committed
fix search name condition
1 parent f1fd105 commit 2cd8a69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/caotral/linker/writer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def write_order_sections
117117
def write_section_index(section_name) = @write_sections.index { it.section_name == section_name }
118118
def ref_index(section)
119119
section_name = section.section_name
120-
ref = @elf_obj.select_by_names(section_name.split(".").filter { |sn| !sn.empty? && sn != "rel" && sn != "rela" }).first
120+
ref = @elf_obj.select_by_names(section_name.split(".").filter { |sn| !sn.empty? && sn != "rel" && sn != "rela" }.map { "." + it }).first
121121
write_section_index(ref.section_name)
122122
end
123123
end

0 commit comments

Comments
 (0)