* fixed prototype for reloc_type_lookup
This commit is contained in:
parent
2cf44d7be5
commit
de7e640dd5
125
include/bfd.h
125
include/bfd.h
@ -61,8 +61,7 @@ typedef struct _bfd bfd;
|
|||||||
and false on failure (unless they're a predicate). -- bfd.doc */
|
and false on failure (unless they're a predicate). -- bfd.doc */
|
||||||
/* I'm sure this is going to break something and someone is going to
|
/* I'm sure this is going to break something and someone is going to
|
||||||
force me to change it. */
|
force me to change it. */
|
||||||
/* Yup, SVR4 has a "typedef enum boolean" in <sys/types.h> -fnf */
|
typedef enum boolean {false, true} boolean;
|
||||||
typedef enum bfd_boolean {false, true} boolean;
|
|
||||||
|
|
||||||
/* Try to avoid breaking stuff */
|
/* Try to avoid breaking stuff */
|
||||||
typedef long int file_ptr;
|
typedef long int file_ptr;
|
||||||
@ -916,25 +915,15 @@ typedef struct bfd_arch_info_struct
|
|||||||
boolean EXFUN((*scan),(CONST struct bfd_arch_info_struct *,CONST char *));
|
boolean EXFUN((*scan),(CONST struct bfd_arch_info_struct *,CONST char *));
|
||||||
unsigned int EXFUN((*disassemble),(bfd_vma addr, CONST char *data,
|
unsigned int EXFUN((*disassemble),(bfd_vma addr, CONST char *data,
|
||||||
PTR stream));
|
PTR stream));
|
||||||
CONST struct reloc_howto_struct *EXFUN((*reloc_type_lookup), (bfd_reloc_code_enum_type code));
|
CONST struct reloc_howto_struct *EXFUN((*reloc_type_lookup), (CONST struct
|
||||||
|
bfd_arch_info_struct *,
|
||||||
|
bfd_reloc_code_enum_type code));
|
||||||
|
|
||||||
struct bfd_arch_info_struct *next;
|
struct bfd_arch_info_struct *next;
|
||||||
|
|
||||||
} bfd_arch_info_struct_type;
|
} bfd_arch_info_struct_type;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
bfd_printable_arch_mach
|
|
||||||
Return a printable string representing the architecture and machine
|
|
||||||
type.
|
|
||||||
|
|
||||||
NB. The use of this routine is depreciated.
|
|
||||||
*/
|
|
||||||
|
|
||||||
PROTO(CONST char *,bfd_printable_arch_mach,
|
|
||||||
(enum bfd_architecture arch, unsigned long machine));
|
|
||||||
|
|
||||||
/*
|
|
||||||
|
|
||||||
bfd_printable_name
|
bfd_printable_name
|
||||||
|
|
||||||
Return a printable string representing the architecture and machine
|
Return a printable string representing the architecture and machine
|
||||||
@ -1021,57 +1010,32 @@ Returns the number of bits in one of the architectures addresses
|
|||||||
bfd_arch_info_struct_type * EXFUN(bfd_get_arch_info,(bfd *));
|
bfd_arch_info_struct_type * EXFUN(bfd_get_arch_info,(bfd *));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
|
bfd_lookup_arch
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
bfd_arch_info_struct_type * EXFUN(bfd_lookup_arch,(enum
|
||||||
|
bfd_architecture arch,long machine));
|
||||||
/*:howto.c*/
|
|
||||||
/* bfd_reloc_code_enum_type
|
|
||||||
*/
|
|
||||||
|
|
||||||
typedef enum
|
|
||||||
{
|
|
||||||
|
|
||||||
/*
|
|
||||||
16 bits wide, simple reloc
|
|
||||||
*/
|
|
||||||
|
|
||||||
BFD_RELOC_16,
|
|
||||||
|
|
||||||
/*
|
|
||||||
8 bits wide, but used to form an address like 0xffnn
|
|
||||||
*/
|
|
||||||
|
|
||||||
BFD_RELOC_8_FFnn,
|
|
||||||
|
|
||||||
/*
|
|
||||||
8 bits wide, simple
|
|
||||||
*/
|
|
||||||
|
|
||||||
BFD_RELOC_8,
|
|
||||||
|
|
||||||
/*
|
|
||||||
8 bits wide, pc relative
|
|
||||||
*/
|
|
||||||
|
|
||||||
BFD_RELOC_8_PCREL
|
|
||||||
} bfd_reloc_code_enum_real_type;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
bfd_reloc_type_lookup
|
Look for the architecure info struct which matches the arguments
|
||||||
This routine returns a pointer to a howto struct which when invoked,
|
given. A machine of 0 will match the machine/architecture structure which
|
||||||
will perform the supplied relocation on data from the architecture
|
marks itself as the default.
|
||||||
noted.
|
|
||||||
|
|
||||||
[Note] This function will go away.
|
bfd_printable_arch_mach
|
||||||
|
Return a printable string representing the architecture and machine
|
||||||
|
type.
|
||||||
|
|
||||||
|
NB. The use of this routine is depreciated.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
PROTO(struct reloc_howto_struct *,
|
PROTO(CONST char *,bfd_printable_arch_mach,
|
||||||
bfd_reloc_type_lookup,
|
(enum bfd_architecture arch, unsigned long machine));
|
||||||
(enum bfd_architecture arch, bfd_reloc_code_enum_type code));
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*:reloc.c*/
|
/*:reloc.c*/
|
||||||
/* bfd_perform_relocation
|
/* bfd_perform_relocation
|
||||||
The relocation routine returns as a status an enumerated type:
|
The relocation routine returns as a status an enumerated type:
|
||||||
@ -1350,6 +1314,53 @@ this problem.
|
|||||||
asection *input_section,
|
asection *input_section,
|
||||||
bfd *output_bfd));
|
bfd *output_bfd));
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
bfd_reloc_code_enum_type
|
||||||
|
*/
|
||||||
|
|
||||||
|
typedef enum
|
||||||
|
{
|
||||||
|
|
||||||
|
/*
|
||||||
|
16 bits wide, simple reloc
|
||||||
|
*/
|
||||||
|
|
||||||
|
BFD_RELOC_16,
|
||||||
|
|
||||||
|
/*
|
||||||
|
8 bits wide, but used to form an address like 0xffnn
|
||||||
|
*/
|
||||||
|
|
||||||
|
BFD_RELOC_8_FFnn,
|
||||||
|
|
||||||
|
/*
|
||||||
|
8 bits wide, simple
|
||||||
|
*/
|
||||||
|
|
||||||
|
BFD_RELOC_8,
|
||||||
|
|
||||||
|
/*
|
||||||
|
8 bits wide, pc relative
|
||||||
|
*/
|
||||||
|
|
||||||
|
BFD_RELOC_8_PCREL
|
||||||
|
} bfd_reloc_code_enum_real_type;
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
bfd_reloc_type_lookup
|
||||||
|
This routine returns a pointer to a howto struct which when invoked,
|
||||||
|
will perform the supplied relocation on data from the architecture
|
||||||
|
noted.
|
||||||
|
|
||||||
|
[Note] This function will go away.
|
||||||
|
*/
|
||||||
|
|
||||||
|
PROTO(CONST struct reloc_howto_struct *,
|
||||||
|
bfd_reloc_type_lookup,
|
||||||
|
(CONST bfd_arch_info_struct_type *arch, bfd_reloc_code_enum_type code));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -2088,7 +2099,7 @@ Standard stuff.
|
|||||||
Symbols and reloctions
|
Symbols and reloctions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
SDEF (unsigned int, _get_symtab_upper_bound, (bfd *));
|
SDEF (unsigned int, _get_symtab_upper_bound, (bfd *));
|
||||||
SDEF (unsigned int, _bfd_canonicalize_symtab,
|
SDEF (unsigned int, _bfd_canonicalize_symtab,
|
||||||
(bfd *, struct symbol_cache_entry **));
|
(bfd *, struct symbol_cache_entry **));
|
||||||
SDEF (unsigned int, _get_reloc_upper_bound, (bfd *, sec_ptr));
|
SDEF (unsigned int, _get_reloc_upper_bound, (bfd *, sec_ptr));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user