From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 21 16:35:49 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C9B5516A4CE for ; Sun, 21 Mar 2004 16:35:49 -0800 (PST) Received: from mail.sandvine.com (sandvine.com [199.243.201.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id F1B2843D31 for ; Sun, 21 Mar 2004 16:35:48 -0800 (PST) (envelope-from don@sandvine.com) Received: by mail.sandvine.com with Internet Mail Service (5.5.2657.72) id ; Sun, 21 Mar 2004 19:35:47 -0500 Message-ID: From: Don Bowman To: 'Garance A Drosihn' , Kip Macy Date: Sun, 21 Mar 2004 19:35:46 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain; charset="iso-8859-1" cc: hackers@freebsd.org Subject: RE: Adventures with gcc: code vs object-code size X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2004 00:35:50 -0000 From: Garance A Drosihn [mailto:drosih@rpi.edu] > At 2:52 PM -0800 3/21/04, Kip Macy wrote: > >The heuristics vary from platform to platform - what does > >"objdump -d" show? > > Based on what I see from that, the 'ps.o' which has the extra > strcmp is about 40 bytes larger than the one without it. And > now that you mention it, doing a plain 'ls -l' of ps.o shows > that it is only 40 bytes larger. It's when you combine that > file with the other *.o files, and strip it, that the final > result ends up 3940 bytes larger. > > So maybe this has something to do with how linking is done > for ELF modules. Unfortunately, I need to be concentrating > on something else right now... Its not just bumping you up another module 4K pages? The linker aligns text, data, bss, rodata, etc.