E.7. Object File Sections

We have worked with .data and .text program segments in sample programs, and have seen with the debugger that the linker assigns these to specific virtual address ranges. System software usually provides for additional logical sections that have some meaning to the programmer, the FORTRAN compiler, and so forth, but are ultimately just part of the .data or .text segments.

The Itanium assemblers provide an extension of the .section directive used also with GCC on other platforms. The particulars are discussed in the Intel Itanium Architecture Assembly Language Reference Manual. We shall illustrate only two forms:

.section name, "flags", "type"  // define a section
.section name                   // switch to a section

In fact, we shall ...

Get Itanium® Architecture for Programmers: Understanding 64-Bit Processors and EPIC Principles now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.