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]

sh4 fails on check-textrel in glibc-2.3.2 even though there are norelocations?

I'm cross-building glibc for sh4 using gcc-3.3 and binutils-
My scripts are online at
and are partly working with glibc-2.2.5 on sh4, with a few glibc
test execution failures (see

Now I'm trying glibc-2.3.2, but "make tests" fails at build time with error
make[2]: *** [/gcc-3.3-glibc-2.3.2/build-glibc/elf/check-textrel.out] Error 1

Looking inside check-textrel.out, I see the errors
/gcc-3.3-glibc-2.3.2/build-glibc/ text relocations used
/gcc-3.3-glibc-2.3.2/build-glibc/linuxthreads/ text relocations used
/gcc-3.3-glibc-2.3.2/build-glibc/linuxthreads/ text relocations used
/gcc-3.3-glibc-2.3.2/build-glibc/math/ text relocations used
/gcc-3.3-glibc-2.3.2/build-glibc/resolv/ text relocations used

Kaz Kojima kindly provided a patch,
which got rid of the relocations he knew about.  Unfortunately,
check-textrel still fails.  Oddly, when you use readelf -a to look
at the .so's that supposedly have relocations, there aren't any,
but there is a size-zero TEXTREL:

Dynamic segment at offset 0xd760 contains 25 entries:
  Tag        Type                         Name/Value
 0x00000016 (TEXTREL)                    0x0

The .so's in question are at
if you want to see for yourself.  I tried updating to binutils-
but the problem remains.

Anyone have any idea?
I'm jazzed that I have ppc405 and ppc750 gcc-3.3/glibc-3.2.2 toolchains
working, it'd be nice to be able to run on sh4, too.  (And it'd make my
boss happy.  I spent two months figuring out and documenting how to
build and test cross-toolchains (see, partly
to better support our sh4-based cards, and it's a bit discouraging
to keep running into problems on sh4...)


Dan Kegel

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