#1988 closed defect (fixed)

sparc64: init/fini mislocated

Reported by: Gedare Bloom Owned by: Gedare Bloom
Priority: normal Milestone: 4.11
Component: bsps Version: 4.11
Severity: normal Keywords:
Cc: Blocked By:


The link script has the .init and .fini sections in a location that confuses the linker and occasionally causes a bug where the global constructors are not called correctly.

Also the _etext symbol is defined in the wrong place, though I haven't observed a bug from it I will fix it too.

Attachments (1)

s64-init.diff (787 bytes) - added by Gedare Bloom on Dec 12, 2011 at 5:50:46 PM.
Patch fixing bug.

Download all attachments as: .zip

Change History (4)

Changed on Dec 12, 2011 at 5:50:46 PM by Gedare Bloom

Attachment: s64-init.diff added

Patch fixing bug.

comment:1 Changed on Dec 12, 2011 at 5:52:31 PM by Gedare Bloom

Owner: changed from Joel Sherrill to Gedare Bloom
Resolution: fixed
Status: newclosed

comment:2 Changed on Dec 12, 2011 at 6:00:06 PM by Gedare Bloom

Also noticed that _init and _fini are not actually in .init and .fini sections. Correcting this and closing.

comment:3 Changed on Nov 24, 2014 at 6:58:28 PM by Gedare Bloom

Version: HEAD4.11

Replace Version=HEAD with Version=4.11 for the tickets with Milestone >= 4.11

Note: See TracTickets for help on using tickets.