This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: objcopy test failure on mips-linux
- To: aj at suse dot de
- Subject: Re: objcopy test failure on mips-linux
- From: Ian Lance Taylor <ian at zembu dot com>
- Date: 14 Mar 2000 10:09:57 -0800
- CC: binutils at sourceware dot cygnus dot com, geoff at cygnus dot com
- References: <hoem9du10d.fsf@maclaurin.suse.de>
From: Andreas Jaeger <aj@suse.de>
Date: 14 Mar 2000 14:36:34 +0100
On mips-linux the binutils test "objcopy (simple copy)" fails.
Running the test manually:
$ /home/gast/AJ/build-src/binutils/objcopy tmpdir/bintest.o tmpdir/copy.o
I get the following two files which are different in size:
-rw-rw-r-- 1 gast gast 1448 Mar 14 13:41 bintest.o
-rw-rw-r-- 1 gast gast 1452 Mar 14 13:41 copy.o
Have a look at the different readelf outputs - the rela.text and
rel.text sections are different:
Are you using the straight CVS sources? I have no explanation as to
how or why objcopy is creating a .rela section. elf32-mips.c defines
USE_REL, so it should create a .rel section, not a .rela section.
_bfd_elf_new_section_hook should set use_rela_p to false. When the
relocations are written out, _bfd_elf_init_reloc_shdr should see that,
and should create a .rel section, not a .rela section. Something is
presumably going wrong in that sequence.
Ian