[riot-commits] [RIOT-OS/RIOT] 390b83: msba2: Use --gc-sections when linking.

Oleg Hahm oleg at hobbykeller.org
Thu Jan 8 14:05:29 CET 2015


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 390b8394d620df44408aeee2064b172138fa29e6
      https://github.com/RIOT-OS/RIOT/commit/390b8394d620df44408aeee2064b172138fa29e6
  Author: Joakim Gebart <joakim.gebart at eistec.se>
  Date:   2014-12-17 (Wed, 17 Dec 2014)

  Changed paths:
    M boards/msba2-common/Makefile.include
    M cpu/lpc2387/linkerscript.x

  Log Message:
  -----------
  msba2: Use --gc-sections when linking.

 - Add `-Wl,--gc-sections` to LDFLAGS
 - Add `-fdata-sections` and `-ffunction-sections` to CFLAGS
 - Update lpc2387 linker script to keep the isr vector and init
   sections when garbage collecting.
 - Keep .ctors and .dtors sections (similar to what binutils default
   linker script does when building for Linux targets)

Signed-off-by: Joakim Gebart <joakim.gebart at eistec.se>


  Commit: 99319f4e28ccec023d050ab35f98940a98ed6f85
      https://github.com/RIOT-OS/RIOT/commit/99319f4e28ccec023d050ab35f98940a98ed6f85
  Author: Joakim Gebart <joakim.gebart at eistec.se>
  Date:   2015-01-07 (Wed, 07 Jan 2015)

  Changed paths:
    M cpu/lpc2387/linkerscript.x

  Log Message:
  -----------
  [SQUASH ME] lpc2387: Add missing *(data.*) to linker script.


  Commit: 9bddd61115fefc0c26200ce23f26d826aff45c98
      https://github.com/RIOT-OS/RIOT/commit/9bddd61115fefc0c26200ce23f26d826aff45c98
  Author: Oleg Hahm <oleg at hobbykeller.org>
  Date:   2015-01-08 (Thu, 08 Jan 2015)

  Changed paths:
    M boards/msba2-common/Makefile.include
    M cpu/lpc2387/linkerscript.x

  Log Message:
  -----------
  Merge pull request #2207 from gebart/pr/lpc2387-gc-sections

msba2: Use --gc-sections when linking.


Compare: https://github.com/RIOT-OS/RIOT/compare/2fb2f499f90d...9bddd61115fe


More information about the commits mailing list