bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/21287] New: Inconsistent section type for .init_array and .init


From: rafael.espindola at gmail dot com
Subject: [Bug gas/21287] New: Inconsistent section type for .init_array and .init_array.42
Date: Wed, 22 Mar 2017 13:45:17 +0000

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]