Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

linking errors in 8051 port for ucos-ii

Status
Not open for further replies.

gemini_v440

Newbie level 5
Joined
Mar 26, 2006
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,416
*** error l109: empty relocatable segment

hi ,
I am working on a 8051 port for ucos-ii using keil compiler(version uVision2 V2.20a).i am using john liu code. i removed all the "redefinition errors" and now all the files are being compiled and assembled properly. but now i am getting linking errors like unresolved segment and stuff. i m attaching the john liu code.
plz change the path in ucos_ii.c.
any suggestions/help to remove the linking errors are welcome.
 

idlebrain

Advanced Member level 4
Joined
Jul 20, 2005
Messages
107
Helped
20
Reputation
40
Reaction score
1
Trophy points
1,298
Activity points
2,501
It simply compiled with 18 warnings in V2.06

Try to rebuild all, When just build there was an error "invalid object file"

Cheers
idlebrain
 

gemini_v440

Newbie level 5
Joined
Mar 26, 2006
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,416
error l109 : empty relocatable segment

hi ,
when i rebuild(all) the john liu code, the following appears in the output window:-

build target 'ex1kc51'
compiling OS_CORE.C...
assembling OS_CORE.src......
compiling OS_MBOX.C...
assembling OS_MBOX.src......
compiling OS_MEM.C...
assembling OS_MEM.src......
compiling OS_Q.C...
assembling OS_Q.src......
compiling OS_SEM.C...
assembling OS_SEM.src......
compiling OS_TASK.C...
assembling OS_TASK.src......
compiling OS_TIME.C...
assembling OS_TIME.src......
compiling OS_CPU_C.C...
assembling OS_CPU_C.src......
assembling OS_CPU_A.ASM......
compiling PC.C...
assembling PC.src......
compiling ex1l.c......
linking.....
*** WARNING L16:UNCALLED SEGMENT,IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?OSSCHEDLOCK?OS_CORE
*** WARNING L16:UNCALLED SEGMENT,IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?OSSCHEDUNLOCK?OS_CORE
*** WARNING L16:UNCALLED SEGMENT,IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?_OSSEMACCEPT?OS_SEM
*** WARNING L16:UNCALLED SEGMENT,IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?_OSSEMQUERY?OS_SEM
*** WARNING L16:UNCALLED SEGMENT,IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?OSDUMMY?OS_TASK
*** WARNING L16:UNCALLED SEGMENT,IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?_OSTASKQUERY?OS_TASK
*** WARNING L16:UNCALLED SEGMENT,IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?_OSTIMEDLYRESUME?OS_TIME
*** WARNING L16:UNCALLED SEGMENT,IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?OSTIMEGET?OS_TIME
*** WARNING L16:UNCALLED SEGMENT,IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?_OSTIMESET?OS_TIME
*** WARNING L16:UNCALLED SEGMENT,IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?_?C_OSCTXSW?OS_CPU_C
*** WARNING L16:UNCALLED SEGMENT,IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?_?OSTASKDELHOOK?OS_CPU_C
*** WARNING L16:UNCALLED SEGMENT,IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?_?PC_ELAPSEDINIT?PC
*** ERROR L109: EMPTY RELOCATABLE SEGMENT
SEGMENT: ?XD?OSSCHED?OS_CORE
*** ERROR L109: EMPTY RELOCATABLE SEGMENT
SEGMENT: ?XD?OSSCHED?OS_CORE
*** ERROR L109: EMPTY RELOCATABLE SEGMENT
SEGMENT: ?XD?OSSCHED?OS_CORE
*** ERROR L109: EMPTY RELOCATABLE SEGMENT
SEGMENT: ?XD?_OSTASKIDLE?OS_CORE
*** ERROR L109: EMPTY RELOCATABLE SEGMENT
SEGMENT: ?XD?_OSSEMACCEPT?OS_SEM
*** ERROR L109: EMPTY RELOCATABLE SEGMENT
SEGMENT: ?XD?_OSTIMEGET?OS_TIME
*** ERROR L109: EMPTY RELOCATABLE SEGMENT
SEGMENT: ?XD?_OSTIMESET?OS_TIME
*** ERROR L109: EMPTY RELOCATABLE SEGMENT
SEGMENT: ?XD?_OUTP?PC
*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL
SYMBOL: OSCTXSW
MODULE:OS_CORE.OBJ(OS_CORE)
*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: OSCTXSW
MODULE:OS_CORE.OBJ(OS_CORE)
ADDRESS:2C0DH
*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL
SYMBOL: OSCTXSW
MODULE:EX1L.OBJ(EX1L)
*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: OSCTXSW
MODULE:EX1L.OBJ(EX1L)
ADDRESS:2A25H
*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: OSCTXSW
MODULE:EX1L.OBJ(EX1L)
ADDRESS:2A27H
TARGET NOT CREATED.


well any suggestions to remove these errors are kindly welcome.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top