This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

arm-elf-gcc and nobits section


Hi,
  ARM cross compiler for uClinux seems to be not
taking "nobits" section type.

-----------------
# arm-elf-gcc --version
2.95.3

#gcc --version
gcc (GCC) 3.2.2 

# cat tt.s

.globl nofile
        .section        .dsp,"aw",@nobits
        .align 4
        .size           nofile,100000
nofile:
        .zero  100000

#arm-elf-gcc -c -o tt tt.s

# ls -l tt
-rw-r--r--    1 amol     cmusers    100540 Nov 29
16:55 tt

# arm-elf-objdump --headers tt

tt:     file format elf32-littlearm

Sections:
Idx Name          Size      VMA       LMA       File
off  Algn
  0 .text         00000000  00000000  00000000 
00000034  2**0
                  CONTENTS, ALLOC, LOAD, READONLY,
CODE
  1 .data         00000000  00000000  00000000 
00000034  2**0
                  CONTENTS, ALLOC, LOAD, DATA
  2 .bss          00000000  00000000  00000000 
00000034  2**0
                  ALLOC
  3 .dsp          000186a0  00000000  00000000 
00000040  2**4
                  CONTENTS, ALLOC, LOAD, DATA


#gcc -c -o tt tt.s

#ls -l
-rw-r--r--    1 amol     cmusers       528 Nov 29
17:00 tt 

# objdump --header tt
tt:     file format elf32-i386

Sections:
Idx Name          Size      VMA       LMA       File
off  Algn
  0 .text         00000000  00000000  00000000 
00000034  2**2
                  CONTENTS, ALLOC, LOAD, READONLY,
CODE
  1 .data         00000000  00000000  00000000 
00000034  2**2
                  CONTENTS, ALLOC, LOAD, DATA
  2 .bss          00000000  00000000  00000000 
00000034  2**2
                  ALLOC
  3 .dsp          000186a0  00000000  00000000 
00000034  2**2
                  ALLOC

-----------------

Thanks
Amol



__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]