
13 Dec
2012
13 Dec
'12
3:24 p.m.
2012/12/13 Marek Vasut marex@denx.de:
Dear Tom Rini,
[...]
Note that we don't use --gc-sections on all archs so I'm not sure we discard the unused VFAT functions on say ARM.
Valid point, Albert?
Best regards, Marek Vasut
I check and the code is discarded (on ARM at91sam9x5ek). This is the case because the function to discard are all in the same file (fat.c or fat_write.c). The compiler will discard unused function with -Os. (but not with -O0)