Changeset 13e4dfd in rtems-source-builder


Ignore:
Timestamp:
Apr 28, 2020, 8:34:08 AM (6 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
5, master
Children:
846c979
Parents:
f1a3c8c
Message:

rtems-bsb: Use linker garbage collection for BSP based builds

Close #3944.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtems/config/rtems-bsp.cfg

    rf1a3c8c r13e4dfd  
    229229
    230230#
     231# Define any extra flags we may need.
     232#
     233%define rtems_bsp_ldflags_extra \
     234          %{?rtems_bsp_ldflags_extra: %{rtems_bsp_ldflags_extra}} \
     235          -Wl,--gc-sections
     236
     237#
    231238# The linker flags need to include the machine options for the BSP.
    232239#
    233240%define mflags_filter  awk '{for (i=1;i<NF;++i) if ($i ~ /\-m/) printf("%s ",$i);}'
    234 %define rtems_bsp_ldflags %{rtems_bsp_ldflags} $(echo "%{rtems_bsp_cflags}" | %{mflags_filter})
     241%define rtems_bsp_ldflags %{rtems_bsp_ldflags} \
     242                          $(echo "%{rtems_bsp_cflags}" | %{mflags_filter}) \
     243                          %{rtems_bsp_ldflags_extra}
    235244
    236245#
Note: See TracChangeset for help on using the changeset viewer.