https://sourceware.org/bugzilla/show_bug.cgi?id=21167
Bug ID: 21167
Summary: gas v2.28.51 does not include .rel[a] sections to
groups
Product: binutils
Version: 2.29 (HEAD)
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gas
Assignee: unassigned at sourceware dot org
Reporter: georgerim at gmail dot com
Target Milestone: ---
Assume next code (1.s):
.section .text,"axG",@progbits,foo,comdat
.quad bar
./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:
[Index] Name
[ 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-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils