Subject:
|
Re: compiling problmes 2
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Thu, 7 Oct 2004 12:34:49 GMT
|
Viewed:
|
9206 times
|
| |
| |
On Thursday 07 October 2004 11:23, ruessel wrote:
> Hello Jochen, hello everybody,
>
> thank you very much. Both of your hints helped a lot. As it were 271
> linker-errors before your help, there are just 40 left now.
> Maybe someone can help me and tell me where the other references are defined and
> how I can resolve this overlapping problem:
>
>
> Phase Linker starting
> h8300-elf-ld.exe: section .text.hi [0000b3f0 -> 0000b437] overlaps section .bss
> [0000b3f0 -> 0000b671]
I had the same problem when going to newer binutils and gcc. Look at the
patch brickos-gcc33.diff at http://hoenicke.ath.cx/rcx/brickOS.html
The first part of that patch changes the linker script slightly to avoid this error.
> h8300-elf-ld.exe: warning: cannot find entry symbol _start; defaulting to
> 00008000
I think with the default linker-script the directive ENTRY("_kmain") changes _start
to _kmain.
> ..\critsec.o(.text+0x89): In function `enter_critical_section':
> ..\critsec.c:98: undefined reference to `wait_event'
> ..\kmain.c:193: undefined reference to `tm_init'
> ..\kmain.o(.text+0xc7):..\kmain.c:225: undefined reference to `tm_start'
> ..\program.c:133: undefined reference to `execi'
> ..\program.o(.text+0x135):..\program.c:325: undefined reference to `msleep'
> ..\program.o(.text+0x15f):..\program.c:335: undefined reference to `killall'
> ..\program.c:384: undefined reference to `shutdown_tasks'
All these symbols are defined in tm.c
> ..\tm.o(.text+0xcf): In function `msleep':
> ..\tm.c:299: undefined reference to `MSECS_TO_TICKS'
> ..\tm.o(.text+0xdf):..\tm.c:299: undefined reference to `wait_event'
> ..\tm.o(.text+0xeb):..\tm.c:300: undefined reference to `MSECS_TO_TICKS'
> ..\tm.o(.text+0x1e1): In function `exit':
> ..\tm.c:580: undefined reference to `yield'
Hmm, maybe these errors in tm.c are the real problem. yield is an inline assembler
function defined in tm.c. MSECS_TO_TICKS is a macro defined in include/time.h
Jochen
|
|
Message is in Reply To:
| | Re: compiling problmes 2
|
| (...) Hello Jochen, hello everybody, thank you very much. Both of your hints helped a lot. As it were 271 linker-errors before your help, there are just 40 left now. Maybe someone can help me and tell me where the other references are defined and (...) (20 years ago, 7-Oct-04, to lugnet.robotics.rcx.legos)
|
7 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|