Fix another one for aarch64.
| SEC_READONLY
| SEC_HAS_CONTENTS
| SEC_DATA));
- if (sec == NULL)
- info->callbacks->fatal (_("%P: failed to create GNU property section\n"));
-
unsigned align = (bfd_get_mach (ebfd) & bfd_mach_aarch64_ilp32) ? 2 : 3;
- if (!bfd_set_section_alignment (sec, align))
- info->callbacks->fatal (_("%pA: failed to align section\n"), sec);
+ if (sec == NULL
+ || !bfd_set_section_alignment (sec, align))
+ info->callbacks->fatal (_("%P: failed to create %s\n"),
+ NOTE_GNU_PROPERTY_SECTION_NAME);
elf_section_type (sec) = SHT_NOTE;
}