1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 20:12:56 +02:00
llvm-mirror/test/tools/llvm-symbolizer
Matt Davis 3c8119efc1 [symbolizer] Avoid collecting symbols belonging to invalid sections.
Summary:
llvm-symbolizer would originally report symbols that belonged to an invalid object file section.
Specifically the case where: `*Symbol.getSection() == ObjFile.section_end()`
This patch prevents the Symbolizer from collecting symbols that belong to invalid sections.

The test  (from PR40591) introduces a case where two symbols have address 0,
one symbol is defined, 'foo', and the other is not defined, 'bar'.  This patch will cause
the Symbolizer to keep 'foo' and ignore 'bar'.

As a side note, the logic for adding symbols to the Symbolizer's store
(`SymbolizableObjectFile::addSymbol`) replaces symbols with the
same <address, size> pair.  At some point that logic should be revisited as in the
aforementioned case, 'bar' was overwriting 'foo' in the Symbolizer's store,
and 'foo' was forgotten.

This fixes PR40591

Reviewers: jhenderson, rupprecht

Reviewed By: rupprecht

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D58146

llvm-svn: 354083
2019-02-14 23:50:35 +00:00
..
Inputs llvm-symbolizer: Extract individual test cases now that it's easier to use directly (without a piped input file) 2019-01-24 01:19:17 +00:00
pdb [llvm-symbolizer][test] Simplify test input reading 2019-01-31 14:04:47 +00:00
adjust-vma.s [llvm-symbolizer] Add switch to adjust addresses by fixed offset 2019-01-25 11:49:21 +00:00
basenames.s [llvm-symbolizer] Add support for --basenames/-s 2019-01-22 10:24:32 +00:00
basic.s [llvm-symbolizer] Add -exe, -e as aliases to -obj 2019-01-11 11:51:52 +00:00
coff-dwarf.test [llvm-symbolizer][test] Simplify test input reading 2019-01-31 14:04:47 +00:00
coff-exports.test [llvm-symbolizer][test] Simplify test input reading 2019-01-31 14:04:47 +00:00
demangle.s [llvm-symbolizer][test] Extract tests from llvm-symbolizer.test and simplify (#2) 2019-01-31 14:17:33 +00:00
dsym.test
dwo.test llvm-symbolizer: Extract individual test cases now that it's easier to use directly (without a piped input file) 2019-01-24 01:19:17 +00:00
fat.test [llvm-symbolizer][test] Simplify test input reading 2019-01-31 14:04:47 +00:00
fission-ranges.test llvm-symbolizer: Extract individual test cases now that it's easier to use directly (without a piped input file) 2019-01-24 01:19:17 +00:00
flag-grouping.test [llvm-symbolizer] Add support for -i and -inlines as aliases for -inlining 2019-01-24 00:34:09 +00:00
functions.s [llvm-symbolizer] Improve compatibility of --functions with GNU addr2line 2019-01-23 17:27:48 +00:00
ignore-undefined-symbols.s [symbolizer] Avoid collecting symbols belonging to invalid sections. 2019-02-14 23:50:35 +00:00
invalid-input-address.test [DebugInfo][llvm-symbolizer]Add some tests for edge cases when symbolizing 2019-02-06 10:13:14 +00:00
padding-x86_64.ll [llvm-symbolizer][test] Simplify test input reading 2019-01-31 14:04:47 +00:00
ppc64.test [llvm-symbolizer][test] Simplify test input reading 2019-01-31 14:04:47 +00:00
print_context.c [llvm-symbolizer][test] Simplify test input reading 2019-01-31 14:04:47 +00:00
space-in-path.s [llvm-symbolizer][test] Extract tests from llvm-symbolizer.test and simplify (#3) 2019-01-31 14:22:50 +00:00
split-debug.test llvm-symbolizer: Extract individual test cases now that it's easier to use directly (without a piped input file) 2019-01-24 01:19:17 +00:00
split-dwarf-addr-object-relocation.test llvm-symbolizer: Extract individual test cases now that it's easier to use directly (without a piped input file) 2019-01-24 01:19:17 +00:00
split-dwarf-dwp.test llvm-symbolizer: Extract individual test cases now that it's easier to use directly (without a piped input file) 2019-01-24 01:19:17 +00:00
split-dwarf-multiple-cu.test llvm-symbolizer: Extract individual test cases now that it's easier to use directly (without a piped input file) 2019-01-24 01:19:17 +00:00
split-dwarf.test llvm-symbolizer: Extract individual test cases now that it's easier to use directly (without a piped input file) 2019-01-24 01:19:17 +00:00
sym-verbose.test Update the test to fix the buildbot failure introduced by r300486 (NFC) 2017-04-17 20:35:32 +00:00
sym.test [llvm-symbolizer] Add support for -i and -inlines as aliases for -inlining 2019-01-24 00:34:09 +00:00