aboutsummaryrefslogtreecommitdiff
path: root/scripts/build-arch.sh
diff options
context:
space:
mode:
authorDavid Timber <mieabby@gmail.com>2020-09-28 17:46:33 +0930
committerDavid Timber <mieabby@gmail.com>2020-09-28 17:46:33 +0930
commit5dbfcb1f66b681fbb6cdec8836efe2c2d84f957e (patch)
treeea0412b8e33ee991f83b3832f93852d7d4c5484e /scripts/build-arch.sh
parent909e45f775fb5908ab7a4d68eabf9beb91e36ef2 (diff)
The 80 column rule ...
* Remove prne_rnd_anum_str()
Diffstat (limited to 'scripts/build-arch.sh')
-rwxr-xr-xscripts/build-arch.sh25
1 files changed, 22 insertions, 3 deletions
diff --git a/scripts/build-arch.sh b/scripts/build-arch.sh
index c326493..bd944e8 100755
--- a/scripts/build-arch.sh
+++ b/scripts/build-arch.sh
@@ -11,7 +11,20 @@ MISC_BIN="
separate_debug() {
cp -a "$1" "$2"
"$PROONE_HOST-objcopy" --only-keep-debug "$2" "$3"
- "$PROONE_HOST-strip" -S --strip-unneeded --remove-section=.note.gnu.gold-version --remove-section=.comment --remove-section=.note --remove-section=.note.gnu.build-id --remove-section=.note.ABI-tag --remove-section=.jcr --remove-section=.got.plt --remove-section=.eh_frame --remove-section=.eh_frame_ptr --remove-section=.eh_frame_hdr "$2"
+ "$PROONE_HOST-strip"\
+ -S\
+ --strip-unneeded\
+ --remove-section=.note.gnu.gold-version\
+ --remove-section=.comment\
+ --remove-section=.note\
+ --remove-section=.note.gnu.build-id\
+ --remove-section=.note.ABI-tag\
+ --remove-section=.jcr\
+ --remove-section=.got.plt\
+ --remove-section=.eh_frame\
+ --remove-section=.eh_frame_ptr\
+ --remove-section=.eh_frame_hdr\
+ "$2"
"$PROONE_HOST-objcopy" --add-gnu-debuglink="$3" "$2"
}
@@ -22,9 +35,15 @@ cd src
make -j$(nproc) proone.bin $MISC_BIN
cd ..
-separate_debug src/proone.bin "$BIN_PATH" "$PROONE_DEBUG_SYM_PREFIX""proone.sym.$PROONE_BIN_ARCH"
+separate_debug\
+ src/proone.bin\
+ "$BIN_PATH"\
+ "$PROONE_DEBUG_SYM_PREFIX""proone.sym.$PROONE_BIN_ARCH"
for b in $MISC_BIN; do
- separate_debug "src/$b" "$PROONE_MISC_BIN_PREFIX/$b.$PROONE_BIN_ARCH" "$PROONE_DEBUG_SYM_PREFIX""$b.sym.$PROONE_BIN_ARCH"
+ separate_debug\
+ "src/$b"\
+ "$PROONE_MISC_BIN_PREFIX/$b.$PROONE_BIN_ARCH"\
+ "$PROONE_DEBUG_SYM_PREFIX""$b.sym.$PROONE_BIN_ARCH"
done
make distclean