1

I have a simple handwritten asm file, which I compile to ARM using the command:

arm-none-eabi-gcc test.s -c -o sof.out --specs=nosys.specs -mthumb -O0

When viewing the object file with objdump, the code appears correct. However, when I read the symbol table (using readelf), the functions appear in size 0.

This is messing with some of my analysis programs.

Why do the functions appear with size 0? Is there anything I can do in the asm file or the compiler flags, to fix this?

fuz
  • 88,405
  • 25
  • 200
  • 352
Tal Ben-Porath
  • 135
  • 1
  • 5

0 Answers0