Some PowerPC fail to link some bootloader image

Joel Sherrill joel at rtems.org
Wed Dec 9 14:55:59 UTC 2015


On Wed, Dec 9, 2015 at 8:47 AM, Sebastian Huber <
sebastian.huber at embedded-brains.de> wrote:

> Hello,
>
> I have a problem with some older PowerPC BSPs:
>
> powerpc-rtems4.12/c/mvme2307/testsuites/samples/hello (master) > make
> clean all
> test -z "*.num *.nxe *.elf *.srec* *.bin *.bt *.ralf" || rm -f *.num *.nxe
> *.elf *.srec* *.bin *.bt *.ralf
> test -z "hello.exe" || rm -f hello.exe
> rm -f *.o
> powerpc-rtems4.12-gcc -B../../../../../mvme2307/lib/ -specs bsp_specs
> -qrtems -DHAVE_CONFIG_H -I.
> -I/home/EB/sebastian_h/rtems-4.12/c/src/../../testsuites/samples/hello
> -I..     -mcpu=604 -mmultiple -mstring -mstrict-align -meabi -O2 -g -Wall
> -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes
> -Wnested-externs -MT init.o -MD -MP -MF .deps/init.Tpo -c -o init.o
> /home/EB/sebastian_h/rtems-4.12/c/src/../../testsuites/samples/hello/init.c
> mv -f .deps/init.Tpo .deps/init.Po
> powerpc-rtems4.12-gcc -B../../../../../mvme2307/lib/ -specs bsp_specs
> -qrtems -mcpu=604 -mmultiple -mstring -mstrict-align -meabi -O2 -g -Wall
> -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes
> -Wnested-externs    -mcpu=604 -mmultiple -mstring -mstrict-align -meabi
> -o hello.exe init.o
> powerpc-rtems4.12-nm -g -n hello.exe > hello.num
> powerpc-rtems4.12-size hello.exe
>    text    data     bss     dec     hex filename
>  196229   10708   49013  255950   3e7ce hello.exe
> powerpc-rtems4.12-objcopy -O binary -R .comment -S hello.exe rtems
> gzip -vf9 rtems
> rtems:   54.2% -- replaced with rtems.gz
> powerpc-rtems4.12-ld -o hello.ralf
> ../../../../../mvme2307/lib/bootloader.o --just-symbols=hello.exe -b binary
> rtems.gz -T ../../../../../mvme2307/lib/ppcboot.lds -Map hello.map && chmod
> 755 hello.exe
> ../../../../../mvme2307/lib/bootloader.o:/home/EB/sebastian_h/rtems-4.12/c/src/lib/libbsp/powerpc/motorola_powerpc/bootloader/../../../powerpc/shared/bootloader/em86real.S:3486:
> undefined reference to `.LCL2'
> ../../../../../mvme2307/lib/bootloader.o:/home/EB/sebastian_h/rtems-4.12/c/src/lib/libbsp/powerpc/motorola_powerpc/bootloader/../../../powerpc/shared/bootloader/em86real.S:3529:
> undefined reference to `.LCL2'
> make: *** [hello.exe] Error 1
>
> Is this a known issue?
>
>
I think it looks familiar but as an old issue which was previously resolved.

It is definitely a binutils problem with local symbols so should be posted
over there.

My recollection was that this was an issue with locally generated symbols.
It may be possible to just turn it into a real named symbol but that doesn't
mean it won't turn up somewhere else.


> --
> Sebastian Huber, embedded brains GmbH
>
> Address : Dornierstr. 4, D-82178 Puchheim, Germany
> Phone   : +49 89 189 47 41-16
> Fax     : +49 89 189 47 41-09
> E-Mail  : sebastian.huber at embedded-brains.de
> PGP     : Public key available on request.
>
> Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20151209/ae3f17b4/attachment-0002.html>


More information about the devel mailing list