HPlogo HP Assembler Reference Manual: HP 9000 Computers > Chapter 3 HP-UX Architecture Conventions

Sections in 64-bit Mode

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

In 64-bit mode, the Executable and Linking Format (ELF) uses segments and sections rather than spaces and subspaces.

The concept of spaces maps to the ELF concept of segments, but segments do not apply to relocatable object files. Hence, the Assembler ignores the .SPACE directive for 64-bit assembly programs. Subspaces map directly to the ELF concept of sections, so the .SUBSPA directive switches to or creates a new section. The attributes of a subspace correspond to section attributes as follows:

  • Subspace names listed in the table are mapped to their corresponding section name. Names not in this table are unchanged.

    SUBSPACE NAMESECTION NAME
    $BSS$.bss
    $CODE$.text
    $DATA$.data
    $FINI$.fini
    $INIT$.init
    $LIT$.rodata
    $MILLICODE$.text
    $PREINIT$.preinit
    $SHORTBSS$.sbss
    $SHORTDATA$.sdata
    $TBSS$.tbss

  • The assembler translates access rights into a set of read, write or execute permissions for the section.

  • The assembler ignores the sort key and quadrant attributes.

  • The alignment attribute maps directly to the section alignment.

  • The COMMON and DUP_COMM attributes map to a COMDAT section.

  • The CODE_ONLY, FIRST, and FROZEN attributes are ignored.

  • The UNLOADABLE attribute maps to a non-allocated section.

For more information about ELF, see ELF 64 Object File Format, at URL: http://www.software.hp.com/STK/.

© 1998 Hewlett-Packard Development Company, L.P.