[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.
- [Bug ld/18223] New: _init/_fini dropped with --gc-sections, rmorell at nvidia dot com, 2015/04/08
- [Bug ld/18223] _init/_fini dropped with --gc-sections,
amodra at gmail dot com <=
- [Bug ld/18223] _init/_fini dropped with --gc-sections, rmorell at nvidia dot com, 2015/04/09
- [Bug ld/18223] _init/_fini dropped with --gc-sections, jsweval at arxan dot com, 2015/04/09
- [Bug ld/18223] _init/_fini dropped with --gc-sections, cvs-commit at gcc dot gnu.org, 2015/04/09
- [Bug ld/18223] _init/_fini dropped with --gc-sections, amodra at gmail dot com, 2015/04/09
- [Bug ld/18223] _init/_fini dropped with --gc-sections, cvs-commit at gcc dot gnu.org, 2015/04/10
- [Bug ld/18223] _init/_fini dropped with --gc-sections, hjl.tools at gmail dot com, 2015/04/10