Skip to content

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]

@thesamesam thesamesam force-pushed the linker-configure-options branch from c189b74 to 34ec9d3 Compare September 22, 2024 05:39
@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]>
@thesamesam thesamesam force-pushed the linker-configure-options branch from 34ec9d3 to 6ebc871 Compare October 4, 2024 03:21
@thesamesam thesamesam requested a review from thomasnyman October 4, 2024 03:21
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