← Back to Pull requests

build: fix AIX shared library exports generation #67359

Closed
unknown closed this pull request without merging on Nov 18, 2026 12:51 UTC
View on GitHub
unknown unknown commented on Nov 09, 2026 12:43 UTC
Author

Modifications to make the exports file available so that the addons tests work in the shared library builds:

  • Ensure test/addons/.headersbuildstamp has a dependency on the export file

  • Copies libnode.exp to node.exp

  • Links the node stub with -Wl,-bE:<PRODUCT_DIR>/node.exp to re-export the symbol set from the shared library.

  • Symbols from objects linked into libnode (e.g. gen/node_snapshot.o) could get missed as the expfile action could run before it was in place. The awk script in create_expfile.sh is abstracted out and used twice - once for the .a files as before and once for .o files. This is
  • Symbols which would have been missing from the previous solution that come from the snapshot object file:

    Mangled | Readable version / meaning
    ---|---
    _ZN4node15SnapshotBuilder23GetEmbeddedSnapshotDataEv | node::SnapshotBuilder::GetEmbeddedSnapshotData()
    _ZN4node8builtins11BuiltinInfo13parameter_mapE | node::builtins::BuiltinInfo::parameter_map
    _ZGVN4node8builtins11BuiltinInfo13parameter_mapE | Guard for parameter_map (one-time static init)
    _ZNSt3__1…__do_rehash… | libc++ unordered_map rehash (from generated snapshot translation unit)
    _ZNSt3__1…__emplace_unique_key_args… | libc++ hash table insert for builtin metadata
    _ZNSt3__1…basic_string…__init_copy_ctor_external… | libc++ string helper used during static setup

    If there was a desire to have a minimal change in this patch we could take this part out which would also remove the need for the extra parameter for the create_expfile.sh.

    The script was updated to:

  • Still use AIX dump -tov (including HIDDEN filtering).

  • Scan *obj.target/<target>/.o for the current target (e.g. libnode).

  • Accept expfile_extra_inputs** so make orders the expfile step after snapshot objects exist.
  • Files touched

    | File | Patch |
    |------|--------|
    | Makefile | node.exp prereq + build rule for addon/doc headers on AIX/OS400 |
    | node.gyp | generate_node_exp, thin node ldflags, expfile_extra_inputs on libnode |
    | node.gypi | Expfile action inputs / create_expfile.sh invocation |
    | tools/create_expfile.sh | .o files, snapshot ordering, dump -tov preserved |
    | node.gyp | Extra -Wl,-brtl on shared AIX node (often redundant) |

    Changes are also being verified on ibmi to ensure they do not break anything there: https://ci.nodejs.org/job/node-test-commit-ibmi/2534/

    <!--
    If you are submitting a pull request for the first time,
    check out the guide for first-time contributors for tips and answers to FAQs:
    https://github.com/nodejs/node/blob/HEAD/doc/contributing/first-contributions.md

    Before submitting a pull request, please read:

  • the CONTRIBUTING guide at https://github.com/nodejs/node/blob/HEAD/CONTRIBUTING.md

  • the commit message formatting guidelines at

  • https://github.com/nodejs/node/blob/HEAD/doc/contributing/pull-requests.md#commit-message-guidelines

    For code changes:
    1. Include tests for any bug fixes or new features.
    2. Update documentation if relevant.
    3. Ensure that make -j4 test (UNIX), or vcbuild test (Windows) passes.

    If you believe this PR should be highlighted in the Node.js CHANGELOG
    please add the notable-change label.

    Developer's Certificate of Origin 1.1

    By making a contribution to this project, I certify that:

    (a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

    (b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

    (c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

    (d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.
    -->

    Diff: 541 lines (+405 / -136) across 6 files Reviewer: richardlau Review duration: 12967m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.48) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.48 · 541 lines diff across 6 files
    0.48
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.377
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #67359"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 48.0% (MEDIUM) · Higher = larger blast radius
    48.0%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 18.9% · Safe to merge
    18.9%
    Repository