Commit: MSP430: Separate cio syscalls into individual function sections

Nick Clifton nickc@redhat.com
Tue Feb 9 13:45:00 GMT 2016


Hi Guys,

  Currently the MSP430's CIO system call library builds most of the
  stubs in the same object file and they are all placed in the .text
  section.  This means that if one stub is used, they are all linked
  in to the executable.
  
  I am applying the patch below so that each stub is located in its
  own .text.<stub-name> section, in much the same way as gcc's
  -ffunction-section option.  That way, linking with -gc-sections
  enabled will remove any unused stubs.

Cheers
  Nick

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ciosyscalls.S.patch
Type: text/x-patch
Size: 1800 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20160209/23541d94/attachment.bin>


More information about the Newlib mailing list