On 11/02/18 19:13, Mark Cave-Ayland wrote:
Is it possible to change the ports build to produce a -O0 -g yaboot
binary or point me towards how to alter the existing ISO with something
I've built myself via a cross compiler?
With that I'm happy to step through the yaboot binary against the source
via QEMU's gdbstub to figure out what is going wrong.
(BTW this is assuming that there are no local debian patches applied?)
Hmmm so I can't seem to even build yaboot-1.3.16 using an installation
from the official Jessie powerpc ISO in QEMU.
I've done a basic install of Jessie, then added in various build
packages including "apt-get source yaboot" to get all the dependencies
installed.
When I try "dpkg-buildpackage" on yaboot it all goes fine up until the
final link:
ld -Ttext 0x200000 -Bstatic -melf32ppclinux second/crt0.o
second/yaboot.o second/cache.o second/prom.o second/file.o
second/partition.o second/fs.o second/cfg.o second/setjmp.o
second/cmdline.o second/fs_of.o second/fs_ext2.o second/fs_iso.o
second/iso_util.o lib/nonstd.o lib/nosys.o lib/string.o lib/strtol.o
lib/vsprintf.o lib/ctype.o lib/malloc.o lib/strstr.o second/md5.o
second/fs_xfs.o second/fs_reiserfs.o -lext2fs `gcc -m32
-print-libgcc-file-name` -o second/yaboot
//usr/lib/powerpc-linux-gnu/libext2fs.a(block.o): In function
`xlate64_func':
(.text+0x7c): undefined reference to `__stack_chk_fail'
//usr/lib/powerpc-linux-gnu/libext2fs.a(block.o): In function
`block_iterate_ind':
(.text+0x510): undefined reference to `__stack_chk_fail'
//usr/lib/powerpc-linux-gnu/libext2fs.a(block.o): In function
`block_iterate_dind':
(.text+0x940): undefined reference to `__stack_chk_fail'
//usr/lib/powerpc-linux-gnu/libext2fs.a(block.o): In function
`ext2fs_block_iterate3.part.0':
(.text+0x1474): undefined reference to `__stack_chk_fail'
//usr/lib/powerpc-linux-gnu/libext2fs.a(block.o): In function
`ext2fs_block_iterate2':
(.text+0x1558): undefined reference to `__stack_chk_fail'
//usr/lib/powerpc-linux-gnu/libext2fs.a(block.o):(.text+0x15ec): more
undefined references to `__stack_chk_fail' follow
//usr/lib/powerpc-linux-gnu/libext2fs.a(mmp.o): In function
`ext2fs_mmp_read':
(.text+0x110): undefined reference to `read'
//usr/lib/powerpc-linux-gnu/libext2fs.a(mmp.o): In function
`ext2fs_mmp_read':
(.text+0x1bc): undefined reference to `open'
//usr/lib/powerpc-linux-gnu/libext2fs.a(mmp.o): In function
`ext2fs_mmp_write':
(.text+0x228): undefined reference to `gettimeofday'
//usr/lib/powerpc-linux-gnu/libext2fs.a(mmp.o): In function
`ext2fs_mmp_write':
(lots more repeated)
Is there something else I'm missing here?
ATB,
Mark.