This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: ld errors -- wrong output section for SDAREL target
- To: velco at fadata dot bg
- Subject: Re: ld errors -- wrong output section for SDAREL target
- From: Ian Lance Taylor <ian at zembu dot com>
- Date: 19 Mar 2000 13:58:20 -0800
- CC: binutils at sourceware dot cygnus dot com
- References: <38D3F4E3.6BF5826@fadata.bg>
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