瀏覽代碼

Rename and export ElfSectionFlags

Philipp Oppermann 9 年之前
父節點
當前提交
6955602209
共有 2 個文件被更改,包括 4 次插入3 次删除
  1. 3 3
      src/elf_sections.rs
  2. 1 0
      src/lib.rs

+ 3 - 3
src/elf_sections.rs

@@ -87,9 +87,9 @@ pub enum ElfSectionType {
 
 bitflags! {
     flags ElfSectionFlags: u64 {
-        const WRITABLE = 0x1,
-        const ALLOCATED = 0x2,
-        const EXECUTABLE = 0x4,
+        const ELF_SECTION_WRITABLE = 0x1,
+        const ELF_SECTION_ALLOCATED = 0x2,
+        const ELF_SECTION_EXECUTABLE = 0x4,
         // plus environment-specific use at 0x0F000000
         // plus processor-specific use at 0xF0000000
     }

+ 1 - 0
src/lib.rs

@@ -1,6 +1,7 @@
 #![no_std]
 
 pub use elf_sections::{ElfSectionsTag, ElfSection, ElfSectionIter, ElfSectionType, ElfSectionFlags};
+pub use elf_sections::{ELF_SECTION_WRITABLE, ELF_SECTION_ALLOCATED, ELF_SECTION_EXECUTABLE};
 pub use memory_map::{MemoryMapTag, MemoryArea, MemoryAreaIter};
 
 #[macro_use]