Package: binutils-mipsel-linux-gnu
Version: 2.29.1-12
Severity: normal

Dear Maintainer,

I have been attempting to build L4Re with the mipsel cross-toolchain, which
has so far worked well, but after updating the L4Re sources to a newer
revision, I now get the following error:

----
mipsel-linux-gnu-ld: main.o: Can't find matching LO16 reloc against `.text'
for R_MIPS_GOT16 at 0x1f8 in section `mipsel-linux-gnu-ld: BFD (GNU Binutils
for Debian) 2.29.1 internal error, aborting at ../../bfd/bfd.c:866 in
_bfd_doprnt

mipsel-linux-gnu-ld: Please report this bug.
----

So, I am reporting this bug! However, I suspect that it might have something
to do with other, previously-reported bugs. Superficially, it looks like bug
#834147 in Debian.

I don't really know how to debug this, but I did see advice about using
readelf, so I used the following command:

mipsel-linux-gnu-readelf -r \
  mybuild/pkg/examples/sys/utcb-ipc/OBJ-mips_32r2-l4f/main.o

And this yielded the following output:

Relocation section '.rel.text' at offset 0x52b8 contains 26 entries:
 Offset     Info    Type            Sym.Value  Sym. Name
00000000  00001f05 R_MIPS_HI16       00000000   _gp_disp
00000004  00001f06 R_MIPS_LO16       00000000   _gp_disp
0000000c  00000209 R_MIPS_GOT16      00000000   .text
00000010  00000206 R_MIPS_LO16       00000000   .text
0000001c  00001f05 R_MIPS_HI16       00000000   _gp_disp
00000020  00001f06 R_MIPS_LO16       00000000   _gp_disp
00000034  0000200b R_MIPS_CALL16     00000000   printf
0000002c  00001509 R_MIPS_GOT16      00000000   $LC0
00000044  00001506 R_MIPS_LO16       00000000   $LC0
00000084  00002025 R_MIPS_JALR       00000000   printf
00000098  00001709 R_MIPS_GOT16      00000014   $LC1
0000009c  00001706 R_MIPS_LO16       00000014   $LC1
000000a4  00001809 R_MIPS_GOT16      00000028   $LC2
000000a8  00001806 R_MIPS_LO16       00000028   $LC2
000000bc  00000406 R_MIPS_LO16       00000000   .bss
000000d0  0000210b R_MIPS_CALL16     00000000   puts
00000120  0000200b R_MIPS_CALL16     00000000   printf
0000012c  00002025 R_MIPS_JALR       00000000   printf
00000148  0000220b R_MIPS_CALL16     00000000   putchar
00000150  00002225 R_MIPS_JALR       00000000   putchar
00000160  0000220b R_MIPS_CALL16     00000000   putchar
00000030  00000409 R_MIPS_GOT16      00000000   .bss
0000016c  00002225 R_MIPS_JALR       00000000   putchar
00000188  00000406 R_MIPS_LO16       00000000   .bss
000001a0  0000210b R_MIPS_CALL16     00000000   puts
000001a4  00002125 R_MIPS_JALR       00000000   puts

Relocation section '.rel.pdr' at offset 0x5388 contains 2 entries:
 Offset     Info    Type            Sym.Value  Sym. Name
00000000  00000202 R_MIPS_32         00000000   .text
00000020  00002302 R_MIPS_32         00000000   main

Relocation section '.rel.text.startup' at offset 0x5398 contains 24 entries:
 Offset     Info    Type            Sym.Value  Sym. Name
00000000  00001f05 R_MIPS_HI16       00000000   _gp_disp
00000004  00001f06 R_MIPS_LO16       00000000   _gp_disp
00000014  0000240b R_MIPS_CALL16     00000000   l4re_util_cap_alloc
0000004c  00002509 R_MIPS_GOT16      00000000   l4re_global_env
00000058  00000409 R_MIPS_GOT16      00000000   .bss
0000005c  00002425 R_MIPS_JALR       00000000   l4re_util_cap_alloc
00000060  00000406 R_MIPS_LO16       00000000   .bss
00000074  00000406 R_MIPS_LO16       00000000   .bss
00000124  00000406 R_MIPS_LO16       00000000   .bss
000001e0  00000406 R_MIPS_LO16       00000000   .bss
000001f8  00000209 R_MIPS_GOT16      00000000   .text
00000200  00000409 R_MIPS_GOT16      00000000   .bss
...

(Followed by more details and .rel.debug sections.)

I cannot really see any obvious changes in the way the software gets built,
but I'm also not an expert with the software in question, either. I will try
and investigate further, though.

Sorry if this isn't as informative as it could be. Please let me know if I
can provide better information.

Paul

P.S. For reference, this is r73 of L4Re from...

https://svn.l4re.org/repos/oc/l4re/

...r72 having worked just fine.

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Foreign Architectures: mipsel

Kernel: Linux 3.2.0-4-486
Locale: LANG=en_GB.ISO-8859-15, LC_CTYPE=en_GB.ISO-8859-15 
(charmap=ISO-8859-15), LANGUAGE=en_GB.ISO-8859-15 (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect

Versions of packages binutils-mipsel-linux-gnu depends on:
ii  binutils-common  2.29.1-12
ii  libc6            2.25-5
ii  zlib1g           1:1.2.8.dfsg-5

binutils-mipsel-linux-gnu recommends no packages.

Versions of packages binutils-mipsel-linux-gnu suggests:
pn  binutils-doc  <none>

-- no debconf information

Reply via email to