diff options
author | Kevin Enderby <enderby@apple.com> | 2014-05-19 20:36:02 +0000 |
---|---|---|
committer | Kevin Enderby <enderby@apple.com> | 2014-05-19 20:36:02 +0000 |
commit | 86ad7b70cb994a9ebde84053026e560a37061ce9 (patch) | |
tree | 050f6c4d352f7dde4f1b7e8d2e4d1cdc936a361f /test/Object/size-trivial-macho.test | |
parent | ca162faee2e8f9e9f8938b164a0e959307194baa (diff) | |
download | llvm-86ad7b70cb994a9ebde84053026e560a37061ce9.tar.gz llvm-86ad7b70cb994a9ebde84053026e560a37061ce9.tar.bz2 llvm-86ad7b70cb994a9ebde84053026e560a37061ce9.tar.xz |
Implement MachOObjectFile::isSectionData() and MachOObjectFile::isSectionBSS
so that llvm-size will total up all the sections in the Berkeley format. This
allows for rough categorizations for Mach-O sections. And allows the total of
llvm-size’s Berkeley and System V formats to be the same.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209158 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Object/size-trivial-macho.test')
-rw-r--r-- | test/Object/size-trivial-macho.test | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Object/size-trivial-macho.test b/test/Object/size-trivial-macho.test new file mode 100644 index 0000000000..6ecdf5c2a8 --- /dev/null +++ b/test/Object/size-trivial-macho.test @@ -0,0 +1,15 @@ +RUN: llvm-size -A %p/Inputs/macho-text-data-bss.macho-x86_64 \ +RUN: | FileCheck %s -check-prefix A +RUN: llvm-size -B %p/Inputs/macho-text-data-bss.macho-x86_64 \ +RUN: | FileCheck %s -check-prefix B + +A: section size addr +A: __text 12 0 +A: __data 4 12 +A: __bss 4 112 +A: __compact_unwind 32 16 +A: __eh_frame 64 48 +A: Total 116 + +B: text data bss dec hex filename +B: 12 100 4 116 74 |