LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   ldscript causes "is not within region memory" (http://www.linuxquestions.org/questions/programming-9/ldscript-causes-is-not-within-region-memory-741718/)

kpachopoulos 07-21-2009 10:44 AM

ldscript causes "is not within region memory"
 
Hi,
i have built an arm toolchain and am now trying to link a program, given an existing ldscript. The program will be executed on a simulator.
However, i get the following messages:
Code:

arm-xxx/bin/ld: address 0x40422030 of APP.x section .data is not within region memory
arm-xxx/bin/ld: address 0x40422564 of APP.x section .bss is not within region memory
arm-xxx/bin/ld: address 0x3002fc of APP.x section .os_config is not within region memory
arm-xxx/bin/ld: address 0x300334 of APP.x section .hal is not within region memory
arm-xxx/bin/ld: address 0x40a338 of APP.x section .uheap is not within region memory
...
(undefined reference errors follow)
arm-xxx/.../libc.a(lib_a-lock.o): In function `_xxx_lock_close':
lock.c:23: undefined reference to `core_component'
...
collect2: ld returned 1 exit status

Are these errors or warnings? How can "ld" know if something is withing memory or not; how is it calculated? Are the "undefined reference" errors result of section xyz not being within memory? What is the connection?

Any help or link to related material appreciated


All times are GMT -5. The time now is 01:37 PM.