Aaron Ardiri wrote:
        

the .bss section is for zero initialized globals - do you have anything like this declared in your code:

unsigned char buffer[0x10000];

that kind of stuff ends up in the .bss section - which, is allocated on
startup and memset to 0 :)

no, i don't, most of my globals are actually pointers, sometimes i have some temporary char fields or structures but these are small and i am sure they can't break 32kb limit

how do i need to change application to build with prc-tools 2.3 ? i don't
 have much global variables m68k-palmos-objdump -h shows that in object files
i have only few bytes used for globals so i don't know what can be a
problem...

what is m68k-palmos-objdump -h actually reporting?

addressbook.o: file format coff-m68k

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         00000f5e  00000000  00000000  000000b4  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, CODE
  1 .data         0000059c  00000f5e  00000f5e  00001012  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA
  2 .bss          00000000  000014fa  000014fa  00000000  2**2
                  ALLOC, NEVER_LOAD
  3 .gcc_exc      00000020  000014fa  000014fa  000015ae  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA

file.o:     file format coff-m68k

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         00000000  00000000  00000000  00000000  2**2
                  ALLOC, LOAD, CODE
  1 .data         000005ac  00000000  00000000  000000b4  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA
  2 .bss          00000000  000005ac  000005ac  00000000  2**2
                  ALLOC, NEVER_LOAD
  3 fbseg         00000ce8  000005ac  000005ac  00000660  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, CODE

filebrowser.o:     file format coff-m68k

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         00000000  00000000  00000000  00000000  2**2
                  ALLOC, LOAD, CODE
  1 .data         00000464  00000000  00000000  000000dc  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA
  2 .bss          0000003a  00000464  00000464  00000000  2**2
                  ALLOC, NEVER_LOAD
  3 fbseg         00000ab2  0000049e  0000049e  00000540  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, CODE
  4 .gcc_exc      00000020  00000f50  00000f50  00000ff2  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA

globals.o:     file format coff-m68k

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         0000035c  00000000  00000000  000000b4  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, CODE
  1 .data         00000110  0000035c  0000035c  00000410  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA
  2 .bss          00000130  0000046c  0000046c  00000000  2**2
                  ALLOC, NEVER_LOAD
  3 .gcc_exc      0000002c  0000059c  0000059c  00000520  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA

images.o:     file format coff-m68k

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         0000074c  00000000  00000000  000000b4  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, CODE
  1 .data         00000228  0000074c  0000074c  00000800  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA
  2 .bss          0000000c  00000974  00000974  00000000  2**2
                  ALLOC, NEVER_LOAD
  3 .gcc_exc      00000020  00000980  00000980  00000a28  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA

jpg.o:     file format coff-m68k

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         00000000  00000000  00000000  00000000  2**2
                  ALLOC, LOAD, CODE
  1 .data         0000024c  00000000  00000000  000000dc  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA
  2 .bss          0000000e  0000024c  0000024c  00000000  2**2
                  ALLOC, NEVER_LOAD
  3 jpseg         000005d4  0000025a  0000025a  00000328  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, CODE
  4 .gcc_exc      00000020  0000082e  0000082e  000008fc  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA

jpgsave.o:     file format coff-m68k

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         00000000  00000000  00000000  00000000  2**2
                  ALLOC, LOAD, CODE
  1 .data         00000204  00000000  00000000  000000dc  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA
  2 .bss          0000000c  00000204  00000204  00000000  2**2
                  ALLOC, NEVER_LOAD
  3 jpseg         0000053e  00000210  00000210  000002e0  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, CODE
  4 .gcc_exc      00000020  0000074e  0000074e  0000081e  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA

main.o:     file format coff-m68k

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         00000a0a  00000000  00000000  000000b4  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, CODE
  1 .data         0000036c  00000a0a  00000a0a  00000abe  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA
  2 .bss          00000000  00000d76  00000d76  00000000  2**2
                  ALLOC, NEVER_LOAD
  3 .gcc_exc      00000020  00000d76  00000d76  00000e2a  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA

mapdata.o:     file format coff-m68k

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         00000000  00000000  00000000  00000000  2**2
                  ALLOC, LOAD, CODE
  1 .data         000003f4  00000000  00000000  000000dc  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA
  2 .bss          00000006  000003f4  000003f4  00000000  2**2
                  ALLOC, NEVER_LOAD
  3 mpseg         00000eb4  000003fa  000003fa  000004d0  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, CODE
  4 .gcc_exc      00000050  000012ae  000012ae  00001384  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA

mapselect.o:     file format coff-m68k

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         00000000  00000000  00000000  00000000  2**2
                  ALLOC, LOAD, CODE
  1 .data         0000024c  00000000  00000000  000000dc  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA
  2 .bss          00000002  0000024c  0000024c  00000000  2**2
                  ALLOC, NEVER_LOAD
  3 mpseg         00000760  0000024e  0000024e  00000328  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, CODE
  4 .gcc_exc      0000002c  000009ae  000009ae  00000a88  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA

note.o:     file format coff-m68k

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         00000788  00000000  00000000  0000008c  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, CODE
  1 .data         000002cc  00000788  00000788  00000814  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA
  2 .bss          00000000  00000a54  00000a54  00000000  2**2
                  ALLOC, NEVER_LOAD

ptjsections.o:     file format coff-m68k

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         00000004  00000000  00000000  000000b4  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, CODE
  1 .data         00000000  00000004  00000004  00000000  2**2
                  ALLOC, LOAD, DATA
  2 .bss          00000038  00000004  00000004  00000000  2**2
                  ALLOC, NEVER_LOAD
  3 ehook         00000004  0000003c  0000003c  000000b8  2**2
                  CONTENTS, ALLOC, LOAD, RELOC

