mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 12:07:45 +00:00
Everywhere: Make some symbols __attribute__((used))
for LTO
With these changes, the userland builds correctly with Clang's ThinLTO enabled.
This commit is contained in:
parent
1faffc2192
commit
a8fefd89cd
5 changed files with 7 additions and 7 deletions
|
@ -57,8 +57,8 @@ this helper program directly.
|
|||
extern "C" {
|
||||
|
||||
// The compiler expects a previous declaration
|
||||
void _start(int, char**, char**);
|
||||
void _entry(int, char**, char**);
|
||||
void _start(int, char**, char**) __attribute__((used));
|
||||
void _entry(int, char**, char**) __attribute__((used));
|
||||
|
||||
NAKED void _start(int, char**, char**)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue