[U-Boot-Users] Does u-boot relocate absolute symbols?
Rune Torgersen
runet at innovsys.com
Thu Jun 30 18:54:40 CEST 2005
Wow.... This surprises me...
I have alwayts thought that *test and test[] would be the same thing.
Only solutionI can see is to change the definition in common.c to be
*test, this will still get the address of test[] defined elsewhere.
(See attached files)
> Sure, I've tried this. This is the point, where my problem
> arose. Attached you find two
> small files, you can easily compile under linux (gcc -o
> arrtest -I ./ ./common.c
> ./array.c). The file "common.c" represents the code I can't
> (don't want to) touch.
> "array.c" represents my project dependent code. If you run
> arrtest it will show to you,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: common.h
Type: application/octet-stream
Size: 24 bytes
Desc: common.h
Url : http://lists.denx.de/pipermail/u-boot/attachments/20050630/fe93c658/attachment.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: array.c
Type: application/octet-stream
Size: 200 bytes
Desc: array.c
Url : http://lists.denx.de/pipermail/u-boot/attachments/20050630/fe93c658/attachment-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: common.c
Type: application/octet-stream
Size: 137 bytes
Desc: common.c
Url : http://lists.denx.de/pipermail/u-boot/attachments/20050630/fe93c658/attachment-0002.obj
More information about the U-Boot
mailing list