]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - ld/ChangeLog-2015
Mark _init and _fini for --gc-sections
authorAlan Modra <amodra@gmail.com>
Thu, 9 Apr 2015 09:08:03 +0000 (18:38 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 10 Apr 2015 00:57:03 +0000 (10:27 +0930)
commit6166ed9330a9afd41859d5a716cb9019c338a8ca
tree4efba2cc9b171965fb04abedbe0d86d013d5a482
parent4f0d8f2d9f95ae5620e70c8b490fe6f534ffd5ce
Mark _init and _fini for --gc-sections

gold marks _init and _fini via symbol, ld marks them via section
(default scripts set .init and .fini section KEEP).  This makes it
possible for people to write their own _init and not bother to put the
function into the right section.

PR ld/18223
* ldlang.c (lang_process): Add _init and _fini to gc_sym_list.
ld/ChangeLog
ld/ldlang.c