summaryrefslogtreecommitdiff
path: root/bfd/elfxx-sparc.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@redhat.com>2013-03-22 15:54:21 +0000
committerDavid S. Miller <davem@redhat.com>2013-03-22 15:54:21 +0000
commit6bc9d4de3851a9c7ee8fedd6e9e21932f9047c39 (patch)
tree4e0561c89e65cad4b3c5cfdb07f191d1f1e21008 /bfd/elfxx-sparc.c
parent7e9542cf6a4e43d508e07c1a9dd46bad0a23366e (diff)
downloadbinutils-redhat-6bc9d4de3851a9c7ee8fedd6e9e21932f9047c39.tar.gz
Fix attribute section output on sparc.
bfd/ * elfxx-sparc.c (_bfd_sparc_elf_merge_private_bfd_data): Set type of hwcaps attribute.
Diffstat (limited to 'bfd/elfxx-sparc.c')
-rw-r--r--bfd/elfxx-sparc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/elfxx-sparc.c b/bfd/elfxx-sparc.c
index 9684ffd7a4..596c8384bb 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);