Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler-Options-Hardening-Guide-for-C-and-C++.md: describe linker co… #626

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

thesamesam
Copy link
Contributor

@thesamesam thesamesam commented Sep 22, 2024

Compiler-Options-Hardening-Guide-for-C-and-C++.md: describe linker configuration options

Add a section similar to "What should you do when compiling compilers?" but for linkers.

LLVM doesn't accept new configure (CMake) options for default behaviour like this and instead asks distributors to use Clang configuration files, so this section is (currently) only for GNU Binutils.

Per #588, I've not included separate-code/rosegment, as we should handle that separately once there is consensus.

Closes: #623
Signed-off-by: Sam James [email protected]

@david-a-wheeler
Copy link
Contributor

+1, looks good to me!

@david-a-wheeler
Copy link
Contributor

The group is really happy with this additional kind of material. Thank you so much!! There are some comments that need to be addressed. Let’s work it on GitHub (here), and we're okay with merging this before our next meeting if we can work out the details.

…nfiguration options

Add a section similar to "What should you do when compiling compilers?" but
for linkers.

LLVM doesn't accept new configure (CMake) options for default behaviour
like this and instead asks distributors to use Clang configuration files,
so this section is (currently) only for GNU Binutils.

Per ossf#588, I've
not included separate-code/rosegment, as we should handle that separately
once there is consensus.

Closes: ossf#623
Signed-off-by: Sam James <[email protected]>
Copy link
Contributor

@thomasnyman thomasnyman 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 2cf0a46 into ossf:main Oct 4, 2024
2 checks passed
@thesamesam thesamesam deleted the linker-configure-options branch October 4, 2024 19:06
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.

Add recommendations for building linkers
4 participants