diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-04-13 03:11:08 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-04-13 03:11:08 +0000 |
commit | 9ede5c7dd00b48a1c07d9d08695228a1a68d5c33 (patch) | |
tree | 259ae2e9572de8386440c2b555ab7788e78d8b40 /llvm/test/tools/llvm-objdump | |
parent | 81c55b62552f5a3de43ebb83364047e7d9a4ebec (diff) | |
download | bcm5719-llvm-9ede5c7dd00b48a1c07d9d08695228a1a68d5c33.tar.gz bcm5719-llvm-9ede5c7dd00b48a1c07d9d08695228a1a68d5c33.zip |
tools: teach objdump about FILE aux records
Add support for file auxiliary symbol entries in COFF symbol tables. A COFF
symbol table with a FILE entry is followed by sizeof(__FILE__) / 18 auxiliary
symbol records which contain the filename. Read them and form the original
filename that the record contains. Then display the name in the output.
llvm-svn: 206126
Diffstat (limited to 'llvm/test/tools/llvm-objdump')
-rwxr-xr-x | llvm/test/tools/llvm-objdump/Inputs/file.obj.coff-arm | bin | 0 -> 374 bytes | |||
-rw-r--r-- | llvm/test/tools/llvm-objdump/coff-file.test | 5 |
2 files changed, 5 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objdump/Inputs/file.obj.coff-arm b/llvm/test/tools/llvm-objdump/Inputs/file.obj.coff-arm Binary files differnew file mode 100755 index 00000000000..a333a87929b --- /dev/null +++ b/llvm/test/tools/llvm-objdump/Inputs/file.obj.coff-arm diff --git a/llvm/test/tools/llvm-objdump/coff-file.test b/llvm/test/tools/llvm-objdump/coff-file.test new file mode 100644 index 00000000000..ba345b4d426 --- /dev/null +++ b/llvm/test/tools/llvm-objdump/coff-file.test @@ -0,0 +1,5 @@ +RUN: llvm-objdump -t %p/Inputs/file.obj.coff-arm | FileCheck %s + +CHECK: .file +CHECK-NEXT: AUX /Users/compnerd/work/llvm/test/tools/llvm-readobj/Inputs/file.asm + |