Subject: linker oddity on sparc
To: None <tech-toolchain@netbsd.org>
From: Paul Kranenburg <pk@cs.few.eur.nl>
List: tech-toolchain
Date: 01/27/2001 20:15:37
So, I notice that all sparc (ELF) executables display a weird 64KB
gap between the end of the .text (or .rodata) segment and the start
of the .data segment. Below's an arbitrary example objdump.
I'm not aware of any reason this must be so. How can I fix it?
-pk
Sections:
Idx Name Size VMA LMA File off Algn
0 .init 0000004c 000100ac 000100ac 000000ac 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 .text 0000dcf0 000100f8 000100f8 000000f8 2**3
CONTENTS, ALLOC, LOAD, READONLY, CODE
2 .fini 00000030 0001dde8 0001dde8 0000dde8 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
3 .rodata 00001835 0001de18 0001de18 0000de18 2**3
CONTENTS, ALLOC, LOAD, READONLY, DATA
4 .data 00000f14 0002f650 0002f650 0000f650 2**3
CONTENTS, ALLOC, LOAD, DATA
5 .ctors 00000008 00030564 00030564 00010564 2**2
CONTENTS, ALLOC, LOAD, DATA
6 .dtors 00000008 0003056c 0003056c 0001056c 2**2
CONTENTS, ALLOC, LOAD, DATA
7 .got 00000044 00030574 00030574 00010574 2**2
CONTENTS, ALLOC, LOAD, DATA
8 .bss 00001ba8 000305b8 000305b8 000105b8 2**3
ALLOC
9 .comment 0000127a 00000000 00000000 000105b8 2**0
CONTENTS, READONLY
10 .ident 00001082 0000127a 0000127a 00011832 2**0
CONTENTS, READONLY
11 .note.netbsd.ident 00000018 00010094 00010094 00000094 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA