I am trying to load a symbol file at the time of linking. I am providing the symbol.txt file along with other libraries that I link. These are the two things I tried.
1st, I provided the symbol file exactly as what was the output of arm-none-eabi-nm, but this returned with a syntax error on line no:1 itself.
2nd, I changed the format little bit. I added #<SYMDEFS># at the begining of the file and made to follow ARM's symdef file format. This gave me the error "
file not recognized: File format not recognized
collect2.exe: error: ld returned 1 exit status"
Does anyone have any experience in loading symbol files to the linker? Is yes, please help me figure out what I am missing above.