aboutsummaryrefslogtreecommitdiff
path: root/libsframe
diff options
context:
space:
mode:
authorIndu Bhagat <indu.bhagat@oracle.com>2022-12-09 10:25:31 -0800
committerIndu Bhagat <indu.bhagat@oracle.com>2022-12-09 10:25:31 -0800
commitb659fb35854e49ac16a5538d24bf0e3f0d6e6121 (patch)
treec8ce3af27be3469f175afec5c7d176a3d7f442e3 /libsframe
parent989aabcb564dccc7804f174fc582b0639357a9bb (diff)
downloadbinutils-b659fb35854e49ac16a5538d24bf0e3f0d6e6121.zip
binutils-b659fb35854e49ac16a5538d24bf0e3f0d6e6121.tar.gz
binutils-b659fb35854e49ac16a5538d24bf0e3f0d6e6121.tar.bz2
libsframe: rename API sframe_fde_func_info to sframe_fde_create_func_info
The new name better reflects the purpose of the function. ChangeLog: * bfd/elfxx-x86.c (_bfd_x86_elf_create_sframe_plt): Use new name. * libsframe/sframe.c (sframe_fde_create_func_info): Rename sframe_fde_func_info to this. * libsframe/testsuite/libsframe.encode/encode-1.c: Use new name. include/ChangeLog: * sframe-api.h (sframe_fde_create_func_info): Rename sframe_fde_func_info to this.
Diffstat (limited to 'libsframe')
-rw-r--r--libsframe/sframe.c6
-rw-r--r--libsframe/testsuite/libsframe.encode/encode-1.c8
2 files changed, 7 insertions, 7 deletions
diff --git a/libsframe/sframe.c b/libsframe/sframe.c
index 64fa907..d4eaaee 100644
--- a/libsframe/sframe.c
+++ b/libsframe/sframe.c
@@ -548,12 +548,12 @@ sframe_decoder_free (sframe_decoder_ctx **decoder)
}
}
-/* Create a FDE function info byte given an FRE_TYPE and an FDE_TYPE. */
+/* Create an FDE function info byte given an FRE_TYPE and an FDE_TYPE. */
/* FIXME API for linker. Revisit if its better placed somewhere else? */
unsigned char
-sframe_fde_func_info (unsigned int fre_type,
- unsigned int fde_type)
+sframe_fde_create_func_info (unsigned int fre_type,
+ unsigned int fde_type)
{
unsigned char func_info;
sframe_assert (fre_type == SFRAME_FRE_TYPE_ADDR1
diff --git a/libsframe/testsuite/libsframe.encode/encode-1.c b/libsframe/testsuite/libsframe.encode/encode-1.c
index 4075591..0148110 100644
--- a/libsframe/testsuite/libsframe.encode/encode-1.c
+++ b/libsframe/testsuite/libsframe.encode/encode-1.c
@@ -39,8 +39,8 @@ add_fde1 (sframe_encoder_ctx *encode, int idx)
{0x1a, 0x5, {0x8, 0xf0, 0}}
};
- unsigned char finfo = sframe_fde_func_info (SFRAME_FRE_TYPE_ADDR1,
- SFRAME_FDE_TYPE_PCINC);
+ unsigned char finfo = sframe_fde_create_func_info (SFRAME_FRE_TYPE_ADDR1,
+ SFRAME_FDE_TYPE_PCINC);
err = sframe_encoder_add_funcdesc (encode, 0xfffff03e, 0x1b, finfo, 4);
if (err == -1)
return err;
@@ -64,8 +64,8 @@ add_fde2 (sframe_encoder_ctx *encode, int idx)
{0xf, 0x5, {0x8, 0xf0, 0}}
};
- unsigned char finfo = sframe_fde_func_info (SFRAME_FRE_TYPE_ADDR1,
- SFRAME_FDE_TYPE_PCINC);
+ unsigned char finfo = sframe_fde_create_func_info (SFRAME_FRE_TYPE_ADDR1,
+ SFRAME_FDE_TYPE_PCINC);
err = sframe_encoder_add_funcdesc (encode, 0xfffff059, 0x10, finfo, 4);
if (err == -1)
return err;