Line 1... |
Line 1... |
/* Mach-O support for BFD.
|
/* Mach-O support for BFD.
|
Copyright 2011
|
Copyright 2011, 2012
|
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
|
|
This file is part of BFD, the Binary File Descriptor library.
|
This file is part of BFD, the Binary File Descriptor library.
|
|
|
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
Line 54... |
Line 54... |
}
|
}
|
bfd_mach_o_cpu_type;
|
bfd_mach_o_cpu_type;
|
|
|
typedef enum bfd_mach_o_cpu_subtype
|
typedef enum bfd_mach_o_cpu_subtype
|
{
|
{
|
BFD_MACH_O_CPU_SUBTYPE_X86_ALL = 3
|
/* i386. */
|
|
BFD_MACH_O_CPU_SUBTYPE_X86_ALL = 3,
|
|
|
|
/* arm. */
|
|
BFD_MACH_O_CPU_SUBTYPE_ARM_ALL = 0,
|
|
BFD_MACH_O_CPU_SUBTYPE_ARM_V4T = 5,
|
|
BFD_MACH_O_CPU_SUBTYPE_ARM_V6 = 6,
|
|
BFD_MACH_O_CPU_SUBTYPE_ARM_V5TEJ = 7,
|
|
BFD_MACH_O_CPU_SUBTYPE_ARM_XSCALE = 8,
|
|
BFD_MACH_O_CPU_SUBTYPE_ARM_V7 = 9
|
}
|
}
|
bfd_mach_o_cpu_subtype;
|
bfd_mach_o_cpu_subtype;
|
|
|
typedef enum bfd_mach_o_filetype
|
typedef enum bfd_mach_o_filetype
|
{
|
{
|
Line 244... |
Line 253... |
/* User attributes. */
|
/* User attributes. */
|
#define BFD_MACH_O_SECTION_ATTRIBUTES_USR 0xff000000
|
#define BFD_MACH_O_SECTION_ATTRIBUTES_USR 0xff000000
|
|
|
typedef enum bfd_mach_o_section_attribute
|
typedef enum bfd_mach_o_section_attribute
|
{
|
{
|
|
/* Section has no specified attibutes. */
|
|
BFD_MACH_O_S_ATTR_NONE = 0,
|
|
|
/* Section has local relocation entries. */
|
/* Section has local relocation entries. */
|
BFD_MACH_O_S_ATTR_LOC_RELOC = 0x00000100,
|
BFD_MACH_O_S_ATTR_LOC_RELOC = 0x00000100,
|
|
|
/* Section has external relocation entries. */
|
/* Section has external relocation entries. */
|
BFD_MACH_O_S_ATTR_EXT_RELOC = 0x00000200,
|
BFD_MACH_O_S_ATTR_EXT_RELOC = 0x00000200,
|
Line 306... |
Line 318... |
#define BFD_MACH_O_REFERENCED_DYNAMICALLY 0x10
|
#define BFD_MACH_O_REFERENCED_DYNAMICALLY 0x10
|
#define BFD_MACH_O_N_DESC_DISCARDED 0x20
|
#define BFD_MACH_O_N_DESC_DISCARDED 0x20
|
#define BFD_MACH_O_N_NO_DEAD_STRIP 0x20
|
#define BFD_MACH_O_N_NO_DEAD_STRIP 0x20
|
#define BFD_MACH_O_N_WEAK_REF 0x40
|
#define BFD_MACH_O_N_WEAK_REF 0x40
|
#define BFD_MACH_O_N_WEAK_DEF 0x80
|
#define BFD_MACH_O_N_WEAK_DEF 0x80
|
|
|
|
#define BFD_MACH_O_INDIRECT_SYM_LOCAL 0x80000000
|
|
#define BFD_MACH_O_INDIRECT_SYM_ABS 0x40000000
|
|
|
/* Thread constants. */
|
/* Thread constants. */
|
|
|
typedef enum bfd_mach_o_ppc_thread_flavour
|
typedef enum bfd_mach_o_ppc_thread_flavour
|
{
|
{
|