summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2009-02-15 14:57:29 -0800
committerRoland McGrath <roland@redhat.com>2009-02-15 14:57:29 -0800
commit4d6d0f757aae4a17b6e23afe9c74d0b935d46e9d (patch)
tree6a9e5f3f717392094ff303938e69505d93c500f9
parent31fd654b5127ab0249a8bd7576e08f451fcab6af (diff)
downloadelfutils-4d6d0f757aae4a17b6e23afe9c74d0b935d46e9d.tar.gz
Handle attribute tag GNU_Power_ABI_Struct_Return.
-rw-r--r--backends/ChangeLog5
-rw-r--r--backends/ppc_attrs.c12
2 files changed, 16 insertions, 1 deletions
diff --git a/backends/ChangeLog b/backends/ChangeLog
index 85609b15..0dbb3eb6 100644
--- a/backends/ChangeLog
+++ b/backends/ChangeLog
@@ -1,3 +1,8 @@
+2009-02-15 Roland McGrath <roland@redhat.com>
+
+ * ppc_attrs.c (ppc_check_object_attribute): Handle tag
+ GNU_Power_ABI_Struct_Return.
+
2008-10-04 Ulrich Drepper <drepper@redhat.com>
* i386_reloc.def: Fix entries for TLS_GOTDESC, TLS_DESC_CALL, and
diff --git a/backends/ppc_attrs.c b/backends/ppc_attrs.c
index 733b8749..7320f264 100644
--- a/backends/ppc_attrs.c
+++ b/backends/ppc_attrs.c
@@ -1,5 +1,5 @@
/* Object attribute tags for PowerPC.
- Copyright (C) 2008 Red Hat, Inc.
+ Copyright (C) 2008, 2009 Red Hat, Inc.
This file is part of Red Hat elfutils.
Red Hat elfutils is free software; you can redistribute it and/or modify
@@ -66,6 +66,16 @@ ppc_check_object_attribute (ebl, vendor, tag, value, tag_name, value_name)
if (value < sizeof vector_kinds / sizeof vector_kinds[0])
*value_name = vector_kinds[value];
return true;
+
+ case 12:
+ *tag_name = "GNU_Power_ABI_Struct_Return";
+ static const char *vector_kinds[] =
+ {
+ "Any", "r3/r4", "Memory"
+ };
+ if (value < sizeof vector_kinds / sizeof vector_kinds[0])
+ *value_name = vector_kinds[value];
+ return true;
}
return false;