summaryrefslogtreecommitdiff
path: root/build_helpers
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2015-09-28 02:38:56 -0700
committeriximeow <me@iximeow.net>2015-09-28 03:36:28 -0700
commit766583fff1012b6c9c7eac59d4df002cf253b160 (patch)
tree22579eae7f12e1ff8a52c12fc51840258939a670 /build_helpers
parentd02d702daa3a3232ebdd712722d2483449eb8582 (diff)
cleanly remove .note.gnu.build-id
Diffstat (limited to 'build_helpers')
-rwxr-xr-xbuild_helpers/compile.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/build_helpers/compile.sh b/build_helpers/compile.sh
index 8f4f376..90c2ee2 100755
--- a/build_helpers/compile.sh
+++ b/build_helpers/compile.sh
@@ -7,7 +7,7 @@ INBASEPATH="${INPATH%.*}"
# mangle such that no two names conflict (a/b/c and a/b.c conflicting would be no fun)
OUTNAME="$(echo "$INBASEPATH" | sed 's/\./../g' | sed 's/\//._/g')"
echo -n "[*] Building '$INPATH' to 'tmp/$OUTNAME'... "
-gcc -T linker.ld -m32 -nostartfiles -nostdlib -ffreestanding "$INPATH" -o "tmp/$OUTNAME".o
+gcc -T linker.ld -m32 -Wl,--build-id=none -nostartfiles -nostdlib -ffreestanding "$INPATH" -o "tmp/$OUTNAME".o
echo " OK!"
echo -n "[+] Stripping unnecessary sections... "
objcopy -R .note.gnu.build-id -R .comment -O binary "tmp/$OUTNAME".o "bin/$OUTNAME".bin