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
Release Notes for HP-UX 10.30: HP 9000 Computers > Chapter 7 Other Operating System and Subsystem Changes

Linker for 10.30

» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

For 10.30:

For 10.30, the linker and object files tools are: ld, crt0.o, dld.sl, ar, chatr, nm, size, and strip.

Features

  • Thread local storage support in ld, crt0.o, and dld.sl.

  • Thread safe support in dld.sl and libdld.sl.

  • ANSI C++ exception handling support in ld.

  • ld +k createsexecutable only if no errors occurred during the link.

  • ld +pd/+pi options to set page size.

  • ld +Oselectivepercent n, +Oselectivepercent n, and +OslectiveO3 options to allow fine tuning of interprocedural optimization:

    +Oselectivepercent n

    Instructs the interprocedural optimizer driver to pass the first n percent of the object files to the high level optimizer for interprocedural optimizations, such as inlining.

    +Oselectivesize n

    Instructs the interprocedural optimizer driver to pass the first k routines to the high level optimizer for interprocedural optimization where the size of k routines are approaching but less than n.

    +OselectiveO3

    Instructs the interprocedural optimizer driver to compile the routines not included in the +O4 list to be compiled at +O3.

  • chatr +k enable/disable option for kernel assisted branch prediction.

  • chatr +pd/+pi set page sizes.

Summary of Change

  • TLS: Thread local storage support was added to ld, dld.sl, and crt0.o. You can use the _thread compiler directive to define symbols as TLS symbols. TLS symbols are local to each thread, which means each thread gets its own copy of the symbol. (Note that cma threads (DCE user space threads) does not support TLS.)

  • Thread Safe: Thread-safe support was added to dld.sl and libdld.sl. dld.sl and libdld.sl are thread-safe libraries whose interfaces are suitable for use by multiple threads in the same process.

  • ANSI C++ exception handling: add support to new fixup associated with the exception handling method.

  • The version of libdld.sl is now libdld.2 for 10.30. This was changed for threads (errno changed).

  • ld +k creates an executable only if no errors occurred during the link.

  • ld +pd size requests a particular virtual memory page size for data.

  • ld +pi size requests a particular virtual memory page size for instructions.

  • ld +Oselectivepercent n, +Oselectivepercent n, and +OslectiveO3 options allow fine tuning of interprocedural optimization.

  • chatr +k enable/disable requests kernel-assisted branch prediction (if enable).

  • chatr +pd size requests a particular virtual memory page size for data.

  • chatr +pi size requests a particular virtual memory page size for instructions.

Defects Repaired

The following lists the serious and critical defects repaired:

SR Number

Description

4701342642

dts: CLLbs08192; ld memory fault when called with -I and +e symbol

4701340315

dts: CLLbs08122; ld emits "absolute branch is out of range" for dyncall_external

4701339465

dts: CLLbs07977; PBO of shlib does not work with +e option

4701342071

dts: CLLbs08305; ADDIL's improperly eliminated with -N and +Ofastaccess

4701337154

dts: CLLbs07492; linker asserts when -u main is used twice

4701321687

dts: CLLbs05324; +Ofastaccess option causes linker "unexpected EOF" on milli.a

5003322768

dts: CLLbs05863; linking with -s option sometimes produces unrunnable a.out

NONE

dts: CLLbs05689; PBO instrumented executables take a long time to produce flow.data

NONE

dts: CLLbs05667; Poor performance noted during -I (PBO) links

4701331892R

dts: CLLbs05027; strip(1) core dumps (when multiple a.outs specified)

5003306845

dts: CLLbs04620; Add option to retain a.out depending on whether errors occurred

Compatibility

You cannot use dld.sl and libdld.sl on a system earlier than 10.30 because of system call changes. This was always a requirement, but now is strictly enforced.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1997, Hewlett-Packard Development Company, L.P.