Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 Oct 2018 18:40:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        mips@FreeBSD.org
Subject:   [Bug 231790] objcopy: corrupts relocation entries in big-endian mips64 output when adjusting symbol indexes
Message-ID:  <bug-231790-27794-Tb40undMh6@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-231790-27794@https.bugs.freebsd.org/bugzilla/>
References:  <bug-231790-27794@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231790

--- Comment #6 from Ed Maste <emaste@freebsd.org> ---
As far as I can tell readelf is broken before and after r338478 on BE mips6=
4.

It looks like it is indeed a false-positive invocation of the le conversion=
 - a
breakpoint on _libelf_mips64el_r_info_tom when running "objcopy --strip-deb=
ug
geom_mirror.ko.works out" stops on:

* thread #1, name =3D 'objcopy', stop reason =3D breakpoint 2.1
  * frame #0: 0x000000528b50f5c4
libelf.so.2`_libelf_mips64el_r_info_tom(r_info=3D8589934621) at
gelf_mips64el.c:74
    frame #1: 0x000000528b50e9f2 libelf.so.2`gelf_getrela(ed=3D<unavailable=
>,
ndx=3D<unavailable>, dst=3D0x00007fffffffe400) at gelf_rela.c:97
    frame #2: 0x00000000002124b7 objcopy`copy_content [inlined]
update_reloc(ecp=3D<unavailable>) at sections.c:832
    frame #3: 0x00000000002123c1 objcopy`copy_content(ecp=3D<unavailable>) =
at
sections.c:604
    frame #4: 0x000000000020db67 objcopy`create_elf(ecp=3D0x000000080087700=
0) at
main.c:389
    frame #5: 0x000000000020f0a3 objcopy`create_file(ecp=3D0x00000008008770=
00,
src=3D"geom_mirror.ko.works", dst=3D"geom_mirror.ko.works") at main.c:705
    frame #6: 0x000000000020ec81 objcopy`main [inlined]
elfcopy_main(ecp=3D<unavailable>, argc=3D<unavailable>, argv=3D<unavailable=
>) at
main.c:1028
    frame #7: 0x000000000020ec79 objcopy`main(argc=3D4, argv=3D0x00007fffff=
ffe750)
at main.c:1597
    frame #8: 0x0000000000209095 objcopy`_start(ap=3D<unavailable>,
cleanup=3D<unavailable>) at crt1.c:74

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-231790-27794-Tb40undMh6>