aboutsummaryrefslogtreecommitdiff
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
commit209be8d2a998544ff90bee54f76ca6cf5a812b55 (patch)
treeb9b8e917fbff2a6add7d5ea25bee85f5046955b3 /bfd/elfxx-sparc.c
parent5c0df4846e5e0f668376c153ff69fd8bf1461df3 (diff)
downloadgdb-209be8d2a998544ff90bee54f76ca6cf5a812b55.zip
gdb-209be8d2a998544ff90bee54f76ca6cf5a812b55.tar.gz
gdb-209be8d2a998544ff90bee54f76ca6cf5a812b55.tar.bz2
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 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);