This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH COMMITTED]: Fix attribute section output on sparc.
- From: David Miller <davem at davemloft dot net>
- To: binutils at sourceware dot org
- Cc: roland at hack dot frob dot com
- Date: Fri, 22 Mar 2013 11:56:07 -0400 (EDT)
- Subject: [PATCH COMMITTED]: Fix attribute section output on sparc.
Thanks to Roland McGrath for reporting this bug to me.
bfd/
* elfxx-sparc.c (_bfd_sparc_elf_merge_private_bfd_data): Set type of
hwcaps attribute.
diff --git a/bfd/elfxx-sparc.c b/bfd/elfxx-sparc.c
index 9684ffd..596c838 100644
--- a/bfd/elfxx-sparc.c
+++ b/bfd/elfxx-sparc.c
@@ -4905,6 +4905,7 @@ _bfd_sparc_elf_merge_private_bfd_data (bfd *ibfd, bfd *obfd)
out_attr = &out_attrs[Tag_GNU_Sparc_HWCAPS];
out_attr->i |= in_attr->i;
+ out_attr->type = 1;
/* Merge Tag_compatibility attributes and any common GNU ones. */
_bfd_elf_merge_object_attributes (ibfd, obfd);