Message-Id: <199907181946.TAA51602@out5.ibm.net> From: "Mark E." To: djgpp-workers AT delorie DOT com Date: Sun, 18 Jul 1999 15:47:03 -0400 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: .align directives in libc.a References: 199907071350 DOT OAA00714 AT melchard DOT ee DOT ucl DOT ac DOT uk> X-mailer: Pegasus Mail for Win32 (v3.11) Reply-To: djgpp-workers AT delorie DOT com > I counted the number of .bss .data and .text sections in libc.a > (nm libc.a | grep .text | wc -l etc.) and ended up with 2123 sections but a > lot of them seem to be empty. If we align them to 32 byte boundaries, After playing with the binutils in CVS this weekend, I don't think this is right. 'nm' prints symbols and what you're seeing are the symbols defined when a section is created. When a .text section is created, a .text symbol is created to go with it. The linker combines the sections, but leaves the symbols around. A garbage collector would take care of this and is a new feature in 2.10, but isn't implemented for COFF. To see the sections and their alignment, use 'objdump --section- headers'. Mark --- Mark Elbrecht, snowball3 AT bigfoot DOT com http://snowball.frogspace.net/