From 97b104a8e2c4bcc21b584eafadbd884e8d154479 Mon Sep 17 00:00:00 2001 From: Tie Liu Date: Tue, 6 Jun 2023 11:14:32 +0800 Subject: [PATCH] take relocation to xz file --- objreloc.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/objreloc.sh b/objreloc.sh index 1373236..65c1615 100644 --- a/objreloc.sh +++ b/objreloc.sh @@ -12,4 +12,6 @@ fi # Remove debug and unnecessary sections, and create relocation and primary files objcopy --strip-debug --strip-dwo --strip-unneeded "$LIB_FILE" "$LIB_FILE.relocation" -objcopy --remove-relocations=".*" "$LIB_FILE" "$LIB_FILE.prim" \ No newline at end of file +xz -z "$LIB_FILE.relocation" +mv -f "$LIB_FILE.relocation.xz" "$LIB_FILE.relocation" +# objcopy --remove-relocations=".*" "$LIB_FILE" "$LIB_FILE.prim" \ No newline at end of file