forked from Imagelibrary/rtems
Now supports C++ global constructors and exceptions.
This commit is contained in:
@@ -7,6 +7,9 @@
|
||||
*cpp:
|
||||
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
||||
|
||||
*endfile:
|
||||
crtend.o%s crtn.o%s
|
||||
|
||||
*lib:
|
||||
%{!qrtems: %(old_lib)} %{qrtems: --start-group \
|
||||
%{!qrtems_debug: -lrtemsall} %{qrtems_debug: -lrtemsall_g} \
|
||||
@@ -15,8 +18,8 @@
|
||||
|
||||
*startfile:
|
||||
%{!qrtems: %(old_startfile)} %{qrtems: \
|
||||
%{!qrtems_debug: startsis.o%s} \
|
||||
%{qrtems_debug: startsis_g.o%s}}
|
||||
%{!qrtems_debug: startsis.o%s crti.o%s crtbegin.o%s} \
|
||||
%{qrtems_debug: startsis_g.o%s crti.o%s crtbegin.o%s}}
|
||||
|
||||
*link:
|
||||
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
||||
|
||||
@@ -46,7 +46,9 @@ $(INSTALLDIRS):
|
||||
# (OPTIONAL) Add local stuff here using +=
|
||||
#
|
||||
|
||||
DEFINES +=
|
||||
# USE_INIT_FINI tells main.c what C++ help we need.
|
||||
|
||||
DEFINES += -DUSE_INIT_FINI
|
||||
CPPFLAGS +=
|
||||
CFLAGS +=
|
||||
|
||||
|
||||
@@ -120,6 +120,8 @@ SECTIONS
|
||||
|
||||
etext = ALIGN(0x10);
|
||||
_etext = .;
|
||||
*(.init)
|
||||
*(.fini)
|
||||
*(.lit)
|
||||
*(.shdata)
|
||||
_endtext = .;
|
||||
|
||||
Reference in New Issue
Block a user