]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
client/elf.h: Add missing Elf32_Phdr struct to compile under Mac OS X. client/flash...
authorizsh.f0f <izsh.f0f@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Tue, 5 Jan 2010 12:32:44 +0000 (12:32 +0000)
committerizsh.f0f <izsh.f0f@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Tue, 5 Jan 2010 12:32:44 +0000 (12:32 +0000)
client/elf.h
client/flash.h

index 349e6c6c7af7eec442f98c7ec8553165059062d7..c489a1372d6fa86c1bdf68648fd1f0954dfb1381 100644 (file)
@@ -1,6 +1,17 @@
 #ifndef __ELF_H__
 #define __ELF_H__
 
 #ifndef __ELF_H__
 #define __ELF_H__
 
+typedef struct {
+       uint32_t p_type;
+       uint32_t p_offset;
+       uint32_t p_vaddr;
+       uint32_t p_paddr;
+       uint32_t p_filesz;
+       uint32_t p_memsz;
+       uint32_t p_flags;
+       uint32_t p_align;
+} __attribute__((__packed__)) Elf32_Phdr;
+
 #define EI_NIDENT 16
 
 typedef struct {
 #define EI_NIDENT 16
 
 typedef struct {
index 8d18cab0491e48d669cef5911cd78f45f2d9271d..c86602ffff0a95af08517365d76d739b534a9945 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef __FLASH_H__
+#define __FLASH_H__
+
 struct partition {
        int start;
        int end;
 struct partition {
        int start;
        int end;
@@ -13,3 +16,6 @@ int find_next_area(const char *str, int *offset, int *length);
 
 #define PHYSICAL_FLASH_START 0x100000
 void do_flash(char **argv);
 
 #define PHYSICAL_FLASH_START 0x100000
 void do_flash(char **argv);
+
+#endif
+
Impressum, Datenschutz