mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-14 07:31:47 +00:00
8822b47f7c
Adds a way to inspect SHT_GROUP sections in ELF objects. Displays signature, member sections of these sections. Differential revision: http://reviews.llvm.org/D16555 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@258845 91177308-0d34-0410-b5e6-96231b3b80d8
40 lines
1.0 KiB
Plaintext
40 lines
1.0 KiB
Plaintext
# Source file compiled:
|
|
##include <iostream>
|
|
# #include <typeinfo>
|
|
#template <class A>
|
|
#void foo(A variable) {
|
|
# std::cout << "foo is " << typeid(A).name() << "\n";
|
|
#}
|
|
#int main () {
|
|
# char x = 'x';
|
|
# int y = 1;
|
|
# foo(x);
|
|
# foo(y);
|
|
# return 0;
|
|
#}
|
|
|
|
RUN: llvm-readobj -g %p/Inputs/elf-groups.x86_64 \
|
|
RUN: | FileCheck %s
|
|
CHECK: Groups {
|
|
CHECK-NEXT: Group {
|
|
CHECK-NEXT: Name: .group (92)
|
|
CHECK-NEXT: Index: 1
|
|
CHECK-NEXT: Type: COMDAT (0x1)
|
|
CHECK-NEXT: Signature: _Z3fooIcEvT_
|
|
CHECK-NEXT: Section(s) in group [
|
|
CHECK-NEXT: .text._Z3fooIcEvT_ (10)
|
|
CHECK-NEXT: .rela.text._Z3fooIcEvT_ (11)
|
|
CHECK-NEXT: ]
|
|
CHECK-NEXT: }
|
|
CHECK-NEXT: Group {
|
|
CHECK-NEXT: Name: .group (92)
|
|
CHECK-NEXT: Index: 2
|
|
CHECK-NEXT: Type: COMDAT (0x1)
|
|
CHECK-NEXT: Signature: _Z3fooIiEvT_
|
|
CHECK-NEXT: Section(s) in group [
|
|
CHECK-NEXT: .text._Z3fooIiEvT_ (12)
|
|
CHECK-NEXT: .rela.text._Z3fooIiEvT_ (13)
|
|
CHECK-NEXT: ]
|
|
CHECK-NEXT: }
|
|
|