binutils Newspaper
NOVEMBER 30, 2026
vax — Proposed — Sentiment 9 / 10

VAX: PIC: Use GOT for pointer for global function

Maintainer intends to commit a patch and add a test case to fix VAX PIC issues related to global function pointers, resolving a reported bug.

This discussion centers on a patch for the VAX architecture that modifies how Procedure Call Standard (PCS) or Position-Independent Code (PIC) handles global function pointers. The patch aims to use the Global Offset Table (GOT) instead of the Procedure Linkage Table (PLT) for function pointers to resolve an issue reported in Bugzilla #32941. The maintainer intends to commit this fix along with a new test case.

In the Thread 2 participants
  1. Rin Okuyama proposer

    Submitted a patch to address a bug in VAX PIC handling of global function pointers.

    “in same file, instead of PLT This fixes the problem reported as Bug 32941: https://sourceware.org/bugzilla/show_bug.cgi?id=32941”
  2. Jan-Benedict Glaw maintainer

    Intends to commit the proposed patch after adding a test case, confirming it addresses the reported bug.

    “I intend to commit the following patch, containing your fix and adding a testcase for it:”

In Details

This patch modifies the VAX gas backend's handling of Position-Independent Code (PIC). It changes the relocation type used for indirect global function calls from PLT-relative to GOT-relative. This addresses a bug where PLT indirection can lead to incorrect function addresses after lazy binding, particularly affecting function pointers. The change also refines the logic for when to use PLT vs. GOT for indirect branches.

For Context
VAX
A discontinued 32-bit computer architecture developed by Digital Equipment Corporation (DEC).
PIC
Position-Independent Code. Code that can run correctly regardless of where it is loaded in memory. Essential for shared libraries.
GOT
Global Offset Table. A table used in PIC code to store addresses of global variables and functions, allowing them to be accessed indirectly.
PLT
Procedure Linkage Table. A table used in dynamically linked executables to resolve function calls to external libraries at runtime.
Bugzilla #32941
A specific bug report filed on the Sourceware Bugzilla site, detailing an issue with VAX PIC global function pointer handling.
Filed Under: binutilsgasVAXPIClinking