[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/21167] New: gas v2.28.51 does not include .rel[a] sections to g
georgerim at gmail dot com
[Bug gas/21167] New: gas v2.28.51 does not include .rel[a] sections to groups
Wed, 15 Feb 2017 16:13:20 +0000
Bug ID: 21167
Summary: gas v2.28.51 does not include .rel[a] sections to
Version: 2.29 (HEAD)
Assignee: unassigned at sourceware dot org
Reporter: georgerim at gmail dot com
Target Milestone: ---
Assume next code (1.s):
./as-new 1.s -o out
readelf -a out
[ 5] .text PROGBITS 0000000000000000 00000048
0000000000000008 0000000000000000 AXG 0 0 1
[ 6] .rela.text RELA 0000000000000000 00000120
0000000000000018 0000000000000018 I 7 5 8
As shown, .rela.text is present for .text, it has 5 as sh_info field, but gas
does not include it into group:
COMDAT group section [ 1] `.group' [foo] contains 1 sections:
[ 5] .text
During the "regular" part of the link, the linker includes or discards groups
as a unit.
ELF spec that says: "There may *not* be non-symbol references to the sections
comprising a group from outside the group, for example, use of a group member's
section header index in an sh_link or sh_info member."
So it looks to be violation of spec.
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug gas/21167] New: gas v2.28.51 does not include .rel[a] sections to groups,
georgerim at gmail dot com <=