This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, rs6000] fix visibility problems for out-of-line prologues/epilogues


On Tue, Oct 7, 2008 at 10:45 AM, Nathan Froyd <froydnj@codesourcery.com> wrote:
> The patch below solves a problem related to the visibility of the
> out-of-line prologue/epilogue functions.  These functions are called by
> the compiler at -Os; since they have non-standard calling conventions,
> they are placed into static libgcc.a.  However, they have default
> visibility on ELF systems, which leads to the following failure mode:
>
>  gcc -Os -c -o libcode.o libcode.c
>
> libcode.o now calls the out-of-line prologue/epilogue functions.
>
>  gcc -Os -shared -o libcode.so.1 -Wl,-soname,libcode.so.1

Shouldn't libcode.o be compiled with -fPIC?

Thanks,
Andrew Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]