mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 18:14:13 +08:00
Externalize the _bfd_set_gp_value function
This change adds an external-visible wrapper for the _bfd_set_gp_value function. This is a prerequisite for some gdb patches that better handle powerpc64le relocations against ".TOC.". * bfd.c (bfd_set_gp_value): New externally visible wrapper for _bfd_set_gp_value. * bfd-in2.h: Regenerate.
This commit is contained in:
parent
b25f942e18
commit
254db2f336
@ -7106,6 +7106,8 @@ unsigned int bfd_get_gp_size (bfd *abfd);
|
||||
|
||||
void bfd_set_gp_size (bfd *abfd, unsigned int i);
|
||||
|
||||
void bfd_set_gp_value (bfd *abfd, bfd_vma v);
|
||||
|
||||
bfd_vma bfd_scan_vma (const char *string, const char **end, int base);
|
||||
|
||||
bool bfd_copy_private_header_data (bfd *ibfd, bfd *obfd);
|
||||
|
18
bfd/bfd.c
18
bfd/bfd.c
@ -1860,6 +1860,24 @@ _bfd_set_gp_value (bfd *abfd, bfd_vma v)
|
||||
elf_gp (abfd) = v;
|
||||
}
|
||||
|
||||
/*
|
||||
FUNCTION
|
||||
bfd_set_gp_value
|
||||
|
||||
SYNOPSIS
|
||||
void bfd_set_gp_value (bfd *abfd, bfd_vma v);
|
||||
|
||||
DESCRIPTION
|
||||
Allow external access to the fucntion to set the GP value.
|
||||
This is specifically added for gdb-compile support.
|
||||
*/
|
||||
|
||||
void
|
||||
bfd_set_gp_value (bfd *abfd, bfd_vma v)
|
||||
{
|
||||
return _bfd_set_gp_value (abfd, v);
|
||||
}
|
||||
|
||||
/*
|
||||
FUNCTION
|
||||
bfd_scan_vma
|
||||
|
Loading…
Reference in New Issue
Block a user