6 years ago.

libmDot: issue: fileformat of static library not recognized

Hey,

I don't know where to post issues, so I opened a question.

I'm using the libmDot library in an offline project. (https://developer.mbed.org/teams/MultiTech/code/libmDot/)

Between revions 8:57978a837b2d and 10:0b4eb17d07ae, the libmDot.ar archive has been updated.

The current static library does not allow linking.

Whereas `arm-none-eabi-nm -C libmDot.ar` of revision 57978a837b2d would output all the symbols of the library, the command does not work on the latest library.

Current output is:

arm-none-eabi-nm -C libmDot_bad.ar

$ arm-none-eabi-nm -C libmDot_bad.ar 
arm-none-eabi-nm: LoRaConfig.o: File format not recognized
arm-none-eabi-nm: LoRaMacCrypto.o: File format not recognized
arm-none-eabi-nm: aes.o: File format not recognized
arm-none-eabi-nm: cmac.o: File format not recognized
arm-none-eabi-nm: LoRaMac.o: File format not recognized
arm-none-eabi-nm: MTSLog.o: File format not recognized
arm-none-eabi-nm: MTSCircularBuffer.o: File format not recognized
arm-none-eabi-nm: SpiFlash25.o: File format not recognized
arm-none-eabi-nm: MTSText.o: File format not recognized
arm-none-eabi-nm: SxRadio1272.o: File format not recognized
arm-none-eabi-nm: WakeUp_Freescale.o: File format not recognized
arm-none-eabi-nm: WakeUp_LPC11XX.o: File format not recognized
arm-none-eabi-nm: SxRadio1276.o: File format not recognized
arm-none-eabi-nm: WakeUp_LPC11u24.o: File format not recognized
arm-none-eabi-nm: WakeUp_LPC812.o: File format not recognized
arm-none-eabi-nm: spiffs_cache.o: File format not recognized
arm-none-eabi-nm: WakeUp_STM_RTC.o: File format not recognized
arm-none-eabi-nm: spiffs_check.o: File format not recognized
arm-none-eabi-nm: spiffs_hydrogen.o: File format not recognized
arm-none-eabi-nm: spiffs_gc.o: File format not recognized
arm-none-eabi-nm: spiffs_nucleus.o: File format not recognized
arm-none-eabi-nm: MdotRadio.o: File format not recognized
arm-none-eabi-nm: mDot.o: File format not recognized

The expected result is a list of all symbols.

I'm using the arm gcc toolchain, installed from the Fedora 22 repositories.

arm-none-eabi-gcc --version

$ arm-none-eabi-gcc --version
arm-none-eabi-gcc (Fedora 5.2.0-3.fc22) 5.2.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Be the first to answer this question.