* [ECOS] error linking tk's eb40 and my eb40a hal
@ 2002-06-27 13:28 Tim Drury
2002-06-27 13:53 ` Gary Thomas
0 siblings, 1 reply; 3+ messages in thread
From: Tim Drury @ 2002-06-27 13:28 UTC (permalink / raw)
To: ecos-discuss; +Cc: Koeller, T.
I get a strange error when compiling vectors.S. This occurs for
both Thomas' eb40 hal (latest patch) and my eb40a hal which is
a copy of his. This _only_ occurs when building redboot for ROM -
everything works fine for the RAM version.
-tim
make[1]: Entering directory
`/usr/local/ecos/build-redboot/hal/arm/arch/current'
arm-elf-gcc -Wp,-MD,vectors.tmp
-I/usr/local/ecos/build-redboot/install/include
-I/usr/local/ecos/cvs/ecos/packages/hal/arm/arch/current
-I/usr/local/ecos/cvs/ecos/packages/hal/arm/arch/current/src
-I/usr/local/ecos/cvs/ecos/packages/hal/arm/arch/current/tests -I.
-mcpu=arm7tdmi -mno-short-load-words -Wall -Wpointer-arith
-Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc
-finit-priority -c -o /usr/local/ecos/build-redboot/install/lib/vectors.o
/usr/local/ecos/cvs/ecos/packages/hal/arm/arch/current/src/vectors.S
/usr/local/ecos/build-redboot/install/include/cyg/hal/hal_platform_setup.h:
Assembler messages:
/usr/local/ecos/build-redboot/install/include/cyg/hal/hal_platform_setup.h:99:
Error: Internal_relocation (type 187) not fixed up (OFFSET_IMM)
/usr/local/ecos/build-redboot/install/include/cyg/hal/hal_platform_setup.h:99:
Error: Internal_relocation (type 187) not fixed up (OFFSET_IMM)
/usr/local/ecos/build-redboot/install/include/cyg/hal/hal_platform_setup.h:99:
Error: Internal_relocation (type 187) not fixed up (OFFSET_IMM)
/usr/local/ecos/build-redboot/install/include/cyg/hal/hal_platform_setup.h:99:
Error: Internal_relocation (type 187) not fixed up (OFFSET_IMM)
make[1]: *** [/usr/local/ecos/build-redboot/install/lib/vectors.o] Error 1
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ECOS] error linking tk's eb40 and my eb40a hal
2002-06-27 13:28 [ECOS] error linking tk's eb40 and my eb40a hal Tim Drury
@ 2002-06-27 13:53 ` Gary Thomas
2002-06-27 18:53 ` Tim Drury
0 siblings, 1 reply; 3+ messages in thread
From: Gary Thomas @ 2002-06-27 13:53 UTC (permalink / raw)
To: Tim Drury; +Cc: eCos Discussion, Koeller, T.
On Thu, 2002-06-27 at 13:36, Tim Drury wrote:
>
> I get a strange error when compiling vectors.S. This occurs for
> both Thomas' eb40 hal (latest patch) and my eb40a hal which is
> a copy of his. This _only_ occurs when building redboot for ROM -
> everything works fine for the RAM version.
>
> -tim
>
> make[1]: Entering directory
> `/usr/local/ecos/build-redboot/hal/arm/arch/current'
> arm-elf-gcc -Wp,-MD,vectors.tmp
> -I/usr/local/ecos/build-redboot/install/include
> -I/usr/local/ecos/cvs/ecos/packages/hal/arm/arch/current
> -I/usr/local/ecos/cvs/ecos/packages/hal/arm/arch/current/src
> -I/usr/local/ecos/cvs/ecos/packages/hal/arm/arch/current/tests -I.
> -mcpu=arm7tdmi -mno-short-load-words -Wall -Wpointer-arith
> -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2
> -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc
> -finit-priority -c -o /usr/local/ecos/build-redboot/install/lib/vectors.o
> /usr/local/ecos/cvs/ecos/packages/hal/arm/arch/current/src/vectors.S
> /usr/local/ecos/build-redboot/install/include/cyg/hal/hal_platform_setup.h:
> Assembler messages:
> /usr/local/ecos/build-redboot/install/include/cyg/hal/hal_platform_setup.h:99:
> Error: Internal_relocation (type 187) not fixed up (OFFSET_IMM)
> /usr/local/ecos/build-redboot/install/include/cyg/hal/hal_platform_setup.h:99:
> Error: Internal_relocation (type 187) not fixed up (OFFSET_IMM)
> /usr/local/ecos/build-redboot/install/include/cyg/hal/hal_platform_setup.h:99:
> Error: Internal_relocation (type 187) not fixed up (OFFSET_IMM)
> /usr/local/ecos/build-redboot/install/include/cyg/hal/hal_platform_setup.h:99:
> Error: Internal_relocation (type 187) not fixed up (OFFSET_IMM)
> make[1]: *** [/usr/local/ecos/build-redboot/install/lib/vectors.o] Error 1
Sometimes these things are hard to pin down. Try using #if 0/#endif
within that file to isolate the line that's causing the problems.
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ECOS] error linking tk's eb40 and my eb40a hal
2002-06-27 13:53 ` Gary Thomas
@ 2002-06-27 18:53 ` Tim Drury
0 siblings, 0 replies; 3+ messages in thread
From: Tim Drury @ 2002-06-27 18:53 UTC (permalink / raw)
To: Gary Thomas; +Cc: eCos Discussion, Koeller, T.
On Thursday 27 June 2002 04:08 pm, Gary Thomas wrote:
> Sometimes these things are hard to pin down. Try using #if 0/#endif
> within that file to isolate the line that's causing the problems.
*sigh*
I'll give my usual disclaimer: I've been out of embedded systems for two
years. It's amazing what you forget. This is truly one of the best
debugging techniques around.
I needed '#include <cyg/hal/var_io.h>' in hal_platform_setup.h because
Thomas moved the at91 register #defines from hal_io.h to var_io.h
and I didn't catch it.
BTW: Thomas, the eb40 hal _does_ work. When I applied your patch
I didn't delete your old stuff which had an old hal_platform_setup.h
in the 'var' tree which was bad. After deleting it and hal_platform_ints.h
and adding the line above, both eb40 and eb40a compile for ROM.
Now on to testing....
Thanks again folks.
-tim
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-06-27 20:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-27 13:28 [ECOS] error linking tk's eb40 and my eb40a hal Tim Drury
2002-06-27 13:53 ` Gary Thomas
2002-06-27 18:53 ` Tim Drury
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).