This is the mail archive of the mailing list for the glibc 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]

__sim_exceptions undefined when linking glibc-2.3.2's with--without-fp

On ppc405, I'm getting the following when linking glibc's libm:
/gcc-3.3-glibc-2.3.2/build-glibc/math/libm_pic.a(fclrexcpt.os)(.text+0x1a): In function `feclearexcept@GLIBC_2.1':
: undefined reference to `__sim_exceptions'

That symbol seems to be present in nm shows

$ find . -name '*.o' -or -name '*.so' -or -name '*.so'|
./build-glibc/math/fclrexcpt.o:         U __sim_exceptions
./build-glibc/math/fclrexcpt.os:         U __sim_exceptions
./build-glibc/soft-fp/sim-full.o:00000004 C __sim_exceptions
./build-glibc/soft-fp/sim-full.os:00000004 C __sim_exceptions
./build-glibc/libc_pic.os:0000215c B __sim_exceptions
./build-glibc/ b __sim_exceptions

The link command that's failing is, more or less,
powerpc-405-linux-gnu-gcc -shared -static-libgcc -Wl,-O1 -msoft-float -Wl,-z,defs -Wl,-dynamic-linker=/lib/ -B$build/csu/ -Wl,--version-script=$build/ -Wl, -Wl,-z,combreloc -L$build -L$build/math -L$build/elf -L$build/dlfcn -L$build/nss -L$build/nis -L$build/rt -L$build/resolv -L$build/crypt -L$build/linuxthreads -Wl,-rpath-link=$build:$build/math:$build/elf:$build/dlfcn:$build/nss:$build/nis:$build/rt:$build/resolv:$build/crypt:$build/linuxthreads -o $build/math/ -T $build/math/ $build/csu/abi-note.o -Wl,--whole-archive $build/math/libm_pic.a -Wl,--no-whole-archive $build/elf/interp.os $build/ $build/libc_nonshared.a

I'm a total newbie at versioned symbols and the like.
The references in libm_pic.a should have been found in,
shouldn't they have?
Hmm, __sim_exceptions was declared in sysdeps/powerpc/nofpu/soft-supp.h
with 'attribute_hidden', but removing that didn't help;
nm shows it's still local.

Could it be that some Versions file needs to be changed, kind of like in ?

I get the feeling this might be a last unfinished little corner of
Roland McGrath's nofpu patch,


p.s. I posted on bug-glibc about this a couple days ago,,
but haven't progressed much since then.

Dan Kegel

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