summaryrefslogtreecommitdiff
path: root/libbacktrace/elf.c
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2014-03-07 05:07:56 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2014-03-07 05:07:56 +0000
commit1329f16062bf0a3ba0d9db621073a8431256ed2a (patch)
treee0c8c1eba373485f6f43bbc665aa196c676034bd /libbacktrace/elf.c
parent0c739e52f1e4a38b11e19b97c2bb7ef5cf1e9230 (diff)
downloadgcc-1329f16062bf0a3ba0d9db621073a8431256ed2a.tar.gz
* sort.c: New file.
* stest.c: New file. * internal.h (backtrace_qsort): Declare. * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort. (read_line_info, read_function_entry): Likewise. (read_function_info, build_dwarf_data): Likewise. * elf.c (elf_initialize_syminfo): Likewise. * Makefile.am (libbacktrace_la_SOURCES): Add sort.c. (stest_SOURCES, stest_LDADD): Define. (check_PROGRAMS): Add stest. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208392 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libbacktrace/elf.c')
-rw-r--r--libbacktrace/elf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbacktrace/elf.c b/libbacktrace/elf.c
index 6c5b179e90d..e63aaf5dbdf 100644
--- a/libbacktrace/elf.c
+++ b/libbacktrace/elf.c
@@ -407,8 +407,8 @@ elf_initialize_syminfo (struct backtrace_state *state,
++j;
}
- qsort (elf_symbols, elf_symbol_count, sizeof (struct elf_symbol),
- elf_symbol_compare);
+ backtrace_qsort (elf_symbols, elf_symbol_count, sizeof (struct elf_symbol),
+ elf_symbol_compare);
sdata->next = NULL;
sdata->symbols = elf_symbols;