Skip to content

Commit b70df61

Browse files
committed
multiboot2: elf_sections: Added STRINGS and THREAD_LOCAL flags to ElfSectionFlags
1 parent 9579bca commit b70df61

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

multiboot2/src/elf_sections.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,15 @@ bitflags! {
271271

272272
/// The section contains executable machine instructions.
273273
const EXECUTABLE = elf::abi::SHF_EXECINSTR as u64;
274+
275+
/// Identifies a section that consists of null-terminated character strings.
276+
/// The size of each character is specified in the section header's `sh_entsize` field.
277+
const STRINGS = elf::abi::SHF_STRINGS as u64;
278+
279+
/// This section holds thread-local storage. Each thread within a process has a distinct instance
280+
/// of this data.
281+
const THREAD_LOCAL = elf::abi::SHF_TLS as u64;
282+
274283
// plus environment-specific use at 0x0F000000
275284
// plus processor-specific use at 0xF0000000
276285
}

0 commit comments

Comments
 (0)