binutils problem

Richard Zidlicky rz@linux-m68k.org
Sun Aug 25 13:05:00 GMT 2002


On Sun, Aug 25, 2002 at 11:27:38AM -0400, Daniel Jacobowitz wrote:
> On Sun, Aug 25, 2002 at 12:53:15PM +0200, Richard Zidlicky wrote:
> > Hi,
> > 
> > The assembler problem is now definitively gone, however it appears 
> > something else is still wrong on m68k. I keep getting problems like 
> > this on various occassions with new binutils:
> > 
> > # objdump
> > objdump: error while loading shared libraries: unexpected PLT reloc type 0x00pïÿô@À
> 
> FWIW, this is the same symptom as the set of problems caused by not refcounting
> GOT/PLT entries.  m68k does refcount, but if there's a bug, there might
> be an uninitialized relocation.  Zeroing the section contents before
> filling them in will serve as a workaround (though not a fix).

zeroing which section when? Or how else could I narrow the problem
down?

The reloc info for 'optind' looks like that:
# m68k-linux-readelf -r /usr/m68kroot/objdump  (the faulting program)

Relocation section '.rela.dyn' at offset 0x161c contains 15 entries:
 Offset     Info    Type            Sym.Value  Sym. Name + Addend
.......
800367ac  00007613 R_68K_COPY        800367ac   optarg + 0
800367b0  00008013 R_68K_COPY        800367b0   optind + 0


# m68k-linux-readelf -r /usr/m68kroot/libc-2.2.90.so
Relocation section '.rela.dyn' at offset 0x11228 contains 3181 entries:
 Offset     Info    Type            Sym.Value  Sym. Name + Addend
.......
000dc1a8  0003a314 R_68K_GLOB_DAT    000e01a8   argp_program_version + 0
000dc1c4  0003dc14 R_68K_GLOB_DAT    000d75f4   __fpu_control + 0
000dc1e0  0003fa14 R_68K_GLOB_DAT    000d7790   optind + 0


Richard



More information about the Binutils mailing list