Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Linker and Libraries User's Guide: HP 9000 Computers > Chapter 1 What's New in Recent Releases

New Features for 64-bit Mode Linking

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

This section introduces new features of the 64-bit linker for HP-UX release 11.00.

64-bit Mode Linker Options

The ld(1) command supports the following new options in 64-bit mode:

Option

Action

-dynamic

Forces the linker to create a shared executable. The linker looks for shared libraries first and then archived libraries. This option is on by default when you compile in 64-bit mode.

-noshared

Forces the linker to create a fully bound archive program.

-k filename

Allows you to control the mapping of input section in the object file to segments in the output file.

+[no]allowunsats

Instructs the linker how to report errors for output files with unsatisfied symbols.

+compat

Instruct the linker to use 32-bit mode linking and dynamic loading behaviors.

+[no]forceload

Enables/disables forced loading of all the object files from archive libraries.a

+hideallsymbols

Hides all symbols from being exported.a

+nodefaultmap

Instructs the linker not to load the default mapfile. See the -k option.a

+noenvvar

Instructs the dynamic loader not to look at the LD_LIBRARY_PATH and SHLIB_PATH environment variables at runtime.a

+std

Instructs the linker to use SVR4 compatible linking and loading behaviors. Default for 64-bit mode.a

+stripunwind

Instructs the linker not to output the unwind table.

+vtype type

Produces verbose output about selected link operations.a

a. The linker accepts but ignores this option in 32-bit mode. It creates an executable (a.out).

64-bit Mode Linker-defined Symbols

The 64-bit linker reserves the following symbol names:

SymbolDefinition

__SYSTEM_ID

Largest architecture revision level used by any compilation unit

_FPU_STATUS

Initial value of FPU status register

_end

Address of first byte following the end of the main program's data segment; identifies the beginning of the heap segment

__TLS_SIZE

Size of the Thread Local Storage segment required by the program

__text_start

Beginning of the text segment

_etext

End of the text segment

__data_start

Beginning of the data segment

_edata

End of initialized data

__gp

Global pointer value

__init_start

Beginning of the .init section

__init_end

End of the .init section

__fini_start

Beginning of the .fini section

__fini_end

End of the .fini section

__unwind_start

Beginning of the unwind table

__unwind_end

End of the unwind table

NOTE: The linker generates an error if a user application also defines these symbols.
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1997 Hewlett-Packard Development Company, L.P.