rtems-rtl for powerpc

Aleksandr Platonov pam at oktetlabs.ru
Mon Mar 18 11:14:11 UTC 2013


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)
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

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

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.

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

On Wed, 2013-03-13 at 20:46 +1100, Chris Johns wrote:
> Aleksandr Platonov wrote:
> > It seems that for now powerpc is not supported in rtems-rtl project,
> > just because there is no powerpc folder in libbsd/include/arch. However
> > I found rtl-mdreloc-powerpc.c file in top folder.
> 
> I added the file and that is all.
> 
> > Is powerpc really unsupported in rtems-rtl?
> 
> I have not built it nor tested it.
> 
> > Is there any plans to add powerpc support?
> 
> There are plans to add all archs but no time frame. I am happy to accept 
> patches. :)
> 
> Chris





More information about the users mailing list