objcopy: Support cross-build for stripping symbols
authorGeunsik Lim <geunsik.lim@samsung.com>
Sat, 26 Mar 2016 12:39:14 +0000 (21:39 +0900)
committerGeunsik Lim <geunsik.lim@samsung.com>
Mon, 28 Mar 2016 07:18:40 +0000 (16:18 +0900)
commitf3b84d5f2ff49c36cd411b6b55a65c7e232fcef3
treefc197a7e80829a812b2bb8775a00fa4bb4201615
parent9280ea0a8e18ac55ea6b4c1a2c61879acdfd9da5
objcopy: Support cross-build for stripping symbols

Currently, the 'objcopy' does only support native-build since
the commit number dotnet/coreclr@4efef62f0ead16b4f8ca2c6ccf0a77ce112f73b9
Let's add cross-build as well as native-build to strip symbols.

v3:
- support if statement for arm64

v2:
- Replace 'EQUAL' with 'DEFINED' for handling Other Linux distributions
  as well as Ubuntu 14.04 and for handling in case of native-build.

v2:
- support cross-build to strip debug symbols of native arm binaries

Signed-off-by: Geunsik Lim geunsik.lim@samsung.com
Signed-off-by: MyungJoo Ham myungjoo.ham@samsung.com
Signed-off-by: Prajwal A N an.prajwal@samsung.com
Commit migrated from https://github.com/dotnet/coreclr/commit/2df33a8de217f54330397a9101c51f2a9956ad18
src/coreclr/CMakeLists.txt
src/coreclr/cross/arm/toolchain.cmake