summaryrefslogtreecommitdiffstats
path: root/backends/x86_64_symbol.c
diff options
context:
space:
mode:
authorMark Wielaard <[email protected]>2019-01-11 13:39:27 +0100
committerMark Wielaard <[email protected]>2019-01-11 13:39:27 +0100
commitb244a241a82c28f7fef33f37d82bc47631ceca4e (patch)
tree8b83c72f0a99dca6624f0903e8c3ee1eb26ad900 /backends/x86_64_symbol.c
parent029c76f0d4b06584e370b5fc0112712ba99a6219 (diff)
parent4ea9a2db164caadf836a65d5cdffb09a2d5a37ce (diff)
Merge tag 'elfutils-0.175' into mjw/RH-DTSdts-0.175
elfutils 0.175 release
Diffstat (limited to 'backends/x86_64_symbol.c')
-rw-r--r--backends/x86_64_symbol.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/backends/x86_64_symbol.c b/backends/x86_64_symbol.c
index 1622461d..98457bcb 100644
--- a/backends/x86_64_symbol.c
+++ b/backends/x86_64_symbol.c
@@ -1,5 +1,5 @@
/* x86_64 specific symbolic name handling.
- Copyright (C) 2002, 2005 Red Hat, Inc.
+ Copyright (C) 2002, 2005, 2018 Red Hat, Inc.
This file is part of elfutils.
Written by Ulrich Drepper <[email protected]>, 2002.
@@ -40,7 +40,8 @@
/* Check for the simple reloc types. */
Elf_Type
-x86_64_reloc_simple_type (Ebl *ebl __attribute__ ((unused)), int type)
+x86_64_reloc_simple_type (Ebl *ebl __attribute__ ((unused)), int type,
+ int *addsub __attribute__ ((unused)))
{
switch (type)
{
@@ -58,3 +59,15 @@ x86_64_reloc_simple_type (Ebl *ebl __attribute__ ((unused)), int type)
return ELF_T_NUM;
}
}
+
+/* Return symbolic representation of section type. */
+const char *
+x86_64_section_type_name (int type,
+ char *buf __attribute__ ((unused)),
+ size_t len __attribute__ ((unused)))
+{
+ if (type == SHT_X86_64_UNWIND)
+ return "X86_64_UNWIND";
+
+ return NULL;
+}