[lldb-dev] lldb-server stripped binary size: AArch64 ~16Mb vs ARM ~9 Mb

Mikhail Filimonov via lldb-dev lldb-dev at lists.llvm.org
Mon Feb 29 12:15:02 PST 2016


Hello, fellow developers and congratulations with long awaited 3.8 Release.

I wonder why AArch64 stripped binary of lldb-server built from [3.8 Release] RC3 source is so much bigger than its ARM counterpart.
See the numbers:
16318632 Feb 29 22:41 lldb-server-3.8.0-aarch64
 9570916 Feb 29 22:23 lldb-server-3.8.0-arm
lldb-server-3.8.0-aarch64: ELF 64-bit LSB  executable, ARM aarch64, version 1 (SYSV), statically linked, stripped
lldb-server-3.8.0-arm:     ELF 32-bit LSB  executable, ARM, EABI5 version 1 (SYSV), statically linked, stripped

My build configuration is MinSizeRel in both cases:
cmake -GNinja
-DCMAKE_BUILD_TYPE=MinSizeRel $HOME/llvm_git
-DCMAKE_TOOLCHAIN_FILE=tools/lldb/cmake/platforms/Android.cmake
-DANDROID_TOOLCHAIN_DIR=$HOME/Toolchains/aarch64-21-android
-DANDROID_ABI=aarch64
-DCMAKE_CXX_COMPILER_VERSION=4.9
-DLLVM_TARGET_ARCH=aarch64
-DLLVM_HOST_TRIPLE=aarch64-unknown-linux-android
-DLLVM_TABLEGEN=$HOME/llvm_host/bin/llvm-tblgen
-DCLANG_TABLEGEN=$HOME/llvm_host/bin/clang-tblgen

cmake -GNinja
-DCMAKE_BUILD_TYPE=MinSizeRel $HOME/llvm_git
-DCMAKE_TOOLCHAIN_FILE=tools/lldb/cmake/platforms/Android.cmake
-DANDROID_TOOLCHAIN_DIR=$HOME/Toolchains/arm-21-android-toolchain
-DANDROID_ABI=armeabi
-DCMAKE_CXX_COMPILER_VERSION=4.9
-DLLVM_TARGET_ARCH=arm
-DLLVM_HOST_TRIPLE=arm-unknown-linux-android
-DLLVM_TABLEGEN=$HOME/llvm_host/bin/llvm-tblgen
-DCLANG_TABLEGEN=$HOME/llvm_host/bin/clang-tblgen

Maybe I need some additional settings to be set for AArch64 case?

Regards,
Mikhail

-----Original Message-----
From: lldb-dev [mailto:lldb-dev-bounces at lists.llvm.org] On Behalf Of Hans Wennborg via lldb-dev
Sent: Wednesday, February 24, 2016 12:51 AM
To: release-testers at lists.llvm.org
Cc: llvm-dev <llvm-dev at lists.llvm.org>; cfe-dev <cfe-dev at lists.llvm.org>; openmp-dev (openmp-dev at lists.llvm.org) <openmp-dev at lists.llvm.org>; LLDB Dev <lldb-dev at lists.llvm.org>
Subject: [lldb-dev] [3.8 Release] RC3 has been tagged

Dear testers,

Release Candidate 3 has just been tagged [1]. Please build, test, and upload to the sftp.

If there are no regressions from previous release candidates, this will be the last release candidate before the final release.

Release notes can still go into the branch.

Thanks again for all your work!
Hans

 [1] http://lists.llvm.org/pipermail/llvm-branch-commits/2016-February/009866.html
_______________________________________________
lldb-dev mailing list
lldb-dev at lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev

-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------


More information about the lldb-dev mailing list