settings.o:     file format coff-m68k

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         00000a22  00000000  00000000  0000008c  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, CODE
  1 .data         00000330  00000a22  00000a22  00000aae  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA
  2 .bss          00000000  00000d52  00000d52  00000000  2**2
                  ALLOC, NEVER_LOAD

strlist.o:     file format coff-m68k

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         00000000  00000000  00000000  00000000  2**2
                  ALLOC, LOAD, CODE
  1 .data         00000290  00000000  00000000  000000b4  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA
  2 .bss          00000000  00000290  00000290  00000000  2**2
                  ALLOC, NEVER_LOAD
  3 slseg         0000066a  00000290  00000290  00000344  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, CODE

tnoteselect.o:     file format coff-m68k

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         00000000  00000000  00000000  00000000  2**2
                  ALLOC, LOAD, CODE
  1 .data         000002e4  00000000  00000000  000000dc  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA
  2 .bss          0000000c  000002e4  000002e4  00000000  2**2
                  ALLOC, NEVER_LOAD
  3 tnseg         00000bf4  000002f0  000002f0  000003c0  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, CODE
  4 .gcc_exc      0000002c  00000ee4  00000ee4  00000fb4  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA

travelnote.o:     file format coff-m68k

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         000001ac  00000000  00000000  000000dc  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, CODE
  1 .data         000005fc  000001ac  000001ac  00000288  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA
  2 .bss          00000024  000007a8  000007a8  00000000  2**2
                  ALLOC, NEVER_LOAD
  3 tnseg         00001796  000007cc  000007cc  00000884  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, CODE
  4 .gcc_exc      00000044  00001f62  00001f62  0000201a  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA

unlock.o:     file format coff-m68k

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         00000226  00000000  00000000  0000008c  2**2
                  CONTENTS, ALLOC, LOAD, CODE
  1 .data         000000c8  00000226  00000226  000002b2  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA
  2 .bss          00000000  000002ee  000002ee  00000000  2**2
                  ALLOC, NEVER_LOAD

upload.o:     file format coff-m68k

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         000008ba  00000000  00000000  000000dc  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, CODE
  1 .data         00000d38  000008ba  000008ba  00000996  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA
  2 .bss          0000001a  000015f2  000015f2  00000000  2**2
                  ALLOC, NEVER_LOAD
  3 upseg         00003128  0000160c  0000160c  000016ce  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, CODE
  4 .gcc_exc      000000c8  00004734  00004734  000047f6  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA

worldmap.o:     file format coff-m68k

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         00000000  00000000  00000000  00000000  2**2
                  ALLOC, LOAD, CODE
  1 .data         00000564  00000000  00000000  000000dc  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA
  2 .bss          00000010  00000564  00000564  00000000  2**2
                  ALLOC, NEVER_LOAD
  3 wmseg         000015d0  00000574  00000574  00000640  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, CODE
  4 .gcc_exc      00000050  00001b44  00001b44  00001c10  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA

worldmapg.o:     file format coff-m68k

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         00000000  00000000  00000000  00000000  2**2
                  ALLOC, LOAD, CODE
  1 .data         0000077c  00000000  00000000  000000b4  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA
  2 .bss          00000000  0000077c  0000077c  00000000  2**2
                  ALLOC, NEVER_LOAD
  3 wmseg         000018c8  0000077c  0000077c  00000830  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, CODE

In archive spajza.a:

generated.o:     file format coff-m68k

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         000001aa  00000000  00000000  00000154  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, CODE
  1 .data         00000ac8  000001aa  000001aa  000002fe  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA
  2 .bss          00000000  00000c72  00000c72  00000000  2**2
                  ALLOC, NEVER_LOAD
  3 spseg0        00000428  00000c72  00000c72  00000dc6  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, CODE
  4 spseg1        00000c88  0000109a  0000109a  000011ee  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, CODE
  5 spseg2        00000470  00001d22  00001d22  00001e76  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, CODE
  6 spseg3        00000196  00002192  00002192  000022e6  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, CODE
  7 spseg4        00000284  00002328  00002328  0000247c  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, CODE

spajza_table.o:     file format coff-m68k

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         0000011c  00000000  00000000  000000dc  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, CODE
  1 .data         000008b8  0000011c  0000011c  000001f8  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA
  2 .bss          00000004  000009d4  000009d4  00000000  2**2
                  ALLOC, NEVER_LOAD
  3 spsegm        00000f56  000009d8  000009d8  00000ab0  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, CODE
  4 .gcc_exc      00000020  0000192e  0000192e  00001a06  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA

spajza_index.o:     file format coff-m68k

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         00000084  00000000  00000000  000000b4  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, CODE
  1 .data         000002c4  00000084  00000084  00000138  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA
  2 .bss          00000006  00000348  00000348  00000000  2**2
                  ALLOC, NEVER_LOAD
  3 spsegm        0000078e  0000034e  0000034e  000003fc  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, CODE

the difference between 2.3 and 2.2.1 could be the linker scripts and the
crt0.o (startup routines) - shouldn't really make much difference for you,
other than generating much better code :)

yes, i thought so.... but...

for now i downgraded to 2.2.1 so it is not so important, i downloaded linux
version of prc tools 2.3 and i will experiment with them at home.

but i will be glad if someone will find out what is wrong.

Michal

--
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/

Reply via email to