10 years, 7 months ago.

.file directive in some assembler soure of mbed-rtos needed?

Hi all,

I locally compile my mbed project now with mbed-rtos. My toolchain is arm-none-eabi-gcc version 4.7.4 and corresponding binutils 2.22.0. I extended the original makefile with some options to create dependency files (.d). The option for the assembler is MD <file>, Unfortunately some assembler files contain the ".file" directive, e.g. in SVC_Tables.s

.file SVCTables.s

This leads to the following dependency file:

mbed-rtos/rtx/TARGET_M3/TOOLCHAIN_GCC/SVC_Table.o: SVC_Table.S \ mbed-rtos/rtx/TARGET_M3/TOOLCHAIN_GCC/SVC_Table.s

It contains the name from ".file" directive. Thus the next compile step fails because the prerequisite SVC_Table.S is not found.

So I simply removed the ".file" directive. Is ".file" needed for any other reason?

Holger

Be the first to answer this question.