--- osprey/common/com/em_elf.h.orig 2008-11-30 17:00:00.000000000 +0100 +++ osprey/common/com/em_elf.h 2009-01-17 16:07:21.000000000 +0100 @@ -338,6 +338,26 @@ Elf64_Word operand2, pSCNINFO scn); +#if defined(__FreeBSD__) +typedef uint16_t Elf32_Section; + +typedef struct +{ + unsigned char kind; /* Determines interpretation of the + variable part of descriptor. */ + unsigned char size; /* Size of descriptor, including header. */ + Elf32_Section section; /* Section header index of section affected, + 0 for global options. */ + Elf32_Word info; /* Kind-specific information. */ +} Elf_Options; + +typedef struct +{ + Elf32_Word hwp_flags1; /* Extra flags. */ + Elf32_Word hwp_flags2; /* Extra flags. */ +} Elf_Options_Hw; +#endif + /* Add a new entry to the .options section. */ extern void Em_Add_New_Option (