From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Tue, 27 Mar 2012 01:06:58 +0200 Subject: [U-Boot] BIOS EMULATOR driver In-Reply-To: <20120326201447.5B92B200268@gemini.denx.de> References: <201203261531.18334.marex@denx.de> <20120326201447.5B92B200268@gemini.denx.de> Message-ID: <201203270106.58862.marek.vasut@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Wolfgang Denk, > Dear Marek Vasut, > > In message <201203261531.18334.marex@denx.de> you wrote: > > So that means the board work without this bios emulator driver if the > > radeon driver is disabled? But we want to use the radeon driver, so we > > need the bios emulator stuff. > > Right. If you don't need feature X and do not configure it, then you > don't need the driver that implements feature X, and building without > this driver works. If you need feature X, then you must include it, > and it is usually no dead code then. > > And even if it was, the combination of -ffunction-sections / > -fdata-sections with --gc-sections should prevent any damages. Well, certainly ... but from what Viktor told me, there are slabs of dead code in this stuff. > > > I think the discussion quite drifted away from the original question, > > which was if the dead code in bios emulator stuff can be simply removed? > > ... and if it really is dead code. > > If you need the BIOS emulator to initialize the BIOS of a graphics > card it it probably not exactly "dead code". Certainly, though I'm not confident if all of the bios emulator stuff is used. > > Best regards, > > Wolfgang Denk Best regards, Marek Vasut