Changeset 634e746 in rtems for c/src/lib/libbsp/powerpc/papyrus
- Timestamp:
- 01/29/97 00:28:47 (26 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- dcec5a4
- Parents:
- 2f93371
- Location:
- c/src/lib/libbsp/powerpc/papyrus/startup
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/powerpc/papyrus/startup/bspstart.c
r2f93371 r634e746 87 87 /* 88 88 * Init the RTEMS libio facility to provide UNIX-like system 89 * calls for use by newlib (ie: provide __ open, __close, etc)89 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 90 90 * Uses malloc() to get area for the iops, so must be after malloc init 91 91 */ … … 154 154 error_code = 'S' << 24 | 'T' << 16; 155 155 156 if ((stdin_fd = __ open("/dev/console", O_RDONLY, 0)) == -1)156 if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1) 157 157 rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' ); 158 158 159 if ((stdout_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)159 if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 160 160 rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' ); 161 161 162 if ((stderr_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)162 if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 163 163 rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' ); 164 164 -
c/src/lib/libbsp/powerpc/papyrus/startup/linkcmds
r2f93371 r634e746 22 22 /* Do we need any of these for elf? 23 23 __DYNAMIC = 0; */ 24 25 /* What are these for? */ 26 27 __EXCEPT_START__ = 0; 28 __EXCEPT_END__ = 0; 29 __SDATA2_START__ = 0; 30 __SDATA2_END__ = 0; 31 __SBSS2_START__ = 0; 32 __SBSS2_END__ = 0; 33 __FIXUP_START__ = 0; 34 __FIXUP_END__ = 0; 35 __GOT2_START__ = 0; 36 __GOT2_END__ = 0; 37 __SDATA_START__ = 0; 38 __SDATA_END__ = 0; 39 40 24 41 SECTIONS 25 42 { … … 38 55 *(.descriptors) 39 56 *(rom_ver) 57 etext = ALIGN(0x10); 58 _etext = .; 59 __CTOR_LIST__ = .; 60 LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2) 61 *(.ctors) 62 LONG(0) 63 __CTOR_END__ = .; 64 __DTOR_LIST__ = .; 65 LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2) 66 *(.dtors) 67 LONG(0) 68 __DTOR_END__ = .; 69 *(.lit) 70 *(.shdata) 71 *(.init) 72 *(.fini) 73 _endtext = .; 40 74 } > RAM 41 75 … … 47 81 } > RAM 48 82 83 __GOT_START__ = .; 49 84 .got : 50 85 { … … 52 87 *(.got.plt) *(.got) 53 88 } > RAM 89 __GOT_END__ = .; 54 90 91 __SBSS_START__ = .; 55 92 .bss : 56 93 { … … 59 96 bss.end = ALIGN(4); 60 97 } > RAM 98 __SBSS_END__ = .; 61 99 62 100 bss.size = bss.end - bss.start;
Note: See TracChangeset
for help on using the changeset viewer.