forked from Imagelibrary/binutils-gdb
Add function bfd_elf_get_sign_extend_vma.
This commit is contained in:
14
bfd/elf.c
14
bfd/elf.c
@@ -1777,6 +1777,20 @@ bfd_elf_get_arch_size (abfd)
|
||||
return (get_elf_backend_data (abfd))->s->arch_size;
|
||||
}
|
||||
|
||||
/* True if addresses "naturally" sign extend. Return 0/1 if known.
|
||||
-1 if unknown. */
|
||||
int
|
||||
bfd_elf_get_sign_extend_vma (abfd)
|
||||
bfd *abfd;
|
||||
{
|
||||
if (bfd_get_flavour (abfd) != bfd_target_elf_flavour)
|
||||
{
|
||||
bfd_set_error (bfd_error_wrong_format);
|
||||
return -1;
|
||||
}
|
||||
return (get_elf_backend_data (abfd)->sign_extend_vma);
|
||||
}
|
||||
|
||||
/* Assign all ELF section numbers. The dummy first section is handled here
|
||||
too. The link/info pointers for the standard section types are filled
|
||||
in here too, while we're at it. */
|
||||
|
||||
Reference in New Issue
Block a user