diff --git a/.gitignore b/.gitignore index 973aad3ebc8cd233cf1dfaa24ed44f52c09cb857..2a5256c9c708a97f5ffb56270bfd7662c124527b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ build +target /pkg/ *.log *.pyc diff --git a/Makefile b/Makefile index a3ce5c2dc3671fbc3dd202b509c93ad7130f9a90..6c9c72f6443015c68798d34fff11aae010b01083 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,9 @@ sysboostd: clear cargo build +sysboost: + ninja -C build -v + release: rm -rf build meson build @@ -18,24 +21,15 @@ release: debug: rm -rf build meson build --buildtype=debug - make -C sysboost - -sysboost: - ninja -C build -v clean: ninja -C build clean - make -C sysboost clean cargo clean format: meson --internal clangformat ./ ./build cargo fmt -static_template_debug: - readelf -W -a ./build/sysboost/src/static_template/static_template > static_template.elf - objdump -d ./build/sysboost/src/static_template/static_template > static_template.asm - test: sysboostd clear cp -f $(SYSBOOSTD) $(SYSBOOSTD_INSTALL_PATH) @@ -44,12 +38,3 @@ test: sysboostd test-debug: cargo test -- --nocapture - -bash-test: static_template_debug - clear - ./build/sysboost/sysboost -static ./build/sysboost/src/static_template/sysboost_static_template bash/bash bash/libtinfo.so - readelf -W -a bash.rto > bash.rto.elf - objdump -d bash.rto > bash.rto.asm - -bash-gdb: - gdb --args ./build/sysboost/sysboost -static ./build/sysboost/src/static_template/static_template bash/bash bash/libtinfo.so \ No newline at end of file diff --git a/src/elf_read_elf_xz.c b/src/elf_read_elf_xz.c index e3caa565b28589a8ddfbe8ebec793fbe9bce7097..be8c0d82df43312870e1b1bc013141eccf512036 100644 --- a/src/elf_read_elf_xz.c +++ b/src/elf_read_elf_xz.c @@ -114,7 +114,7 @@ void elf_unload_xz(elf_file_t *ef) free(ef->hdr); } -static const char magic_xz[] = {0xfd, '7', 'z', 'X', 'Z', 0}; +static const unsigned char magic_xz[] = {0xfd, '7', 'z', 'X', 'Z', 0}; bool elf_is_xz_file(elf_file_t *ef) {