aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Longo <matthieu.longo@arm.com>2024-11-14 16:05:27 +0000
committerMatthieu Longo <matthieu.longo@arm.com>2024-12-02 15:18:40 +0000
commitaa993e9731bff2033633f034d2e37c74d00d17f3 (patch)
tree0529570a98fd0cb7a32ae56d85d4f4ac886f19d4
parent1bd9dbeaf34f2b79ab2c5faf7c3e698084930b19 (diff)
downloadgdb-aa993e9731bff2033633f034d2e37c74d00d17f3.zip
gdb-aa993e9731bff2033633f034d2e37c74d00d17f3.tar.gz
gdb-aa993e9731bff2033633f034d2e37c74d00d17f3.tar.bz2
aarch64: rename parameter of _bfd_aarch64_elf_merge_gnu_properties
The current naming of the AArch64 feature GNU property of the output bfd does not reflect what it is. This patch renames it from "prop" to "outprop".
-rw-r--r--bfd/elfxx-aarch64.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/bfd/elfxx-aarch64.c b/bfd/elfxx-aarch64.c
index 1993a97..45a246a 100644
--- a/bfd/elfxx-aarch64.c
+++ b/bfd/elfxx-aarch64.c
@@ -827,8 +827,8 @@ _bfd_aarch64_elf_parse_gnu_properties (bfd *abfd, unsigned int type,
return property_number;
}
-/* Merge AArch64 GNU property BPROP with APROP also accounting for PROP.
- If APROP isn't NULL, merge it with BPROP and/or PROP. Vice-versa if BROP
+/* Merge AArch64 GNU property BPROP with APROP also accounting for OUTPROP.
+ If APROP isn't NULL, merge it with BPROP and/or OUTPROP. Vice-versa if BROP
isn't NULL. Return TRUE if there is any update to APROP or if BPROP should
be merge with ABFD. */
bool
@@ -837,7 +837,7 @@ _bfd_aarch64_elf_merge_gnu_properties (struct bfd_link_info *info
bfd *abfd ATTRIBUTE_UNUSED,
elf_property *aprop,
elf_property *bprop,
- uint32_t prop)
+ uint32_t outprop)
{
unsigned int orig_number;
bool updated = false;
@@ -850,7 +850,7 @@ _bfd_aarch64_elf_merge_gnu_properties (struct bfd_link_info *info
if (aprop != NULL && bprop != NULL)
{
orig_number = aprop->u.number;
- aprop->u.number = (orig_number & bprop->u.number) | prop;
+ aprop->u.number = (orig_number & bprop->u.number) | outprop;
updated = orig_number != aprop->u.number;
/* Remove the property if all feature bits are cleared. */
if (aprop->u.number == 0)
@@ -858,22 +858,22 @@ _bfd_aarch64_elf_merge_gnu_properties (struct bfd_link_info *info
break;
}
/* If either is NULL, the AND would be 0 so, if there is
- any PROP, asign it to the input that is not NULL. */
- if (prop)
+ any OUTPROP, assign it to the input that is not NULL. */
+ if (outprop)
{
if (aprop != NULL)
{
orig_number = aprop->u.number;
- aprop->u.number = prop;
+ aprop->u.number = outprop;
updated = orig_number != aprop->u.number;
}
else
{
- bprop->u.number = prop;
+ bprop->u.number = outprop;
updated = true;
}
}
- /* No PROP and BPROP is NULL, so remove APROP. */
+ /* No OUTPROP and BPROP is NULL, so remove APROP. */
else if (aprop != NULL)
{
aprop->pr_kind = property_remove;