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