300 Appendix A
Using Mapfiles
Simple Mapfile
Simple Mapfile
The following directives show how a simple mapfile would appear:
# text segment
text = LOAD ?RX;
text : .rodata ?A;
text : $PROGBITS ?AX;
# data segment
data = LOAD ?RW;
data : $PROGBITS ?AW!S;
data : $PROGBITS ?AWS;
data : $NOBITS ?AWS;
data : $NOBITS ?AW!S;
# note segment
note = NOTE;
note : $NOTE;
# non-segment
nonsegment = NONSEGMENT;