From 4d6d0f757aae4a17b6e23afe9c74d0b935d46e9d Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 15 Feb 2009 14:57:29 -0800 Subject: [PATCH] Handle attribute tag GNU_Power_ABI_Struct_Return. --- backends/ChangeLog | 5 +++++ backends/ppc_attrs.c | 12 +++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/backends/ChangeLog b/backends/ChangeLog index 85609b155..0dbb3eb67 100644 --- a/backends/ChangeLog +++ b/backends/ChangeLog @@ -1,3 +1,8 @@ +2009-02-15 Roland McGrath + + * ppc_attrs.c (ppc_check_object_attribute): Handle tag + GNU_Power_ABI_Struct_Return. + 2008-10-04 Ulrich Drepper * 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 733b87497..7320f264c 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; -- 2.47.2