Changeset 8e0dcade in rtems


Ignore:
Timestamp:
Jun 15, 1999, 10:01:04 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
aea6ce0b
Parents:
1b67be71
Message:

Patch from Rosimildo DaSilva? <rdasilva@…> to make C++
exceptions work on the pc386 BSP with i386-elf. This patch also
included changes to the i386-rtemself egcs configuration.

Location:
c/src/lib/libbsp
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/pc386/bsp_specs

    r1b67be71 r8e0dcade  
    88%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
    99
     10*endfile:
     11crtend.o%s crtn.o%s
     12
    1013*lib:
    1114%{!qrtems: %(old_lib)} %{qrtems: --start-group \
     
    1619*startfile:
    1720%{!qrtems: %(old_startfile)} %{qrtems: \
    18 %{!qrtems_debug: start.o%s} \
     21%{!qrtems_debug: start.o%s crti.o%s crtbegin.o%s} \
    1922%{qrtems_debug: start_g.o%s}}
    2023
  • c/src/lib/libbsp/i386/pc386/startup/Makefile.in

    r1b67be71 r8e0dcade  
    4040#
    4141
    42 DEFINES  +=
     42# USE_INIT_FINI tells main.c what C++ help we need.
     43
     44DEFINES  += -DUSE_INIT_FINI
    4345CPPFLAGS +=
    4446CFLAGS   +=
  • c/src/lib/libbsp/i386/pc386/startup/linkcmds

    r1b67be71 r8e0dcade  
    6868    _etext = ALIGN( 0x10 ) ;
    6969  }
    70   .data ADDR( .text ) + SIZEOF( .text ):
     70  .init :
     71  { *( .init ) } = 0x9090
     72  .fini :
     73  { *( .fini ) } = 0x9090
     74
     75  .data ADDR( .fini ) + SIZEOF( .fini ):
    7176  {
    7277    _data_start = . ;
  • c/src/lib/libbsp/shared/main.c

    r1b67be71 r8e0dcade  
    2828extern rtems_configuration_table  BSP_Configuration;
    2929extern rtems_cpu_table            Cpu_table;
     30
     31#if defined(USE_INIT_FINI)
     32extern void _fini( void );
     33extern void _init( void );
     34#endif
    3035
    3136rtems_interrupt_level bsp_isr_level;
     
    8388   */
    8489
     90#if defined(USE_INIT_FINI)
     91   atexit( _fini );
     92  _init();
     93#endif
     94
    8595  status = main(argc, argv);
    8696
Note: See TracChangeset for help on using the changeset viewer.