This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: ld errors -- wrong output section for SDAREL target


   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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]