data : .data;

data : $PROGBITS ?AW!S;

data : .sdata;

data : $PROGBITS ?AWS;

data : .sbss;

data : $NOBITS ?AWS;

data : .bss;

data : $NOBITS ?AW!S; note = NOTE;

note : $NOTE;

# text segment

text = LOAD ?RX V0x04000000; text : .dynamic;

text : .dynsym;

text : .dynstr;

text : .hash;

text : .rela.dlt;

text : .rela.plt;

text : .rela.opd;

text : $RELA ?A;

text : $REL ?A;

text : .IA_64.unwind_hdr;

text : $UNWIND ?A;

text : .IA_64.unwind_info;

text : $PROGBITS ?A!X!W;

text : .IA_64.milli;

text : .text;text : $PROGBITS ?AX!W;

# data segment

data = LOAD ?RW V0x40000000; data : .data;

data : $PROGBITS ?AW!S;

data : .preinit_array;

data : .init_array;

data : .fini_array;

data : .opd;

data : .plt;

data : .dlt;

data : .sdata;

data : $PROGBITS ?AWS;

data : .sbss;

data : $NOBITS ?AWS;

data : .bss;

data : $NOBITS ?AW!S;

cc-c main.c ld main.o +nodefaultmap -k mapfile main.o -lc elfdump -h -S a.out

a.out:

*** Section Header ***

Index Type Vaddr

Offset

Size

Name

1DYNM 04000138 00000138 000000d0 .dynamic

2DYNS 04000208 00000208 00002ec0 .dynsym

3STRT 040030c8 000030c8 000022be .dynstr

4HASH 04005388 00005388 00001190 .hash

5RELA 04006518 00006518 000000cc .rela.dlt

6RELA 040065e4 000065e4 00000018 .rela.plt

7RELA 040065fc 000065fc 0000000c .rela.HP.preinit

8RELA 04006608 00006608 000000b4 .rela.data

9PBIT 040066c0 000066c0 00000018 .IA_64.unwind_hdr

192 Using Mapfiles

Page 192
Image 192
HP UX Software Transition Kit (STK) manual Using Mapfiles