bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Size of .comm section not reported by objdump/size


From: Jon Beniston
Subject: Size of .comm section not reported by objdump/size
Date: Fri, 20 Aug 2004 15:28:11 +0100

Hi,

It appears as though objdump does not display information for data in
.comm section. For example, if I compile:

unsigned char b[50];

The run:

$ objdump -h test.o

I get:

test.o:     file format pe-i386

test.o:     file format pe-i386

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         00000000  00000000  00000000  00000000  2**4
                  ALLOC, LOAD, READONLY, CODE
  1 .data         00000000  00000000  00000000  00000000  2**4
                  ALLOC, LOAD, DATA
  2 .bss          00000000  00000000  00000000  00000000  2**4
                  ALLOC

Similarly, when running size, I get:

   text    data     bss     dec     hex filename
      0       0       0       0       0 test.o

Which makes it look like nothing is in the file. Would it be useful if
objdump -h displayed this somehow?

I'm using GNU objdump 2.15.90 20040312.

Cheers,
JonB






reply via email to

[Prev in Thread] Current Thread [Next in Thread]