how to solve the error: relocation truncated to fit: R_ARM_PC24 - VxWorks
This is a discussion on how to solve the error: relocation truncated to fit: R_ARM_PC24 - VxWorks ; i am developing the driver of s1d13506 by windml.my
configuration:tornado2.2.1,platform id2.1
i have build the windml and got the wndml.o. After i added this .o to
EXTRA_MODULES,the error is list when i make this bootable project based
on my bsp ...
-
how to solve the error: relocation truncated to fit: R_ARM_PC24
i am developing the driver of s1d13506 by windml.my
configuration:tornado2.2.1,platform id2.1
i have build the windml and got the wndml.o. After i added this .o to
EXTRA_MODULES,the error is list when i make this bootable project based
on my bsp which have include necessary 2d library.
the error listed as:
ldarm -X -EL -N -e sysInit -Ttext 20001000 \
dataSegPad.o partialImage.o ctdt.o \
-T D:\Tornado2.2\target\h\tool\gnu\ldscripts\link.RAM -o vxWorks
partialImage.o: In function `uglGraphicsDevAccessCheck':
partialImage.o(.text+0x28a48): undefined reference to `pciFindDevice'
partialImage.o(.text+0x28a48): relocation truncated to fit: R_ARM_PC24
pciFindDevice
partialImage.o: In function `uglPCIAddressGet':
partialImage.o(.text+0x28b6c): undefined reference to `pciConfigInLong'
partialImage.o(.text+0x28b6c): relocation truncated to fit: R_ARM_PC24
pciConfigInLong
partialImage.o(.text+0x28b90): undefined reference to
`pciConfigOutLong'
partialImage.o(.text+0x28b90): relocation truncated to fit: R_ARM_PC24
pciConfigOutLong
partialImage.o(.text+0x28bb4): undefined reference to `pciConfigInLong'
partialImage.o(.text+0x28bb4): relocation truncated to fit: R_ARM_PC24
pciConfigInLong
partialImage.o(.text+0x28c04): undefined reference to
`pciConfigOutLong'
partialImage.o(.text+0x28c04): relocation truncated to fit: R_ARM_PC24
pciConfigOutLong
partialImage.o: In function `igsSndDevCreate':
partialImage.o(.text+0x2a8a4): undefined reference to `sysOutByte'
partialImage.o(.text+0x2a8a4): relocation truncated to fit: R_ARM_PC24
sysOutByte
partialImage.o(.text+0x2a8b4): undefined reference to `sysInByte'
partialImage.o(.text+0x2a8b4): relocation truncated to fit: R_ARM_PC24
sysInByte
partialImage.o(.text+0x2a8c8): undefined reference to `sysInByte'
partialImage.o(.text+0x2a8c8): relocation truncated to fit: R_ARM_PC24
sysInByte
partialImage.o(.text+0x2a8e4): undefined reference to `sysOutByte'
partialImage.o(.text+0x2a8e4): relocation truncated to fit: R_ARM_PC24
sysOutByte
partialImage.o: In function `audioInterrupt':
partialImage.o(.text+0x2ab94): undefined reference to `sysInByte'
partialImage.o(.text+0x2ab94): relocation truncated to fit: R_ARM_PC24
sysInByte
partialImage.o(.text+0x2aba8): undefined reference to `sysOutByte'
partialImage.o(.text+0x2aba8): relocation truncated to fit: R_ARM_PC24
sysOutByte
partialImage.o(.text+0x2abb8): undefined reference to `sysInByte'
partialImage.o(.text+0x2abb8): relocation truncated to fit: R_ARM_PC24
sysInByte
partialImage.o(.text+0x2abd0): undefined reference to `sysOutByte'
partialImage.o(.text+0x2abd0): relocation truncated to fit: R_ARM_PC24
sysOutByte
partialImage.o: In function `sndIgsUnlockAudio':
partialImage.o(.text+0x2ad1c): undefined reference to `sysOutByte'
partialImage.o(.text+0x2ad1c): relocation truncated to fit: R_ARM_PC24
sysOutByte
partialImage.o(.text+0x2ad30): undefined reference to `sysInByte'
partialImage.o(.text+0x2ad30): relocation truncated to fit: R_ARM_PC24
sysInByte
partialImage.o(.text+0x2ad40): undefined reference to `sysOutByte'
partialImage.o(.text+0x2ad40): relocation truncated to fit: R_ARM_PC24
sysOutByte
partialImage.o(.text+0x2ad50): undefined reference to `sysOutByte'
partialImage.o(.text+0x2ad50): relocation truncated to fit: R_ARM_PC24
sysOutByte
partialImage.o(.text+0x2ad60): undefined reference to `sysInByte'
partialImage.o(.text+0x2ad60): relocation truncated to fit: R_ARM_PC24
sysInByte
partialImage.o(.text+0x2ad74): undefined reference to `sysOutByte'
partialImage.o(.text+0x2ad74): relocation truncated to fit: R_ARM_PC24
sysOutByte
partialImage.o: In function `sndIgsAudioEnable':
partialImage.o(.text+0x2ae40): undefined reference to `sysOutByte'
partialImage.o(.text+0x2ae40): relocation truncated to fit: R_ARM_PC24
sysOutByte
partialImage.o(.text+0x2ae54): undefined reference to `sysOutByte'
partialImage.o(.text+0x2ae54): relocation truncated to fit: R_ARM_PC24
sysOutByte
partialImage.o(.text+0x2ae64): undefined reference to `sysOutByte'
partialImage.o(.text+0x2ae64): relocation truncated to fit: R_ARM_PC24
sysOutByte
partialImage.o(.text+0x2ae74): undefined reference to `sysOutByte'
partialImage.o(.text+0x2ae74): relocation truncated to fit: R_ARM_PC24
sysOutByte
partialImage.o(.text+0x2ae84): more undefined references to
`sysOutByte' follow
partialImage.o: In function `sndIgsAudioEnable':
partialImage.o(.text+0x2ae84): relocation truncated to fit: R_ARM_PC24
sysOutByte
partialImage.o(.text+0x2ae94): relocation truncated to fit: R_ARM_PC24
sysOutByte
partialImage.o(.text+0x2aea4): relocation truncated to fit: R_ARM_PC24
sysOutByte
partialImage.o(.text+0x2aeb4): relocation truncated to fit: R_ARM_PC24
sysOutByte
partialImage.o(.text+0x2aec4): relocation truncated to fit: R_ARM_PC24
sysOutByte
partialImage.o(.text+0x2aed4): relocation truncated to fit: R_ARM_PC24
sysOutByte
partialImage.o(.text+0x2aee4): relocation truncated to fit: R_ARM_PC24
sysOutByte
partialImage.o(.text+0x2aef4): relocation truncated to fit: R_ARM_PC24
sysOutByte
partialImage.o: In function `sndIgsIntEnable':
partialImage.o(.text+0x2b0b0): relocation truncated to fit: R_ARM_PC24
sysOutByte
partialImage.o(.text+0x2b0c8): relocation truncated to fit: R_ARM_PC24
sysOutByte
make: *** [vxWorks] Error 1
Done.
thanks a lot!
-
Re: how to solve the error: relocation truncated to fit: R_ARM_PC24
yaoxinwen wrote:
> i am developing the driver of s1d13506 by windml.my
> configuration:tornado2.2.1,platform id2.1
Hello,
Some of the function-calling code in your partialImage.o
file is too far from the destination of the call. You
should compile the code (or at least the newer, calling
modules) with the "-mlongcall" or "-mlong-call" option.
This situation is exactly what that option is for.
> i have build the windml and got the wndml.o. After i added this .o to
> EXTRA_MODULES,the error is list when i make this bootable project based
> on my bsp which have include necessary 2d library.
> the error listed as:
> ldarm -X -EL -N -e sysInit -Ttext 20001000 \
> dataSegPad.o partialImage.o ctdt.o \
> -T D:\Tornado2.2\target\h\tool\gnu\ldscripts\link.RAM -o vxWorks
> partialImage.o: In function `uglGraphicsDevAccessCheck':
> partialImage.o(.text+0x28a48): undefined reference to `pciFindDevice'
> partialImage.o(.text+0x28a48): relocation truncated to fit: R_ARM_PC24
> pciFindDevice
> partialImage.o: In function `uglPCIAddressGet':
> partialImage.o(.text+0x28b6c): undefined reference to `pciConfigInLong'
> partialImage.o(.text+0x28b6c): relocation truncated to fit: R_ARM_PC24
> pciConfigInLong
> partialImage.o(.text+0x28b90): undefined reference to
> `pciConfigOutLong'
> partialImage.o(.text+0x28b90): relocation truncated to fit: R_ARM_PC24
> pciConfigOutLong
> partialImage.o(.text+0x28bb4): undefined reference to `pciConfigInLong'
> partialImage.o(.text+0x28bb4): relocation truncated to fit: R_ARM_PC24
> pciConfigInLong
> partialImage.o(.text+0x28c04): undefined reference to
> `pciConfigOutLong'
> partialImage.o(.text+0x28c04): relocation truncated to fit: R_ARM_PC24
> pciConfigOutLong
> partialImage.o: In function `igsSndDevCreate':
> partialImage.o(.text+0x2a8a4): undefined reference to `sysOutByte'
> partialImage.o(.text+0x2a8a4): relocation truncated to fit: R_ARM_PC24
> sysOutByte
> partialImage.o(.text+0x2a8b4): undefined reference to `sysInByte'
> partialImage.o(.text+0x2a8b4): relocation truncated to fit: R_ARM_PC24
> sysInByte
> partialImage.o(.text+0x2a8c8): undefined reference to `sysInByte'
> partialImage.o(.text+0x2a8c8): relocation truncated to fit: R_ARM_PC24
> sysInByte
> partialImage.o(.text+0x2a8e4): undefined reference to `sysOutByte'
> partialImage.o(.text+0x2a8e4): relocation truncated to fit: R_ARM_PC24
> sysOutByte
> partialImage.o: In function `audioInterrupt':
> partialImage.o(.text+0x2ab94): undefined reference to `sysInByte'
> partialImage.o(.text+0x2ab94): relocation truncated to fit: R_ARM_PC24
> sysInByte
> partialImage.o(.text+0x2aba8): undefined reference to `sysOutByte'
> partialImage.o(.text+0x2aba8): relocation truncated to fit: R_ARM_PC24
> sysOutByte
> partialImage.o(.text+0x2abb8): undefined reference to `sysInByte'
> partialImage.o(.text+0x2abb8): relocation truncated to fit: R_ARM_PC24
> sysInByte
> partialImage.o(.text+0x2abd0): undefined reference to `sysOutByte'
> partialImage.o(.text+0x2abd0): relocation truncated to fit: R_ARM_PC24
> sysOutByte
> partialImage.o: In function `sndIgsUnlockAudio':
> partialImage.o(.text+0x2ad1c): undefined reference to `sysOutByte'
> partialImage.o(.text+0x2ad1c): relocation truncated to fit: R_ARM_PC24
> sysOutByte
> partialImage.o(.text+0x2ad30): undefined reference to `sysInByte'
> partialImage.o(.text+0x2ad30): relocation truncated to fit: R_ARM_PC24
> sysInByte
> partialImage.o(.text+0x2ad40): undefined reference to `sysOutByte'
> partialImage.o(.text+0x2ad40): relocation truncated to fit: R_ARM_PC24
> sysOutByte
> partialImage.o(.text+0x2ad50): undefined reference to `sysOutByte'
> partialImage.o(.text+0x2ad50): relocation truncated to fit: R_ARM_PC24
> sysOutByte
> partialImage.o(.text+0x2ad60): undefined reference to `sysInByte'
> partialImage.o(.text+0x2ad60): relocation truncated to fit: R_ARM_PC24
> sysInByte
> partialImage.o(.text+0x2ad74): undefined reference to `sysOutByte'
> partialImage.o(.text+0x2ad74): relocation truncated to fit: R_ARM_PC24
> sysOutByte
> partialImage.o: In function `sndIgsAudioEnable':
> partialImage.o(.text+0x2ae40): undefined reference to `sysOutByte'
> partialImage.o(.text+0x2ae40): relocation truncated to fit: R_ARM_PC24
> sysOutByte
> partialImage.o(.text+0x2ae54): undefined reference to `sysOutByte'
> partialImage.o(.text+0x2ae54): relocation truncated to fit: R_ARM_PC24
> sysOutByte
> partialImage.o(.text+0x2ae64): undefined reference to `sysOutByte'
> partialImage.o(.text+0x2ae64): relocation truncated to fit: R_ARM_PC24
> sysOutByte
> partialImage.o(.text+0x2ae74): undefined reference to `sysOutByte'
> partialImage.o(.text+0x2ae74): relocation truncated to fit: R_ARM_PC24
> sysOutByte
> partialImage.o(.text+0x2ae84): more undefined references to
> `sysOutByte' follow
> partialImage.o: In function `sndIgsAudioEnable':
> partialImage.o(.text+0x2ae84): relocation truncated to fit: R_ARM_PC24
> sysOutByte
> partialImage.o(.text+0x2ae94): relocation truncated to fit: R_ARM_PC24
> sysOutByte
> partialImage.o(.text+0x2aea4): relocation truncated to fit: R_ARM_PC24
> sysOutByte
> partialImage.o(.text+0x2aeb4): relocation truncated to fit: R_ARM_PC24
> sysOutByte
> partialImage.o(.text+0x2aec4): relocation truncated to fit: R_ARM_PC24
> sysOutByte
> partialImage.o(.text+0x2aed4): relocation truncated to fit: R_ARM_PC24
> sysOutByte
> partialImage.o(.text+0x2aee4): relocation truncated to fit: R_ARM_PC24
> sysOutByte
> partialImage.o(.text+0x2aef4): relocation truncated to fit: R_ARM_PC24
> sysOutByte
> partialImage.o: In function `sndIgsIntEnable':
> partialImage.o(.text+0x2b0b0): relocation truncated to fit: R_ARM_PC24
> sysOutByte
> partialImage.o(.text+0x2b0c8): relocation truncated to fit: R_ARM_PC24
> sysOutByte
> make: *** [vxWorks] Error 1
>
> Done.
>
> thanks a lot!
>
-
Re: how to solve the error: relocation truncated to fit: R_ARM_PC24
which file should i include the option "-mlongcall" or
"-mlong-call",vxworks or windml.
how should i do?
thanks!
-
Re: how to solve the error: relocation truncated to fit: R_ARM_PC24
yaoxinwen wrote:
> which file should i include the option "-mlongcall" or
> "-mlong-call",vxworks or windml.
> how should i do?
What package did you add to your build most recently?
The package that caused all the error messages. I
would recompile that one first.
> thanks!
>