Chapter 7 259
Position-Independent Code
7 Position-Independent Code
This chapter discusses
• “What Is Relocatable Object Code?”
• “What is Absolute Object Code?”
• “What Is Position-Independent Code?”
• “Generating Position-Independent Code”
This chapter is useful mainly to programmers who want to write
position-independent assembly language code, or who want to convert
existing assembly language programs to be position-independent. It is
also of interest to compiler developers. This chapter assumes you have a
good understanding of virtual memory concepts and memory
management.
NOTE Throughout this chapter, examples of PIC are shown in assembly code.
For the corresponding information for 64-bit mode, see 64-bit Runtime
Architecture for PA-RISC 2.0 available from the HP-UX Software
Transition Toolkit (STK) at http://www.software.hp.com/STK/.