Skip to content

elfloader: limit retain to clang#233

Merged
Indanz merged 1 commit intoseL4:masterfrom
midnightveil:fix_retain
Jul 22, 2025
Merged

elfloader: limit retain to clang#233
Indanz merged 1 commit intoseL4:masterfrom
midnightveil:fix_retain

Conversation

@midnightveil
Copy link
Contributor

Because of GCC bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99587 using has_attribute is not reliable and can give compile warnings that will be turned into errors because of -Werror.

The retain atribute was added to support linking with LLVM's linker in commit be8277a.

Cross reference: seL4/seL4_libs#103.

Because of GCC bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99587
using has_attribute is not reliable and can give compile warnings
that will be turned into errors because of -Werror.

The retain atribute was added to support linking with LLVM's linker
in commit be8277a.

Signed-off-by: julia <[email protected]>
@Indanz Indanz merged commit 4b696c2 into seL4:master Jul 22, 2025
16 of 17 checks passed
@midnightveil midnightveil deleted the fix_retain branch July 22, 2025 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants