This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
RE: [ECOS] stext and etext undefined
- To: (Andrew Lunn) <lunn@ma.tech.ascom.ch>
- Subject: RE: [ECOS] stext and etext undefined
- From: Gary Thomas <gthomas@cygnus.co.uk>
- Date: Mon, 31 May 1999 18:09:21 +0100 (BST)
- Cc: ecos-discuss@sourceware.cygnus.com
This is something we found recently. Try applying this patch to
.../ecc/hal/arm/arch/.../src/arm.ld
Index: arm.ld
===================================================================
RCS file: /cvs/ecc/ecc/hal/arm/arch/current/src/arm.ld,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -5 -p -r1.15 -r1.16
--- arm.ld 1999/04/15 12:32:54 1.15
+++ arm.ld 1999/05/19 20:39:49 1.16
@@ -57,15 +57,15 @@ GROUP(libtarget.a libgcc.a)
{ FORCE_OUTPUT; KEEP (*(.vectors)) } \
> _region_
#define SECTION_text(_region_, _vma_, _lma_) \
.text _vma_ : _lma_ \
- { _stext = ABSOLUTE(.); \
+ { stext = ABSOLUTE(.); \
PROVIDE (__stext = ABSOLUTE(.)); \
*(.text*) *(.gnu.warning) *(.gnu.linkonce*) *(.init) } \
> _region_ \
- __etext = .; PROVIDE (__etext = .);
+ etext = .; PROVIDE (__etext = .);
#define SECTION_fini(_region_, _vma_, _lma_) \
.fini _vma_ : _lma_ \
{ FORCE_OUTPUT; *(.fini) } \
> _region_
(You'll need to fill in the two "..." with the appropriate values
for your installation).
On 31-May-99 Andrew Lunn wrote:
> Hi Folks
>
> I hope this question is not as silly as my last.
>
> While compiling the tests for the arm i get the following errors
>
> arm-elf-gcc -o //H/aplett/ecos-work-arm/install/tests/hal/intr.exe hal_intr.o
> -mcpu=arm7tdmi -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef
> -ffunction-sections -fdata-sections -Wl,--gc-sections -Wl,-static -g -O2
> -L//H/aplett/ecos-work-arm/install/lib -Ttarget.ld -nostdlib
> //H/aplett/ecos-work-arm/install/lib/libtarget.a(infra_fancy.o):
> In function `cyg_check_func_ptr':
> //d/cygnus/ECOS-1~1.1/packages/infra/v1_2_1/src/fancy.cxx:522: undefined reference to `stext'
> //d/cygnus/ECOS-1~1.1/packages/infra/v1_2_1/src/fancy.cxx:522: undefined reference to `etext'
> collect2: ld returned 1 exit status
>
>>From what i understand stext and etext should be defined in the linker
> script target.ld, but for some reason they are not.
>
> Any ideas?
>
> Thanks
> Andrew
>
------------------------------------------------------------------------
Gary Thomas |
Cygnus Solutions, U.K. | "Fine wine is a necessity of
35 Cambridge Place | life for me"
Cambridge, CB2 1NS U.K. |
+44 1223 728 769 | Thomas Jefferson
email: gthomas@cygnus.co.uk |
... opinions expressed here are mine |
and no one else would claim them! |
------------------------------------------------------------------------