rtems-rtl for powerpc

Chris Johns chrisj at rtems.org
Mon Mar 18 21:04:52 UTC 2013


Aleksandr Platonov wrote:
> I am currently trying to add support for powerpc in my local copy
> (copied some files from netbsd sources into libbsd/include/arch/powerpc
> directory, patched rtl-mdreloc-powerpc.c, etc)

Great.

> But I got the following error at waf -v -v
> 13:42:09 runner ['/home/pam/trans/rtems_powerpc/gcc-ppc/bin/rtems-ld',
> '--base', 'rtld.prelink', '--entry', 'my_main', '--cc',
> '/home/pam/trans/rtems_powerpc/gcc-ppc/bin/powerpc-rtems-gcc',
> 'xa.c.7.o', 'x-long-name-to-create-gnu-extension-in-archive.c.7.o',
> '-o', '/home/pam/trans/rtems-rtl/build/powerpc-rtems-mpc5200/x.rap',
> '-Wl,-Bstatic']
> error: libelf:elf_getdata: .gnu.attributes(xa.c.7.o): Invalid section
> descriptor
>

Hmm, are you able to put the rtl-host sources (diffs) and object files 
somewhere I can download ?

What happens if you use a different output format, ie script ?

> When I run readelf -a x.c.7.o I have no errors and see the
> following .gnu.attributes section information:
> Section Headers:
>    [Nr] Name              Type            Addr     Off    Size   ES Flg
> Lk Inf Al
>    [19] .gnu.attributes   LOOS+ffffff5    00000000 000ee7 000014 00
> 0   0  1

I am not sure we need this type of section. I have not looked into the 
PowerPC in detail.

>
> Is rtems-ld (rtl-host) should be build with some extra flags when target
> arch differs with host arch? I have no such error with the same rtems-ld
> when running waf command for i386-rtems.
>

The i386 is one of the platforms I have been testing on.

> I have updated libelf for rtl-host in my local copy but this does not
> help.

It is in the rtems-ld code somewhere. It may in the generation of the 
RAP format file.

Chris



More information about the users mailing list