https://sourceware.org/bugzilla/show_bug.cgi?id=21287
Bug ID: 21287
Summary: Inconsistent section type for .init_array and
.init_array.42
Product: binutils
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gas
Assignee: unassigned at sourceware dot org
Reporter: rafael.espindola at gmail dot com
Target Milestone: ---
Given
.section .init_array.00999,"aw"
.section .init_array,"aw"
gas produces
[ 6] .init_array.00999 PROGBITS 0000000000000000 000058 000008 00 WA
0 0 8
[ 8] .init_array INIT_ARRAY 0000000000000000 000060 000008 00 WA
0 0 8
They should probably both be INIT_ARRAY. This shows up from C since given
struct X {
X();
};
X x __attribute__((init_priority(999)));
X y;
gcc produces the above assembly.
--
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