/* Go over the list of already recorded attributes and check for
redefinitions (which are forbidden). */
- bool skip_recording = false;
- obj_attr_v2_t *recorded_attr = bfd_obj_attr_v2_find_by_tag
+ const obj_attr_v2_t *recorded_attr = bfd_obj_attr_v2_find_by_tag
(elf_obj_attr_subsections (stdoutput).last, obj_attr->tag, false);
if (recorded_attr != NULL)
{
&& strcmp (recorded_attr->val.string, obj_attr->val.string) != 0))
as_bad (_("attribute '%" PRIu64 "' cannot be redefined"),
recorded_attr->tag);
- skip_recording = true;
- }
- if (skip_recording)
- {
if (arg_val->vtype == VALUE_STRING)
free ((void *) obj_attr->val.string);
free (obj_attr);