Revision: 2700
http://elftoolchain.svn.sourceforge.net/elftoolchain/?rev=2700&view=rev
Author: kaiwang27
Date: 2012-11-27 02:33:24 +0000 (Tue, 27 Nov 2012)
Log Message:
-----------
Overhaul of section layout: Previously, each input section is matched
against all the wildcard list defined in the linker script for output
sections to determine where to insert it. This is incredibly
slow. This commit adds a hash table to record previous search results
in the wildcard list for a certain section name, so that if the same
section name is encountered again, linker can tell if there is a
wildcard list match by looking at the hash table. After this change,
the wildcard list search time is reduced to negligible amount and
performance is increased dramatically.
Modified Paths:
--------------
trunk/ld/ld.h
trunk/ld/ld_input.c
trunk/ld/ld_input.h
trunk/ld/ld_layout.c
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|