[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/17826] New: ld dies with "corrupted double-linked list" when try
From: |
blueness at gentoo dot org |
Subject: |
[Bug ld/17826] New: ld dies with "corrupted double-linked list" when trying to link objects both -pie and -static |
Date: |
Sat, 10 Jan 2015 14:06:28 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=17826
Bug ID: 17826
Summary: ld dies with "corrupted double-linked list" when
trying to link objects both -pie and -static
Product: binutils
Version: 2.26 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: blueness at gentoo dot org
When trying to link ELF objects both -pie and -static on x86 arch, ld dies with
the following:
# gcc -static -pie -o conftest conftest.c
*** Error in
`/usr/lib/gcc/i686-pc-linux-gnu/4.8.3/../../../../i686-pc-linux-gnu/bin/ld':
corrupted double-linked list: 0x0874fe30 ***
There are two issues here:
1) First, as far as I know, -static and -pie are not supported, and so ld
should warn with an appropriate error message. I believe gold does this.
2) Second, the corrupted double-linked list issue should be corrected. The bug
was introduced in commit 9f7c3e5e99a620b68f6b2d0f3b17329e40b8d781 which looks
like some code was added to free a hash table. Previous to that commit, ld die
with the following
/usr/local/bin/ld: BFD (GNU Binutils) 2.23.51.20130211 assertion fail
elflink.c:13080
/usr/local/bin/ld: BFD (GNU Binutils) 2.23.51.20130211 assertion fail
elflink.c:13080
/usr/local/bin/ld: BFD (GNU Binutils) 2.23.51.20130211 assertion fail
elflink.c:13080
/usr/local/bin/ld: BFD (GNU Binutils) 2.23.51.20130211 assertion fail
elflink.c:13080
/usr/local/bin/ld: BFD (GNU Binutils) 2.23.51.20130211 assertion fail
elflink.c:13080
collect2: error: ld returned 1 exit status
See the downstream bug at https://bugs.gentoo.org/show_bug.cgi?id=533862.
Comments 15 and following are relevant.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/17826] New: ld dies with "corrupted double-linked list" when trying to link objects both -pie and -static,
blueness at gentoo dot org <=