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: objcopy test failure on mips-linux


   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

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