We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1fd105 commit 2cd8a69Copy full SHA for 2cd8a69
lib/caotral/linker/writer.rb
@@ -117,7 +117,7 @@ def write_order_sections
117
def write_section_index(section_name) = @write_sections.index { it.section_name == section_name }
118
def ref_index(section)
119
section_name = section.section_name
120
- ref = @elf_obj.select_by_names(section_name.split(".").filter { |sn| !sn.empty? && sn != "rel" && sn != "rela" }).first
+ ref = @elf_obj.select_by_names(section_name.split(".").filter { |sn| !sn.empty? && sn != "rel" && sn != "rela" }.map { "." + it }).first
121
write_section_index(ref.section_name)
122
end
123
0 commit comments