On Fri, Feb 6, 2015 at 1:51 PM, Jack Howarth <howarth.at....@gmail.com> wrote:
> H.J.,
>      The clang compilers exhibit the same behavior on these test cases.
>
> Undefined symbols for architecture x86_64:
>   "_foo", referenced from:
>       _main in visibility-23-e1e564.o
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see 
> invocation)
>
> however if I also pass "-Wl,-undefined -Wl,dynamic_lookup" to the
> linker, both test
> compile and run.
>      FYI, the assembly from...
>
> /sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/xgcc
> -B/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/
> /sw/src/fink.build/gcc50-5.0.0-1000/gcc-5-20150206/gcc/testsuite/gcc.dg/visibility-23.c
> -fno-diagnostics-show-caret -fdiagnostics-color=never -fPIC -S -m32 -o
> visibility-23.s

Can you give my updated patch:

https://gcc.gnu.org/git/?p=gcc.git;a=patch;h=81a3a94c146950d489e30d07161f6df47959ae7a

a try?

Thanks.

-- 
H.J.

Reply via email to