Mail Archives: djgpp-workers/1999/07/18/15:47:09
> 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/
- Raw text -