无法制作nLoader

时间:2018-10-14 22:45:55

标签: c sh texas-instruments ti-nspire

我曾尝试编译此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

也许有人可以帮助我解决此问题。 Tbh没有使用sh脚本和所有这些东西的经验^^

提前谢谢!

1 个答案:

答案 0 :(得分:0)

Makefile错误

<article>
  <div class="label"><span>Short label</span></div>
  <div class="value">Short string</div>
  <div class="label"><span>A very long label</span></div>
  <div class="value">A very long string, so long in fact that it will have to wrap more then one line, possibly even more if you have a sufficiently small screen</div>
</article>

->产生可见的

  

查找:路径必须在表达式“ 1”之前

应该使用OBJS = $(patsubst %.c, %.o, $(shell find . -depth 1 -type f -name \*.c)) 代替-maxdepth 1(这有另一种含义)。