Re: Weak attribute function limitation

2023-08-11 Thread Jason Merrill via Gcc
On 8/10/23 05:22, Ashraf, Islam via Gcc wrote: I have a question regarding a limitation in gcc which is when I use gcc to link my main.o file with 2 .so files each one has a function with the same name but one of them has it with the __attribute__(weak) and I call this function from main.o the

Weak attribute function limitation

2023-08-10 Thread Ashraf, Islam via Gcc
Hello. Hope this email finds you well, I have a question regarding a limitation in gcc which is when I use gcc to link my main.o file with 2 .so files each one has a function with the same name but one of them has it with the __attribute__(weak) and I call this function from main.o the executio