Use of SHT_GROUP ELF section type by GNU as on IRIX

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Use of SHT_GROUP ELF section type by GNU as on IRIX

Albert Chin-7
I'm running into trouble building GCC 4.0.2 on IRIX 6.5.26m with GNU
as (binutils 2.16.1) and IRIX ld (MIPSpro 7.4.3m). The problem is
documented here:
  http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24345

In short, the IRIX linker is failing with the following error building
libstdc++.so:
  ld32: FATAL   2  : Internal: at ../../ld/section_type.c In load_info()
  unknown section type

Displaying the section headers of one of the object files, I see:
  $ elfdump -h .libs/allocator-inst.o
.libs/allocator-inst.o:

          **** SECTION  HEADER  TABLE ****
[No]   Type                  Addr       Offset     Size        Name
       Link       Info       Adralgn    Entsize    Flags

[1]    0x11                  0          0x34       0x8         .group
       43         0x25       0x4        0x4        0x00000000

[2]    0x11                  0          0x3c       0x8         .group
       43         0x26       0x4        0x4        0x00000000
...
[13]   SHT_PROGBITS          0          0xa0       0           .text
       0          0          0x10       0          0x00000006 ALLOC EXECINSTR

[14]   SHT_PROGBITS          0          0xa0       0           .data
       0          0          0x10       0          0x00000003 WRITE ALLOC
...


Looking at config/obj-elf.c, I see the creation of an SHT_GROUP
section type. Is GNU as on IRIX suppose to be compatible with IRIX ld?
According to <elf.h>, IRIX ld supports only 11 section types
(SHT_GROUP == 17). I think that's the reason for the ld error above.

Does GNU as really need to generate the SHT_GROUP sections?

--
albert chin ([hidden email])
Reply | Threaded
Open this post in threaded view
|

Re: Use of SHT_GROUP ELF section type by GNU as on IRIX

Thiemo Seufer
Albert Chin wrote:

> I'm running into trouble building GCC 4.0.2 on IRIX 6.5.26m with GNU
> as (binutils 2.16.1) and IRIX ld (MIPSpro 7.4.3m). The problem is
> documented here:
>   http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24345
>
> In short, the IRIX linker is failing with the following error building
> libstdc++.so:
>   ld32: FATAL   2  : Internal: at ../../ld/section_type.c In load_info()
>   unknown section type
>
> Displaying the section headers of one of the object files, I see:
>   $ elfdump -h .libs/allocator-inst.o
> .libs/allocator-inst.o:
>
>           **** SECTION  HEADER  TABLE ****
> [No]   Type                  Addr       Offset     Size        Name
>        Link       Info       Adralgn    Entsize    Flags
>
> [1]    0x11                  0          0x34       0x8         .group
>        43         0x25       0x4        0x4        0x00000000
>
> [2]    0x11                  0          0x3c       0x8         .group
>        43         0x26       0x4        0x4        0x00000000
> ...
> [13]   SHT_PROGBITS          0          0xa0       0           .text
>        0          0          0x10       0          0x00000006 ALLOC EXECINSTR
>
> [14]   SHT_PROGBITS          0          0xa0       0           .data
>        0          0          0x10       0          0x00000003 WRITE ALLOC
> ...
>
>
> Looking at config/obj-elf.c, I see the creation of an SHT_GROUP
> section type. Is GNU as on IRIX suppose to be compatible with IRIX ld?

AFAIK gas needs gld on IRIX.


Thiemo
Reply | Threaded
Open this post in threaded view
|

Re: Use of SHT_GROUP ELF section type by GNU as on IRIX

Richard Sandiford-3
Thiemo Seufer <[hidden email]> writes:
> AFAIK gas needs gld on IRIX.

I think it's suppsoed to work with MIPSpro ld.  (I think I'm the last
person to work on gas for IRIX, and I was certainly able to use that
combination to bootstrap gcc.  I don't have access to an IRIX box now
though.)

Richard
Reply | Threaded
Open this post in threaded view
|

Re: Use of SHT_GROUP ELF section type by GNU as on IRIX

Thiemo Seufer
Richard Sandiford wrote:
> Thiemo Seufer <[hidden email]> writes:
> > AFAIK gas needs gld on IRIX.
>
> I think it's suppsoed to work with MIPSpro ld.  (I think I'm the last
> person to work on gas for IRIX, and I was certainly able to use that
> combination to bootstrap gcc.  I don't have access to an IRIX box now
> though.)

Oh, then I misremembered. You certainly know more about the IRIX
support than I do.


Thiemo