aboutsummaryrefslogtreecommitdiff
path: root/contrib/elftoolchain/libdwarf/libdwarf_info.c
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2014-12-30 03:25:42 +0000
committerEd Maste <emaste@FreeBSD.org>2014-12-30 03:25:42 +0000
commit4a85c69160aa915853befc1efbcd83618d2eac03 (patch)
treede2207a7e901c24da6991f0a9fdabd4926d15e40 /contrib/elftoolchain/libdwarf/libdwarf_info.c
parent952fc99936a2748104ca69f1ba42264ee72d71fe (diff)
parent42bfa111d731278ff40f9ce45298e65a373c2064 (diff)
downloadsrc-4a85c69160aa915853befc1efbcd83618d2eac03.tar.gz
src-4a85c69160aa915853befc1efbcd83618d2eac03.zip
Update elftoolchain to upstream rev 3136
This fixes two strip(1) issues found during ports exp-run and adds a string hash implementation which significantly speeds up certain operations on objects with large numbers of symbols. This also improves libdwarf handling for stripped objects with .eh_frame or .debug_frame (but not other debug) sections. PR: 196107 Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=276398
Diffstat (limited to 'contrib/elftoolchain/libdwarf/libdwarf_info.c')
-rw-r--r--contrib/elftoolchain/libdwarf/libdwarf_info.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/elftoolchain/libdwarf/libdwarf_info.c b/contrib/elftoolchain/libdwarf/libdwarf_info.c
index 261bee6d933e..74765930aaed 100644
--- a/contrib/elftoolchain/libdwarf/libdwarf_info.c
+++ b/contrib/elftoolchain/libdwarf/libdwarf_info.c
@@ -27,7 +27,7 @@
#include "_libdwarf.h"
-ELFTC_VCSID("$Id: libdwarf_info.c 3041 2014-05-18 15:11:03Z kaiwang27 $");
+ELFTC_VCSID("$Id: libdwarf_info.c 3136 2014-12-24 16:04:38Z kaiwang27 $");
int
_dwarf_info_first_cu(Dwarf_Debug dbg, Dwarf_Error *error)
@@ -153,7 +153,8 @@ _dwarf_info_load(Dwarf_Debug dbg, Dwarf_Bool load_all, Dwarf_Bool is_info,
return (ret);
offset = dbg->dbg_info_off;
ds = dbg->dbg_info_sec;
- assert(ds != NULL);
+ if (ds == NULL)
+ return (DW_DLE_NO_ENTRY);
} else {
if (dbg->dbg_types_loaded)
return (ret);