SHA256
1
0
forked from pool/elfutils
elfutils/elfutils-0.164-dt-ppc-opt.patch
Tony Jones 54596ab49d Accepting request 362117 from home:michel_mno:branches:Base:System
- rename dt-ppc-opt.patch as elfutils-0.164-dt-ppc-opt.patch
  and add reference to upstream commit id

OBS-URL: https://build.opensuse.org/request/show/362117
OBS-URL: https://build.opensuse.org/package/show/Base:System/elfutils?expand=0&rev=76
2016-02-29 05:45:52 +00:00

39 lines
1.2 KiB
Diff

From b6dd3cc8abf8e72fae6c52e7e7518c181d490cc7 Mon Sep 17 00:00:00 2001
From: Andreas Schwab <schwab@suse.de>
Date: Tue, 15 Dec 2015 15:58:36 +0100
Subject: [PATCH] Add support for DT_PPC_OPT
Upstream: https://git.fedorahosted.org/cgit/elfutils.git/commit/?id=d1d4db68eb441ae67864be209a0679cbc86189c5
References: https://lists.fedorahosted.org/archives/list/elfutils-devel@lists.fedorahosted.org/thread/IEYDIMGDVFYHGXO6VKHFJFIZEL5KXU63/
Signed-off-by: Andreas Schwab <schwab@suse.de>
---
backends/ppc_symbol.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/backends/ppc_symbol.c b/backends/ppc_symbol.c
index 37d4918..1273c1d 100644
--- a/backends/ppc_symbol.c
+++ b/backends/ppc_symbol.c
@@ -65,6 +65,8 @@ ppc_dynamic_tag_name (int64_t tag, char *buf __attribute__ ((unused)),
{
case DT_PPC_GOT:
return "PPC_GOT";
+ case DT_PPC_OPT:
+ return "PPC_OPT";
default:
break;
}
@@ -75,7 +77,8 @@ ppc_dynamic_tag_name (int64_t tag, char *buf __attribute__ ((unused)),
bool
ppc_dynamic_tag_check (int64_t tag)
{
- return tag == DT_PPC_GOT;
+ return (tag == DT_PPC_GOT
+ || tag == DT_PPC_OPT);
}
--
2.6.4