comparison packages/hal/mips/tx49/current/src/mips_tx49.ld @ 795:db69ea2c9293

Update various .ld and .ldi files to cope with C++ and fix some typos. Also add a test program for C++ support to infra package. See individual ChangeLogs for details.
author nickg
date Wed, 16 Apr 2003 17:55:07 +0000
parents d2c90368aeef
children
comparison
equal deleted inserted replaced
794:1d4e1e38bd0f 795:db69ea2c9293
48 STARTUP(vectors.o) 48 STARTUP(vectors.o)
49 ENTRY(reset_vector) 49 ENTRY(reset_vector)
50 #if defined(EXTRAS) && defined(CYGPKG_IO) 50 #if defined(EXTRAS) && defined(CYGPKG_IO)
51 INPUT(extras.o) 51 INPUT(extras.o)
52 #endif 52 #endif
53 #if (__GNUC__ >= 3)
54 GROUP(libtarget.a libgcc.a libsupc++.a)
55 #else
53 GROUP(libtarget.a libgcc.a) 56 GROUP(libtarget.a libgcc.a)
57 #endif
54 58
55 /* FIXME: The MLT should pass in the required alignment since it must be 59 /* FIXME: The MLT should pass in the required alignment since it must be
56 * the same as the VMA's alignment. As a result of this bug, all the REF4955 60 * the same as the VMA's alignment. As a result of this bug, all the REF4955
57 * ROM mlt files have alignment 8, when some should have alignment 4 61 * ROM mlt files have alignment 8, when some should have alignment 4
58 * (902557-CR) 62 * (902557-CR)
285 we can shorten the on-disk segment size. */ 289 we can shorten the on-disk segment size. */
286 290
287 #define SECTION_sdata(_region_, _vma_, _lma_) \ 291 #define SECTION_sdata(_region_, _vma_, _lma_) \
288 .sdata _vma_ : _lma_ \ 292 .sdata _vma_ : _lma_ \
289 { \ 293 { \
290 FORCE_OUTPUT; *(.sdata) *(.sdata.*) *(.gnulinkonce.s*) \ 294 FORCE_OUTPUT; *(.sdata) *(.sdata.*) *(.gnu.linkonce.s*) \
291 } > _region_ 295 } > _region_
292 296
293 #define SECTION_lit8(_region_, _vma_, _lma_) \ 297 #define SECTION_lit8(_region_, _vma_, _lma_) \
294 .lit8 _vma_ : _lma_ \ 298 .lit8 _vma_ : _lma_ \
295 { \ 299 { \