[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/18837] New: gold does not handle linker-scripts with inputs
From: |
rguenth at gcc dot gnu.org |
Subject: |
[Bug gold/18837] New: gold does not handle linker-scripts with inputs |
Date: |
Mon, 17 Aug 2015 09:00:49 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=18837
Bug ID: 18837
Summary: gold does not handle linker-scripts with inputs
Product: binutils
Version: 2.25
Status: NEW
Severity: critical
Priority: P2
Component: gold
Assignee: ccoutant at gmail dot com
Reporter: rguenth at gcc dot gnu.org
CC: ian at airs dot com
Target Milestone: ---
.section .gnu.lto_.debug_info,"",@progbits
.hidden t.c.f0aceea6
.globl t.c.f0aceea6
t.c.f0aceea6:
.long 0x31
.value 0x4
.long .Ldebug_abbrev1
.section .gnu.lto_.debug_abbrev,"",@progbits
.Ldebug_abbrev1:
.uleb128 0x1
.section .gnu.lto_.debug_str,"MS",@progbits,1
.string "/abuild/rguenther/trunk-g/gcc"
> as -o t.o t.s
and script
SECTIONS {
.debug_info : { t.o(.gnu.lto_.debug_info) }
.debug_abbrev : { t.o(.gnu.lto_.debug_abbrev) }
.debug_str : { t.o(.gnu.lto_.debug_str) }
}
and trying to have it link from t.o input sections to debug-info sections
doesn't result in any success (nor do I have an idea how to debug it).
> ld.gold -o x script
> readelf -S x
There are 5 section headers, starting at offset 0xb0:
Section Headers:
[Nr] Name Type Address Offset
Size EntSize Flags Link Info Align
[ 0] NULL 0000000000000000 00000000
0000000000000000 0000000000000000 0 0 0
[ 1] .note.gnu.gold-ve NOTE 0000000000000000 00000040
000000000000001c 0000000000000000 0 0 4
[ 2] .symtab SYMTAB 0000000000000000 00000060
0000000000000018 0000000000000018 3 1 8
[ 3] .strtab STRTAB 0000000000000000 00000078
0000000000000001 0000000000000000 0 0 1
[ 4] .shstrtab STRTAB 0000000000000000 00000079
0000000000000032 0000000000000000 0 0 1
using a partial link or adding a dummy object and using -T script doesn't
change anything. GOLD also doesn't like parsing
SECTIONS {
.debug_info : { HIDDEN(t.c.f0aceea6 = .); t.o(.gnu.lto_.debug_info) }
}
btw. so assigning new symbols doesn't work (fortunately I ended up not
needing that).
This bug makes gold completely unable to handle what will be the new way
to do debuginfo with GCC and -flto (so called early debug with LTO).
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug gold/18837] New: gold does not handle linker-scripts with inputs,
rguenth at gcc dot gnu.org <=
- [Bug gold/18837] gold does not handle linker-scripts with inputs, rguenth at gcc dot gnu.org, 2015/08/17
- [Bug gold/18837] gold does not handle linker-scripts with inputs, ccoutant at gmail dot com, 2015/08/17
- [Bug gold/18837] gold does not handle linker-scripts with inputs, rguenth at gcc dot gnu.org, 2015/08/18
- [Bug gold/18837] gold does not handle linker-scripts with inputs, ccoutant at gmail dot com, 2015/08/19
- [Bug gold/18837] gold does not handle linker-scripts with inputs, rguenther at suse dot de, 2015/08/19