Hi, Conrado,
 
>I've downloaded the Windows version and I've run into this
>problem: when using -Wl,-gc-sections makes the executable sections
>vanish completely.
>I've used "msp430-gcc -mmcu=msp430x1611 -ffunction-sections
>-Wl,-gc-sections temp.c" with the attached temp.c file. Then,
>"msp430-objdump -d a.out" lists it empty.

I  could not reproduce your bug. Tried exactly the same, and then used
"msp430-objdump.exe  -d a.out" to view the disassembly. The output was
valid.

Could you please try the following:
1.  Ensure  that  your  PATH  is  set  correctly.  Maybe,  new  GCC is
accidentially using some old binutils installed somewhere else.
2.  Try unpacking the EXE in /opt directory of cygwin. Some components
can be location-dependent.
3. Try the "--entry main" argument to explicitly tell linker where to
start.
4.  If nothing helps, try rebuilding GCC toolchain. This is done fully
by  checking  out  SVN  and  invoking "sh buildgcc.sh --defaults" (see
MSPGCC4 website). All source tarballs will be downloaded, unpacked and
built automatically.


-- 
Best regards,
 Ivan Shcherbakov                     mailto:[email protected]
 TU Kaiserslautern, Germany
 Department of Real-Time Systems


Reply via email to