Changeset 5e368e84 in rtems


Ignore:
Timestamp:
Mar 11, 2016, 10:07:35 PM (4 years ago)
Author:
Joel Sherrill <joel@…>
Branches:
master
Children:
77e6eba7
Parents:
83a116b
Message:

pc386: Fix linker usage issues with -r and function sections

closes #2638.

Location:
c/src/lib/libbsp/i386/pc386
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/pc386/Makefile.am

    r83a116b r5e368e84  
    202202ne2000_rel_CPPFLAGS = $(AM_CPPFLAGS) $(ne2000_CPPFLAGS)
    203203ne2000_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     204ne2000_rel_LDFLAGS += -Wl,--undefined=rtems_ne_driver_attach
    204205endif
    205206
     
    215216wd8003_rel_CPPFLAGS = $(AM_CPPFLAGS) $(wd8003_CPPFLAGS)
    216217wd8003_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     218wd8003_rel_LDFLAGS += -Wl,--undefined=rtems_wd_driver_attach
    217219endif
    218220
     
    2262283c509_rel_CPPFLAGS = $(AM_CPPFLAGS) $(3c509_CPPFLAGS)
    2272293c509_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     2303c509_rel_LDFLAGS += -Wl,--undefined=rtems_3c509_driver_attach
     2313c509_rel_LDFLAGS += -Wl,--undefined=ep_board
    228232endif
    229233
  • c/src/lib/libbsp/i386/pc386/make/custom/pc386.cfg

    r83a116b r5e368e84  
    2121CFLAGS_OPTIMIZE_V = -O2 -g
    2222# Per function sections disabled per https://devel.rtems.org/ticket/2638
    23 # CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
    24 #
    25 # LDFLAGS = -Wl,--gc-sections
     23CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
     24
     25LDFLAGS = -Wl,--gc-sections
    2626
    2727# Here is the rule to actually build a $(ARCH)/foo$(EXEEXT)
Note: See TracChangeset for help on using the changeset viewer.