https://sourceware.org/bugzilla/show_bug.cgi?id=33663

            Bug ID: 33663
           Summary: "ld --help" doesn't mention -z pack-relative-relocs
                    for AArch64 targets
           Product: binutils
           Version: 2.46 (HEAD)
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: Felix.Riemann at sma dot de
  Target Milestone: ---

ld's help text (ld --help) doesn't list the "-z pack-relative-relocs" and "-z
no-pack-relative-relocs" parameters to enable DT_RELR on builds targetting
Linux ELF on ARM64.

Although one now might think that they are not supported for this target, they
work fine. Linking a shared object with "-z pack-relative-relocs" enabled has
the expected effect and doesn't warn about ignored parameters.

Steps to Reproduce

* Build an ld targetting AArch64 on Linux, e.g. "./configure
--target=aarch64-linux-gnu"
* Call "ld --help | grep pack-relative-relocs"

Expected Results

The description for the parameters is found at least once:

  -z pack-relative-relocs     Pack relative relocations
  -z nopack-relative-relocs   Do not pack relative relocations (default)

Actual Result

grep returns an empty list.

Build Date & Hardware

Reproduces with binutils 2.45 and HEAD (gdb-17-branchpoint-946-g12856136986)
targetting Linux on AArch64. Both builds were hosted on x84_64.

Additional Builds and Platforms

The parameters are listed when trying an ld for x86_64 Linux.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to