avr-strip: невозможно распознать формат входного файла `libfoo.a (bar.cpp.o) ' - PullRequest
1 голос
/ 11 мая 2019

Я пытаюсь уменьшить размер моей статической библиотеки libfoo.a (компилируется с помощью avr-g ++). Когда я вызываю avr-strip в библиотеке, я получаю сообщение об ошибке

avr-strip libfoo.a
avr-strip: Unable to recognise the format of the input file `libfoo.a(bar0.cpp.o)'

Я тоже пробовал это с полосой, и получаю другой результат:

strip libfoo.a
strip: Unable to recognise the format of the input file `libfoo.a(bar0.cpp.o)'
strip: Unable to recognise the format of the input file `libfoo.a(bar1.cpp.o)'
strip: Unable to recognise the format of the input file `libfoo.a(bar2.cpp.o)'
strip: Unable to recognise the format of the input file `libgfoo.a(bar3.cpp.o)'

Файлы bar.cpp являются источниками моей библиотеки.

Я нашел похожий вопрос для arm , предлагающий использовать версию полосы для рук. Это не очень полезно для меня, потому что я уже использую avr-strip для своей библиотеки avr.

Что я мог сделать, чтобы решить эту проблему? Почему avr-strip не распознает один объект, в частности, когда strip не распознает на них ни одного?

...