summaryrefslogtreecommitdiffstats
path: root/lib/libelf
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2011-05-07 01:05:31 +0000
committerobrien <obrien@FreeBSD.org>2011-05-07 01:05:31 +0000
commit3a533dcf25ee60b843e4e6c6c10a76fd603629c8 (patch)
treeed859674e81264f55de2412db17619c8de1fee86 /lib/libelf
parente97ce6dc83fc8850d25f1c57197b68ff3586254e (diff)
downloadFreeBSD-src-3a533dcf25ee60b843e4e6c6c10a76fd603629c8.zip
FreeBSD-src-3a533dcf25ee60b843e4e6c6c10a76fd603629c8.tar.gz
Add the ability to search for all the inlined instances of a given function.
Reviewed by: jb Obtained from: Juniper Networks
Diffstat (limited to 'lib/libelf')
-rw-r--r--lib/libelf/Makefile2
-rw-r--r--lib/libelf/libelf_data.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/libelf/Makefile b/lib/libelf/Makefile
index fc70d9d..fe921cb 100644
--- a/lib/libelf/Makefile
+++ b/lib/libelf/Makefile
@@ -57,7 +57,7 @@ INCS= libelf.h gelf.h
GENSRCS= libelf_fsize.c libelf_msize.c libelf_convert.c
CLEANFILES= ${GENSRCS}
-CFLAGS+= -I. -I${.CURDIR}
+CFLAGS+= -I${.CURDIR} -I${.CURDIR}/../../sys
SHLIB_MAJOR= 1
diff --git a/lib/libelf/libelf_data.c b/lib/libelf/libelf_data.c
index 67388b6..ee2d57a 100644
--- a/lib/libelf/libelf_data.c
+++ b/lib/libelf/libelf_data.c
@@ -84,6 +84,8 @@ _libelf_xlate_shtype(uint32_t sht)
case SHT_SUNW_dof:
return (ELF_T_BYTE);
#endif
+ case SHT_MIPS_DWARF:
+ /* FALLTHROUGH */
case SHT_AMD64_UNWIND: /* == SHT_IA_64_UNWIND */
return (ELF_T_BYTE);
default:
OpenPOWER on IntegriCloud