ld should merge function/data-sections in the same manner as GNU ld
When gcc is invoked with -ffunction-sections and/or -fdata-sections, it produces one section per symbol in output relocatable objects.
When producing a dynamic object, gld merges these sections into their logical main section. We should do the same thing.
This makes certain C++ applications (firefox) have vastly fewer sections, and link-edit orders of magnitude faster.
Updated by Electric Monk over 5 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
commit ce68629858b847885cda69bf09057ab27980fe8d Author: Richard Lowe <firstname.lastname@example.org> Date: 2015-09-28T12:06:34.000Z 6252 ld should merge function/data-sections in the same manner as GNU ld Reviewed by: Igor Kozhukhov <email@example.com> Reviewed by: Toomas Soome <firstname.lastname@example.org> Reviewed by: Josef Sipek <email@example.com> Reviewed by: Albert Lee <firstname.lastname@example.org> Reviewed by: Hans Rosenfeld <email@example.com> Approved by: Dan McDonald <firstname.lastname@example.org>