Add a new function to the BFD library to allow users access to the COFF internal_extra_pe_outhdr structure.
* cofflink.c (bfd_coff_get_internal_extra_pe_aouthdr): New function. * libbfd-in.h (bfd_coff_get_internal_extra_pe_aouthdr): Prototype. * libbfd.h: Regenerate.
This commit is contained in:
parent
b778095777
commit
aac88046e6
@ -1,3 +1,10 @@
|
|||||||
|
2020-03-25 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
* cofflink.c (bfd_coff_get_internal_extra_pe_aouthdr): New
|
||||||
|
function.
|
||||||
|
* libbfd-in.h (bfd_coff_get_internal_extra_pe_aouthdr): Prototype.
|
||||||
|
* libbfd.h: Regenerate.
|
||||||
|
|
||||||
2020-03-25 Shahab Vahedi <shahab@synopsys.com>
|
2020-03-25 Shahab Vahedi <shahab@synopsys.com>
|
||||||
|
|
||||||
* elf32-arc.c (PRINT_DEBUG_RELOC_INFO_BEFORE): Use the
|
* elf32-arc.c (PRINT_DEBUG_RELOC_INFO_BEFORE): Use the
|
||||||
|
@ -3157,3 +3157,12 @@ _bfd_coff_generic_relocate_section (bfd *output_bfd,
|
|||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
struct internal_extra_pe_aouthdr *
|
||||||
|
bfd_coff_get_internal_extra_pe_aouthdr (bfd* abfd)
|
||||||
|
{
|
||||||
|
if (abfd == NULL || bfd_get_flavour (abfd) != bfd_target_coff_flavour)
|
||||||
|
return NULL;
|
||||||
|
return & pe_data (abfd)->pe_opthdr;
|
||||||
|
}
|
||||||
|
@ -854,6 +854,11 @@ extern bfd_vma _bfd_get_gp_value
|
|||||||
extern void _bfd_set_gp_value
|
extern void _bfd_set_gp_value
|
||||||
(bfd *, bfd_vma) ATTRIBUTE_HIDDEN;
|
(bfd *, bfd_vma) ATTRIBUTE_HIDDEN;
|
||||||
|
|
||||||
|
/* Provide access to the internal_extra_pe_aouthdr structure which
|
||||||
|
contains interesting information for PE format binaries. */
|
||||||
|
extern struct internal_extra_pe_aouthdr *
|
||||||
|
bfd_coff_get_internal_extra_pe_aouthdr (bfd *);
|
||||||
|
|
||||||
/* Function shared by the COFF and ELF SH backends, which have no
|
/* Function shared by the COFF and ELF SH backends, which have no
|
||||||
other common header files. */
|
other common header files. */
|
||||||
|
|
||||||
|
@ -859,6 +859,11 @@ extern bfd_vma _bfd_get_gp_value
|
|||||||
extern void _bfd_set_gp_value
|
extern void _bfd_set_gp_value
|
||||||
(bfd *, bfd_vma) ATTRIBUTE_HIDDEN;
|
(bfd *, bfd_vma) ATTRIBUTE_HIDDEN;
|
||||||
|
|
||||||
|
/* Provide access to the internal_extra_pe_aouthdr structure which
|
||||||
|
contains interesting information for PE format binaries. */
|
||||||
|
extern struct internal_extra_pe_aouthdr *
|
||||||
|
bfd_coff_get_internal_extra_pe_aouthdr (bfd *);
|
||||||
|
|
||||||
/* Function shared by the COFF and ELF SH backends, which have no
|
/* Function shared by the COFF and ELF SH backends, which have no
|
||||||
other common header files. */
|
other common header files. */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user