Rev 2000 | Rev 2071 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2000 | Rev 2062 | ||
---|---|---|---|
Line 133... | Line 133... | ||
133 | * @return EE_OK on success, error code otherwise. |
133 | * @return EE_OK on success, error code otherwise. |
134 | */ |
134 | */ |
135 | static int segment_header(elf_segment_header_t *entry, elf_header_t *elf, as_t *as) |
135 | static int segment_header(elf_segment_header_t *entry, elf_header_t *elf, as_t *as) |
136 | { |
136 | { |
137 | switch (entry->p_type) { |
137 | switch (entry->p_type) { |
138 | case PT_NULL: |
138 | case PT_NULL: |
139 | case PT_PHDR: |
139 | case PT_PHDR: |
140 | break; |
140 | break; |
141 | case PT_LOAD: |
141 | case PT_LOAD: |
142 | return load_segment(entry, elf, as); |
142 | return load_segment(entry, elf, as); |
143 | break; |
143 | break; |
144 | case PT_DYNAMIC: |
144 | case PT_DYNAMIC: |
145 | case PT_INTERP: |
145 | case PT_INTERP: |
146 | case PT_SHLIB: |
146 | case PT_SHLIB: |
147 | case PT_NOTE: |
147 | case PT_NOTE: |
148 | case PT_LOPROC: |
148 | case PT_LOPROC: |
149 | case PT_HIPROC: |
149 | case PT_HIPROC: |
150 | default: |
150 | default: |
151 | return EE_UNSUPPORTED; |
151 | return EE_UNSUPPORTED; |
152 | break; |
152 | break; |
153 | } |
153 | } |
154 | return EE_OK; |
154 | return EE_OK; |
155 | } |
155 | } |
Line 212... | Line 212... | ||
212 | * @return EE_OK on success, error code otherwise. |
212 | * @return EE_OK on success, error code otherwise. |
213 | */ |
213 | */ |
214 | static int section_header(elf_section_header_t *entry, elf_header_t *elf, as_t *as) |
214 | static int section_header(elf_section_header_t *entry, elf_header_t *elf, as_t *as) |
215 | { |
215 | { |
216 | switch (entry->sh_type) { |
216 | switch (entry->sh_type) { |
217 | default: |
217 | default: |
218 | break; |
218 | break; |
219 | } |
219 | } |
220 | 220 | ||
221 | return EE_OK; |
221 | return EE_OK; |
222 | } |
222 | } |