diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/oh-strip.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/oh-strip.sh b/src/oh-strip.sh index adbf217..5b0811a 100644 --- a/src/oh-strip.sh +++ b/src/oh-strip.sh @@ -74,9 +74,13 @@ while [ ${#} -gt 0 ]; do # from the original object file to the debugging object file. mkdir -p "$(dirname "dest/usr/lib/debug/${1}")" || \ oh_error 'Cannot make directory path to debugging object' - ${OBJCOPY:-objcopy} --only-keep-debug --compress-debug-sections "dest/${1}" \ - "dest/usr/lib/debug/${1}" || oh_error 'Cannot make debugging object' - ${OBJCOPY:-objcopy} --add-gnu-debuglink="dest/usr/lib/debug/${1}" "dest/${1}" || \ + ${OBJCOPY:-objcopy} \ + --only-keep-debug --compress-debug-sections \ + "dest/${1}" "dest/usr/lib/debug/${1}" || \ + oh_error 'Cannot make debugging object' + ${OBJCOPY:-objcopy} \ + --add-gnu-debuglink="dest/usr/lib/debug/${1}" \ + "dest/${1}" || \ oh_error 'Cannot add GDB link' chmod 644 "dest/usr/lib/debug/${1}" || \ oh_error 'Cannot set mode on debugging object' |