bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/18223] _init/_fini dropped with --gc-sections


From: amodra at gmail dot com
Subject: [Bug ld/18223] _init/_fini dropped with --gc-sections
Date: Thu, 09 Apr 2015 07:06:34 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=18223

Alan Modra <amodra at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at sourceware dot org   |amodra at gmail dot com

--- Comment #1 from Alan Modra <amodra at gmail dot com> ---
Created attachment 8236
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8236&action=edit
patch

The problem here is that bfd ld keeps _init and _fini functions by section
name, marking .init and .fini with KEEP.  You didn't put your _init function in
section .init.  However, it's not hard to make bfd ld also keep these functions
by name rather than section name.  Please try this patch.

-- 
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]