[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/23653] ld SIGSEGVs when attempts to link sparc object with x86_6
From: |
slyfox at inbox dot ru |
Subject: |
[Bug ld/23653] ld SIGSEGVs when attempts to link sparc object with x86_64 library (--enable-targets=all): assertion fail ../../binutils-gdb/bfd/elfxx-sparc.c:1218 |
Date: |
Thu, 13 Sep 2018 22:48:43 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=23653
Sergei Trofimovich <slyfox at inbox dot ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |sparc-*
Host| |x86_64-*
Build| |x86_64-*
--- Comment #1 from Sergei Trofimovich <slyfox at inbox dot ru> ---
Sometimes the crash happens before an assert.
valgrind reports the following first erroneous dereference:
==8230== Invalid read of size 4
==8230== at 0x8F116A: _bfd_sparc_elf_create_dynamic_sections
(elfxx-sparc.c:1223)
==8230== by 0x6922DF: _bfd_elf_link_create_dynamic_sections (elflink.c:362)
==8230== by 0x695401: elf_add_dt_needed_tag (elflink.c:3532)
==8230== by 0x697DAE: elf_link_add_object_symbols (elflink.c:4208)
==8230== by 0x697DAE: bfd_elf_link_add_symbols (elflink.c:5723)
==8230== by 0x2CD740: load_symbols (ldlang.c:2881)
==8230== by 0x2CE184: open_input_bfds (ldlang.c:3330)
==8230== by 0x2D0410: lang_process (ldlang.c:7182)
==8230== by 0x2BE3C6: main (ldmain.c:438)
Which is:
bfd_boolean
_bfd_sparc_elf_create_dynamic_sections (bfd *dynobj,
struct bfd_link_info *info)
{
struct _bfd_sparc_elf_link_hash_table *htab;
htab = _bfd_sparc_elf_hash_table (info);
/*1218:*/ BFD_ASSERT (htab != NULL);
if (!_bfd_elf_create_dynamic_sections (dynobj, info))
return FALSE;
/*1223:*/ if (htab->is_vxworks)
--
You are receiving this mail because:
You are on the CC list for the bug.