Skip to content

Conversation

@thomasnyman
Copy link
Contributor

Fixes #923

@thomasnyman thomasnyman force-pushed the linker-options-are-for-gnu-bfd branch 2 times, most recently from c04b71f to f0f605e Compare June 19, 2025 07:53
@thomasnyman
Copy link
Contributor Author

Addressed feedback and resolved conflicts with main in f0f605e.

Copy link
Contributor

@06kellyjac 06kellyjac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Potential alternative wording. But current proposed wording also LGTM.

- supported both by the GCC and Clang / LLVM toolchains.
- cross-platform and supported on (at least) Intel and AMD 64-bit x86 architectures as well as the 64-bit version of the ARM architecture (AArch64).

Linker options covered by this guide are valid for the GNU BFD linker (LD) provided by Binutils (unless otherwise noted).
Copy link
Contributor

@06kellyjac 06kellyjac Jun 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Linker options covered by this guide are valid for the GNU BFD linker (LD) provided by Binutils (unless otherwise noted).
Linker options covered by this guide are valid for tooling built off the GNU BFD (Binary File Descriptor) library (unless otherwise noted). Tools such as the GNU Linker (LD) and GNU Binary Utilities (binutils).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"GLD" isn't a commonly used term, and it's also ambiguous (could refer to the gold linker).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Edited

Co-authored-by: Jack Kelly <[email protected]>
Co-authored-by: Sam James <[email protected]>
Signed-off-by: Thomas Nyman <[email protected]>
@thomasnyman thomasnyman force-pushed the linker-options-are-for-gnu-bfd branch from f0f605e to 1e39dca Compare June 27, 2025 18:57
@thomasnyman
Copy link
Contributor Author

Incorporated @06kellyjac's suggestion (with @thesamesam's clarification) in 1e39dca although I opted to flip the order so that we refer to ld primarily (as the sentence starts with mentioning linker options). Also added a trailing sentence to be more more specific that the options may not work with gold or lld.

Copy link
Contributor

@gkunz gkunz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@thomasnyman thomasnyman merged commit 30d679d into main Jul 10, 2025
6 checks passed
@thomasnyman thomasnyman deleted the linker-options-are-for-gnu-bfd branch July 10, 2025 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

-Wl,--no-copy-dt-needed-entries is not universally understood! Depends on the BFD linker.

5 participants