elf: compressed debug sections (#6)

This commit is contained in:
Philip Craig
2023-04-06 16:43:56 +10:00
committed by GitHub
parent 46e8c9afc1
commit f48e59ccb4
5 changed files with 4 additions and 0 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
+4
View File
@@ -8,3 +8,7 @@ mips64el-linux-gnuabi64-gcc -c base.c -o base-mips64el.o
mips64el-linux-gnuabi64-gcc base.c -o base-mips64el
loongarch64-unknown-linux-gnu-gcc -c base.c -o base-loongarch64.o
loongarch64-unknown-linux-gnu-gcc base.c -o base-loongarch64
gcc -fdebug-prefix-map=`pwd`=/object/testfiles/elf -g -c base.c -o base-debug.o
objcopy --compress-debug-sections=zlib-gnu base-debug.o base-debug-zlib-gnu.o
objcopy --compress-debug-sections=zlib base-debug.o base-debug-zlib.o
objcopy --compress-debug-sections=zstd base-debug.o base-debug-zstd.o