alan buckley wrote:
>> On Sat, 24 Jan 2009 13:35:30 +0000 Lee Noar wrote:

<SNIP>

>
> readelf -d gives
>
> Dynamic section at offset 0x12144c contains 21 entries:
>   Tag        Type                    Name/Value
>  0x00000001 (NEEDED)                Shared library:[libintl.so.8]
>  0x00000001 (NEEDED)                Shared library:[libgcc_s.so.1]
>  0x00000001 (NEEDED)                Shared library: [libunixlib.so.5]
> 0x0000000e (SONAME) Library soname: [libglib-2.0.so.0] > 0x0000000c (INIT) 0x16420
>  0x0000000d (FINI)                  0xdfadc
>  0x00000004 (HASH)                  0xa8
>  0x00000005 (STRTAB)                0x7c9c
>  0x00000006 (SYMTAB)                0x265c
>  0x0000000a (STRSZ)                 25148 (bytes)
>  0x0000000b (SYMENT)                16 (bytes)
>  0x00000002 (PLTRELSZ)              1472 (bytes)
>  0x00000014 (PLTREL)                REL
>  0x00000017 (JMPREL)                0x15e60
>  0x00000011 (REL)                   0xded8
>  0x00000012 (RELSZ)                 32648 (bytes)
>  0x00000013 (RELENT)                8 (bytes)
>  0x00000003 (PLTGOT)                0x121514
>  0x00000016 (TEXTREL)               0x0
>  0x6ffffffa (RELCOUNT)              4015
>  0x00000000 (NULL)                  0x0
>
> There is a TEXTREL section so I guess that is the problem.

Looking at the above, I can see where your text relocations are coming
from. This is my version:

Dynamic section at offset 0x10a9a0 contains 21 entries:
   Tag        Type                       Name/Value
  0x00000001 (NEEDED)                 Shared library: [libpcre.so.3]
  0x00000001 (NEEDED)                 Shared library: [libintl.so.8]
  0x00000001 (NEEDED)                 Shared library: [libgcc_s.so.1]
  0x00000001 (NEEDED)                 Shared library: [libunixlib.so.5]
  0x0000000e (SONAME)                 Library soname: [libglib-2.0.so.0]
  0x0000000c (INIT)                   0x130e4
  0x0000000d (FINI)                   0xca224
  0x00000004 (HASH)                   0xa8
  0x00000005 (STRTAB)                 0x7b20
  0x00000006 (SYMTAB)                 0x2610
  0x0000000a (STRSZ)                  24818 (bytes)
  0x0000000b (SYMENT)                 16 (bytes)
  0x00000002 (PLTRELSZ)               1416 (bytes)
  0x00000014 (PLTREL)                 REL
  0x00000017 (JMPREL)                 0x12b5c
  0x00000011 (REL)                    0xdc14
  0x00000012 (RELSZ)                  20296 (bytes)
  0x00000013 (RELENT)                 8 (bytes)
  0x00000003 (PLTGOT)                 0x10aa68
  0x6ffffffa (RELCOUNT)               2503
  0x00000000 (NULL)                   0x0

Note that libpcre.so.3 is a dependency that is missing from your list. I
suspect that in your environment, this library only exists in static
non-shared code form and the compile time linker is pulling the whole
thing into libglib. I would try rebuilding libpcre first to see if a
shared library is produced, and then rebuild libglib so that it will
find the shared version instead of the static one.

 > Can you send me the last-success file from your build of
 > libglib-2.0 so I can compare it to mine to see what is
 > different? It would help me track down the problem in
 > my build environment faster.

<last-success file sent to Alan only>.

HTH,
Lee.


_______________________________________________
GCCSDK mailing list [email protected]
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

Reply via email to