[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220320191619.GA27312@1wt.eu>
Date: Sun, 20 Mar 2022 20:16:19 +0100
From: Willy Tarreau <w@....eu>
To: Ammar Faizi <ammarfaizi2@...weeb.org>
Cc: "Paul E. McKenney" <paulmck@...nel.org>,
Alviro Iskandar Setiawan <alviro.iskandar@...weeb.org>,
Nugraha <richiisei@...il.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
GNU/Weeb Mailing List <gwml@...r.gnuweeb.org>,
llvm@...ts.linux.dev
Subject: Re: [RFC PATCH v1 2/6] tools/nolibc: Make the entry point not weak
for clang
Hi Ammar,
I've had a look at this one.
On Sun, Mar 20, 2022 at 04:37:46PM +0700, Ammar Faizi wrote:
> Budilig with clang yields the following error:
^^^^^^^
BTW please fix the typo in the final commit message.
> @@ -183,7 +183,9 @@ struct sys_stat_struct {
>
> /* startup code */
> asm(".section .text\n"
> +#if !defined(__clang__)
> ".weak _start\n"
> +#endif
> ".global _start\n"
> "_start:\n"
So it seems that I was wrong and that .weak is an alternate for .global
and not a complement. As such, instead of adding all these #if, please
simply remove all .global.
Thanks!
Willy
Powered by blists - more mailing lists