From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 21 16:59:12 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 A524916A4CE for ; Sun, 21 Mar 2004 16:59:12 -0800 (PST) Received: from mail.sandvine.com (sandvine.com [199.243.201.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C7C043D31 for ; Sun, 21 Mar 2004 16:59:12 -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:59:11 -0500 Message-ID: From: Don Bowman To: 'Garance A Drosihn' , Don Bowman Date: Sun, 21 Mar 2004 19:59:10 -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:59:12 -0000 From: Garance A Drosihn [mailto:drosih@rpi.edu] > At 7:35 PM -0500 3/21/04, Don Bowman wrote: > >From: Garance A Drosihn [mailto:drosih@rpi.edu] > > > > >> 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... > > > >It's not just bumping you up another module 4K pages? The > >linker aligns text, data, bss, rodata, etc. > > (65) ls -l /bin/ps* > -r-xr-xr-x 1 root wheel 27100 Mar 20 14:29 /bin/ps > -r-xr-xr-x 1 root wheel 27296 Mar 21 18:21 /bin/ps-sanscmp > -r-xr-xr-x 1 root wheel 31204 Mar 21 19:46 /bin/ps-withcmp > > The first one is the `ps' before all of my recent changes, the > second is all of the changes except for that strcmp(), and the > third adds the strcmp. and objdump --headers shows?