mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-20 13:23:25 -07:00
client/elf.h: Add missing Elf32_Phdr struct to compile under Mac OS X. client/flash.h: Add missing header ifndef.
This commit is contained in:
parent
2cab856f9f
commit
b961ef035a
2 changed files with 17 additions and 0 deletions
11
client/elf.h
11
client/elf.h
|
@ -1,6 +1,17 @@
|
||||||
#ifndef __ELF_H__
|
#ifndef __ELF_H__
|
||||||
#define __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
|
#define EI_NIDENT 16
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
#ifndef __FLASH_H__
|
||||||
|
#define __FLASH_H__
|
||||||
|
|
||||||
struct partition {
|
struct partition {
|
||||||
int start;
|
int start;
|
||||||
int end;
|
int end;
|
||||||
|
@ -13,3 +16,6 @@ int find_next_area(const char *str, int *offset, int *length);
|
||||||
|
|
||||||
#define PHYSICAL_FLASH_START 0x100000
|
#define PHYSICAL_FLASH_START 0x100000
|
||||||
void do_flash(char **argv);
|
void do_flash(char **argv);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue