gpt4 book ai didi

无法制作 nLoader

转载 作者:行者123 更新时间:2023-11-30 16:27:14 25 4
gpt4 key购买 nike

我尝试编译此 Ti-Nspire 漏洞利用程序,但遇到了几个问题。其中一些我可以自己修复,但现在我在以下问题上坚持了几个星期(我尝试联系开发人员,但他很忙):

sh make_for_nMaker.sh
CAS_OS
rm -f *.o *.elf
rm -f ../ndless_loader.bin
arm-none-eabi-gcc -Os -Wall -W -marm -mcpu=arm926ej-s -nostdlib -nostartfiles -s -fPIE -ffreestanding -std=c11 -o ndless_loader.o -c ndless_loader.c
arm-none-eabi-ld -nostdlib -nostartfiles -e ndless_loader -PIE -T ldscript ndless_loader.o -o ndless_loader.elf
arm-none-eabi-objcopy -O binary ndless_loader.elf ../ndless_loader.bin
find: paths must precede expression: `1'
find: paths must precede expression: `1'
find: paths must precede expression: `1'
find: paths must precede expression: `1'
find: paths must precede expression: `1'
find: paths must precede expression: `1'
rm -f loader.bin loader.elf
find: paths must precede expression: `1'
find: paths must precede expression: `1'
find: paths must precede expression: `1'
arm-none-eabi-ld -nostdlib -nostartfiles -T ldscript -PIE -flto libgcc/*.o -o loader.elf
arm-none-eabi-ld: libgcc/_absvdi2.o: in function `__absvdi2':
libgcc2.c:(.text+0x28): undefined reference to `abort'
arm-none-eabi-ld: libgcc/_absvsi2.o: in function `__absvsi2':
libgcc2.c:(.text+0x1c): undefined reference to `abort'
arm-none-eabi-ld: libgcc/_addvdi3.o: in function `__addvdi3':
libgcc2.c:(.text+0x54): undefined reference to `abort'
arm-none-eabi-ld: libgcc/_addvsi3.o: in function `__addvsi3':
libgcc2.c:(.text+0x3c): undefined reference to `abort'
arm-none-eabi-ld: libgcc/_mulvdi3.o: in function `__mulvdi3':
libgcc2.c:(.text+0xd0): undefined reference to `abort'
arm-none-eabi-ld: libgcc/_mulvsi3.o:libgcc2.c:(.text+0x18): more undefined references to `abort' follow
make: *** [_Makefile:18: loader.elf] Error 1
mv: cannot stat 'loader.bin': No such file or directory

您可以访问github上的所有文件:https://github.com/parrotgeek1/TI-Nspire/tree/master/boot1.5_exploit/nLoader

也许有人可以帮我解决这个问题。老实说,我对 sh 脚本和所有这些东西没有经验 ^^

提前谢谢您!

最佳答案

Makefile 错误

OBJS = $(patsubst %.c, %.o, $(shell find . -depth 1 -type f -name \*.c))

--> 这会产生所看到的

find: paths must precede expression: `1'

可能应该使用-maxdepth 1而不是-depth 1(它有另一个含义)。

关于无法制作 nLoader,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52807723/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com