Skip to content

Commit ef657fb

Browse files
committed
add sig files for section and strtab section
1 parent b331544 commit ef657fb

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

sig/caotral/linker/elf/section.rbs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
class Caotral::Linker::ELF::Section
2+
attr_accessor header: untyped
3+
attr_accessor body: untyped
4+
attr_accessor section_name: String
5+
6+
def initialize: (type: Symbol, ?section_name: String?, ?options: Hash[Symbol, untyped]) -> void
7+
def name: () -> String
8+
end
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
class Caotral::Linker::ELF::Section::Strtab
2+
attr_reader names: String
3+
4+
def initialize: (?String, **untyped) -> void
5+
def build: () -> String
6+
def offset_of: (String) -> Integer?
7+
def lookup: (Integer) -> String
8+
end

0 commit comments

Comments
 (0)