ld errors -- wrong output section for SDAREL target
Ian Lance Taylor
ian@zembu.com
Sun Mar 19 13:58:00 GMT 2000
Date: Sat, 18 Mar 2000 23:28:03 +0200
From: Momchil Velikov <velco@fadata.bg>
I get zillions of errors of the following kind:
/usr/local/powerpc-svr4/bin/ld: /home/velco/os/boot/powerpc/boot.o: The
target (stdout) of a R_PPC_SDAREL16 relocation is in the wrong output
section (.data)
/usr/local/powerpc-svr4/bin/ld: /home/velco/os/boot/powerpc/boot.o: The
target (dmon_device) of a R_PPC_SDAREL16 relocation is in the wrong
output section (.bss)
/usr/local/powerpc-svr4/bin/ld: /home/velco/os/boot/powerpc/boot.o: The
target (<local symbol>) of a R_PPC_SDAREL16 relocation is in the wrong
output section (.data)
BFD appears to assume that those relocations are against the start of
the .sdata/.sbss output section. Assuming that is correct, then you
must have a .sdata/.sbss output section if you want to use those
relocation.
Yep, it's somewhat unusual. The reason is the bogus bootloader (Apple OF
1.0.5)
-- it initializes only .text, .data and .bss sections.
Well, that's a problem. You'll have to patch BFD for your case, I
guess, or avoid using -msdata.
Ian
More information about the Binutils
mailing list