This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gui doesn't create bss section (was: MBX860(40MHz) stubs with cvs snapshot - mapping problem?)


I tried building with the command-line config tool and target.ld gets
another line, which makes the stub build successfully; here it is -
    .sbss   ALIGN (0x4)  :      { __sbss_start = ABSOLUTE (.);
__SBSS_START__ = ABSOLUTE(.); *(.sbss) __SBSS_END__ = ABSOLUTE(.);
__SBSS2_START__ = ABSOLUTE(.); *(.sbss2) __SBSS2_END__ = ABSOLUTE(.);
*(.scommon) __sbss_end = ABSOLUTE (.); } >  ram

Also an unresolvable error which is there in the gui for this configuration
(see below) is not there when using the command line.
--
Michael

> I'm trying to build the GDB stubs for the flash on the MBX board.
> I'm using the ftp'd snapshot ecos-000921.tar.gz and the 0.3.1.1 config
gui.
>
> First, I get a constraint which I have to resolve manually:
> CYGBLD_ISO_ERRNO_CODES_HEADER == "<cyg/error/codes.h>"  so I set the
> variable to that using the checkbox under 'Error handling' in the posix
> section.
>
> Then,
> I'm getting this error:
>
>
powerpc-eabi-gcc -msoft-float -mcpu=860 -g -nostdlib -Wl,--gc-sections -Wl,-
> static -L//C/Cygwin/src/checkout/ecos/test_install/lib -Ttarget.ld -o
> //C/Cygwin/src/checkout/ecos/test_install/bin/gdb_module.img
> src/stubrom/gdb_module.o
> /tools/H-i686-pc-cygwin/powerpc-eabi/bin/ld: warning: no memory region
> specified for section `.bss'
> //C/Cygwin/src/checkout/ecos/test_install/lib/vectors.o: In function
> `_start':
> //C/Cygwin/src/checkout/ecos/test_install/lib/vectors.o(.text+0x142):
> undefined reference to `__bss_start'
> //C/Cygwin/src/checkout/ecos/test_install/lib/vectors.o(.text+0x146):
> undefined reference to `__bss_start'
> //C/Cygwin/src/checkout/ecos/test_install/lib/vectors.o(.text+0x14a):
> undefined reference to `__bss_end'
> //C/Cygwin/src/checkout/ecos/test_install/lib/vectors.o(.text+0x14e):
> undefined reference to `__bss_end'
> collect2: ld returned 1 exit status
> make[1]: ***
[//C/Cygwin/src/checkout/ecos/test_install/bin/gdb_module.img]
> Error 1
> make[1]: Leaving directory
> `/src/checkout/ecos/test_build/hal/common/current'
> make: *** [build] Error 2
>
> Michael D. Barker, B.A.Sc.
> Motorola SPS, Canada
>
>
>



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]