Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MVkQY-0006yM-8T for mharc-grub-devel@gnu.org; Tue, 28 Jul 2009 07:01:02 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MVkQW-0006wP-VH for grub-devel@gnu.org; Tue, 28 Jul 2009 07:01:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MVkQW-0006us-9P for grub-devel@gnu.org; Tue, 28 Jul 2009 07:01:00 -0400 Received: from [199.232.76.173] (port=55425 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVkQW-0006uR-1k for grub-devel@gnu.org; Tue, 28 Jul 2009 07:01:00 -0400 Received: from rv-out-0708.google.com ([209.85.198.241]:50356) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MVkQU-00050t-V4 for grub-devel@gnu.org; Tue, 28 Jul 2009 07:00:59 -0400 Received: by rv-out-0708.google.com with SMTP id f25so1633944rvb.6 for ; Tue, 28 Jul 2009 04:00:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=2+hkE1i2zHl0am2SGYq3OF/YO5BKI4YmIkbsRiUF2/g=; b=Rx65dxeYfI+jwlAb+2jpSEIVaJtQvBhdrUzGtG7lFaaQ9mnomN6fZANjUoIpVWRMBi HYV62TMAItLXNl2zQinX1ozCTWnhVs/U2SMrNQK/3Lzo+ibMSZl6pNAPmEPY0vrWJysF aP1oV9z2Obx3DabXBz5dlIBaAW/9NyUKmfubQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=pmEuQTLaSf2eQsL9AigIc3kEo3z7i9eYQl8wdbklHT6tNx36iN4U7ZXOqIdTiEd3bR EiwgSX6/aK2UrbDXHUD60QkJn93Bp8mAP/AHRTG45xoytn65y372J8iFjc+Q0STe5mmA /BaaHooX0JaKTM3Iaba3THpXg09RVpIu9rCU8= MIME-Version: 1.0 Received: by 10.140.141.21 with SMTP id o21mr4907732rvd.199.1248778858082; Tue, 28 Jul 2009 04:00:58 -0700 (PDT) In-Reply-To: References: <1248263254.10302.11.camel@accesodirecto.casa> <1248270128.10302.14.camel@accesodirecto.casa> Date: Tue, 28 Jul 2009 19:00:58 +0800 Message-ID: From: Bean To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH] New object format X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jul 2009 11:01:01 -0000 Hi, Update: Now global symbol must be defined using GRUB_EXPORT macro, otherwise it'd be removed from the module symbol list. I also add GRUB_EXPORT to modules in i386-pc platform. Some reason to define global symbols explicitly: For modules that consists of multiple files, some external function is used to communicate with each other, they should not be exported, for example, sh.mod and lua.mod all have many function that's not static. It'd be nice to distinguish between function we want to export and those used by other files in the same module. For normal module, exported function is not common, for those that consist of functions mainly, we can move it to the library, which export all external function so that we don't need GRUB_EXPORT anyway. The export symbol is not cheap, by exporting only the symbols we need, we can save some space. -- Bean