The functions-sections option should work.  It has worked since
at least 3.2.3, but it generated a bogus compiler warning about
how it "may affect debugging". See this thread:


http://thread.gmane.org/gmane.comp.hardware.texas-instruments.msp430.gcc.user/5945

What happened when you tried to use -ffunction-sections?


I used your patch for the binutils 2.17.50 and I seems to work now :-)
I didn't try your patch for the compiler-warning as it should work without
it (will do this next though).
About the fdata-sections ... without your patch I get errors like these:

/tmp/ccSm8GVY.s:5548: Error: junk at end of line, first unrecognized
character is `0'
/tmp/ccSm8GVY.s:5549: Error: expected comma after name `' in .size directive
/tmp/ccSm8GVY.s:5550: Error: junk at end of line, first unrecognized
character is `0'
/tmp/ccSm8GVY.s:5553: Error: unrecognized symbol type ""

However, when I want to use your patch I don't find the function
unique_section in msp430.c
Checking the cvs repository it seems the function is only declared in
msp430-protos.h and never defined for msp430.
So, any suggestions on how to apply the patch?

Thanks so far, the ffunction-sections feature is already great!

Juergen

Reply via email to